doc-exports/docs/config/api-ref/rms_04_0503.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

790 lines
54 KiB
HTML

<a name="rms_04_0503"></a><a name="rms_04_0503"></a>
<h1 class="topictitle1">Adding a Rule</h1>
<div id="body15776142112304"><div class="section" id="rms_04_0503__section1477612215306"><h4 class="sectiontitle">Function</h4><p id="rms_04_0503__p5777621173019">This API is used to add a rule.</p>
</div>
<div class="section" id="rms_04_0503__atuogenerate_1"><h4 class="sectiontitle">Calling Method</h4><p id="rms_04_0503__p8778621113015">For details, see <a href="rms_03_0000.html">Calling APIs</a>.</p>
</div>
<div class="section" id="rms_04_0503__atuogenerate_2"><h4 class="sectiontitle">URI</h4><p id="rms_04_0503__p1577918218303">PUT /v1/resource-manager/domains/{domain_id}/policy-assignments</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__table17802217301" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="rms_04_0503__row8780142173012"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="rms_04_0503__p6781192115300">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_0503__p197813216305">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_0503__p77811021203016">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_0503__p978102116306">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row1878012153013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0503__p1178220214309">domain_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0503__p97827219308">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0503__p10782221163016">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0503__p378217218306">Specifies tags.</p>
<p id="rms_04_0503__p578262113016">Maximum: <strong id="rms_04_0503__b3783182103014">36</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0503__section1578312120308"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="rms_04_0503__row7783152115307"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="rms_04_0503__p1178442111308">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_0503__p8784172119301">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_0503__p97852217300">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_0503__p12785102183015">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row13783182111302"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0503__p778512117307">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_0503__p177851621153016">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0503__p2786621183015">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0503__p9786152183016">Specifies the invoker's token.</p>
</td>
</tr>
<tr id="rms_04_0503__row3783721153015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0503__p978692112306">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_0503__p177865211304">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0503__p197877213306">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0503__p16787521153018">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_0503__request_PolicyAssignmentRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="rms_04_0503__row4788202116305"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="rms_04_0503__p127891421183012">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_0503__p187896218302">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_0503__p207900211305">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_0503__p18790621123012">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row15788421103016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0503__p979002163016">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_0503__p14790152113308">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0503__p77902021143016">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0503__p3997173112108">Specifies the rule type. A rule type can be <strong id="rms_04_0503__b840992571217">custom</strong> or <strong id="rms_04_0503__b13983112211214">builtin</strong>. If this parameter is not configured, <strong id="rms_04_0503__b17978134915104">builtin</strong> is used by default.</p>
</td>
</tr>
<tr id="rms_04_0503__row87881521173017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0503__p2791122119305">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0503__p1079112217305">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0503__p979152118304">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0503__p17916212301">Specifies the rule name.</p>
<p id="rms_04_0503__p67921421123010">Maximum: <strong id="rms_04_0503__b579218218306">64</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row12788192117306"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0503__p18792172113301">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0503__p779211211302">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0503__p67924213305">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0503__p279332117308">Specifies the rule description.</p>
<p id="rms_04_0503__p177930214303">Maximum: <strong id="rms_04_0503__b11793132183010">512</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row20788172113020"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0503__p117931214303">period</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0503__p379352114306">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0503__p779316213305">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0503__p1379315215302">Specifies the trigger period.</p>
<p id="rms_04_0503__p17042581793">You need to set this parameter when trigger type is set to periodic execution.</p>
</td>
</tr>
<tr id="rms_04_0503__row1978812120307"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0503__p167942219304">policy_filter</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0503__p177944213301">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0503__p1779417211301"><a href="#rms_04_0503__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_0503__p1794921113016">Specifies the policy filter of a rule.</p>
<p id="rms_04_0503__p1439972017411">You need to set this parameter when trigger type is set to configuration change.</p>
</td>
</tr>
<tr id="rms_04_0503__row14788621193019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0503__p137942213301">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_0503__p5795162118303">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0503__p19795521193010">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0503__p1795182117304">Specifies the policy definition ID.</p>
<p id="rms_04_0503__p5421194315919">To add a rule with a predefined policy, you need to set this parameter.</p>
<p id="rms_04_0503__p1795182112303">Maximum: <strong id="rms_04_0503__b19796821183014">36</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row117883219301"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0503__p1779622112307">custom_policy</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0503__p4796122111303">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0503__p979632110302"><a href="#rms_04_0503__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_0503__p1579652114303">Specifies the custom rule.</p>
<p id="rms_04_0503__p1036717339919">To create a custom rule, you need to set this parameter.</p>
</td>
</tr>
<tr id="rms_04_0503__row1278952114309"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0503__p37962214306">parameters</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0503__p1179742119303">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0503__p679762193018">Map&lt;String,<a href="#rms_04_0503__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_0503__p3797102163013">Specifies the rule parameters.</p>
</td>
</tr>
<tr id="rms_04_0503__row078917217300"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0503__p2797152173011">tags</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0503__p2797102119308">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0503__p57986218302">Array of <a href="#rms_04_0503__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_0503__p57981421113015">Tags</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0503__request_PolicyFilterDefinition"></a><a name="request_PolicyFilterDefinition"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__request_PolicyFilterDefinition" frame="border" border="1" rules="all"><caption><b>Table 4 </b>PolicyFilterDefinition</caption><thead align="left"><tr id="rms_04_0503__row157996217308"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="rms_04_0503__p1380062193020">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_0503__p8800142193013">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_0503__p9800521113016">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_0503__p10800192111307">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row15799182123011"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0503__p168011421143016">region_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0503__p5801821133016">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0503__p198018211304">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0503__p1580110214309">Specifies the region ID.</p>
<p id="rms_04_0503__p88011921193012">Maximum: <strong id="rms_04_0503__b98011321173015">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row17995216309"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0503__p780282123017">resource_provider</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0503__p1802821133014">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0503__p168021721163012">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0503__p128021921123017">Specifies the cloud service name.</p>
<p id="rms_04_0503__p19802192115308">Maximum: <strong id="rms_04_0503__b11802142119308">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row7799172123010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0503__p19803112116306">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0503__p3803192118302">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0503__p58031621203014">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0503__p14803122110301">Specifies the resource type.</p>
<p id="rms_04_0503__p1680312213309">Maximum: <strong id="rms_04_0503__b1480315210306">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row8799102183016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0503__p1980472153013">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0503__p5804172183011">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0503__p14804621123016">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0503__p17804521133013">Specifies the resource ID.</p>
<p id="rms_04_0503__p8804721133010">Maximum: <strong id="rms_04_0503__b380472193013">512</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row14799132110304"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0503__p1280511216305">tag_key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0503__p1180592110306">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0503__p158054218307">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0503__p4805102153012">Specifies the tag key.</p>
<p id="rms_04_0503__p08051921133016">Maximum: <strong id="rms_04_0503__b68050217301">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row1779962113013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="rms_04_0503__p580592183014">tag_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="rms_04_0503__p20806192112304">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="rms_04_0503__p1180652110309">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="rms_04_0503__p13806172123011">Specifies the tag value.</p>
<p id="rms_04_0503__p5806192118306">Maximum: <strong id="rms_04_0503__b1806142103019">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0503__request_CustomPolicy"></a><a name="request_CustomPolicy"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__request_CustomPolicy" frame="border" border="1" rules="all"><caption><b>Table 5 </b>CustomPolicy</caption><thead align="left"><tr id="rms_04_0503__row68070216309"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.1"><p id="rms_04_0503__p13808421193018">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_0503__p10808182193015">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_0503__p38088219309">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_0503__p1180982143014">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row198072213308"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="rms_04_0503__p0809182103016">function_urn</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="rms_04_0503__p17809132113011">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="rms_04_0503__p20809122113016">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="rms_04_0503__p1581082123018">Specifies the URN of a custom function.</p>
<p id="rms_04_0503__p6810142110304">Maximum: <strong id="rms_04_0503__b178101321173014">1024</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row280792112306"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="rms_04_0503__p12810172120303">auth_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="rms_04_0503__p9810192113306">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="rms_04_0503__p1881062115306">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="rms_04_0503__p8811121183015">Specifies how <strong id="rms_04_0503__b12811182163017">function</strong> is called by a custom rule.</p>
</td>
</tr>
<tr id="rms_04_0503__row10807152119302"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="rms_04_0503__p68112021123018">auth_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="rms_04_0503__p12811112116303">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="rms_04_0503__p4811172133019">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_0503__p1681118214303">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_0503__request_PolicyParameterValue"></a><a name="request_PolicyParameterValue"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__request_PolicyParameterValue" frame="border" border="1" rules="all"><caption><b>Table 6 </b>PolicyParameterValue</caption><thead align="left"><tr id="rms_04_0503__row2812421123019"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.5.1.1"><p id="rms_04_0503__p14813921113019">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_0503__p581314216309">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_0503__p1781342143018">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_0503__p58134212301">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row78122212309"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.1 "><p id="rms_04_0503__p281419214304">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.2 "><p id="rms_04_0503__p1181482193012">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.3 "><p id="rms_04_0503__p48146212306">Object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.6.2.5.1.4 "><p id="rms_04_0503__p1281432193016">Specifies the value of the rule parameter.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0503__request_ResourceTag"></a><a name="request_ResourceTag"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__request_ResourceTag" frame="border" border="1" rules="all"><caption><b>Table 7 </b>ResourceTag</caption><thead align="left"><tr id="rms_04_0503__row3815221163012"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.5.1.1"><p id="rms_04_0503__p4816521143016">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_0503__p1381682119309">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_0503__p2817021103010">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_0503__p781712123015">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row19815122112303"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.1 "><p id="rms_04_0503__p181872113015">key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.2 "><p id="rms_04_0503__p19818132114307">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.3 "><p id="rms_04_0503__p781822103019">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.7.2.5.1.4 "><p id="rms_04_0503__p1819182113017">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_0503__p1181932111306">Minimum: <strong id="rms_04_0503__b8819182173012">1</strong></p>
<p id="rms_04_0503__p6819112133014">Maximum: <strong id="rms_04_0503__b28201921103010">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row168152021113018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.1 "><p id="rms_04_0503__p13820192113017">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.2 "><p id="rms_04_0503__p208208214307">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.3 "><p id="rms_04_0503__p118217212307">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.7.2.5.1.4 "><p id="rms_04_0503__p98211021123013">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_0503__p2082118215307">Minimum: <strong id="rms_04_0503__b482115217306">0</strong></p>
<p id="rms_04_0503__p6821142103013">Maximum: <strong id="rms_04_0503__b17821162133016">255</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0503__section1282113210304"><h4 class="sectiontitle">Response Parameters</h4><p id="rms_04_0503__p8822182117306"><strong id="rms_04_0503__b158221216309">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__response_PolicyAssignment" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0503__row5822721153020"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="rms_04_0503__p198242216307">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_0503__p138251210300">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_0503__p1282582110307">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row11823182119303"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p88252217302">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_0503__p16826112123017">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p582682115304">Specifies the rule type, which can be <strong id="rms_04_0503__b78261021123011">builtin</strong> or <strong id="rms_04_0503__b682617215308">custom</strong>.</p>
</td>
</tr>
<tr id="rms_04_0503__row98234215304"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p2826521103016">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p1682616211304">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p12827152173016">Specifies the rule ID.</p>
</td>
</tr>
<tr id="rms_04_0503__row1682315215301"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p158271521143010">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p10827112123015">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p4829122153013">Specifies the rule name.</p>
</td>
</tr>
<tr id="rms_04_0503__row178236215304"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p782912153017">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p2829172115302">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p78291721183017">Specifies the rule description.</p>
</td>
</tr>
<tr id="rms_04_0503__row2823162110302"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p16829132103017">policy_filter</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p3830102163013"><a href="#rms_04_0503__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_0503__p6830521203012">Specifies the policy filter of a rule.</p>
</td>
</tr>
<tr id="rms_04_0503__row158239217308"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p14830921153020">period</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p1283010211307">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p19830121193019">Specifies how often the rule is triggered, which can be <strong id="rms_04_0503__b5831152113302">One_Hour</strong>, <strong id="rms_04_0503__b383112112301">Three_Hours</strong>, <strong id="rms_04_0503__b158312021103013">Six_Hours</strong>, <strong id="rms_04_0503__b15831162163013">Twelve_Hours</strong>, or <strong id="rms_04_0503__b483112153011">TwentyFour_Hours</strong>.</p>
</td>
</tr>
<tr id="rms_04_0503__row2823421183017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p683172123017">state</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p0831132193017">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p483118210309">Specifies the rule status.</p>
</td>
</tr>
<tr id="rms_04_0503__row11823172119309"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p14831192103011">created</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p383252117309">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p58325212302">Specifies the time when the rule was added.</p>
</td>
</tr>
<tr id="rms_04_0503__row282313217305"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p2083232113013">updated</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p6832162133014">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p188321421103015">Specifies the time when the rule was modified.</p>
</td>
</tr>
<tr id="rms_04_0503__row18823122116308"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p883317213308">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_0503__p7833221203011">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p183302113014">Specifies the ID of the policy used by the rule.</p>
</td>
</tr>
<tr id="rms_04_0503__row982382193015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p12834021123016">custom_policy</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p3834122115302"><a href="#rms_04_0503__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_0503__p108274227304">Specifies the custom rule.</p>
</td>
</tr>
<tr id="rms_04_0503__row10824122123019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p188271622133010">parameters</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p882732212303">Map&lt;String,<a href="#rms_04_0503__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_0503__p19828122213307">Specifies the rule parameters.</p>
</td>
</tr>
<tr id="rms_04_0503__row3824112123016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p108281722183017">tags</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p182812216304">Array of <a href="#rms_04_0503__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_0503__p2828922113014">Tags</p>
</td>
</tr>
<tr id="rms_04_0503__row178241216305"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__p182813224301">created_by</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0503__p1082852218303">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p3828142263013">Specifies the person who created the rule.</p>
</td>
</tr>
<tr id="rms_04_0503__row2171193374415"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__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_0503__p2490162319124">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p3491723101217"><strong id="rms_04_0503__b14598352155015">traget_type</strong> is reserved for new features usage. In current version the result is null.</p>
</td>
</tr>
<tr id="rms_04_0503__row191711833144412"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0503__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_0503__p11494162319121">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0503__p1549682371219"><strong id="rms_04_0503__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_0503__response_PolicyFilterDefinition"></a><a name="response_PolicyFilterDefinition"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__response_PolicyFilterDefinition" frame="border" border="1" rules="all"><caption><b>Table 9 </b>PolicyFilterDefinition</caption><thead align="left"><tr id="rms_04_0503__row128372211305"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.1"><p id="rms_04_0503__p2828182203012">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_0503__p108287223302">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_0503__p0828102210309">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row1083702113016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0503__p118284227306">region_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0503__p482816227303">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0503__p582802263015">Specifies the region ID.</p>
<p id="rms_04_0503__p128281222173011">Maximum: <strong id="rms_04_0503__b118291322143010">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row208375213307"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0503__p4829142293010">resource_provider</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0503__p482972214305">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0503__p1882982213017">Specifies the cloud service name.</p>
<p id="rms_04_0503__p3829182253019">Maximum: <strong id="rms_04_0503__b158295226307">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row483702116304"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0503__p198291922113011">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0503__p1282913227308">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0503__p882912220305">Specifies the resource type.</p>
<p id="rms_04_0503__p1482915227300">Maximum: <strong id="rms_04_0503__b682942213300">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row78371421113013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0503__p1082952213011">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0503__p8829422163013">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0503__p158291228302">Specifies the resource ID.</p>
<p id="rms_04_0503__p1182972253015">Maximum: <strong id="rms_04_0503__b118292226303">512</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row78381121143013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0503__p15829132213303">tag_key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0503__p282962263016">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0503__p08298227302">Specifies the tag key.</p>
<p id="rms_04_0503__p198291622103012">Maximum: <strong id="rms_04_0503__b1082942214309">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row1483818212302"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="rms_04_0503__p188291822173010">tag_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="rms_04_0503__p0829182253017">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="rms_04_0503__p18829122103019">Specifies the tag value.</p>
<p id="rms_04_0503__p58291422163013">Maximum: <strong id="rms_04_0503__b188291122113012">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0503__response_CustomPolicy"></a><a name="response_CustomPolicy"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__response_CustomPolicy" frame="border" border="1" rules="all"><caption><b>Table 10 </b>CustomPolicy</caption><thead align="left"><tr id="rms_04_0503__row18425211306"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="rms_04_0503__p882902216301">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_0503__p16829182217308">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_0503__p7829322173018">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row14842172113017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0503__p11829102233017">function_urn</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0503__p283032273013">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0503__p683013227307">Specifies the URN of a custom function.</p>
<p id="rms_04_0503__p168301224303">Maximum: <strong id="rms_04_0503__b58302229309">1024</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row7842152119309"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0503__p883062283012">auth_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0503__p9830182218307">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0503__p1083032213018">Specifies how <strong id="rms_04_0503__b1883022283019">function</strong> is called by a custom rule.</p>
</td>
</tr>
<tr id="rms_04_0503__row1842192118306"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0503__p483032223013">auth_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0503__p10830922113014">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_0503__p1383015222304">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_0503__response_PolicyParameterValue"></a><a name="response_PolicyParameterValue"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__response_PolicyParameterValue" frame="border" border="1" rules="all"><caption><b>Table 11 </b>PolicyParameterValue</caption><thead align="left"><tr id="rms_04_0503__row884532193018"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.1"><p id="rms_04_0503__p14830112213304">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_0503__p18830622103018">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_0503__p168302226307">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row12846122116305"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="rms_04_0503__p38303223305">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="rms_04_0503__p148301222183014">Object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="rms_04_0503__p6830922123016">Specifies the value of the rule parameter.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="rms_04_0503__response_ResourceTag"></a><a name="response_ResourceTag"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__response_ResourceTag" frame="border" border="1" rules="all"><caption><b>Table 12 </b>ResourceTag</caption><thead align="left"><tr id="rms_04_0503__row98482218306"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.1"><p id="rms_04_0503__p1883019225302">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_0503__p198301222163014">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_0503__p483062214306">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row2848721183016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0503__p1683002219303">key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0503__p1883014226303">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0503__p168315224302">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_0503__p18311224301">Minimum: <strong id="rms_04_0503__b138311322123010">1</strong></p>
<p id="rms_04_0503__p118314223303">Maximum: <strong id="rms_04_0503__b1983102233019">128</strong></p>
</td>
</tr>
<tr id="rms_04_0503__row13848421143018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0503__p12831922133012">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0503__p1883162214306">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0503__p14831222153018">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_0503__p683116225309">Minimum: <strong id="rms_04_0503__b683114222307">0</strong></p>
<p id="rms_04_0503__p583132233019">Maximum: <strong id="rms_04_0503__b8831162283015">255</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0503__p18831122213013"><strong id="rms_04_0503__b38311122143012">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 13 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0503__row8851202183014"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.1"><p id="rms_04_0503__p9831192233019">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_0503__p8831172219302">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_0503__p3831132293013">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row28511621193016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0503__p68312022133019">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0503__p1683192211307">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0503__p168315226300">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0503__row18515216303"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0503__p8831182243020">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0503__p14831152219307">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0503__p1383116223307">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0503__p1383172210306"><strong id="rms_04_0503__b138311622133012">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__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_0503__row7856102119301"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.1"><p id="rms_04_0503__p283272212304">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_0503__p4832922183011">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_0503__p183219228301">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row785662133013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="rms_04_0503__p98321522163014">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="rms_04_0503__p2832182214308">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="rms_04_0503__p178321422183013">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0503__row38565213308"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="rms_04_0503__p7832182273018">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="rms_04_0503__p78321622193019">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="rms_04_0503__p11832112217306">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0503__p1983212227306"><strong id="rms_04_0503__b2083214229306">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__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_0503__row385842113015"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.13.2.4.1.1"><p id="rms_04_0503__p1583212213015">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_0503__p5832152233017">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_0503__p783242213309">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row198591621103012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.1 "><p id="rms_04_0503__p183222253015">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.2 "><p id="rms_04_0503__p1983282283013">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.13.2.4.1.3 "><p id="rms_04_0503__p8832222123014">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0503__row118591921173010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.1 "><p id="rms_04_0503__p88321022173012">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.2 "><p id="rms_04_0503__p083282273018">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.13.2.4.1.3 "><p id="rms_04_0503__p883213222307">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0503__section7832162217309"><h4 class="sectiontitle">Example Requests</h4><p id="rms_04_0503__p38321122193010">Create a rule named "allowed-images-by-id".</p>
<pre class="screen" id="rms_04_0503__screen145975356351">PUT https://{endpoint}/v1/resource-manager/domains/{domain_id}/policy-assignments
{
"name" : "allowed-images-by-id",
"description" : "The ECS resource is non-compliant if the image it used is not in the allowed list",
"parameters" : {
"listOfAllowedImages" : {
"value" : [ "ea0d6e0e-99c3-406d-a873-3bb45462b624" ]
}
},
"policy_filter" : {
"resource_provider" : "ecs",
"resource_type" : "cloudservers"
},
"policy_definition_id" : "5fa265c0aa1e6afc05a0ff07",
"tag" : [ {
"key" : "tagkey",
"value" : "tagValue"
} ]
}</pre>
</div>
<div class="section" id="rms_04_0503__section3833182223014"><h4 class="sectiontitle">Example Responses</h4><p id="rms_04_0503__p183322293019"><strong id="rms_04_0503__b183318227305">Status code: 200</strong></p>
<p id="rms_04_0503__p6833102283016">Operation succeeded.</p>
<pre class="screen" id="rms_04_0503__screen7958145972119">{
"policy_assignment_type": "builtin",
"id": "66c486e8d58ed9173f4560ac",
"name": "allowed-images-by-id",
"description": "The ECS resource is non-compliant if the image it used is not in the allowed list",
"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-08-20T12:07:04.763Z",
"updated": "2024-08-20T12:07:04.763Z",
"policy_definition_id": "5fa265c0aa1e6afc05a0ff07",
"custom_policy": null,
"parameters": {
"listOfAllowedImages": {
"value": [
"ea0d6e0e-99c3-406d-a873-3bb45462b624"
]
}
},
"tags": [],
"created_by": "custom",
"target_type": null,
"target_id": null
}</pre>
</div>
<div class="section" id="rms_04_0503__section198371222183011"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0503__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="rms_04_0503__row14901421193019"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="rms_04_0503__p118372229304">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_0503__p13837522143018">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0503__row99019216309"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0503__p168370227308">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0503__p18371222303">Operation succeeded.</p>
</td>
</tr>
<tr id="rms_04_0503__row4901921133011"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0503__p128377228302">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0503__p14837102263013">Invalid parameters.</p>
</td>
</tr>
<tr id="rms_04_0503__row99011021113016"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0503__p1783752243014">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0503__p2837422183018">Authentication failed or you do not have the operation permissions.</p>
</td>
</tr>
<tr id="rms_04_0503__row10901221143014"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0503__p10837422143013">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0503__p1183752253013">Server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0503__section1283717227305"><h4 class="sectiontitle">Error Codes</h4><p id="rms_04_0503__p16837722193011">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>