Updates the specified RBAC of the cluster
PUThttps://api.spectrocloud.com/v1/spectroclusters/:uid/config/rbacs/:rbacUid
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
Updates the specified RBAC of the cluster
Request
Path Parameters
uid stringrequired
Cluster uid
rbacUid stringrequired
RBAC resource uid
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
metadata object
spec object
Responses
- 204
The resource was updated successfully
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X PUT 'https://api.spectrocloud.com/v1/spectroclusters/:uid/config/rbacs/:rbacUid' \
-H 'Content-Type: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"metadata": {
"annotations": {},
"labels": {},
"name": "string",
"uid": "string"
},
"spec": {
"bindings": [
{
"namespace": "string",
"role": {
"kind": "Role",
"name": "string"
},
"subjects": [
{
"name": "string",
"namespace": "string",
"type": "User"
}
],
"type": "RoleBinding"
}
],
"relatedObject": {
"kind": "spectrocluster",
"name": "string",
"uid": "string"
}
}
}'