Retrieves specified workspace clusters workload clusterrolebindings
POSThttps://api.spectrocloud.com/v1/dashboard/workspaces/:uid/spectroclusters/workloads/clusterrolebinding
Retrieves specified workspace clusters workload clusterrolebindings
Request
Path Parameters
uid stringrequired
- application/json
Body
filter
object
Responses
- 200
An array of clusters workload clusterrolebindings
- application/json
- Schema
- Example (from schema)
Schema
clusters
object[]
metadata
object
{
"clusters": [
{
"bindings": [
{
"metadata": {
"creationTimestamp": "2024-07-05T19:21:10.724Z",
"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"
}
}
],
"metadata": {
"kind": "spectrocluster",
"name": "string",
"uid": "string"
}
}
],
"metadata": {
"annotations": {},
"labels": {},
"name": "string"
}
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/dashboard/workspaces/:uid/spectroclusters/workloads/clusterrolebinding' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"filter": {
"clusters": [
"string"
],
"namespaces": [
"string"
]
}
}'