Retrieves specified workspace clusters workload pods
POSThttps://api.spectrocloud.com/v1/dashboard/workspaces/:uid/spectroclusters/workloads/pod
Retrieves specified workspace clusters workload pods
Request
Path Parameters
uid stringrequired
- application/json
Body
filter
object
Responses
- 200
An array of clusters workload pods
- application/json
- Schema
- Example (from schema)
Schema
clusters
object[]
metadata
object
{
"clusters": [
{
"metadata": {
"kind": "spectrocluster",
"name": "string",
"uid": "string"
},
"pods": [
{
"metadata": {
"associatedRefs": [
{
"kind": "string",
"name": "string",
"uid": "string"
}
],
"creationTimestamp": "2024-07-29T15:51:28.071Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"machineUid": "string",
"namespace": "string",
"nodename": "string"
},
"spec": {
"containers": [
{
"image": "string",
"name": "string",
"resources": {
"limits": {
"cpu": 0,
"cpuUnit": "string",
"memory": 0,
"memoryUnit": "string"
},
"requests": {
"cpu": 0,
"cpuUnit": "string",
"memory": 0,
"memoryUnit": "string"
}
}
}
],
"volumes": [
{
"name": "string"
}
]
},
"status": {
"containers": [
{
"image": "string",
"name": "string",
"ready": true,
"restartCount": 0,
"started": true,
"state": {
"exitCode": 0,
"finishedAt": "2024-07-29T15:51:28.071Z",
"reason": "string",
"startedAt": "2024-07-29T15:51:28.071Z",
"state": "string"
}
}
],
"phase": "string",
"podIp": "string",
"qosClass": "string"
}
}
]
}
],
"metadata": {
"annotations": {},
"labels": {},
"name": "string"
}
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L 'https://api.spectrocloud.com/v1/dashboard/workspaces/:uid/spectroclusters/workloads/pod' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"filter": {
"clusters": [
"string"
],
"namespaces": [
"string"
]
}
}'