forked from docs/doc-exports
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
393 lines
28 KiB
HTML
393 lines
28 KiB
HTML
<a name="iam_02_0021"></a><a name="iam_02_0021"></a>
|
|
|
|
<h1 class="topictitle1">Modifying the Operation Protection Policy</h1>
|
|
<div id="body1597732796855"><div class="section" id="iam_02_0021__section643416615196"><h4 class="sectiontitle">Function</h4><p id="iam_02_0021__p35284615194">This API is provided for the administrator to modify the operation protection policy.</p>
|
|
</div>
|
|
<div class="section" id="iam_02_0021__section1643406161919"><h4 class="sectiontitle">URI</h4><p id="iam_02_0021__p952819691916">PUT /v3.0/OS-SECURITYPOLICY/domains/{domain_id}/protect-policy</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0021__table13435146181916" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="iam_02_0021__row4528468192"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="iam_02_0021__p55283618199">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.2.3.2.5.1.2"><p id="iam_02_0021__p952876201913">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="iam_02_0021__p45281561191">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.2.5.1.4"><p id="iam_02_0021__p115288661913">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0021__row652856191917"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="iam_02_0021__p35282611918">domain_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.2.3.2.5.1.2 "><p id="iam_02_0021__p65281863196">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="iam_02_0021__p14528560199">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.5.1.4 "><p id="iam_02_0021__p1252810671911">Domain ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="iam_02_0021__section84381363191"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0021__table20439769192" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the request header</caption><thead align="left"><tr id="iam_02_0021__row75281612192"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="iam_02_0021__p352886121910">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.3.2.2.5.1.2"><p id="iam_02_0021__p155289611913">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.91%" id="mcps1.3.3.2.2.5.1.3"><p id="iam_02_0021__p95287681911">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.09%" id="mcps1.3.3.2.2.5.1.4"><p id="iam_02_0021__p55286601919">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0021__row2052814616195"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="iam_02_0021__p4528469199">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.2.2.5.1.2 "><p id="iam_02_0021__p852812671911">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.2.5.1.3 "><p id="iam_02_0021__p19528126171912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.09%" headers="mcps1.3.3.2.2.5.1.4 "><p id="iam_02_0021__p1652818611194">Token with <strong id="iam_02_0021__b123726281587">Security Administrator</strong> permissions.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0021__table1444216615197" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameters in the request body</caption><thead align="left"><tr id="iam_02_0021__row13528106131911"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="iam_02_0021__p85283615194">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.3.3.2.5.1.2"><p id="iam_02_0021__p952817651915">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="iam_02_0021__p052812621917">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.3.2.5.1.4"><p id="iam_02_0021__p20528368192">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0021__row752812611195"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="iam_02_0021__p45288618199"><a href="#iam_02_0021__table54451161197">protect_policy</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.3.2.5.1.2 "><p id="iam_02_0021__p552818611913">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="iam_02_0021__p1952913661916">object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><p id="iam_02_0021__p25291568193">Operation protection policy.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="iam_02_0021__table54451161197"></a><a name="table54451161197"></a><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0021__table54451161197" frame="border" border="1" rules="all"><caption><b>Table 4 </b>protect_policy</caption><thead align="left"><tr id="iam_02_0021__row195291961196"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="iam_02_0021__p452919621913">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.3.4.2.5.1.2"><p id="iam_02_0021__p45291565198">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="iam_02_0021__p1852926171917">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.4.2.5.1.4"><p id="iam_02_0021__p17529263194">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0021__row7529067192"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="iam_02_0021__p1779716518262">operation_protection</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.4.2.5.1.2 "><p id="iam_02_0021__p13797454269">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="iam_02_0021__p957418225269">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.4.2.5.1.4 "><p id="iam_02_0021__p10797053266">Whether to enable operation protection. The value can be <strong id="iam_02_0021__b14491101220456">true</strong> (enable) or <strong id="iam_02_0021__b1449116127454">false</strong> (disable).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row362143693015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="iam_02_0021__p17974510266"><a href="#iam_02_0021__table744064115287">allow_user</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.4.2.5.1.2 "><p id="iam_02_0021__p167971255262">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="iam_02_0021__p65741222192615">AllowUserBody object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.4.2.5.1.4 "><p id="iam_02_0021__p5797195152613">Attributes that IAM users can modify.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row119393723013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="iam_02_0021__p107974517261">mobile</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.4.2.5.1.2 "><p id="iam_02_0021__p279710572615">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="iam_02_0021__p175746225269">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.4.2.5.1.4 "><p id="iam_02_0021__p6797115112620">Mobile number specified for operation protection verification. This parameter is mandatory when <strong id="iam_02_0021__b1950122918450">admin_check</strong> is set to <strong id="iam_02_0021__b1250132994510">on</strong> and <strong id="iam_02_0021__b35011229164517">scene</strong> is set to <strong id="iam_02_0021__b9501529134511">mobile</strong>. Example: 0001-123456789</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row20295193818307"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="iam_02_0021__p117970562616">admin_check</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.4.2.5.1.2 "><p id="iam_02_0021__p17977532612">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="iam_02_0021__p1574112211266">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.4.2.5.1.4 "><p id="iam_02_0021__p147975518269">Whether to designate a person for verification. If this parameter is set to <strong id="iam_02_0021__b13228989529">on</strong>, you need to specify the <strong id="iam_02_0021__b5229983527">scene</strong> parameter to designate a person for verification. If this parameter is set to <strong id="iam_02_0021__b12741811195310">off</strong>, the operator is responsible for verification.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row07911838133020"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="iam_02_0021__p179714511261">email</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.4.2.5.1.2 "><p id="iam_02_0021__p1179714515266">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="iam_02_0021__p6574622122611">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.4.2.5.1.4 "><p id="iam_02_0021__p107972562616">Email address specified for operation protection verification. This parameter is mandatory when <strong id="iam_02_0021__b1030441114542">admin_check</strong> is set to <strong id="iam_02_0021__b103041311185413">on</strong> and <strong id="iam_02_0021__b20305111135418">scene</strong> is set to <strong id="iam_02_0021__b123051114544">email</strong>. Example: example@email.com</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row42291039113010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="iam_02_0021__p1579795102613">scene</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.4.2.5.1.2 "><p id="iam_02_0021__p479765142616">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="iam_02_0021__p105741822132610">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.4.2.5.1.4 "><p id="iam_02_0021__p379785112619">Verification method set for the specified person. This parameter is mandatory when <strong id="iam_02_0021__b109412418558">admin_check</strong> is set to <strong id="iam_02_0021__b59464145517">on</strong>. The value options are <strong id="iam_02_0021__b1235913985515">mobile</strong> and <strong id="iam_02_0021__b1335949185517">email</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="iam_02_0021__table744064115287"></a><a name="table744064115287"></a><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0021__table744064115287" frame="border" border="1" rules="all"><caption><b>Table 5 </b>protect_policy.allow_user</caption><thead align="left"><tr id="iam_02_0021__row1944114419284"><th align="left" class="cellrowborder" valign="top" width="16.3%" id="mcps1.3.3.5.2.5.1.1"><p id="iam_02_0021__p1171716182916">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.73%" id="mcps1.3.3.5.2.5.1.2"><p id="iam_02_0021__p1217110160294">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.54%" id="mcps1.3.3.5.2.5.1.3"><p id="iam_02_0021__p10171916192911">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.43%" id="mcps1.3.3.5.2.5.1.4"><p id="iam_02_0021__p1717141614298">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0021__row34411741132810"><td class="cellrowborder" valign="top" width="16.3%" headers="mcps1.3.3.5.2.5.1.1 "><p id="iam_02_0021__p131719161296">manage_accesskey</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.73%" headers="mcps1.3.3.5.2.5.1.2 "><p id="iam_02_0021__p161711169293">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.54%" headers="mcps1.3.3.5.2.5.1.3 "><p id="iam_02_0021__p7894192311299">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.43%" headers="mcps1.3.3.5.2.5.1.4 "><p id="iam_02_0021__p191711616152910">Whether IAM users are allowed to manage AKs by themselves. The value can be <strong id="iam_02_0021__b18878121015810">true</strong> or <strong id="iam_02_0021__b4878161012582">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row134419416281"><td class="cellrowborder" valign="top" width="16.3%" headers="mcps1.3.3.5.2.5.1.1 "><p id="iam_02_0021__p18171916132911">manage_email</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.73%" headers="mcps1.3.3.5.2.5.1.2 "><p id="iam_02_0021__p191711160295">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.54%" headers="mcps1.3.3.5.2.5.1.3 "><p id="iam_02_0021__p789416238297">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.43%" headers="mcps1.3.3.5.2.5.1.4 "><p id="iam_02_0021__p51711216122911">Whether IAM users are allowed to change their email addresses. The value can be <strong id="iam_02_0021__b6246197116">true</strong> or <strong id="iam_02_0021__b192463915120">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row8441184172815"><td class="cellrowborder" valign="top" width="16.3%" headers="mcps1.3.3.5.2.5.1.1 "><p id="iam_02_0021__p31727163295">manage_mobile</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.73%" headers="mcps1.3.3.5.2.5.1.2 "><p id="iam_02_0021__p4172181672910">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.54%" headers="mcps1.3.3.5.2.5.1.3 "><p id="iam_02_0021__p5894423112918">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.43%" headers="mcps1.3.3.5.2.5.1.4 "><p id="iam_02_0021__p51721216152913">Whether IAM users are allowed to change their mobile numbers. The value can be <strong id="iam_02_0021__b951610274614">true</strong> or <strong id="iam_02_0021__b105164277620">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row844194132817"><td class="cellrowborder" valign="top" width="16.3%" headers="mcps1.3.3.5.2.5.1.1 "><p id="iam_02_0021__p3172191622916">manage_password</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.73%" headers="mcps1.3.3.5.2.5.1.2 "><p id="iam_02_0021__p117214161296">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.54%" headers="mcps1.3.3.5.2.5.1.3 "><p id="iam_02_0021__p8895142322917">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.43%" headers="mcps1.3.3.5.2.5.1.4 "><p id="iam_02_0021__p181727164299">Whether IAM users are allowed to change their passwords. The value can be <strong id="iam_02_0021__b7648521264">true</strong> or <strong id="iam_02_0021__b1651052866">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="iam_02_0021__section10447106181910"><h4 class="sectiontitle">Response Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0021__table84487613191" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Parameters in the response body</caption><thead align="left"><tr id="iam_02_0021__row15298611199"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.4.1.1"><p id="iam_02_0021__p15529664193">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.4.1.2"><p id="iam_02_0021__p1952919601910">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.2.2.4.1.3"><p id="iam_02_0021__p6529146161916">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0021__row11529156171914"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.4.1.1 "><p id="iam_02_0021__p152917631919"><a href="#iam_02_0021__response_ProtectPolicyResult">protect_policy</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.4.1.2 "><p id="iam_02_0021__p19529661197">object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.4.1.3 "><p id="iam_02_0021__p195293631913">Operation protection policy.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="iam_02_0021__response_ProtectPolicyResult"></a><a name="response_ProtectPolicyResult"></a><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0021__response_ProtectPolicyResult" frame="border" border="1" rules="all"><caption><b>Table 7 </b>protect_policy</caption><thead align="left"><tr id="iam_02_0021__row0671162210413"><th align="left" class="cellrowborder" valign="top" width="15.590000000000002%" id="mcps1.3.4.3.2.4.1.1"><p id="iam_02_0021__p6672182218410">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.33%" id="mcps1.3.4.3.2.4.1.2"><p id="iam_02_0021__p4672142214413">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60.08%" id="mcps1.3.4.3.2.4.1.3"><p id="iam_02_0021__p4672102218418">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0021__row8671192219414"><td class="cellrowborder" valign="top" width="15.590000000000002%" headers="mcps1.3.4.3.2.4.1.1 "><p id="iam_02_0021__p54441756261"><a href="#iam_02_0021__table185786581076">allow_user</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.33%" headers="mcps1.3.4.3.2.4.1.2 "><p id="iam_02_0021__p10444125620616">AllowUserBody object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.08%" headers="mcps1.3.4.3.2.4.1.3 "><p id="iam_02_0021__p17444205611612">Attributes that IAM users can modify.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row761883915513"><td class="cellrowborder" valign="top" width="15.590000000000002%" headers="mcps1.3.4.3.2.4.1.1 "><p id="iam_02_0021__p84442561462">operation_protection</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.33%" headers="mcps1.3.4.3.2.4.1.2 "><p id="iam_02_0021__p1944416562068">boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.08%" headers="mcps1.3.4.3.2.4.1.3 "><p id="iam_02_0021__p2044415561466">Whether to enable operation protection. The value can be <strong id="iam_02_0021__b9568111111816">true</strong> or <strong id="iam_02_0021__b456851120811">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row1959012439514"><td class="cellrowborder" valign="top" width="15.590000000000002%" headers="mcps1.3.4.3.2.4.1.1 "><p id="iam_02_0021__p13445115615610">admin_check</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.33%" headers="mcps1.3.4.3.2.4.1.2 "><p id="iam_02_0021__p244518567612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.08%" headers="mcps1.3.4.3.2.4.1.3 "><p id="iam_02_0021__p1844515613612">Whether a person is designated for verification. The value <strong id="iam_02_0021__b7865618983">on</strong> indicates that a specific person is designated for verification, and the value <strong id="iam_02_0021__b6866818986">off</strong> indicates that the operator is designated for verification.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row1672521053"><td class="cellrowborder" valign="top" width="15.590000000000002%" headers="mcps1.3.4.3.2.4.1.1 "><p id="iam_02_0021__p1744517567616">scene</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.33%" headers="mcps1.3.4.3.2.4.1.2 "><p id="iam_02_0021__p5445256762">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.08%" headers="mcps1.3.4.3.2.4.1.3 "><p id="iam_02_0021__p1944513562618">Verification method set for the specified person.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="iam_02_0021__table185786581076"></a><a name="table185786581076"></a><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0021__table185786581076" frame="border" border="1" rules="all"><caption><b>Table 8 </b>protect_policy.allow_user</caption><thead align="left"><tr id="iam_02_0021__row057875814713"><th align="left" class="cellrowborder" valign="top" width="15.45154515451545%" id="mcps1.3.4.4.2.4.1.1"><p id="iam_02_0021__p1017412384816">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.84238423842384%" id="mcps1.3.4.4.2.4.1.2"><p id="iam_02_0021__p1117493813811">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60.7060706070607%" id="mcps1.3.4.4.2.4.1.3"><p id="iam_02_0021__p51741381086">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0021__row257812581171"><td class="cellrowborder" valign="top" width="15.45154515451545%" headers="mcps1.3.4.4.2.4.1.1 "><p id="iam_02_0021__p617414381785">manage_accesskey</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.84238423842384%" headers="mcps1.3.4.4.2.4.1.2 "><p id="iam_02_0021__p1317413813817">boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.7060706070607%" headers="mcps1.3.4.4.2.4.1.3 "><p id="iam_02_0021__p117473813815">Whether IAM users are allowed to manage AKs by themselves. The value can be <strong id="iam_02_0021__b146079241197">true</strong> or <strong id="iam_02_0021__b136071624798">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row111611618583"><td class="cellrowborder" valign="top" width="15.45154515451545%" headers="mcps1.3.4.4.2.4.1.1 "><p id="iam_02_0021__p217419381386">manage_email</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.84238423842384%" headers="mcps1.3.4.4.2.4.1.2 "><p id="iam_02_0021__p81741438084">boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.7060706070607%" headers="mcps1.3.4.4.2.4.1.3 "><p id="iam_02_0021__p917433815812">Whether IAM users are allowed to change their email addresses. The value can be <strong id="iam_02_0021__b351917286916">true</strong> or <strong id="iam_02_0021__b13519528291">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row3699152112816"><td class="cellrowborder" valign="top" width="15.45154515451545%" headers="mcps1.3.4.4.2.4.1.1 "><p id="iam_02_0021__p31742386811">manage_mobile</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.84238423842384%" headers="mcps1.3.4.4.2.4.1.2 "><p id="iam_02_0021__p101746381186">boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.7060706070607%" headers="mcps1.3.4.4.2.4.1.3 "><p id="iam_02_0021__p1617453818811">Whether IAM users are allowed to change their mobile numbers. The value can be <strong id="iam_02_0021__b751019308910">true</strong> or <strong id="iam_02_0021__b351014304917">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row16699162115811"><td class="cellrowborder" valign="top" width="15.45154515451545%" headers="mcps1.3.4.4.2.4.1.1 "><p id="iam_02_0021__p141749388811">manage_password</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.84238423842384%" headers="mcps1.3.4.4.2.4.1.2 "><p id="iam_02_0021__p81741238587">boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.7060706070607%" headers="mcps1.3.4.4.2.4.1.3 "><p id="iam_02_0021__p191741038587">Whether IAM users are allowed to change their passwords. The value can be <strong id="iam_02_0021__b75091231592">true</strong> or <strong id="iam_02_0021__b115091231399">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="iam_02_0021__section145316611191"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="iam_02_0021__screen1452914617198">PUT https://sample.domain.com/v3.0/OS-SECURITYPOLICY/domains/{domain_id}/protect-policy
|
|
|
|
{
|
|
"protect_policy" : {
|
|
"operation_protection" : true
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="iam_02_0021__section4455266195"><h4 class="sectiontitle">Example Response</h4><p id="iam_02_0021__p165299615197"><strong id="iam_02_0021__b1997219134320">Status code: 200</strong></p>
|
|
<p id="iam_02_0021__p2052917610196">The request is successful.</p>
|
|
<pre class="screen" id="iam_02_0021__screen252915615198">{
|
|
"protect_policy": {
|
|
"allow_user": {
|
|
"manage_mobile": true,
|
|
"manage_accesskey": true,
|
|
"manage_email": true,
|
|
"manage_password": true
|
|
},
|
|
"operation_protection": true,
|
|
"admin_check": "off",
|
|
"scene": ""
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<p id="iam_02_0021__p056634715612"><strong id="iam_02_0021__b155312016436">Status code: 400</strong></p>
|
|
<p id="iam_02_0021__p135661547115619">The request body is abnormal.</p>
|
|
<ul id="iam_02_0021__ul3566104719563"><li id="iam_02_0021__li12566114795611">Example 1</li></ul>
|
|
<pre class="screen" id="iam_02_0021__screen1293371345713">{
|
|
"error_msg" : "'%(key)s' is a required property.",
|
|
"error_code" : "IAM.0072"
|
|
}</pre>
|
|
<ul id="iam_02_0021__ul1797111145577"><li id="iam_02_0021__li6971181413573">Example 2</li></ul>
|
|
<pre class="screen" id="iam_02_0021__screen457619105718">{
|
|
"error_msg" : "Invalid input for field '%(key)s'. The value is '%(value)s'.",
|
|
"error_code" : "IAM.0073"
|
|
}</pre>
|
|
<p id="iam_02_0021__p45671847165610"><strong id="iam_02_0021__b78833235435">Status code: 403</strong></p>
|
|
<p id="iam_02_0021__p13567204719561">Access denied.</p>
|
|
<ul id="iam_02_0021__ul456764711567"><li id="iam_02_0021__li17567247165618">Example 1</li></ul>
|
|
<pre class="screen" id="iam_02_0021__screen166387545563">{
|
|
"error_msg" : "Policy doesn't allow %(actions)s to be performed.",
|
|
"error_code" : "IAM.0003"
|
|
}</pre>
|
|
<ul id="iam_02_0021__ul181455511567"><li id="iam_02_0021__li1814655115618">Example 2</li></ul>
|
|
<pre class="screen" id="iam_02_0021__screen153799596568">{
|
|
"error_msg" : "You are not authorized to perform the requested action.",
|
|
"error_code" : "IAM.0002"
|
|
}</pre>
|
|
<p id="iam_02_0021__p15567184735610"><strong id="iam_02_0021__b97121948114319">Status code: 500</strong></p>
|
|
<p id="iam_02_0021__p956716470560">The system is abnormal.</p>
|
|
<pre class="screen" id="iam_02_0021__screen3567104715561">{
|
|
"error_msg" : "An unexpected error prevented the server from fulfilling your request.",
|
|
"error_code" : "IAM.0006"
|
|
}</pre>
|
|
<div class="section" id="iam_02_0021__section6460116201913"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0021__table946036101910" frame="border" border="1" rules="all"><thead align="left"><tr id="iam_02_0021__row4529116191912"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.22.2.1.3.1.1"><p id="iam_02_0021__p155291569196">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.22.2.1.3.1.2"><p id="iam_02_0021__p1752916681915">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0021__row052914641917"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.22.2.1.3.1.1 "><p id="iam_02_0021__p1552912601910">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.22.2.1.3.1.2 "><p id="iam_02_0021__p16530136101914">The request is successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row11530136181911"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.22.2.1.3.1.1 "><p id="iam_02_0021__p17530567198">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.22.2.1.3.1.2 "><p id="iam_02_0021__p353036171917">The request body is abnormal.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row1553010661912"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.22.2.1.3.1.1 "><p id="iam_02_0021__p185301265191">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.22.2.1.3.1.2 "><p id="iam_02_0021__p155301166192">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row10530196191914"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.22.2.1.3.1.1 "><p id="iam_02_0021__p15530064197">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.22.2.1.3.1.2 "><p id="iam_02_0021__p12530156191912">Access denied.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0021__row195304613198"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.22.2.1.3.1.1 "><p id="iam_02_0021__p45305631911">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.22.2.1.3.1.2 "><p id="iam_02_0021__p3530665195">The system is abnormal.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="iam_02_0020.html">Security Settings</a></div>
|
|
</div>
|
|
</div>
|
|
|