Retrieves specified cluster workload jobs
POSThttps://api.spectrocloud.com/v1/dashboard/spectroclusters/:uid/workloads/job
Retrieves specified cluster workload jobs
Request
Path Parameters
uid stringrequired
- application/json
Body
filter
object
Responses
- 200
An array of cluster workload jobs
- application/json
- Schema
- Example (from schema)
Schema
jobs
object[]
{
"jobs": [
{
"metadata": {
"creationTimestamp": "2024-07-01T22:50:52.601Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"status": {
"completionTime": "2024-07-01T22:50:52.601Z",
"conditions": [
{
"lastTransitionTime": "2024-07-01T22:50:52.601Z",
"lastUpdateTime": "2024-07-01T22:50:52.601Z",
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"startTime": "2024-07-01T22:50:52.601Z",
"succeeded": 0
}
}
]
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/dashboard/spectroclusters/:uid/workloads/job' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"filter": {
"namespaces": [
"string"
]
}
}'