Files
doc-exports/docs/ucs/api-ref/CreateRule.html
qiujiandong1 535e30e292 UCS API initial update 20250523 version
Reviewed-by: Gergo-Bence Lorincz <a200452876@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2026-02-23 09:12:31 +00:00

257 lines
21 KiB
HTML

<a name="CreateRule"></a><a name="CreateRule"></a>
<h1 class="topictitle1">Creating a Permission Policy</h1>
<div id="body8662426"><div class="section" id="CreateRule__en-us_topic_0000002506203598_section85340338135"><h4 class="sectiontitle">Function</h4><p id="CreateRule__en-us_topic_0000002506203598_p1053523318136">This API is used to create a permission policy.</p>
</div>
<div class="section" id="CreateRule__en-us_topic_0000002506203598_section3535133151313"><h4 class="sectiontitle">URI</h4><p id="CreateRule__en-us_topic_0000002506203598_p7536833181315">POST /v1/permissions/rules</p>
</div>
<div class="section" id="CreateRule__en-us_topic_0000002506203598_section1153673313135"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateRule__en-us_topic_0000002506203598_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the request header</caption><thead align="left"><tr id="CreateRule__en-us_topic_0000002506203598_row16537733201315"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="CreateRule__en-us_topic_0000002506203598_p1953916330135">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="CreateRule__en-us_topic_0000002506203598_p753903331312">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="CreateRule__en-us_topic_0000002506203598_p10540123318136">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="CreateRule__en-us_topic_0000002506203598_p175407334137">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateRule__en-us_topic_0000002506203598_row1053718336136"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p4541173318135">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p6542183319135">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p15421933191311">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p25448331137">Identity authentication information</p>
<p id="CreateRule__en-us_topic_0000002506203598_p054512331132">Minimum length: <strong id="CreateRule__en-us_topic_0000002506203598_b77302973241433">1</strong></p>
<p id="CreateRule__en-us_topic_0000002506203598_p19546143313138">Maximum length: <strong id="CreateRule__en-us_topic_0000002506203598_b50288337041453">16384</strong></p>
</td>
</tr>
<tr id="CreateRule__en-us_topic_0000002506203598_row8874937172217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p20110172212422">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p411018227429">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p7110152218429">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p12110172216422">Request body type or format</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateRule__en-us_topic_0000002506203598_request_CreateRuleRequestBody" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the request body</caption><thead align="left"><tr id="CreateRule__en-us_topic_0000002506203598_row1054783381314"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreateRule__en-us_topic_0000002506203598_p11549153381317">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreateRule__en-us_topic_0000002506203598_p35502033191316">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreateRule__en-us_topic_0000002506203598_p3551163321315">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreateRule__en-us_topic_0000002506203598_p13551163361310">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateRule__en-us_topic_0000002506203598_row1354711332133"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p10552933161319">metadata</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p20552183319137">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p20553113381310"><a href="#CreateRule__en-us_topic_0000002506203598_request_CreateRuleObjectMeta">CreateRuleObjectMeta</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p13554033121319">Basic information about the permission policy. Metadata is a collection of attributes.</p>
</td>
</tr>
<tr id="CreateRule__en-us_topic_0000002506203598_row11548193310138"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p1755693316134">spec</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p355743315131">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p555815333132"><a href="#CreateRule__en-us_topic_0000002506203598_request_RuleSpec">RuleSpec</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p35593330139">Details about the permission policy. UCS creates or updates the permission policy by <strong id="CreateRule__en-us_topic_0000002506203598_b192805964041723">spec</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateRule__en-us_topic_0000002506203598_request_CreateRuleObjectMeta"></a><a name="en-us_topic_0000002506203598_request_CreateRuleObjectMeta"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateRule__en-us_topic_0000002506203598_request_CreateRuleObjectMeta" frame="border" border="1" rules="all"><caption><b>Table 3 </b>CreateRuleObjectMeta</caption><thead align="left"><tr id="CreateRule__en-us_topic_0000002506203598_row1856083310136"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="CreateRule__en-us_topic_0000002506203598_p145611233131319">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="CreateRule__en-us_topic_0000002506203598_p8562113351311">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="CreateRule__en-us_topic_0000002506203598_p155625334137">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="CreateRule__en-us_topic_0000002506203598_p165630339139">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateRule__en-us_topic_0000002506203598_row19560173314130"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p1756414333131">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p18564153371319">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p14564633141317">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p1056573319139">Permission policy name</p>
<p id="CreateRule__en-us_topic_0000002506203598_p105651133161318">Minimum length: <strong id="CreateRule__en-us_topic_0000002506203598_b196461547041433">1</strong></p>
<p id="CreateRule__en-us_topic_0000002506203598_p1156603310137">Maximum: <strong id="CreateRule__en-us_topic_0000002506203598_b1283071033111">63</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateRule__en-us_topic_0000002506203598_request_RuleSpec"></a><a name="en-us_topic_0000002506203598_request_RuleSpec"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateRule__en-us_topic_0000002506203598_request_RuleSpec" frame="border" border="1" rules="all"><caption><b>Table 4 </b>RuleSpec</caption><thead align="left"><tr id="CreateRule__en-us_topic_0000002506203598_row1456613334135"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.1"><p id="CreateRule__en-us_topic_0000002506203598_p14568933131311">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.2"><p id="CreateRule__en-us_topic_0000002506203598_p8568333111312">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.3"><p id="CreateRule__en-us_topic_0000002506203598_p856913351317">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.5.2.5.1.4"><p id="CreateRule__en-us_topic_0000002506203598_p1456913341319">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateRule__en-us_topic_0000002506203598_row5567183391316"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p357193319132">iamuserids</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p95751833131311">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p12576233151310">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p10576113311135">Information of IAM users associated with a permission policy</p>
</td>
</tr>
<tr id="CreateRule__en-us_topic_0000002506203598_row1856715333137"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p175773336137">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p135781333161317">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p257873381318">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p6579193315139">Permission policy type. The value can be <strong id="CreateRule__en-us_topic_0000002506203598_b95231943120">readonly</strong>, <strong id="CreateRule__en-us_topic_0000002506203598_b1452819123117">develop</strong>, <strong id="CreateRule__en-us_topic_0000002506203598_b453719113110">admin</strong>, or <strong id="CreateRule__en-us_topic_0000002506203598_b8531619133112">custom</strong>.</p>
</td>
</tr>
<tr id="CreateRule__en-us_topic_0000002506203598_row356773311311"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p557933313132">contents</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p357963321311">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p13580203351310">Array of <a href="#CreateRule__en-us_topic_0000002506203598_request_Content">Content</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p0581183311314">Permission policy content</p>
</td>
</tr>
<tr id="CreateRule__en-us_topic_0000002506203598_row556783315133"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p6581233111318">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p45821733131311">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p4582123313136">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p758333331310">Permission policy description</p>
<p id="CreateRule__en-us_topic_0000002506203598_p1758313335130">Minimum length: <strong id="CreateRule__en-us_topic_0000002506203598_b316311127323">0</strong></p>
<p id="CreateRule__en-us_topic_0000002506203598_p205841333141317">Maximum length: <strong id="CreateRule__en-us_topic_0000002506203598_b3397517153213">255</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateRule__en-us_topic_0000002506203598_request_Content"></a><a name="en-us_topic_0000002506203598_request_Content"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateRule__en-us_topic_0000002506203598_request_Content" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Content</caption><thead align="left"><tr id="CreateRule__en-us_topic_0000002506203598_row45855331139"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.1"><p id="CreateRule__en-us_topic_0000002506203598_p35861233101311">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.2"><p id="CreateRule__en-us_topic_0000002506203598_p1258763311318">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.3"><p id="CreateRule__en-us_topic_0000002506203598_p13588153312135">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.6.2.5.1.4"><p id="CreateRule__en-us_topic_0000002506203598_p5588103319131">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateRule__en-us_topic_0000002506203598_row25856333132"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p5588203318131">verbs</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p1758933318132">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p175891833181314">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p105901335139">Action list</p>
</td>
</tr>
<tr id="CreateRule__en-us_topic_0000002506203598_row758519330136"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p559012336132">resources</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p15911333135">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p75911334139">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="CreateRule__en-us_topic_0000002506203598_p9592163311133">Resource list</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateRule__en-us_topic_0000002506203598_section145921533131313"><h4 class="sectiontitle">Response Parameters</h4><p id="CreateRule__en-us_topic_0000002506203598_p16593633141310"><strong id="CreateRule__en-us_topic_0000002506203598_b12477250424401">Status code: 201</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateRule__en-us_topic_0000002506203598_response_RuleResp" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Parameter in the response body</caption><thead align="left"><tr id="CreateRule__en-us_topic_0000002506203598_row185941335130"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="CreateRule__en-us_topic_0000002506203598_p859583314136">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="CreateRule__en-us_topic_0000002506203598_p3595163381316">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="CreateRule__en-us_topic_0000002506203598_p15596103316136">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateRule__en-us_topic_0000002506203598_row165942336131"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p19596203391313">uid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p11597103317133">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateRule__en-us_topic_0000002506203598_p1559713311130">Permission policy UID</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateRule__en-us_topic_0000002506203598_section1559813301319"><h4 class="sectiontitle">Example Requests</h4><p id="CreateRule__en-us_topic_0000002506203598_p11598153310139">Creating a permission policy</p>
<pre class="screen" id="CreateRule__en-us_topic_0000002506203598_screen125991133111314">{
"metadata" : {
"name" : "xxxxx"
},
"spec" : {
"type" : "admin",
"iamUserIDs" : [ "xxxxx" ]
}
}</pre>
</div>
<div class="section" id="CreateRule__en-us_topic_0000002506203598_section0604103314135"><h4 class="sectiontitle">Example Responses</h4><p id="CreateRule__en-us_topic_0000002506203598_p860483320139"><strong id="CreateRule__en-us_topic_0000002506203598_b6461547624401">Status code: 201</strong></p>
<p id="CreateRule__en-us_topic_0000002506203598_p4605833121317">The UID of the new permission policy has been returned.</p>
<pre class="screen" id="CreateRule__en-us_topic_0000002506203598_screen2060523361314">{
"uid" : "xxxx-xxxx-xxxx-xxxx"
}</pre>
</div>
<div class="section" id="CreateRule__en-us_topic_0000002506203598_section176072338139"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateRule__en-us_topic_0000002506203598_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="CreateRule__en-us_topic_0000002506203598_row4607113351311"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="CreateRule__en-us_topic_0000002506203598_p1460816331136">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="CreateRule__en-us_topic_0000002506203598_p13609153315138">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateRule__en-us_topic_0000002506203598_row06081033151312"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p9609123316132">201</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p186101333151320">The UID of the new permission policy has been returned.</p>
</td>
</tr>
<tr id="CreateRule__en-us_topic_0000002506203598_row1960843331311"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p16111833111317">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p2061113314135">Client request error. The server could not execute the request.</p>
</td>
</tr>
<tr id="CreateRule__en-us_topic_0000002506203598_row2608113311131"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateRule__en-us_topic_0000002506203598_p1961216331136">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateRule__en-us_topic_0000002506203598_p661253318132">Internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateRule__en-us_topic_0000002506203598_section6613933111316"><h4 class="sectiontitle">Error Codes</h4><p id="CreateRule__en-us_topic_0000002506203598_p1961319333137">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000002.html">Permissions</a></div>
</div>
</div>