Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -1075,12 +1075,75 @@
"template": {
"description": "Job's execution container.",
"$ref": "#/definitions/JobExecutionTemplate"
},
"detailedStatus": {
"description": "Detailed status of the job execution.",
"$ref": "#/definitions/ExecutionStatus"
}
},
"x-ms-client-flatten": true
}
}
},
"ExecutionStatus": {
"description": "Container Apps Job execution status.",
"type": "object",
"properties": {
"pods": {
"description": "Pods in the execution.",
"type": "array",
"items": {
"$ref": "#/definitions/PodExecutionStatus"
},
"x-ms-identifiers": [
"name"
]
}
}
},
"PodExecutionStatus": {
"description": "Container Apps Job execution pod status.",
"type": "object",
"properties": {
"name": {
"description": "Pod Name.",
"type": "string"
},
"containers": {
"description": "Containers in the execution",
"type": "array",
"items": {
"$ref": "#/definitions/ContainerExecutionStatus"
},
"x-ms-identifiers": [
"name"
]
}
}
},
"ContainerExecutionStatus": {
"description": "Container Apps Job execution container status. Contains status code and reason",
"type": "object",
"properties": {
"name": {
"description": "Container Name.",
"type": "string"
},
"code": {
"description": "Exit code",
"type": "integer",
"format": "int32"
},
"reason": {
"description": "Container reason",
"type": "string"
},
"status": {
"description": "Status of the container",
"type": "string"
}
}
},
"ContainerAppJobExecutions": {
"description": "Container App executions collection ARM resource.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"jobName": "testcontainerAppsJob0",
"api-version": "2024-02-02-preview"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"name": "testcontainerAppJob-27944454",
"properties": {
"status": "Running",
"startTime": "2023-02-13T20:37:30+00:00",
"endTime": "2023-02-13T20:47:30+00:00",
"detailedStatus": {
"pods": [
{
"name": "testcontainerappsjob0-0",
"containers": [
{
"name": "container1",
"code": 0,
"reason": "Completed",
"status": "Succeeded"
},
{
"name": "container2",
"code": 0,
"reason": "Completed",
"status": "Succeeded"
}
]
}
]
},
"template": {
"containers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testcontainerappsjob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
}
}
],
"initContainers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testinitcontainerAppsJob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
},
"command": [
"/bin/sh"
],
"args": [
"-c",
"while true; do echo hello; sleep 10;done"
]
}
]
}
}
}
],
"nextLink": null
}
}
}
}