Retrieves specified cluster workload cronjobs
POSThttps://api.spectrocloud.com/v1/dashboard/spectroclusters/:uid/workloads/cronjob
Retrieves specified cluster workload cronjobs
Request
Path Parameters
uid stringrequired
- application/json
Body
filter
object
Responses
- 200
An array of cluster workload cronjobs
- application/json
- Schema
- Example (from schema)
Schema
cronJobs
object[]
{
"cronJobs": [
{
"metadata": {
"creationTimestamp": "2024-07-05T19:21:10.704Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"spec": {
"schedule": "string"
},
"status": {
"lastScheduleTime": "2024-07-05T19:21:10.704Z"
}
}
]
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/dashboard/spectroclusters/:uid/workloads/cronjob' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"filter": {
"namespaces": [
"string"
]
}
}'