forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com> Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
133 lines
8.9 KiB
HTML
133 lines
8.9 KiB
HTML
<a name="css_03_0091"></a><a name="css_03_0091"></a>
|
|
|
|
<h1 class="topictitle1">Changing the Security Mode</h1>
|
|
<div id="body0000001526505769"><div class="section" id="css_03_0091__section1282162772616"><h4 class="sectiontitle">Function</h4><p id="css_03_0091__p128392712263">This API is used to change the security mode of a cluster.</p>
|
|
</div>
|
|
<div class="section" id="css_03_0091__section158312271264"><h4 class="sectiontitle">Debugging</h4><p id="css_03_0091__p1984142732618">You can debug this API in . Automatic authentication is supported.</p>
|
|
</div>
|
|
<div class="section" id="css_03_0091__section58482792612"><h4 class="sectiontitle">URI</h4><p id="css_03_0091__p38522762612">POST /v1.0/{project_id}/clusters/{cluster_id}/mode/change</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0091__table1687122732617" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="css_03_0091__row6861127122612"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0091__p168742772611">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="css_03_0091__p1887162712263">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="css_03_0091__p5885277265">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="css_03_0091__p1488152702617">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0091__row1586142717262"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0091__p1889027142616">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0091__p689827142613">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0091__p990102722613">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0091__p8901327122616">Project ID. For details, see <a href="css_03_0071.html">Obtaining a Project ID and Name</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0091__row286427182611"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0091__p59113278265">cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0091__p1492172772620">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0091__p1193102714263">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0091__p594192712261">ID of the cluster that you want to change the security mode</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0091__section2941427182616"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0091__request_changeModeReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameter</caption><thead align="left"><tr id="css_03_0091__row5951027112610"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0091__p29812762611">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="css_03_0091__p10995277265">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="css_03_0091__p0101202702614">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="css_03_0091__p1410192716266">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0091__row196127122615"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0091__p101021227132619">authorityEnable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0091__p13102927142610">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0091__p1010311275266">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0091__p18103127122615">Indicates whether to enable the security mode.</p>
|
|
<ul id="css_03_0091__ul101041727112618"><li id="css_03_0091__li1010412742617"><strong id="css_03_0091__b178821080163">true</strong>: enabled.</li><li id="css_03_0091__li11052027182613"><strong id="css_03_0091__b1620116178161">false</strong>: disabled. The default value is <strong id="css_03_0091__b145101124141610">true</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0091__row8961927102614"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0091__p910616278269">adminPwd</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0091__p31071927162617">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0091__p110722718268">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0091__p210812277269">Cluster password in security mode</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0091__row169642711268"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0091__p8109142710265">httpsEnable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0091__p1211072702610">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0091__p1911092717262">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0091__p1311142782616">Indicates whether to enable HTTPS. Its value can be:</p>
|
|
<ul id="css_03_0091__ul201123272267"><li id="css_03_0091__li1112122716264"><strong id="css_03_0091__b2571104611811">true</strong>: enabled.</li><li id="css_03_0091__li5112162720268"><strong id="css_03_0091__b1159055491813">false</strong>: disabled. The default value is <strong id="css_03_0091__b157891216176">true</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0091__section1411317278268"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0091__p16113102718267">None</p>
|
|
</div>
|
|
<div class="section" id="css_03_0091__section15114927202611"><h4 class="sectiontitle">Request Example</h4><pre class="screen" id="css_03_0091__screen1211562772614">POST /v1.0/{project_id}/clusters/{cluster_id}/mode/change
|
|
|
|
{
|
|
"authorityEnable" : true,
|
|
"adminPwd" : "xxxx1234",
|
|
"httpsEnable" : true
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="css_03_0091__section12118172762611"><h4 class="sectiontitle">Response Example</h4><p id="css_03_0091__p141187274267">None</p>
|
|
</div>
|
|
<div class="section" id="css_03_0091__section1311917274265"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0091__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0091__row3120427202611"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0091__p8121927192618">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="css_03_0091__p41231427152616">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0091__row3120102713263"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0091__p912472722617">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0091__p12125102719268">The request is processed successfully.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0091__row512052722616"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0091__p21251527102610">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0091__p151264276269">Invalid request.</p>
|
|
<p id="css_03_0091__p13127192742615">Modify the request instead of retrying.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0091__row2120827102610"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0091__p15127027132616">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0091__p151281727122615">The requested resource cannot be found.</p>
|
|
<p id="css_03_0091__p1129327162619">Modify the request instead of retrying.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_03_0008.html">Cluster Management APIs</a></div>
|
|
</div>
|
|
</div>
|
|
|