doc-exports/docs/fg/api-ref/functiongraph_06_0117.html
Chen, Junjie cb4b0ade33 FG API 20240924 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-10-28 18:55:02 +00:00

393 lines
28 KiB
HTML

<a name="functiongraph_06_0117"></a><a name="functiongraph_06_0117"></a>
<h1 class="topictitle1">Querying the Alias of a Function Version</h1>
<div id="body1354073014467"><div class="section" id="functiongraph_06_0117__section6540230144619"><h4 class="sectiontitle">Function</h4><p id="functiongraph_06_0117__p854012309467">This API is used to query the alias of a function version.</p>
</div>
<div class="section" id="functiongraph_06_0117__section125411930184613"><h4 class="sectiontitle">URI</h4><p id="functiongraph_06_0117__p115421930174619">GET /v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__table1554417304461" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="functiongraph_06_0117__row1554353011466"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="functiongraph_06_0117__p1154433054614">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_0117__p45441430204620">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_0117__p754523024612">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_0117__p854543011463">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row754320302465"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="functiongraph_06_0117__p15461130104615">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="functiongraph_06_0117__p154719308467">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="functiongraph_06_0117__p1054713034616">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="functiongraph_06_0117__p2547143020463">Project ID. For details, see <a href="functiongraph_06_0260.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row1354323010469"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="functiongraph_06_0117__p35486306466">function_urn</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="functiongraph_06_0117__p454913013466">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="functiongraph_06_0117__p15493307465">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="functiongraph_06_0117__p0549130184620">Function URN. For details, see the function model description.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row10543173011463"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="functiongraph_06_0117__p45507307466">alias_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="functiongraph_06_0117__p1355033015468">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="functiongraph_06_0117__p18551163019469">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="functiongraph_06_0117__p555143014612">Alias to be queried.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0117__section1555113304463"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="functiongraph_06_0117__row19552143011466"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="functiongraph_06_0117__p0554123010461">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_0117__p855412309462">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_0117__p455511302469">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_0117__p1355517307469">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row65521330144613"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0117__p65551430174616">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_0117__p10556130194612">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0117__p12577430184614">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0117__p6577103024610">User token.</p>
<p id="functiongraph_06_0117__p8578113054610">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_0117__row65523301466"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0117__p1057833020464">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="functiongraph_06_0117__p157813306461">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0117__p14579530194610">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0117__p2579193064617">Message body type (format).</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0117__section7579173014619"><h4 class="sectiontitle">Response Parameters</h4><p id="functiongraph_06_0117__p1458093012468"><strong id="functiongraph_06_0117__b6580173018467">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__response_ShowVersionAliasResponseBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0117__row16581133019468"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="functiongraph_06_0117__p8582133018468">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_0117__p9583203015461">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_0117__p1858343014465">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row1581163018463"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0117__p1358319304468">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0117__p1258413064616">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0117__p058483014465">Alias to be queried.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row1758113016464"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0117__p1158413302468">version</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0117__p1358593014612">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0117__p2058553015466">Version corresponding to the alias.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row458116307469"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0117__p958583064613">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0117__p1458633014617">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0117__p1258616309462">Description of the alias.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row16581193012465"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0117__p7586130104611">last_modified</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0117__p12587133034616">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0117__p458720303467">Time when the alias was last modified.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row13581153017460"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0117__p25881530154618">alias_urn</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0117__p958818306464">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0117__p558943015469">URN of the alias.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row205816306468"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0117__p135891630124617">additional_version_weights</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0117__p65891330144619">Map&lt;String,Integer&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0117__p20589730194615">Traffic shifting by percentage.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row12582430114611"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0117__p17590193064620">additional_version_strategy</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0117__p165901930134617">Map&lt;String,<a href="#functiongraph_06_0117__response_VersionStrategy">VersionStrategy</a>&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0117__p3591113011466">Traffic shifting by rule.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="functiongraph_06_0117__response_VersionStrategy"></a><a name="response_VersionStrategy"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__response_VersionStrategy" frame="border" border="1" rules="all"><caption><b>Table 4 </b>VersionStrategy</caption><thead align="left"><tr id="functiongraph_06_0117__row10591203019465"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="functiongraph_06_0117__p3592193014469">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_0117__p11593163024619">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_0117__p359313014464">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row45919301464"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0117__p2593183074610">rules</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0117__p205948301462">Array of <a href="#functiongraph_06_0117__response_VersionStrategyRules">VersionStrategyRules</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0117__p1559483064610">Rules.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row859217300464"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0117__p95941330104619">combine_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0117__p14595183074614">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0117__p859513074620">Rule aggregation mode. and: All rules are met. or: Any rule is met.</p>
<p id="functiongraph_06_0117__p959593094616">Enumeration values:</p>
<ul id="functiongraph_06_0117__ul1459603019469"><li id="functiongraph_06_0117__li659613012464"><strong id="functiongraph_06_0117__b3596630114619">and</strong></li><li id="functiongraph_06_0117__li4596103074612"><strong id="functiongraph_06_0117__b9596123004614">or</strong></li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="functiongraph_06_0117__response_VersionStrategyRules"></a><a name="response_VersionStrategyRules"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__response_VersionStrategyRules" frame="border" border="1" rules="all"><caption><b>Table 5 </b>VersionStrategyRules</caption><thead align="left"><tr id="functiongraph_06_0117__row059773011466"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="functiongraph_06_0117__p1859818303464">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_0117__p959911306466">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_0117__p14599163010465">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row1597143014613"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0117__p1360023016466">rule_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0117__p146006308468">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0117__p5600830104616">Parameter type.</p>
<p id="functiongraph_06_0117__p1460063015460">Enumeration values:</p>
<ul id="functiongraph_06_0117__ul36017301465"><li id="functiongraph_06_0117__li19601330134612"><strong id="functiongraph_06_0117__b136014303465">Header</strong></li></ul>
</td>
</tr>
<tr id="functiongraph_06_0117__row85971430114615"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0117__p186022030184618">param</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0117__p206027304464">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0117__p7602153013462">Rule parameter name, which can contain only letters, digits, underscores (_), and hyphens (-).</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row1459733010466"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0117__p1260313064610">op</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0117__p66031630104610">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0117__p560453034620">Rule matching operator. Currently, only = and in are supported.</p>
<p id="functiongraph_06_0117__p660410302463">Enumeration values:</p>
<ul id="functiongraph_06_0117__ul8604123014615"><li id="functiongraph_06_0117__li5605730104610"><strong id="functiongraph_06_0117__b13605173019464">in</strong></li><li id="functiongraph_06_0117__li13605430144620"><strong id="functiongraph_06_0117__b8605530134618">=</strong></li></ul>
</td>
</tr>
<tr id="functiongraph_06_0117__row19597930154619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0117__p1960513020465">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0117__p96065304460">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0117__p146067303462">Rule value. If op is set to in, the value is a multi-value character string separated by commas (,).</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0117__p5606130204618"><strong id="functiongraph_06_0117__b156065307465">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0117__row166071430104617"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="functiongraph_06_0117__p860823074613">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_0117__p156081030154618">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_0117__p4609330184618">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row5607930144617"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="functiongraph_06_0117__p260973084615">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="functiongraph_06_0117__p1661013064618">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="functiongraph_06_0117__p26101301466">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row1660733064616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="functiongraph_06_0117__p13610530104613">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="functiongraph_06_0117__p1061110308468">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="functiongraph_06_0117__p1761183044619">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0117__p106112305467"><strong id="functiongraph_06_0117__b15612193084615">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__table461218309469" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0117__row4612430174610"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="functiongraph_06_0117__p461373054617">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_0117__p96131730184613">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_0117__p5614173054614">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row56121030154610"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="functiongraph_06_0117__p18614530144620">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="functiongraph_06_0117__p206141330194619">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="functiongraph_06_0117__p661513305465">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row136126301464"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="functiongraph_06_0117__p66151430154613">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="functiongraph_06_0117__p8615173044618">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="functiongraph_06_0117__p11616163011462">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0117__p661633016464"><strong id="functiongraph_06_0117__b15616930174618">Status code: 404</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__table13616730124620" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0117__row5617153017466"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="functiongraph_06_0117__p15618173094610">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_0117__p1061810304464">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_0117__p146181530144613">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row261783034618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="functiongraph_06_0117__p1161993016461">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="functiongraph_06_0117__p9619143012468">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="functiongraph_06_0117__p1662013012465">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row1061733011467"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="functiongraph_06_0117__p14620153010463">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="functiongraph_06_0117__p362143018463">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="functiongraph_06_0117__p126211530144613">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0117__p19622113094617"><strong id="functiongraph_06_0117__b562211308465">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__table1862215301463" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0117__row1362253011461"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.1"><p id="functiongraph_06_0117__p1962323018461">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_0117__p7624133017469">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_0117__p36249300461">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row17622330154619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="functiongraph_06_0117__p76241130134616">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="functiongraph_06_0117__p1162514307468">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="functiongraph_06_0117__p196251430124618">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row186221330174617"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="functiongraph_06_0117__p06253304463">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="functiongraph_06_0117__p9626103054612">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="functiongraph_06_0117__p15626143024614">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0117__section1626123019465"><h4 class="sectiontitle">Example Requests</h4><p id="functiongraph_06_0117__p9627230104619">Query the alias of a function version.</p>
<pre class="screen" id="functiongraph_06_0117__screen18627123064614">GET https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name}</pre>
</div>
<div class="section" id="functiongraph_06_0117__section7627930114619"><h4 class="sectiontitle">Example Responses</h4><p id="functiongraph_06_0117__p19628030104613"><strong id="functiongraph_06_0117__b116281300466">Status code: 200</strong></p>
<p id="functiongraph_06_0117__p4628153084619">OK</p>
<pre class="screen" id="functiongraph_06_0117__screen9628183015466">{
"name" : "dev",
"version" : "latest",
"description" : "my dev version",
"last_modified" : "2019-10-31 11:37:58",
"alias_urn" : "urn:fss:xxxxxxxxxx: 7aad83af3e8d42e99ac194e8419e2c9b:function:default:test:!dev",
"additional_version_weights" : {
"v1" : 10
}
}</pre>
<p id="functiongraph_06_0117__p563093014614"><strong id="functiongraph_06_0117__b1863173024611">Status code: 401</strong></p>
<p id="functiongraph_06_0117__p17631173064611">Unauthorized.</p>
<pre class="screen" id="functiongraph_06_0117__screen76317303465">{
"error_code" : "FSS.1053",
"error_msg" : "Not found the function alias"
}</pre>
</div>
<div class="section" id="functiongraph_06_0117__section86321430124618"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0117__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="functiongraph_06_0117__row7633193054617"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="functiongraph_06_0117__p19634103016469">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_0117__p116341530114619">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0117__row66331530144616"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0117__p116351130204610">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0117__p14635830194612">OK</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row16332030154611"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0117__p18635830164620">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0117__p1463618306460">Unauthorized.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row263313306465"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0117__p17636630154614">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0117__p1963683011464">Forbidden.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row12634930154619"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0117__p20637163094619">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0117__p163715303462">Not found.</p>
</td>
</tr>
<tr id="functiongraph_06_0117__row36341630184613"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0117__p19638113011465">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0117__p76381730174611">Internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0117__section1863814305462"><h4 class="sectiontitle">Error Codes</h4><p id="functiongraph_06_0117__p2063963074613">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="VersionsandAliases.html">Versions and Aliases</a></div>
</div>
</div>