Updates RBAC information for the specified cluster
PUThttps://api.spectrocloud.com/v1/spectroclusters/:uid/config/rbacs
Updates RBAC information for the specified cluster
Request
Path Parameters
uid stringrequired
Cluster uid
- application/json
Body
rbacs
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' \
-H 'Content-Type: application/json' \
--data-raw '{
"rbacs": [
{
"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"
}
}
}
]
}'