Retrieves specified cluster workload rolebindings
POSThttps://api.spectrocloud.com/v1/dashboard/spectroclusters/:uid/workloads/rolebinding
Retrieves specified cluster workload rolebindings
Request
Path Parameters
uid stringrequired
- application/json
Body
filter
object
Responses
- 200
An array of cluster workload rolebindings
- application/json
- Schema
- Example (from schema)
Schema
bindings
object[]
{
"bindings": [
{
"metadata": {
"creationTimestamp": "2024-07-01T23:32:15.361Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"spec": {
"namespace": "string",
"role": {
"kind": "Role",
"name": "string"
},
"subjects": [
{
"name": "string",
"namespace": "string",
"type": "User"
}
],
"type": "RoleBinding"
}
}
]
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/dashboard/spectroclusters/:uid/workloads/rolebinding' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"filter": {
"namespaces": [
"string"
]
}
}'