Create cluster rbac in workspace
POSThttps://api.spectrocloud.com/v1/workspaces/:uid/clusterRbacs
Create cluster rbac in workspace
Request
Path Parameters
uid stringrequired
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
metadata
object
spec
object
status
Responses
- 201
Created successfully
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
uidstringrequired
{
"uid": "string"
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/workspaces/:uid/clusterRbacs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-05T16:19:41.242Z",
"deletionTimestamp": "2024-07-05T16:19:41.242Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-05T16:19:41.242Z",
"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"
}
},
"status": {
"errors": [
{
"msg": "string",
"name": "string",
"resourceType": "string"
}
]
}
}'