Retrieves specified workspace clusters workload statefulsets
POSThttps://api.spectrocloud.com/v1/dashboard/workspaces/:uid/spectroclusters/workloads/statefulset
Retrieves specified workspace clusters workload statefulsets
Request
Path Parameters
uid stringrequired
- application/json
Body
filter
object
Responses
- 200
An array of clusters workload statefulsets
- application/json
- Schema
- Example (from schema)
Schema
clusters
object[]
metadata
object
{
"clusters": [
{
"metadata": {
"kind": "spectrocluster",
"name": "string",
"uid": "string"
},
"statefulSets": [
{
"metadata": {
"creationTimestamp": "2024-07-02T12:47:10.936Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"status": {
"replicas": {
"available": 0,
"ready": 0,
"total": 0,
"updated": 0
}
}
}
]
}
],
"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/statefulset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"filter": {
"clusters": [
"string"
],
"namespaces": [
"string"
]
}
}'