forked from docs/doc-exports
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>
173 lines
16 KiB
HTML
173 lines
16 KiB
HTML
<a name="UpdateClusterGroupAssociatedRules"></a><a name="UpdateClusterGroupAssociatedRules"></a>
|
|
|
|
<h1 class="topictitle1">Updating Permission Policies Associated with a Fleet</h1>
|
|
<div id="body8662426"><div class="section" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_section366851731013"><h4 class="sectiontitle">Function</h4><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p15669317111012">This API is used to update the permission policies associated with a fleet.</p>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_section966911174102"><h4 class="sectiontitle">URI</h4><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p76701317171019">PUT /v1/clustergroups/{clustergroupid}/associatedrules</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_table196721117111010" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameter</caption><thead align="left"><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row106716170108"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1467291715107">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1674181713101">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p5675161714104">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p267613178107">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row12671171716106"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p26761817201017">clustergroupid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1467731717103">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p867741711108">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p46780171107">Fleet ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_section7679217131017"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the request header</caption><thead align="left"><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row186809173104"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p2682217161019">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1668281791012">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p66841017151010">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p4685181715106">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row1268013176102"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p11686181791012">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1568618179101">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p168781771020">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p968871710108">Token authentication information</p>
|
|
<p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p868913172103">Minimum length: <strong id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_b79915092341431">1</strong></p>
|
|
<p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p6690117171017">Maximum length: <strong id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_b83770397042517">16384</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row148811937122115"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p20110172212422">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p411018227429">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p7110152218429">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p12110172216422">Request body type or format</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_request_UpdateAssociatedRulesRequest" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameter in the request body</caption><thead align="left"><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row1869116177103"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p16693201713104">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p2693121791011">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p869411701019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1169511170106">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row3691171741015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1169615179101">ruleIDNamespaces</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p26971717141012">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p369811791019">Array of <a href="#UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_request_RuleIDNamespaces">RuleIDNamespaces</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p106981417131012">Permission policy ID and namespaces related to the permission policy</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_request_RuleIDNamespaces"></a><a name="en-us_topic_0000002537803527_request_RuleIDNamespaces"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_request_RuleIDNamespaces" frame="border" border="1" rules="all"><caption><b>Table 4 </b>RuleIDNamespaces</caption><thead align="left"><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row269916175102"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p370121719106">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p10701141716108">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p3702111781011">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p167031217151012">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row156991717191019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p15704181711013">ruleIDs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p27051217171015">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p870691731017">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1270711174107">Permission policy IDs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row669913171103"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1070713171104">namespaces</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p4708171718104">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p18709181791014">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p07096179104">Namespaces related to permission policies</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_section6710181761018"><h4 class="sectiontitle">Response Parameters</h4><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p87101417101010">None</p>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_section171118175105"><h4 class="sectiontitle">Example Requests</h4><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p2711817131018">Updating the permission policies associated with a fleet</p>
|
|
<pre class="screen" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_screen671321714103">{
|
|
"ruleIDNamespaces" : [ {
|
|
"ruleIDs" : [ "f6434332-60d6-11ed-a847-0255ac10003f" ],
|
|
"namespaces" : [ "default", "kube-system" ]
|
|
} ]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_section67171617191016"><h4 class="sectiontitle">Example Responses</h4><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p2718717101012">None</p>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_section8719101712107"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row15721717141015"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p197222177105">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p8723101701013">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row1672161711012"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p16723111715100">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p14724151731017">The fleet has been associated with permission policies.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row972118171106"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p197256177104">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p9726201761019">Client request error. The server could not execute the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row3721191701012"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p672631731014">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p207275173105">The server refused the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_row16721171714104"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p11728217161017">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p5728517181019">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_section19729121741016"><h4 class="sectiontitle">Error Codes</h4><p id="UpdateClusterGroupAssociatedRules__en-us_topic_0000002537803527_p1673020177103">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002520563224.html">Fleet</a></div>
|
|
</div>
|
|
</div>
|
|
|