doc-exports/docs/fg/api-ref/functiongraph_06_0105.html
Chen, Junjie 7914103af1 FG API 20230725 version
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-04-09 08:59:29 +00:00

664 lines
52 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="functiongraph_06_0105"></a><a name="functiongraph_06_0105"></a>
<h1 class="topictitle1">Querying Functions</h1>
<div id="body82191548151719"><div class="section" id="functiongraph_06_0105__section121916488173"><h4 class="sectiontitle">Function</h4><p id="functiongraph_06_0105__p222518481174">This API is used to query all functions.</p>
</div>
<div class="section" id="functiongraph_06_0105__section822614488170"><h4 class="sectiontitle">URI</h4><p id="functiongraph_06_0105__p722754801716">GET /v2/{project_id}/fgs/functions</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__table10230184815179" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="functiongraph_06_0105__row3227144821712"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="functiongraph_06_0105__p122361448121718">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="functiongraph_06_0105__p122361348171712">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="functiongraph_06_0105__p123712489179">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="functiongraph_06_0105__p16237104811715">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row16228184831714"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="functiongraph_06_0105__p1123818489175">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="functiongraph_06_0105__p1023817485175">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="functiongraph_06_0105__p1523834810174">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="functiongraph_06_0105__p923920481177">Project ID. For details, see <a href="functiongraph_06_0260.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__table224711485173" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="functiongraph_06_0105__row13241114810173"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="functiongraph_06_0105__p18247164813179">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="functiongraph_06_0105__p1924824821712">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="functiongraph_06_0105__p5248148161718">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="functiongraph_06_0105__p1924914481179">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row1924615485172"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="functiongraph_06_0105__p424924851714">marker</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="functiongraph_06_0105__p9249124816174">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="functiongraph_06_0105__p3255748161719">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="functiongraph_06_0105__p5256104812173">Final record queried last time.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row17246144841714"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="functiongraph_06_0105__p15256124841715">maxitems</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="functiongraph_06_0105__p1127319484171">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="functiongraph_06_0105__p182745487177">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="functiongraph_06_0105__p72741748181713">Maximum number of functions that can be queried each time.</p>
<p id="functiongraph_06_0105__p132754481177">Maximum value: 400.</p>
<p id="functiongraph_06_0105__p1827510481171">If this parameter is not set or is 0 or greater than 400, the default value 400 is used.</p>
<p id="functiongraph_06_0105__p52756487173">If this parameter is less than 0, a message indicating parameter error is returned.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row82471548181716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="functiongraph_06_0105__p22751848111719">package_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="functiongraph_06_0105__p627611485170">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="functiongraph_06_0105__p1127734881716">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="functiongraph_06_0105__p20286648191714">Name of the group.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0105__section15287048111715"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="functiongraph_06_0105__row228884891714"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="functiongraph_06_0105__p17289204814176">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="functiongraph_06_0105__p328919485177">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="functiongraph_06_0105__p0295948111711">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="functiongraph_06_0105__p029684813171">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row11288048141711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0105__p029634818172">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="functiongraph_06_0105__p82971948111713">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0105__p0297548201714">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0105__p1429824811716">User token.</p>
<p id="functiongraph_06_0105__p0298174851710">It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row22881048141717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0105__p6299194811714">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="functiongraph_06_0105__p17299144811171">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0105__p6299194810173">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0105__p1330019486176">Message body type (format).</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0105__section103067480172"><h4 class="sectiontitle">Response Parameters</h4><p id="functiongraph_06_0105__p83061848171713"><strong id="functiongraph_06_0105__b1630613480175">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__response_ListFunctionsResponseBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0105__row03072481176"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="functiongraph_06_0105__p1431164891714">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="functiongraph_06_0105__p431144881714">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="functiongraph_06_0105__p12317104811718">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row6310114831718"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0105__p103180488177">functions</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0105__p131810485172">Array of <a href="#functiongraph_06_0105__response_ListFunctionResult">ListFunctionResult</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0105__p17318148111719">Function list.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row23102048151718"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0105__p33195489173">next_marker</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0105__p1231944881719">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0105__p33201348171720">Next read location.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row7310448171715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0105__p10320748141715">count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0105__p432014489174">Long</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0105__p1732194821718">Total number of functions that match the query conditions.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="functiongraph_06_0105__response_ListFunctionResult"></a><a name="response_ListFunctionResult"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__response_ListFunctionResult" frame="border" border="1" rules="all"><caption><b>Table 5 </b>ListFunctionResult</caption><thead align="left"><tr id="functiongraph_06_0105__row5333174820172"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="functiongraph_06_0105__p135544811173">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="functiongraph_06_0105__p19355648101717">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="functiongraph_06_0105__p20356648141712">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row15333348141713"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p203579487175">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p435864819174">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p11358748131711">Resource ID.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row18333194871714"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p113591548121715">func_urn</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p436014818175">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p10366948111717">Function URN.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row5333204813179"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p936712486172">func_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p3367248171719">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p53681848201717">Function name.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row4334124816171"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p13681048131718">domain_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p14369124810179">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p16370124816172">Domain ID.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row1233434851711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p5370848131711">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p737024801715">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p1137124817179">Project ID.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row033424841710"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p20371144811171">project_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p2383548131717">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p1738815481175">Project name.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row1933484841711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p19388748151710">package</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p1038915486176">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p2390648171712">Group to which the function belongs. This field is defined to group functions.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row233444819177"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p13391144817174">runtime</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p11391184815177">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p7394848121715">Environment for executing a function. Options: Python2.7 Python 3.6 Python 3.9 Go 1.8 Go 1.x Java 8 Java 11 Node.js 6.10 Node.js 8.10 Node.js 10.16 Node.js 12.13 Node.js 14.18 C# (.NET Core 2.0) C# (.NET Core 2.1) C# (.NET Core 3.1) Custom PHP 7.3 HTTP Custom image-based functions</p>
<p id="functiongraph_06_0105__p1539434812178">Enumeration values:</p>
<ul id="functiongraph_06_0105__ul1839544891718"><li id="functiongraph_06_0105__li4395154811710"><strong id="functiongraph_06_0105__b17395134821719">Java8</strong></li><li id="functiongraph_06_0105__li140034815178"><strong id="functiongraph_06_0105__b2040184881710">Java11</strong></li><li id="functiongraph_06_0105__li184015482175"><strong id="functiongraph_06_0105__b1940120481173">Node.js6.10</strong></li><li id="functiongraph_06_0105__li1440154841718"><strong id="functiongraph_06_0105__b3402248151718">Node.js8.10</strong></li><li id="functiongraph_06_0105__li1402848161716"><strong id="functiongraph_06_0105__b440274841717">Node.js10.16</strong></li><li id="functiongraph_06_0105__li5402144831716"><strong id="functiongraph_06_0105__b1740216486178">Node.js12.13</strong></li><li id="functiongraph_06_0105__li134031148171717"><strong id="functiongraph_06_0105__b154031048131712">Node.js14.18</strong></li><li id="functiongraph_06_0105__li1040364841710"><strong id="functiongraph_06_0105__b240314488171">Python2.7</strong></li><li id="functiongraph_06_0105__li84046486176"><strong id="functiongraph_06_0105__b18404114891719">Python3.6</strong></li><li id="functiongraph_06_0105__li340410480172"><strong id="functiongraph_06_0105__b3405134820176">Go1.8</strong></li><li id="functiongraph_06_0105__li19405148121713"><strong id="functiongraph_06_0105__b74051948111720">Go1.x</strong></li><li id="functiongraph_06_0105__li1041054813171"><strong id="functiongraph_06_0105__b13411204814175">C#(.NET Core 2.0)</strong></li><li id="functiongraph_06_0105__li184117486171"><strong id="functiongraph_06_0105__b1041174818171">C#(.NET Core 2.1)</strong></li><li id="functiongraph_06_0105__li4438164817174"><strong id="functiongraph_06_0105__b144382048171716">C#(.NET Core 3.1)</strong></li><li id="functiongraph_06_0105__li1143874841717"><strong id="functiongraph_06_0105__b15438648131712">Custom</strong></li><li id="functiongraph_06_0105__li043814817172"><strong id="functiongraph_06_0105__b2439144801711">PHP7.3</strong></li><li id="functiongraph_06_0105__li943924851716"><strong id="functiongraph_06_0105__b94399488179">Python3.9</strong></li><li id="functiongraph_06_0105__li1343920487177"><strong id="functiongraph_06_0105__b5440114821720">http</strong></li><li id="functiongraph_06_0105__li124409485171"><strong id="functiongraph_06_0105__b6440134891716">Custom Image</strong></li></ul>
</td>
</tr>
<tr id="functiongraph_06_0105__row63402486176"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p644014851711">timeout</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p54411148131711">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p184651948151717">Maximum duration the function can be executed. Value range: 3s259,200s.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row9340144816173"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p4466184811720">handler</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p16467114819172">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p74672048141713">Handler of a function in the format of "xx.xx". It must contain a period (.).</p>
<p id="functiongraph_06_0105__p13468448121716">For example, for Node.js function myfunction.handler, the file name is myfunction.js, and the handler function is handler.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row17340114817179"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p12468144814171">memory_size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p64681348161717">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p8469164819170">Memory consumed by a function.</p>
<p id="functiongraph_06_0105__p17469124815176">Unit: MB.</p>
<p id="functiongraph_06_0105__p1047024810175">The value can be 128, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2560, 3072, 3584 or 4096.</p>
<p id="functiongraph_06_0105__p10470194816171">The value ranges from 128 to 4096.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row2340048121715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p134711748201713">gpu_memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p1947724811174">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p1347794813173">GPU memory. This parameter is available only for functions created with a custom runtime or image. Unit: MB. Options: 1024, 2048, 3072, 4096, 5120, 6144, 7168, 8192, 9216, 10,240, 11,264, 12,288, 13,312, 14,336, 15,360, and 16,384. Range: 1024 to 16,384.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row9340648101717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p14781048171717">cpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p204787488172">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p7479848191716">CPU resources of a function. Unit: millicore (1 core = 1000 millicores). The value of this field is proportional to that of MemorySize. By default, 100 CPU millicores are required for 128 MB memory.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row2340134831712"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p134791848151717">code_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p247914818177">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p1848010483176">Function code type. Options: inline: inline code zip: ZIP file obs: function code stored in an OBS bucket jar: JAR file, mainly for Java functions Custom-Image-Swr: The function code comes from the SWR custom image.</p>
<p id="functiongraph_06_0105__p1348011486179">Enumeration values:</p>
<ul id="functiongraph_06_0105__ul848084841718"><li id="functiongraph_06_0105__li848094810170"><strong id="functiongraph_06_0105__b1548194816178">inline</strong></li><li id="functiongraph_06_0105__li3481104871710"><strong id="functiongraph_06_0105__b74871948151710">zip</strong></li><li id="functiongraph_06_0105__li44871948181717"><strong id="functiongraph_06_0105__b1348819484171">obs</strong></li><li id="functiongraph_06_0105__li194881948191710"><strong id="functiongraph_06_0105__b1048804819170">jar</strong></li><li id="functiongraph_06_0105__li548824871714"><strong id="functiongraph_06_0105__b3488104819177">Custom-Image-Swr</strong></li></ul>
</td>
</tr>
<tr id="functiongraph_06_0105__row234074871715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p1148810482176">code_url</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p16489204841713">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p13489748141710">Address of the function code package in OBS.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row1634015481177"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p18490154881710">code_filename</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p134901848201715">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p144902487176">Function file name.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row12341048111715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p10491194816174">code_size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p12497154810176">Long</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p049712483179">Code size in bytes.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row1341048121719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p4498204810176">user_data</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p13500848121717">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p175017489175">Name/Value information defined for the function. These are parameters used in the function. For example, if a function needs to access a host, define Host={host_ip}. You can define a maximum of 20 such parameters, and their total length cannot exceed 4 KB.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row2034154841710"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p350124891714">encrypted_user_data</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p1502194891710">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p1850264831715">User-defined name/value to be encrypted.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row134164811713"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p1250394817177">digest</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p18503104818172">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p950319480170">SHA512 hash value of function code, which is used to determine whether the function has changed.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row193411348191717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p150914816179">version</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p5510144813178">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p10510348201711">Function version.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row1534184861717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p205101948161717">image_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p3511748101712">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p195110483174">Internal identifier of a function version.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row334184811719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p1551174812174">xrole</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p551234815177">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p251234811715">Agency used by the function. You need to create an agency on the IAM console. This field is mandatory when a function needs to access other services.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row133461948101716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p1551244816177">app_xrole</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p105188486173">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p25181048191718">Agency used by the function app. You need to create an agency on the IAM console. This field is mandatory when a function needs to access other services.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row18347144813179"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p0519124819172">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p1951994891711">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p651994813179">Function description.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row1834774881718"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p1520184881712">last_modified</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p14520348181714">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p1152112483175">Time when the function was last updated.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row8347104821717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p9521104861716">func_vpc_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p1052124841712">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p3522154820173">VPC ID.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row33471748191719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p1052734841712">strategy_config</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p145285488172"><a href="#functiongraph_06_0105__response_StrategyConfig">StrategyConfig</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p195281848161710">Function policy configuration.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row834794871719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p952954810174">extend_config</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p65291748151715">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p115301748191720">Extended configuration.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row153471448131716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p653044871720">initializer_handler</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p145308481175">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p12531114801719">Initializer of the function in the format of "xx.xx". It must contain a period (.). This parameter is mandatory when the initialization function is configured. For example, for Node.js function myfunction.initializer, the file name is myfunction.js, and the initialization function is initializer.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row203481448161715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p19531124841716">initializer_timeout</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p953234811719">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p453734891715">Maximum duration the function can be initialized. Value range: 1s300s. This parameter is mandatory when the initialization function is configured.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row2348174851719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p18538348141720">pre_stop_handler</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p2053834811718">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p471695110171">The pre-stop handler of a function. The value must contain a period (.) in the format of xx.xx. For example, for Node.js function myfunction.pre_stop_handler, the file name is myfunction.js, and the initialization function is pre_stop_handler.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row19348174819173"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p071615161718">pre_stop_timeout</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p2071635131711">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p67161651201710">Maximum duration the function can be initialized. Value range: 1s90s.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row5348144841716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p47171451121711">enterprise_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p11717351181717">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p1771712512178">Enterprise project ID. This parameter is mandatory if you create a function as an enterprise user.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row63485487174"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p171745111720">long_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p16717451191718">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p177176511173">Whether to allow a long timeout.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row1034864841713"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p571765112179">log_group_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p1071713517177">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p117171551181720">Log group ID.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row143483488176"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p1871718518176">log_stream_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p771715116172">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p171715112175">Log stream ID.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row11348148161716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p11717551121710">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p271716515175">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p17171551161718">v2 indicates an official version, and v1 indicates a deprecated version.</p>
<p id="functiongraph_06_0105__p1671795141719">Enumeration values:</p>
<ul id="functiongraph_06_0105__ul371745115172"><li id="functiongraph_06_0105__li671765115177"><strong id="functiongraph_06_0105__b071795112176">v1</strong></li><li id="functiongraph_06_0105__li16717185131714"><strong id="functiongraph_06_0105__b8718115111178">v2</strong></li></ul>
</td>
</tr>
<tr id="functiongraph_06_0105__row835424881719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p77188518179">is_bridge_function</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p27186516170">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p17181951121710">Whether this is a bridge function.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row235414881717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0105__p1471875110175">bind_bridge_funcUrns</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0105__p16718115115176">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0105__p10718135131715">URNs bound to the bridge function.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="functiongraph_06_0105__response_StrategyConfig"></a><a name="response_StrategyConfig"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__response_StrategyConfig" frame="border" border="1" rules="all"><caption><b>Table 6 </b>StrategyConfig</caption><thead align="left"><tr id="functiongraph_06_0105__row10576548111714"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="functiongraph_06_0105__p1071895116178">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="functiongraph_06_0105__p1371825115171">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="functiongraph_06_0105__p1171865161712">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row1057644813173"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0105__p371895161715">concurrency</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0105__p1471820519176">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0105__p1871845120173">Maximum number of instances for a single function. For v1, the value can be 0 or 1; for v2, it ranges from 1 to 1000.</p>
<ul id="functiongraph_06_0105__ul2719105161716"><li id="functiongraph_06_0105__li371905181711">-1: The function has unlimited instances.</li><li id="functiongraph_06_0105__li1571905117176">0: The function is disabled.</li></ul>
</td>
</tr>
<tr id="functiongraph_06_0105__row10576154820172"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0105__p37196512171">concurrent_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0105__p4719165113174">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0105__p147191951121719">Number of concurrent requests per instance. This parameter is supported only by v2. The value ranges from 1 to 1,000.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0105__p17719145191713"><strong id="functiongraph_06_0105__b137191051111711">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0105__row459634818178"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="functiongraph_06_0105__p12719155110179">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="functiongraph_06_0105__p5719185181712">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="functiongraph_06_0105__p371915141716">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row18597164815176"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="functiongraph_06_0105__p4719165112175">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="functiongraph_06_0105__p6719351161712">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="functiongraph_06_0105__p2719115115174">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row15971648141720"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="functiongraph_06_0105__p3719155111176">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="functiongraph_06_0105__p571995171714">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="functiongraph_06_0105__p3720151131716">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0105__p0720751181712"><strong id="functiongraph_06_0105__b2720125117179">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__table17607148131714" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0105__row1260713486176"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="functiongraph_06_0105__p1272015116176">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.2"><p id="functiongraph_06_0105__p117201651151711">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.9.2.4.1.3"><p id="functiongraph_06_0105__p1172035113176">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row1660734811175"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="functiongraph_06_0105__p2720115117177">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="functiongraph_06_0105__p17720105121712">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="functiongraph_06_0105__p187202513179">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row106074487179"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="functiongraph_06_0105__p13720205121716">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="functiongraph_06_0105__p47203511173">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="functiongraph_06_0105__p16720165119176">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0105__p472011519179"><strong id="functiongraph_06_0105__b177201951121719">Status code: 404</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__table10617848121713" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0105__row1661734811173"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="functiongraph_06_0105__p772015114177">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.2"><p id="functiongraph_06_0105__p20720175110177">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.11.2.4.1.3"><p id="functiongraph_06_0105__p1772075181711">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row96181348111716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="functiongraph_06_0105__p16720105151711">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="functiongraph_06_0105__p19721115117173">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="functiongraph_06_0105__p197211951151712">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row561814861717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="functiongraph_06_0105__p1072125110171">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="functiongraph_06_0105__p0721115121716">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="functiongraph_06_0105__p147213519176">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0105__p9721451151711"><strong id="functiongraph_06_0105__b7721185181716">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__table1162984841718" frame="border" border="1" rules="all"><caption><b>Table 10 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0105__row14629134810173"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.1"><p id="functiongraph_06_0105__p1972119517172">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.2"><p id="functiongraph_06_0105__p572155116172">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.13.2.4.1.3"><p id="functiongraph_06_0105__p1072195118175">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row126291848151714"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="functiongraph_06_0105__p167211851181710">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="functiongraph_06_0105__p2721195151718">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="functiongraph_06_0105__p1172115115171">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row13630194841718"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="functiongraph_06_0105__p472115116175">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="functiongraph_06_0105__p1272145118179">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="functiongraph_06_0105__p137212051151717">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0105__section1172115101714"><h4 class="sectiontitle">Example Requests</h4><p id="functiongraph_06_0105__p072114516172">Query functions of the current tenant.</p>
<pre class="screen" id="functiongraph_06_0105__screen372155131710">GET https://{Endpoint}/v2/{project_id}/fgs/functions?marker=0&amp;maxitems=400</pre>
</div>
<div class="section" id="functiongraph_06_0105__section1172120517172"><h4 class="sectiontitle">Example Responses</h4><p id="functiongraph_06_0105__p272215517173"><strong id="functiongraph_06_0105__b17722115141716">Status code: 200</strong></p>
<p id="functiongraph_06_0105__p15722145112177">ok</p>
<pre class="screen" id="functiongraph_06_0105__screen1672213516174">{
"functions" : [ {
"func_urn" : "urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test",
"resource_id" : "0d075978-5a54-4ee1-8e24-ff5bd070xxxx:test",
"func_name" : "test",
"domain_id" : "cff01_hk",
"namespace" : "7aad83af3e8d42e99ac194e8419e2c9b",
"project_name" : "xxxxxxxx",
"package" : "default",
"runtime" : "Node.js6.10",
"timeout" : 3,
"handler" : "test.handler",
"memory_size" : 128,
"cpu" : 300,
"code_type" : "inline",
"code_filename" : "index.js",
"code_size" : 272,
"digest" : "decbce6939297b0b5ec6d1a23bf9c725870f5e69fc338a89a6a4029264688dc26338f56d08b6535de47f15ad538e22ca66613b9a46f807d50b687bb53fded1c6",
"version" : "latest",
"xrole" : "cff",
"image_name" : "latest-191025153727@zehht",
"last_modified" : "2019-10-25 15:37:27",
"strategy_config" : {
"concurrency" : 0
},
"initializer_handler" : "index.initializer",
"initializer_timeout" : 3,
"pre_stop_handler" : "index.pre_stop_handler",
"pre_stop_timeout" : 3
} ],
"next_marker" : 4
}</pre>
</div>
<div class="section" id="functiongraph_06_0105__section207229517173"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0105__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="functiongraph_06_0105__row366454861718"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="functiongraph_06_0105__p47231151101718">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="functiongraph_06_0105__p10723151131717">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0105__row1866404831715"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0105__p472375131711">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0105__p27231151171715">ok</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row10664124814178"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0105__p1272310511175">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0105__p1723951101720">Unauthorized.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row5664174811172"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0105__p9723145111711">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0105__p7723175191718">Forbidden.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row06641348111713"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0105__p197234518175">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0105__p1572319513174">Not found.</p>
</td>
</tr>
<tr id="functiongraph_06_0105__row1366413486178"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0105__p1372319514171">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0105__p12723851101713">Internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0105__section1972313512174"><h4 class="sectiontitle">Error Codes</h4><p id="functiongraph_06_0105__p147238518171">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="FunctionLifecycleManagement.html">Function Lifecycle Management</a></div>
</div>
</div>