doc-exports/docs/css/api-ref/css_03_0092.html
Wuwan, Qi 8675132585 CSS API 23.2.1 20230926
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
2023-10-23 09:34:01 +00:00

108 lines
6.8 KiB
HTML

<a name="css_03_0092"></a><a name="css_03_0092"></a>
<h1 class="topictitle1">Changing the Security Group</h1>
<div id="body0000001475825836"><div class="section" id="css_03_0092__section7221312183210"><h4 class="sectiontitle">Function</h4><p id="css_03_0092__p11221125322">This API is used to change the security group after a cluster is created.</p>
</div>
<div class="section" id="css_03_0092__section15231112123213"><h4 class="sectiontitle">URI</h4><p id="css_03_0092__p132341217320">POST /v1.0/{project_id}/clusters/{cluster_id}/sg/change</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0092__table72571223214" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="css_03_0092__row19241912113213"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="css_03_0092__p42518125327">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="css_03_0092__p142521212322">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="css_03_0092__p926131217329">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="css_03_0092__p126171212320">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0092__row14241812153215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0092__p126412163218">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0092__p19277126326">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0092__p127412183211">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0092__p82761263213">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_0092__row14249121321"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0092__p1289123325">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0092__p132916121327">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0092__p15291412163211">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0092__p1305129327">Cluster ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0092__section173021212329"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0092__request_ChangeSecurityGroupReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameters</caption><thead align="left"><tr id="css_03_0092__row83212121324"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="css_03_0092__p633712143218">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="css_03_0092__p73371253212">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="css_03_0092__p1933121243210">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="css_03_0092__p334131273215">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0092__row12325129324"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="css_03_0092__p19341012173211">security_group_ids</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="css_03_0092__p1334131219329">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="css_03_0092__p2035111213214">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="css_03_0092__p123551293215">Security group ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0092__section1358121321"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0092__p836412163215">None</p>
</div>
<div class="section" id="css_03_0092__section73691223216"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="css_03_0092__screen1336212163213">POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/ea244205-d641-45d9-9dcb-ab2236bcd07e/sg/change
{
"security_group_ids" : "b1038649-1f77-4ae9-b64d-9af56e42xxxx"
}</pre>
</div>
<div class="section" id="css_03_0092__section19371212123214"><h4 class="sectiontitle">Example Responses</h4><p id="css_03_0092__p1038171216325">None</p>
</div>
<div class="section" id="css_03_0092__section1338181203211"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0092__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0092__row73971210325"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="css_03_0092__p1440101233212">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="css_03_0092__p341161214326">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0092__row239412183212"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0092__p194181220325">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0092__p7427129329">Request succeeded.</p>
</td>
</tr>
<tr id="css_03_0092__row2040112103210"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0092__p174211125327">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0092__p19421612113219">Invalid request.</p>
<p id="css_03_0092__p243131263212">The client should not repeat the request without modifications.</p>
</td>
</tr>
<tr id="css_03_0092__row04014122327"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0092__p94321273219">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0092__p104313122329">Request rejected.The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications.</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>