Retrieves specified cluster workload pods
POSThttps://api.spectrocloud.com/v1/dashboard/spectroclusters/:uid/workloads/pod
Retrieves specified cluster workload pods
Request
Path Parameters
uid stringrequired
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
filter
object
Responses
- 200
An array of cluster workload pods
- application/json
- Schema
- Example (from schema)
Schema
pods
object[]
{
"pods": [
{
"metadata": {
"associatedRefs": [
{
"kind": "string",
"name": "string",
"uid": "string"
}
],
"creationTimestamp": "2024-07-02T12:47:33.300Z",
"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-02T12:47:33.300Z",
"reason": "string",
"startedAt": "2024-07-02T12:47:33.300Z",
"state": "string"
}
}
],
"phase": "string",
"podIp": "string",
"qosClass": "string"
}
}
]
}
- curl
- python
- go
- nodejs
- java
- CURL