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>
205 lines
15 KiB
HTML
205 lines
15 KiB
HTML
<a name="iam_02_0007"></a><a name="iam_02_0007"></a>
|
|
|
|
<h1 class="topictitle1">Querying the Password Strength Policy</h1>
|
|
<div id="body1546850023575"><div class="section" id="iam_02_0007__s5888597838b0425a92e3419fb766c7f5"><h4 class="sectiontitle">Function</h4><p id="iam_02_0007__p1887819285319">This API is used to query the password strength policy, including its regular expression and description.</p>
|
|
</div>
|
|
<div class="section" id="iam_02_0007__s46d3616bd4c54e55ba97a528518a5890"><h4 class="sectiontitle">URI</h4><ul id="iam_02_0007__en-us_topic_0026585112_ul20917673"><li id="iam_02_0007__l0762c927197248c39057087e143d6575">URI format<p id="iam_02_0007__p5594901411559"><a name="iam_02_0007__l0762c927197248c39057087e143d6575"></a><a name="l0762c927197248c39057087e143d6575"></a>GET /v3/domains/{domain_id}/config/security_compliance</p>
|
|
</li><li id="iam_02_0007__li2733311911542">URI parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0007__table2671410511552" frame="border" border="1" rules="all"><thead align="left"><tr id="iam_02_0007__row2181345411552"><th align="left" class="cellrowborder" valign="top" width="22.14%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="iam_02_0007__p4197580011552"><strong id="iam_02_0007__b37426530113629">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.09%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="iam_02_0007__p5555552611552"><strong id="iam_02_0007__ac429376f11ae472b87ff4be326afb9d8">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.11%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="iam_02_0007__p3157154611552"><strong id="iam_02_0007__b842352706143526_3">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="37.66%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="iam_02_0007__p4296341111552"><strong id="iam_02_0007__b14438018113629">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0007__row2571374511552"><td class="cellrowborder" valign="top" width="22.14%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="iam_02_0007__p6330725211552">domain_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.09%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="iam_02_0007__p2212117911552">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="iam_02_0007__p4769668011552">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.66%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="iam_02_0007__p928844211552">Domain ID to be queried.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="iam_02_0007__se7fe5cac0d544e119c49322cc1707eb6"><h4 class="sectiontitle">Request Parameters</h4><ul id="iam_02_0007__en-us_topic_0026585112_ul3226198"><li id="iam_02_0007__l7c4919f55ea849a9bb59e1454113085c">Parameters in the request header
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0007__t68c7bd10e66a4380a1e6cdc78ca95669" frame="border" border="1" rules="all"><thead align="left"><tr id="iam_02_0007__r584496594a404ce18918a40e6e57c2ec"><th align="left" class="cellrowborder" valign="top" width="21.81218121812181%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="iam_02_0007__ac3a989cc5d3a405889eabb47dee84b04"><strong id="iam_02_0007__b1379027146">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.352035203520348%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="iam_02_0007__a69a20ac00b86496aa8418517c542b0da"><strong id="iam_02_0007__b1900515692">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.092009200920092%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="iam_02_0007__a92c23d4441054df0972e025aeb3a8d7f"><strong id="iam_02_0007__b1602366125">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="37.743774377437745%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="iam_02_0007__abe6882c44cf4402d8ed7706b9278f33b"><strong id="iam_02_0007__b1796834018">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0007__r5d63069d6a8a426e8b25b94d1b4d302a"><td class="cellrowborder" valign="top" width="21.81218121812181%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="iam_02_0007__ad4fb6253385c46ab8720a0e13f573694">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="iam_02_0007__a6b33800bcb2a446695b1d33a2d751554">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.092009200920092%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="iam_02_0007__ab34a5e95b76b4b79a72da0734025f211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.743774377437745%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="iam_02_0007__a716277ae541d4553bb10490f9c02593d">Fill <strong id="iam_02_0007__b842352706161331">application/json;charset=utf8</strong> in this field.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__row29501427115257"><td class="cellrowborder" valign="top" width="21.81218121812181%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="iam_02_0007__p6637478211538">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="iam_02_0007__p764826811538">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.092009200920092%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="iam_02_0007__p1553001111538">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.743774377437745%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="iam_02_0007__p3577810173953">Authenticated token of a user.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="iam_02_0007__en-us_topic_0026585112_li17042198">Example request<pre class="screen" id="iam_02_0007__s6b85ed1428f745fabd2d60e4481ee1db"><em id="iam_02_0007__i79494215553">curl -i -k -H 'Accept:application/json' -H 'Content-Type:application/json;charset=utf8' -H "X-Auth-Token:$token" -X GET https://sample.domain.com/v3/domains/{domain_id}/config/security_compliance</em></pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="iam_02_0007__s3a08e13bb5b34dc2ba4dcd84a0d51cf5"><h4 class="sectiontitle">Response Parameters</h4><ul id="iam_02_0007__ul38133462616"><li id="iam_02_0007__li118139467610">Parameters in the response body
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0007__table9899163515616" frame="border" border="1" rules="all"><thead align="left"><tr id="iam_02_0007__row15912435165"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="iam_02_0007__p69124351069">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="iam_02_0007__p209121735760">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="iam_02_0007__p189124353611">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0007__row491211351569"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="iam_02_0007__p691215359611"><a href="#iam_02_0007__li69261810720">config</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="iam_02_0007__p16912133519614">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="iam_02_0007__p1391213515618">Configuration information.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="iam_02_0007__li69261810720"><a name="iam_02_0007__li69261810720"></a><a name="li69261810720"></a>config
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0007__table9900235563" frame="border" border="1" rules="all"><thead align="left"><tr id="iam_02_0007__row109121135665"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.1.1.4.1.1"><p id="iam_02_0007__p20912143510620">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.1.1.4.1.2"><p id="iam_02_0007__p1091273518619">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.2.2.1.1.4.1.3"><p id="iam_02_0007__p159129353615">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0007__row1991233519617"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.1.1.4.1.1 "><p id="iam_02_0007__p16912113515610"><a href="#iam_02_0007__li46312111676">security_compliance</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.1.1.4.1.2 "><p id="iam_02_0007__p14912135864">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.1.1.4.1.3 "><p id="iam_02_0007__p791220351262">Password strength policy information.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="iam_02_0007__li46312111676"><a name="iam_02_0007__li46312111676"></a><a name="li46312111676"></a>config.security_compliance
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0007__table1490111358618" frame="border" border="1" rules="all"><thead align="left"><tr id="iam_02_0007__row8912163517618"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.3.1.1.4.1.1"><p id="iam_02_0007__p89122355611">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.3.1.1.4.1.2"><p id="iam_02_0007__p99121235561">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.2.3.1.1.4.1.3"><p id="iam_02_0007__p29127351065">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0007__row1891243517613"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.3.1.1.4.1.1 "><p id="iam_02_0007__p39120352616">password_regex</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.3.1.1.4.1.2 "><p id="iam_02_0007__p3912163513612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.3.1.1.4.1.3 "><p id="iam_02_0007__p10912435863">Regular expression of the password strength policy.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__row89121035961"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.3.1.1.4.1.1 "><p id="iam_02_0007__p1991216357611">password_regex_description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.3.1.1.4.1.2 "><p id="iam_02_0007__p691263510618">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.3.1.1.4.1.3 "><p id="iam_02_0007__p891219352068">Description of the password strength policy.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="iam_02_0007__en-us_topic_0026585112_ul10497152"><li id="iam_02_0007__lf3c28402a2ee4844bc99946ea67bf82d">Example response<pre class="screen" id="iam_02_0007__sf943dd4d83494c55a12db23ebfa9eb99">{
|
|
"config": {
|
|
"security_compliance": {
|
|
"password_regex": "^(?=.*\\d)(?=.*[a-zA-Z]).{7,}$",
|
|
"password_regex_description": "Passwords must contain at least 1 letter, 1 digit, and be a minimum length of 7 characters."
|
|
}
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="iam_02_0007__sbfe93ca4c2b9427dbb2218a4e72da6a8"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="iam_02_0007__en-us_topic_0035544336_table25927028" frame="border" border="1" rules="all"><thead align="left"><tr id="iam_02_0007__en-us_topic_0035544336_row10578662"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.1"><p id="iam_02_0007__en-us_topic_0035544336_p51565323"><strong id="iam_02_0007__b5186102385913">Status Code</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.2"><p id="iam_02_0007__en-us_topic_0035544336_p16041657"><strong id="iam_02_0007__b442429708">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="iam_02_0007__en-us_topic_0035544336_row24305815"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="iam_02_0007__en-us_topic_0035544336_p22613965">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="iam_02_0007__en-us_topic_0035544336_p19791876">The request is successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__en-us_topic_0035544336_row43909159"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="iam_02_0007__en-us_topic_0035544336_p66980994">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="iam_02_0007__en-us_topic_0035544336_p56751409">The server failed to process the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__rb99fbab78bc54ae4953661763b573830"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="iam_02_0007__aef55745ff0834933af36d690e2e339b8">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="iam_02_0007__a480215738ced4bf5a8feafa2681db93b">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__en-us_topic_0035544336_row41000636"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="iam_02_0007__en-us_topic_0035544336_p32717189">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="iam_02_0007__ae678037f26d640f5a985c943e2ffb92e">Access denied.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__r1fd5c05b7b6b4c048f3f7b9ddbc755b0"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="iam_02_0007__a5d7e2305922e4f9098442a900792dae1">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="iam_02_0007__a9edf299d0513460caaac8a2a19b76e9a">The requested resource cannot be found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__rbb5133f150fd42eebde8dd6e390ecbd5"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="iam_02_0007__ad1a2754016e44193a97043265cd611cf">405</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="iam_02_0007__a81837d461ef445259c5a6e9e1ce0e32a">The method specified in the request is not allowed for the requested resource.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__r2cecff297b1a412f956a312d3cd7acc9"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="iam_02_0007__a1f617621d1bc4a9facb1c84d1946002b">413</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="iam_02_0007__ac31ead3ee2db40eea8ae45b2779a09e9">The request entity is too large.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__rd71e0e00759f4179a2dccaf345ba9f2f"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="iam_02_0007__a1657c5ca5ebd4a2cbacbdb35fc9b7601">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="iam_02_0007__a88b4b14048564e12942b8151dc791b99">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="iam_02_0007__r5647e5fd26974514ac66cc3925f30601"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="iam_02_0007__a16dfaa16ceac4a33a468c0ae158292fb">503</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="iam_02_0007__a5635c1924d9648a8be89b1e5dcf0a87b">Service unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0057845621.html">Tenant Management</a></div>
|
|
</div>
|
|
</div>
|
|
|