doc-exports/docs/config/api-ref/rms_04_0505.html
Wei, Hongmin da6ca4fb3c Config API First Version
Reviewed-by: Ziuzko, Alevtina <alevtina.ziuzko@t-systems.com>
Co-authored-by: Wei, Hongmin <weihongmin1@huawei.com>
Co-committed-by: Wei, Hongmin <weihongmin1@huawei.com>
2024-08-22 10:49:27 +00:00

831 lines
56 KiB
HTML

<a name="rms_04_0505"></a><a name="rms_04_0505"></a>
<h1 class="topictitle1">Modifying a Rule</h1>
<div id="body21922210308"><div class="section" id="rms_04_0505__section9201522193011"><h4 class="sectiontitle">Function</h4><p id="rms_04_0505__p220422133014">This API is used to modify a rule.</p>
</div>
<div class="section" id="rms_04_0505__atuogenerate_1"><h4 class="sectiontitle">Calling Method</h4><p id="rms_04_0505__p13201422103020">For details, see <a href="rms_03_0000.html">Calling APIs</a>.</p>
</div>
<div class="section" id="rms_04_0505__atuogenerate_2"><h4 class="sectiontitle">URI</h4><p id="rms_04_0505__p32062293019">PUT /v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__table1222102263015" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="rms_04_0505__row102142218303"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="rms_04_0505__p122102263018">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="rms_04_0505__p1822922143015">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="rms_04_0505__p0231226306">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="rms_04_0505__p4231722193020">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row1421132213019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0505__p124922103014">domain_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0505__p0241822143013">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0505__p172452243014">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0505__p1241722153017">Specifies tags.</p>
<p id="rms_04_0505__p142419224301">Maximum: <strong id="rms_04_0505__b0242220309">36</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row3216224308"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0505__p724182283010">policy_assignment_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0505__p62502203012">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0505__p102513220309">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0505__p025152223014">Specifies the rule ID.</p>
<p id="rms_04_0505__p1125182213016">Maximum: <strong id="rms_04_0505__b32572214307">36</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0505__section4261422113015"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="rms_04_0505__row15261522153014"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="rms_04_0505__p42713221305">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="rms_04_0505__p22717225302">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="rms_04_0505__p627322183015">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="rms_04_0505__p7271822133013">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row52610227303"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0505__p22832215309">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="rms_04_0505__p42818222302">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0505__p162816223304">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0505__p628622193011">Specifies the invoker's token.</p>
</td>
</tr>
<tr id="rms_04_0505__row326322193017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0505__p1428422173012">X-Security-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="rms_04_0505__p92913225304">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0505__p17291822183011">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0505__p42982219305">Security token (session token) for temporary security credentials. This parameter is mandatory when you make an API call using temporary security credentials.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__request_PolicyAssignmentRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="rms_04_0505__row14303222304"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="rms_04_0505__p1539152213017">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="rms_04_0505__p83910229301">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="rms_04_0505__p19401322183015">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="rms_04_0505__p74002215305">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row193062283012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0505__p13405226300">policy_assignment_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0505__p2402022123015">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0505__p15413222302">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0505__p16411922193010">Specifies the rule type. A rule type can be <strong id="rms_04_0505__b840992571217">custom</strong> or <strong id="rms_04_0505__b13983112211214">builtin</strong>. If this parameter is not configured, <strong id="rms_04_0505__b17978134915104">builtin</strong> is used by default.</p>
</td>
</tr>
<tr id="rms_04_0505__row43042216304"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0505__p7414228309">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0505__p04182215305">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0505__p742182203012">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0505__p1442112215307">Specifies the rule name.</p>
<p id="rms_04_0505__p1421122163017">Maximum: <strong id="rms_04_0505__b742192223017">64</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row730122203015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0505__p13431722143010">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0505__p44382253019">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0505__p124312221306">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0505__p34310220304">Specifies the rule description.</p>
<p id="rms_04_0505__p144322213309">Maximum: <strong id="rms_04_0505__b19431522143012">512</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row130522163010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0505__p14441122123015">period</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0505__p14482214305">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0505__p1444922183016">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0505__p1944142215302">Specifies the trigger period.</p>
<p id="rms_04_0505__p143291101317">You need to set this parameter when trigger type is set to periodic execution.</p>
</td>
</tr>
<tr id="rms_04_0505__row1730722103014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0505__p19441222183010">policy_filter</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0505__p114502213015">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0505__p94519229301"><a href="#rms_04_0505__request_PolicyFilterDefinition">PolicyFilterDefinition</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0505__p1646162203015">Specifies the policy filter of a rule.</p>
<p id="rms_04_0505__p1439972017411">You need to set this parameter when trigger type is set to configuration change.</p>
</td>
</tr>
<tr id="rms_04_0505__row23017228306"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0505__p174612226304">policy_definition_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0505__p746622133018">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0505__p14652253013">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0505__p114712222309">Specifies the policy definition ID.</p>
<p id="rms_04_0505__p1951111108915">To add a rule with a predefined policy, you need to set this parameter.</p>
<p id="rms_04_0505__p1747192216309">Maximum: <strong id="rms_04_0505__b16474226306">36</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row1637222193014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0505__p548622163020">custom_policy</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0505__p15481922173017">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0505__p648522173020"><a href="#rms_04_0505__request_CustomPolicy">CustomPolicy</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0505__p1550322103017">Specifies the custom rule.</p>
<p id="rms_04_0505__p1981513234919">To create a custom rule, you need to set this parameter.</p>
</td>
</tr>
<tr id="rms_04_0505__row9375228301"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0505__p1551112273019">parameters</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0505__p15512222301">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0505__p145132263014">Map&lt;String,<a href="#rms_04_0505__request_PolicyParameterValue">PolicyParameterValue</a>&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0505__p1454132212307">Specifies the rule parameters.</p>
</td>
</tr>
<tr id="rms_04_0505__row1737182253014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0505__p055192220309">tags</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0505__p1855622143017">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0505__p18551522113016">Array of <a href="#rms_04_0505__request_ResourceTag">ResourceTag</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0505__p195532220306">Tags</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0505__request_PolicyFilterDefinition"></a><a name="request_PolicyFilterDefinition"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__request_PolicyFilterDefinition" frame="border" border="1" rules="all"><caption><b>Table 4 </b>PolicyFilterDefinition</caption><thead align="left"><tr id="rms_04_0505__row14587228304"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="rms_04_0505__p1260112223011">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.2"><p id="rms_04_0505__p206132243011">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.3"><p id="rms_04_0505__p766192214300">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.4.2.5.1.4"><p id="rms_04_0505__p8678226307">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row19581422173011"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0505__p1368122243011">region_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0505__p868182215300">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0505__p26952263016">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0505__p12711422143018">Specifies the region ID.</p>
<p id="rms_04_0505__p19711622183017">Maximum: <strong id="rms_04_0505__b37142216309">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row175982214304"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0505__p071222203013">resource_provider</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0505__p87212211301">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0505__p19721622103017">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0505__p1672132216301">Specifies the cloud service name.</p>
<p id="rms_04_0505__p1873202210302">Maximum: <strong id="rms_04_0505__b1378122211307">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row125918229309"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0505__p14781122183012">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0505__p107817223305">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0505__p117919225303">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0505__p47972223019">Specifies the resource type.</p>
<p id="rms_04_0505__p3797226307">Maximum: <strong id="rms_04_0505__b1679172216301">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row659122123020"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0505__p177910226305">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0505__p47912229304">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0505__p880102223019">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0505__p380182263012">Specifies the resource ID.</p>
<p id="rms_04_0505__p480822133012">Maximum: <strong id="rms_04_0505__b5802022163020">512</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row115992283014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0505__p381172273013">tag_key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0505__p286162217309">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0505__p13861222203011">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0505__p9871322193015">Specifies the tag key.</p>
<p id="rms_04_0505__p148702216302">Maximum: <strong id="rms_04_0505__b58772253011">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row559422103019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0505__p28752203011">tag_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0505__p68802211307">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0505__p488182263020">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0505__p688142213015">Specifies the tag value.</p>
<p id="rms_04_0505__p78862214307">Maximum: <strong id="rms_04_0505__b11885229309">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0505__request_CustomPolicy"></a><a name="request_CustomPolicy"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__request_CustomPolicy" frame="border" border="1" rules="all"><caption><b>Table 5 </b>CustomPolicy</caption><thead align="left"><tr id="rms_04_0505__row18992212304"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.1"><p id="rms_04_0505__p1296132218301">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.2"><p id="rms_04_0505__p139652213303">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.3"><p id="rms_04_0505__p29702216308">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.5.2.5.1.4"><p id="rms_04_0505__p097322163017">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row1694522113013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="rms_04_0505__p197152216309">function_urn</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="rms_04_0505__p1971622183018">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="rms_04_0505__p1598142216308">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="rms_04_0505__p8103192210300">Specifies the URN of a custom function.</p>
<p id="rms_04_0505__p19103182213300">Maximum: <strong id="rms_04_0505__b111041622123016">1024</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row39402223017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="rms_04_0505__p510415221304">auth_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="rms_04_0505__p12104122133014">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="rms_04_0505__p2104522113019">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="rms_04_0505__p13105722123014">Specifies how <strong id="rms_04_0505__b1110512220303">function</strong> is called by a custom rule.</p>
</td>
</tr>
<tr id="rms_04_0505__row1095102212300"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="rms_04_0505__p910572273019">auth_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="rms_04_0505__p0105922163018">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="rms_04_0505__p18105922133015">Map&lt;String,Object&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="rms_04_0505__p1310612214303">Specifies the parameter value for invoking a function by a custom rule.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0505__request_PolicyParameterValue"></a><a name="request_PolicyParameterValue"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__request_PolicyParameterValue" frame="border" border="1" rules="all"><caption><b>Table 6 </b>PolicyParameterValue</caption><thead align="left"><tr id="rms_04_0505__row311112215309"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.5.1.1"><p id="rms_04_0505__p1311222283013">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.5.1.2"><p id="rms_04_0505__p1611216228301">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.5.1.3"><p id="rms_04_0505__p13113162213308">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.6.2.5.1.4"><p id="rms_04_0505__p111315224307">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row14111122253018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.1 "><p id="rms_04_0505__p811362283019">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.2 "><p id="rms_04_0505__p811316220308">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.3 "><p id="rms_04_0505__p19113122243012">Object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.6.2.5.1.4 "><p id="rms_04_0505__p111143220302">Specifies the value of the rule parameter.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0505__request_ResourceTag"></a><a name="request_ResourceTag"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__request_ResourceTag" frame="border" border="1" rules="all"><caption><b>Table 7 </b>ResourceTag</caption><thead align="left"><tr id="rms_04_0505__row19119922163012"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.5.1.1"><p id="rms_04_0505__p412052273015">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.5.1.2"><p id="rms_04_0505__p2012122211304">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.5.1.3"><p id="rms_04_0505__p15121622103016">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.7.2.5.1.4"><p id="rms_04_0505__p112315228304">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row14119422123016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.1 "><p id="rms_04_0505__p812318221302">key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.2 "><p id="rms_04_0505__p71341022143011">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.3 "><p id="rms_04_0505__p141351722133012">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.7.2.5.1.4 "><p id="rms_04_0505__p1913542273018">Tag key. A tag key can contain up to 128 Unicode characters and must complay with the character set specifications in section 3.1.</p>
<p id="rms_04_0505__p5136122223014">Minimum: <strong id="rms_04_0505__b8136722113020">1</strong></p>
<p id="rms_04_0505__p513602263012">Maximum: <strong id="rms_04_0505__b1713617225309">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row9120132212309"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.1 "><p id="rms_04_0505__p4136132203020">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.2 "><p id="rms_04_0505__p7136102273010">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.3 "><p id="rms_04_0505__p1813752273017">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.7.2.5.1.4 "><p id="rms_04_0505__p2013762243012">Tag value. A tag value can contain up to 255 Unicode characters and must comply with the character set specifications in section 3.2.</p>
<p id="rms_04_0505__p013772219300">Minimum: <strong id="rms_04_0505__b11138142263010">0</strong></p>
<p id="rms_04_0505__p61381722193015">Maximum: <strong id="rms_04_0505__b141386225306">255</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0505__section91391022193019"><h4 class="sectiontitle">Response Parameters</h4><p id="rms_04_0505__p14144142263019"><strong id="rms_04_0505__b2144162218301">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__response_PolicyAssignment" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0505__row181452221303"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="rms_04_0505__p8153522133017">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="rms_04_0505__p12153422143015">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="rms_04_0505__p815402213014">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row6145172273010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p8159152273012">policy_assignment_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p8159162223016">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p14159142218300">Specifies the rule type, which can be <strong id="rms_04_0505__b41621722193019">builtin</strong> or <strong id="rms_04_0505__b5162162283010">custom</strong>.</p>
</td>
</tr>
<tr id="rms_04_0505__row71467227301"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p11162222123017">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p13162322143016">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p1116213224301">Specifies the rule ID.</p>
</td>
</tr>
<tr id="rms_04_0505__row1214612224302"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p2163182212304">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p19163522123016">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p1016312227303">Specifies the rule name.</p>
</td>
</tr>
<tr id="rms_04_0505__row15146112212306"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p1716311229309">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p31636229305">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p517042219300">Specifies the rule description.</p>
</td>
</tr>
<tr id="rms_04_0505__row1915192215303"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p8170122183017">policy_filter</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p13170132233010"><a href="#rms_04_0505__response_PolicyFilterDefinition">PolicyFilterDefinition</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p18171192243011">Specifies the policy filter of a rule.</p>
</td>
</tr>
<tr id="rms_04_0505__row815152223019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p14171192243011">period</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p171711223303">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p12171122217305">Specifies how often the rule is triggered, which can be <strong id="rms_04_0505__b191711322113013">One_Hour</strong>, <strong id="rms_04_0505__b017202220303">Three_Hours</strong>, <strong id="rms_04_0505__b51721322133018">Six_Hours</strong>, <strong id="rms_04_0505__b181724229303">Twelve_Hours</strong>, or <strong id="rms_04_0505__b41721522183019">TwentyFour_Hours</strong>.</p>
</td>
</tr>
<tr id="rms_04_0505__row19151202203011"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p1117212219305">state</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p8172152253019">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p20172822133011">Specifies the rule status.</p>
</td>
</tr>
<tr id="rms_04_0505__row1151112213018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p1917842212304">created</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p3178122193019">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p317811225306">Specifies the time when the rule was added.</p>
</td>
</tr>
<tr id="rms_04_0505__row5152142233019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p51781522173016">updated</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p10178172223017">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p201791022113014">Specifies the time when the rule was modified.</p>
</td>
</tr>
<tr id="rms_04_0505__row13152822163019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p487232223010">policy_definition_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p128731322153015">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p10873142214304">Specifies the ID of the policy used by the rule.</p>
</td>
</tr>
<tr id="rms_04_0505__row10152122203018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p18736229309">custom_policy</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p15873162218304"><a href="#rms_04_0505__response_CustomPolicy">CustomPolicy</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p11873622103015">Specifies the custom rule.</p>
</td>
</tr>
<tr id="rms_04_0505__row0152142253017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p987322283010">parameters</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p13873102233011">Map&lt;String,<a href="#rms_04_0505__response_PolicyParameterValue">PolicyParameterValue</a>&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p2873152233015">Specifies the rule parameters.</p>
</td>
</tr>
<tr id="rms_04_0505__row01521922133011"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p128730223301">tags</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p9873422153019">Array of <a href="#rms_04_0505__response_ResourceTag">ResourceTag</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p1287322213305">Tags</p>
</td>
</tr>
<tr id="rms_04_0505__row1615262213011"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p8873162215306">created_by</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p14873112213304">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p1187332243015">Specifies the person who created the rule.</p>
</td>
</tr>
<tr id="rms_04_0505__row45741310164520"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p17489723141214">target_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p2490162319124">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p3491723101217"><strong id="rms_04_0505__b14598352155015">traget_type</strong> is reserved for new features usage. In current version the result is null.</p>
</td>
</tr>
<tr id="rms_04_0505__row857541084515"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0505__p2493112361214">target_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0505__p11494162319121">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0505__p1549682371219"><strong id="rms_04_0505__b796105514502">target_id</strong> is reserved for new features usage. In current version the result is null.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0505__response_PolicyFilterDefinition"></a><a name="response_PolicyFilterDefinition"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__response_PolicyFilterDefinition" frame="border" border="1" rules="all"><caption><b>Table 9 </b>PolicyFilterDefinition</caption><thead align="left"><tr id="rms_04_0505__row1018952213307"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.1"><p id="rms_04_0505__p18741522193018">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.2"><p id="rms_04_0505__p10874132212308">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.4.2.4.1.3"><p id="rms_04_0505__p3874122103018">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row111941422133010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0505__p148742220305">region_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0505__p4874922163018">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0505__p1887414229304">Specifies the region ID.</p>
<p id="rms_04_0505__p1487422213018">Maximum: <strong id="rms_04_0505__b16874152223019">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row181941722193014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0505__p1487414221307">resource_provider</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0505__p487422213303">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0505__p1587413228301">Specifies the cloud service name.</p>
<p id="rms_04_0505__p38742224306">Maximum: <strong id="rms_04_0505__b28741122103011">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row8195112293017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0505__p1487414224305">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0505__p487462243011">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0505__p587412210306">Specifies the resource type.</p>
<p id="rms_04_0505__p9874162214304">Maximum: <strong id="rms_04_0505__b11874522133018">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row13195172223013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0505__p5874112243011">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0505__p18874102220302">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0505__p1387472293012">Specifies the resource ID.</p>
<p id="rms_04_0505__p1187422213018">Maximum: <strong id="rms_04_0505__b17874922193011">512</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row16195102214300"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0505__p16874922193012">tag_key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0505__p17875172213301">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0505__p5875132211302">Specifies the tag key.</p>
<p id="rms_04_0505__p118750229309">Maximum: <strong id="rms_04_0505__b12875522153017">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row21951422183019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0505__p18750228305">tag_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0505__p98751522133012">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0505__p887552213011">Specifies the tag value.</p>
<p id="rms_04_0505__p987562212309">Maximum: <strong id="rms_04_0505__b138751222113018">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0505__response_CustomPolicy"></a><a name="response_CustomPolicy"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__response_CustomPolicy" frame="border" border="1" rules="all"><caption><b>Table 10 </b>CustomPolicy</caption><thead align="left"><tr id="rms_04_0505__row221110224302"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="rms_04_0505__p19875182223014">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.2"><p id="rms_04_0505__p148751922203014">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.5.2.4.1.3"><p id="rms_04_0505__p7875192283017">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row9211162283018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0505__p1187542283012">function_urn</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0505__p28755228301">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0505__p887516227302">Specifies the URN of a custom function.</p>
<p id="rms_04_0505__p087515229302">Maximum: <strong id="rms_04_0505__b118751722113018">1024</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row1421142243011"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0505__p387582219302">auth_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0505__p187572219302">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0505__p1087522217308">Specifies how <strong id="rms_04_0505__b18757221303">function</strong> is called by a custom rule.</p>
</td>
</tr>
<tr id="rms_04_0505__row8211822173010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0505__p1487592223017">auth_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0505__p19875172223020">Map&lt;String,Object&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0505__p587511226303">Specifies the parameter value for invoking a function by a custom rule.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0505__response_PolicyParameterValue"></a><a name="response_PolicyParameterValue"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__response_PolicyParameterValue" frame="border" border="1" rules="all"><caption><b>Table 11 </b>PolicyParameterValue</caption><thead align="left"><tr id="rms_04_0505__row1522212263019"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.1"><p id="rms_04_0505__p087610226309">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.2"><p id="rms_04_0505__p198761722163018">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.6.2.4.1.3"><p id="rms_04_0505__p19876222133020">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row622213225306"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="rms_04_0505__p1787619223303">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="rms_04_0505__p1087682203011">Object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="rms_04_0505__p1687672233018">Specifies the value of the rule parameter.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0505__response_ResourceTag"></a><a name="response_ResourceTag"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__response_ResourceTag" frame="border" border="1" rules="all"><caption><b>Table 12 </b>ResourceTag</caption><thead align="left"><tr id="rms_04_0505__row132300223304"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.1"><p id="rms_04_0505__p787622273010">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.2"><p id="rms_04_0505__p19876102243018">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.7.2.4.1.3"><p id="rms_04_0505__p7876202283018">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row142309227303"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0505__p10876102217302">key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0505__p9876422193014">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0505__p178762022153015">Tag key. A tag key can contain up to 128 Unicode characters and must complay with the character set specifications in section 3.1.</p>
<p id="rms_04_0505__p4876192210301">Minimum: <strong id="rms_04_0505__b1587611222306">1</strong></p>
<p id="rms_04_0505__p887610223308">Maximum: <strong id="rms_04_0505__b1876622133020">128</strong></p>
</td>
</tr>
<tr id="rms_04_0505__row16231112223013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0505__p19876142213301">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0505__p19876102210309">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0505__p287662217301">Tag value. A tag value can contain up to 255 Unicode characters and must comply with the character set specifications in section 3.2.</p>
<p id="rms_04_0505__p11876222193019">Minimum: <strong id="rms_04_0505__b1876622203013">0</strong></p>
<p id="rms_04_0505__p587618224308">Maximum: <strong id="rms_04_0505__b5876122163018">255</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0505__p6876182216300"><strong id="rms_04_0505__b987682212309">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 13 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0505__row1923902214304"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.1"><p id="rms_04_0505__p78769221309">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.2"><p id="rms_04_0505__p587622273010">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.9.2.4.1.3"><p id="rms_04_0505__p11877622103017">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row162441022183012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0505__p48771422193018">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0505__p108772022163013">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0505__p3877122243015">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0505__row1244162210303"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0505__p887716224304">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0505__p1787711226301">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0505__p48771322133020">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0505__p7877152273013"><strong id="rms_04_0505__b18877822113014">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__response_ErrorResp_1" frame="border" border="1" rules="all"><caption><b>Table 14 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0505__row6253152217304"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.1"><p id="rms_04_0505__p487710228309">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.2"><p id="rms_04_0505__p198771422193011">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.11.2.4.1.3"><p id="rms_04_0505__p188771224300">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row112541922123012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="rms_04_0505__p08773228300">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="rms_04_0505__p1787762203013">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="rms_04_0505__p78778228307">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0505__row5254112210304"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="rms_04_0505__p18877422143020">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="rms_04_0505__p1787792213302">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="rms_04_0505__p188771922123019">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0505__p1187722233010"><strong id="rms_04_0505__b1877022113018">Status code: 404</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__response_ErrorResp_2" frame="border" border="1" rules="all"><caption><b>Table 15 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0505__row826314223302"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.13.2.4.1.1"><p id="rms_04_0505__p13878192263018">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.13.2.4.1.2"><p id="rms_04_0505__p1587832217307">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.13.2.4.1.3"><p id="rms_04_0505__p1287812273012">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row326317224301"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.1 "><p id="rms_04_0505__p1878182213012">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.2 "><p id="rms_04_0505__p178781022103019">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.13.2.4.1.3 "><p id="rms_04_0505__p118781822193015">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0505__row126310225308"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.1 "><p id="rms_04_0505__p9878142213014">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.2 "><p id="rms_04_0505__p1287819224301">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.13.2.4.1.3 "><p id="rms_04_0505__p2878172213301">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0505__p138781022193019"><strong id="rms_04_0505__b198783227304">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__response_ErrorResp_3" frame="border" border="1" rules="all"><caption><b>Table 16 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0505__row427115229305"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.15.2.4.1.1"><p id="rms_04_0505__p15878162214304">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.15.2.4.1.2"><p id="rms_04_0505__p68783223302">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.15.2.4.1.3"><p id="rms_04_0505__p0878122213305">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row182711122173019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.1 "><p id="rms_04_0505__p6878522143012">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.2 "><p id="rms_04_0505__p1487882233013">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.15.2.4.1.3 "><p id="rms_04_0505__p11878192293011">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0505__row10271102243018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.1 "><p id="rms_04_0505__p5878182218304">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.2 "><p id="rms_04_0505__p118781722173015">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.15.2.4.1.3 "><p id="rms_04_0505__p2878142223013">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0505__section4878522203013"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="rms_04_0505__screen63071236172819">PUT https://{endpoint}/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}
{
"policy_assignment_type": "builtin",
"domain_id": "daf2557fc0de4da09e128441baa71697",
"name": "allowed-ecs-flavorss3",
"description": "An ECS is noncompliant if its flavor is not in the specified flavor list TEST.",
"parameters": {
"listOfAllowedFlavors": {
"value": []
}
},
"policy_definition_id": "5f8d549bffeecc14f1fb522a",
"policy_filter": {
"region_id": null,
"resource_provider": "ecs",
"resource_type": "cloudservers",
"resource_id": null,
"tag_key": null,
"tag_value": null
}
}</pre>
</div>
<div class="section" id="rms_04_0505__section3879142212305"><h4 class="sectiontitle">Example Responses</h4><p id="rms_04_0505__p38794221309"><strong id="rms_04_0505__b7879122193015">Status code: 200</strong></p>
<p id="rms_04_0505__p587922213010">Operation succeeded.</p>
<pre class="screen" id="rms_04_0505__screen571714468299">{
"policy_assignment_type": "builtin",
"id": "6672d83777c56f4aeb50b892",
"name": "allowed-ecs-flavorss3",
"description": "An ECS is noncompliant if its flavor is not in the specified flavor list TEST.",
"policy_filter": {
"region_id": null,
"resource_provider": "ecs",
"resource_type": "cloudservers",
"resource_id": null,
"tag_key": null,
"tag_value": null
},
"period": null,
"state": "Enabled",
"created": "2024-06-19T13:08:07.771Z",
"updated": "2024-07-08T10:25:40.816Z",
"policy_definition_id": "5f8d549bffeecc14f1fb522a",
"custom_policy": null,
"parameters": {
"listOfAllowedFlavors": {
"value": []
}
},
"tags": [],
"created_by": "custom",
"target_type": null,
"target_id": null
}</pre>
</div>
<div class="section" id="rms_04_0505__section088212243016"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0505__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="rms_04_0505__row73767225308"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="rms_04_0505__p1882142283019">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="rms_04_0505__p2088252243019">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0505__row1737642223013"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0505__p48821522113015">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0505__p6882152233019">Operation succeeded.</p>
</td>
</tr>
<tr id="rms_04_0505__row137611226304"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0505__p588211220303">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0505__p12882112216303">Invalid parameters.</p>
</td>
</tr>
<tr id="rms_04_0505__row173761122133019"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0505__p388242223018">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0505__p16882162213017">Authentication failed or you do not have the operation permissions.</p>
</td>
</tr>
<tr id="rms_04_0505__row1337632283015"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0505__p1788210228308">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0505__p2882022143017">No rules found.</p>
</td>
</tr>
<tr id="rms_04_0505__row113771922133010"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0505__p4883162233019">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0505__p1988302233016">Server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0505__section19883132216308"><h4 class="sectiontitle">Error Codes</h4><p id="rms_04_0505__p2088372216307">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rms_04_0500.html">Compliance</a></div>
</div>
</div>