This API is used to update the permission policies associated with a fleet.
PUT /v1/clustergroups/{clustergroupid}/associatedrules
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
clustergroupid |
Yes |
String |
Fleet ID |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
Token authentication information Minimum length: 1 Maximum length: 16384 |
Content-Type |
Yes |
String |
Request body type or format |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
ruleIDNamespaces |
No |
Array of RuleIDNamespaces objects |
Permission policy ID and namespaces related to the permission policy |
None
Updating the permission policies associated with a fleet
{
"ruleIDNamespaces" : [ {
"ruleIDs" : [ "f6434332-60d6-11ed-a847-0255ac10003f" ],
"namespaces" : [ "default", "kube-system" ]
} ]
}
None
Status Code |
Description |
|---|---|
200 |
The fleet has been associated with permission policies. |
400 |
Client request error. The server could not execute the request. |
403 |
The server refused the request. |
500 |
Internal server error. |
See Error Codes.