forked from docs/doc-exports
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>
593 lines
43 KiB
HTML
593 lines
43 KiB
HTML
<a name="functiongraph_06_0114"></a><a name="functiongraph_06_0114"></a>
|
|
|
|
<h1 class="topictitle1">Creating an Alias for a Function Version</h1>
|
|
<div id="body44821851204010"><div class="section" id="functiongraph_06_0114__section12482251124013"><h4 class="sectiontitle">Function</h4><p id="functiongraph_06_0114__p19482751134015">This API is used to create an alias for a function version.</p>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0114__section648315119405"><h4 class="sectiontitle">URI</h4><p id="functiongraph_06_0114__p3483051164011">POST /v2/{project_id}/fgs/functions/{function_urn}/aliases</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__table848555114401" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="functiongraph_06_0114__row164841551174017"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="functiongraph_06_0114__p15485175184012">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_0114__p1486251184019">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_0114__p148615111402">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_0114__p154878512407">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row10484151184014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="functiongraph_06_0114__p2488205113405">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="functiongraph_06_0114__p1748814513400">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="functiongraph_06_0114__p4488151154015">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="functiongraph_06_0114__p124891451144017">Project ID. For details, see <a href="functiongraph_06_0260.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row248410518409"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="functiongraph_06_0114__p1489151144019">function_urn</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="functiongraph_06_0114__p14489115124019">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="functiongraph_06_0114__p14490551184012">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="functiongraph_06_0114__p10490175154010">Function URN. For details, see the function model description.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0114__section18490205184015"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="functiongraph_06_0114__row1491451194017"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="functiongraph_06_0114__p149285110408">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_0114__p17492125111405">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_0114__p154923511403">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_0114__p184921551174017">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row19491115104015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0114__p9495175118403">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_0114__p149620514405">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0114__p44969515405">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0114__p12496851184016">User token.</p>
|
|
<p id="functiongraph_06_0114__p1149695112409">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_0114__row44911051104018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0114__p10497105115407">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="functiongraph_06_0114__p11497185113407">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0114__p1497105115409">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0114__p249765164018">Message body type (format).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__request_CreateVersionAliasRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="functiongraph_06_0114__row749855112406"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="functiongraph_06_0114__p34991151154016">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="functiongraph_06_0114__p549995144018">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="functiongraph_06_0114__p104991951184017">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="functiongraph_06_0114__p11500155119402">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row34981951184012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0114__p650019516408">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0114__p1250085117407">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0114__p350075115408">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0114__p95001351154017">Alias.Max. 64 of letters, digits, hyphens (-), and underscores (_). Start with a letter, and end with a letter or digit.</p>
|
|
<p id="functiongraph_06_0114__p77936107413">Minimum length: 1 character.</p>
|
|
<p id="functiongraph_06_0114__p957901634112">Maximum length: 64 characters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row14982051124017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0114__p20501185154012">version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0114__p155011451194010">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0114__p050185116405">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0114__p55017513403">Version corresponding to the alias.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row18498851184017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0114__p7501165114408">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0114__p1450285113401">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0114__p8502185117400">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0114__p1350265110408">Description of the alias.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row19498165144011"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0114__p1650217518409">additional_version_weights</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0114__p55025511400">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0114__p650312512401">Map<String,Integer></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0114__p175034516405">Traffic shifting by percentage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row16498175114406"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0114__p13503125164012">additional_version_strategy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0114__p65030514406">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0114__p7504175114408">Map<String,<a href="#functiongraph_06_0114__request_VersionStrategy">VersionStrategy</a>></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0114__p15504551184013">Traffic shifting by rule.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="functiongraph_06_0114__request_VersionStrategy"></a><a name="request_VersionStrategy"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__request_VersionStrategy" frame="border" border="1" rules="all"><caption><b>Table 4 </b>VersionStrategy</caption><thead align="left"><tr id="functiongraph_06_0114__row15041551174015"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="functiongraph_06_0114__p195061551154018">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="functiongraph_06_0114__p105069515407">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="functiongraph_06_0114__p17506185111401">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="functiongraph_06_0114__p3506125104011">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row2505115164017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="functiongraph_06_0114__p750725118401">rules</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="functiongraph_06_0114__p165071951134014">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="functiongraph_06_0114__p155071251124020">Array of <a href="#functiongraph_06_0114__request_VersionStrategyRules">VersionStrategyRules</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="functiongraph_06_0114__p55075514407">Rules.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row16505175118401"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="functiongraph_06_0114__p1750775112409">combine_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="functiongraph_06_0114__p5508105124014">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="functiongraph_06_0114__p1508151194014">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="functiongraph_06_0114__p17508651194018">Rule aggregation mode. and: All rules are met. or: Any rule is met.</p>
|
|
<p id="functiongraph_06_0114__p13508145110405">Enumeration values:</p>
|
|
<ul id="functiongraph_06_0114__ul050835116403"><li id="functiongraph_06_0114__li1508195115409"><strong id="functiongraph_06_0114__b1950955118409">and</strong></li><li id="functiongraph_06_0114__li15091451174012"><strong id="functiongraph_06_0114__b950918516400">or</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="functiongraph_06_0114__request_VersionStrategyRules"></a><a name="request_VersionStrategyRules"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__request_VersionStrategyRules" frame="border" border="1" rules="all"><caption><b>Table 5 </b>VersionStrategyRules</caption><thead align="left"><tr id="functiongraph_06_0114__row17509115115407"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.1"><p id="functiongraph_06_0114__p65102051174017">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.2"><p id="functiongraph_06_0114__p10511105110407">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.3"><p id="functiongraph_06_0114__p11511195113401">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.5.2.5.1.4"><p id="functiongraph_06_0114__p4511145104013">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row1950995112409"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="functiongraph_06_0114__p151145113400">rule_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="functiongraph_06_0114__p145111751114019">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="functiongraph_06_0114__p1551245112409">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="functiongraph_06_0114__p16512451104017">Parameter type.</p>
|
|
<p id="functiongraph_06_0114__p25129512403">Enumeration values:</p>
|
|
<ul id="functiongraph_06_0114__ul1051245174015"><li id="functiongraph_06_0114__li751265134014"><strong id="functiongraph_06_0114__b451213510409">Header</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row2051019513401"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="functiongraph_06_0114__p125133517403">param</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="functiongraph_06_0114__p5513105154011">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="functiongraph_06_0114__p165131513403">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="functiongraph_06_0114__p165131251184010">Rule parameter name, which can contain only letters, digits, underscores (_), and hyphens (-).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row7510145118403"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="functiongraph_06_0114__p45149510407">op</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="functiongraph_06_0114__p18514051204011">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="functiongraph_06_0114__p105141351114017">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="functiongraph_06_0114__p1051410511402">Rule matching operator. Currently, only = and in are supported.</p>
|
|
<p id="functiongraph_06_0114__p17514115124012">Enumeration values:</p>
|
|
<ul id="functiongraph_06_0114__ul55141351124014"><li id="functiongraph_06_0114__li1151525120407"><strong id="functiongraph_06_0114__b115151051194011">in</strong></li><li id="functiongraph_06_0114__li7515105116402"><strong id="functiongraph_06_0114__b13515195164011">=</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row1251019516401"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="functiongraph_06_0114__p115151451204013">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="functiongraph_06_0114__p13515185111409">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="functiongraph_06_0114__p10515165113407">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="functiongraph_06_0114__p35169511408">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>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0114__section1951605144013"><h4 class="sectiontitle">Response Parameters</h4><p id="functiongraph_06_0114__p3517145116408"><strong id="functiongraph_06_0114__b1551785164016">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__response_CreateVersionAliasResponseBody" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0114__row185171251114010"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="functiongraph_06_0114__p951985164011">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_0114__p15199516403">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_0114__p35191151164013">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row1051755110408"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0114__p15520145134011">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0114__p65212519402">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0114__p6521115144016">Alias to be queried.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row11517651154018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0114__p1652325119401">version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0114__p135233514409">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0114__p9523951134016">Version corresponding to the alias.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row16518125112406"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0114__p13523105116404">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0114__p1152375164010">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0114__p152465117404">Description of the alias.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row1851805110407"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0114__p252411519401">last_modified</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0114__p25242517403">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0114__p2052465164011">Time when the alias was last modified.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row195185510402"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0114__p14524151174013">alias_urn</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0114__p8525351104017">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0114__p15525451174017">URN of the alias.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row1651885114012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0114__p2052510518402">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_0114__p1752545114012">Map<String,Integer></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0114__p18525175154011">Traffic shifting by percentage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row1451816519403"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0114__p19526551134017">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_0114__p19526951154012">Map<String,<a href="#functiongraph_06_0114__response_VersionStrategy">VersionStrategy</a>></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0114__p10526251174016">Traffic shifting by rule.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="functiongraph_06_0114__response_VersionStrategy"></a><a name="response_VersionStrategy"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__response_VersionStrategy" frame="border" border="1" rules="all"><caption><b>Table 7 </b>VersionStrategy</caption><thead align="left"><tr id="functiongraph_06_0114__row3527351124019"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="functiongraph_06_0114__p205281251204017">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_0114__p115281351114015">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_0114__p4528851114014">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row4527451164012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0114__p19528451174012">rules</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0114__p1353245113409">Array of <a href="#functiongraph_06_0114__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_0114__p753235120403">Rules.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row15270518406"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0114__p1953218515405">combine_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0114__p4533135154014">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0114__p105331851184017">Rule aggregation mode. and: All rules are met. or: Any rule is met.</p>
|
|
<p id="functiongraph_06_0114__p3533851164016">Enumeration values:</p>
|
|
<ul id="functiongraph_06_0114__ul75335510409"><li id="functiongraph_06_0114__li11533145115402"><strong id="functiongraph_06_0114__b4533151184014">and</strong></li><li id="functiongraph_06_0114__li553414513402"><strong id="functiongraph_06_0114__b55348514404">or</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="functiongraph_06_0114__response_VersionStrategyRules"></a><a name="response_VersionStrategyRules"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__response_VersionStrategyRules" frame="border" border="1" rules="all"><caption><b>Table 8 </b>VersionStrategyRules</caption><thead align="left"><tr id="functiongraph_06_0114__row6534125116404"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="functiongraph_06_0114__p13535155134019">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_0114__p145351051164019">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_0114__p853685114012">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row35341951124018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0114__p12536155119407">rule_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0114__p55361751124018">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0114__p5536551194018">Parameter type.</p>
|
|
<p id="functiongraph_06_0114__p10536185119406">Enumeration values:</p>
|
|
<ul id="functiongraph_06_0114__ul1653705194015"><li id="functiongraph_06_0114__li13537551144017"><strong id="functiongraph_06_0114__b11537551104012">Header</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row205347519409"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0114__p453705117407">param</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0114__p6537145110401">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0114__p20537145112403">Rule parameter name, which can contain only letters, digits, underscores (_), and hyphens (-).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row145355519402"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0114__p1253814511407">op</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0114__p5538125184013">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0114__p1853819511408">Rule matching operator. Currently, only = and in are supported.</p>
|
|
<p id="functiongraph_06_0114__p55388513404">Enumeration values:</p>
|
|
<ul id="functiongraph_06_0114__ul165381951174013"><li id="functiongraph_06_0114__li1653865174020"><strong id="functiongraph_06_0114__b6539165113408">in</strong></li><li id="functiongraph_06_0114__li15539651164016"><strong id="functiongraph_06_0114__b1553915144011">=</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row3535155104020"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0114__p15393517402">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0114__p20539135164013">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0114__p115391651114013">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_0114__p16539151174010"><strong id="functiongraph_06_0114__b153945118400">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0114__row35401351164018"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="functiongraph_06_0114__p15541451174010">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_0114__p554155111405">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_0114__p7541135118406">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row15401151134013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="functiongraph_06_0114__p105425517407">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="functiongraph_06_0114__p19542185164013">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="functiongraph_06_0114__p1854216518407">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row8540115154018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="functiongraph_06_0114__p175421451134010">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="functiongraph_06_0114__p254285154012">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="functiongraph_06_0114__p175433517408">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="functiongraph_06_0114__p105431251124018"><strong id="functiongraph_06_0114__b13543165110408">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__table754385164016" frame="border" border="1" rules="all"><caption><b>Table 10 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0114__row1654319516403"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="functiongraph_06_0114__p85447510401">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_0114__p135441051114013">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_0114__p15544145110408">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row205431551174012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="functiongraph_06_0114__p2545155144016">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="functiongraph_06_0114__p1354535111401">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="functiongraph_06_0114__p554515110405">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row1354375114406"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="functiongraph_06_0114__p1545105114403">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="functiongraph_06_0114__p105451951204014">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="functiongraph_06_0114__p165462051124018">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="functiongraph_06_0114__p18546135120405"><strong id="functiongraph_06_0114__b1954612519401">Status code: 403</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__table11546251194018" frame="border" border="1" rules="all"><caption><b>Table 11 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0114__row14546451104011"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="functiongraph_06_0114__p15869651144015">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_0114__p28692513404">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_0114__p887095174020">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row16546351104010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="functiongraph_06_0114__p13870125194011">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="functiongraph_06_0114__p2870651184015">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="functiongraph_06_0114__p187015118406">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row10546135104017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="functiongraph_06_0114__p387018517404">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="functiongraph_06_0114__p7870195118408">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="functiongraph_06_0114__p687075112407">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="functiongraph_06_0114__p188701451134012"><strong id="functiongraph_06_0114__b587045194014">Status code: 404</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__table254913519406" frame="border" border="1" rules="all"><caption><b>Table 12 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0114__row5550185120407"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.1"><p id="functiongraph_06_0114__p1787017515405">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_0114__p5870155134019">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_0114__p1987135117404">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row18550151154013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="functiongraph_06_0114__p10871155164018">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="functiongraph_06_0114__p1487125114403">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="functiongraph_06_0114__p287115511406">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row5550195113402"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="functiongraph_06_0114__p387117511408">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="functiongraph_06_0114__p78711351114012">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="functiongraph_06_0114__p13871135114010">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="functiongraph_06_0114__p687185120408"><strong id="functiongraph_06_0114__b10871135113402">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__table1455220517408" frame="border" border="1" rules="all"><caption><b>Table 13 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0114__row1955275124010"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.15.2.4.1.1"><p id="functiongraph_06_0114__p17871135134011">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.15.2.4.1.2"><p id="functiongraph_06_0114__p1887118513405">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.15.2.4.1.3"><p id="functiongraph_06_0114__p208711551174011">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row0552115164011"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.1 "><p id="functiongraph_06_0114__p1487155110404">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.2 "><p id="functiongraph_06_0114__p198719512400">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.15.2.4.1.3 "><p id="functiongraph_06_0114__p98713514400">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row2552155114018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.1 "><p id="functiongraph_06_0114__p10871135117405">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.2 "><p id="functiongraph_06_0114__p8871951164012">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.15.2.4.1.3 "><p id="functiongraph_06_0114__p12871135116402">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0114__section28722512402"><h4 class="sectiontitle">Example Requests</h4><ul id="functiongraph_06_0114__ul4872115111401"><li id="functiongraph_06_0114__li7872951134019">Create an alias named a1 for version v1 of a function.<pre class="screen" id="functiongraph_06_0114__screen287265184011">POST https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases
|
|
|
|
{
|
|
"name" : "a1",
|
|
"version" : "v1"
|
|
}</pre>
|
|
</li><li id="functiongraph_06_0114__li887225184018">Create an alias named a1 for version v1 of a function, enable Traffic Shifting, and set Weight of version v2 to 50%.<pre class="screen" id="functiongraph_06_0114__screen8872115118403">POST https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases
|
|
|
|
{
|
|
"name" : "a1",
|
|
"version" : "v1",
|
|
"additional_version_weights" : {
|
|
"v2" : 50
|
|
}
|
|
}</pre>
|
|
</li><li id="functiongraph_06_0114__li15873351174019">Create an alias named a1 for version v1 of a function, enable Traffic Shifting, and set version v2 to shift traffic by Rule.<pre class="screen" id="functiongraph_06_0114__screen1787315514404">POST https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases
|
|
|
|
{
|
|
"name" : "a1",
|
|
"version" : "v1",
|
|
"additional_version_strategy" : {
|
|
"v2" : {
|
|
"combine_type" : "and",
|
|
"rules" : [ {
|
|
"rule_type" : "Header",
|
|
"param" : "version",
|
|
"op" : "=",
|
|
"value" : "v1"
|
|
} ]
|
|
}
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0114__section1187314515405"><h4 class="sectiontitle">Example Responses</h4><p id="functiongraph_06_0114__p1387365116407"><strong id="functiongraph_06_0114__b168731516404">Status code: 200</strong></p>
|
|
<p id="functiongraph_06_0114__p17873205119403">ok</p>
|
|
<pre class="screen" id="functiongraph_06_0114__screen38731516407">{
|
|
"name" : "a1",
|
|
"version" : "latest",
|
|
"description" : "",
|
|
"last_modified" : "2019-10-31 11:37:58",
|
|
"alias_urn" : "urn:fss:{region}:46b6f338fc3445b8846c71dfb1fbxxxx:function:default:xxxxx:!a1"
|
|
}</pre>
|
|
<p id="functiongraph_06_0114__p17874051164014"><strong id="functiongraph_06_0114__b9874155118405">Status code: 404</strong></p>
|
|
<p id="functiongraph_06_0114__p1187416511404">Not found.</p>
|
|
<pre class="screen" id="functiongraph_06_0114__screen387455164017">{
|
|
"error_code" : "FSS.1051",
|
|
"error_msg" : "Not found the function"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0114__section2874195117403"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0114__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="functiongraph_06_0114__row756617515400"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="functiongraph_06_0114__p1587418516402">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_0114__p1387411513403">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0114__row1356645118401"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0114__p18874115114019">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0114__p15874195110407">ok</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row356611514405"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0114__p1987475112408">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0114__p48741951194013">Bad request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row135661651144010"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0114__p11874195154017">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0114__p198741451154014">Unauthorized.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row15566125112401"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0114__p2087418514404">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0114__p687405124012">Forbidden.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row17566651164010"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0114__p12874135118404">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0114__p19874651184019">Not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0114__row16566195111404"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0114__p1687412518408">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0114__p1787435124018">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0114__section19875151174015"><h4 class="sectiontitle">Error Codes</h4><p id="functiongraph_06_0114__p087513511402">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>
|
|
|