Get Details for a Running Job
get
/api/microservice/Workload/readForJobDetails
Gets the details of the job running at the specified path.
Request
Query Parameters
-
path(required): string
The full path, in /{cluster}/{namespace}/{job-name} format.Example:
/cluster-1/a1-messaging/jobname
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Type:
Show Source
object
-
data: object
data
Returns a subset of Kubernetes job details. For full details, you can use the following command: a1k -n {namespace} -ojson get job {job-id}
-
message: string
The response message in text.Example:
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
true
Nested Schema : data
Type:
object
Returns a subset of Kubernetes job details. For full details, you can use the following command:
a1k -n {namespace} -ojson get job {job-id}
Example:
{
"Name":"Job Name",
"Namespace":"a1-messaging",
"Created":"2023-08-04T11:02:30Z",
"Conditions":[
{
"lastProbeTime":"2023-08-04T11:03:35Z",
"lastTransitionTime":"2023-08-04T11:03:35Z",
"status":"True",
"type":"Complete"
}
],
"Selector":{
"controller-uid":"b8741227-69e0-4314-8778-a4043e011725"
},
"Labels":{
"Labels Details":"Value"
},
"Tolerations":null,
"Completions":1,
"Parallelism":1,
"CompleteAt":"2023-08-04T11:03:34Z",
"Images":null,
"Events":[
],
"Pods":{
"Pod Details":"Value"
}
}
Default Response
Failed operation
Root Schema : schema
Type:
Show Source
object
-
errors: array
errors
The list of errors reported. Validation errors will be keyed by record field.
-
message: string
The response message.Example:
Exception thrown
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
false
Nested Schema : errors
Type:
array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type:
object