diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/Jobs.json index 06dea9b5c6f8..c0a26a3f839e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/Jobs.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/Jobs.json @@ -1079,12 +1079,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": { + "replicas": { + "description": "Replicas in the execution.", + "type": "array", + "items": { + "$ref": "#/definitions/ReplicaExecutionStatus" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "ReplicaExecutionStatus": { + "description": "Container Apps Job execution replica status.", + "type": "object", + "properties": { + "name": { + "description": "Replica Name.", + "type": "string" + }, + "containers": { + "description": "Containers in the execution replica", + "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" + }, + "additionalInformation": { + "description": "Additional information for the container status", + "type": "string" + }, + "status": { + "description": "Status of the container", + "type": "string" + } + } + }, "ContainerAppJobExecutions": { "description": "Container App executions collection ARM resource.", "type": "object", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Executions_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Executions_Get.json index 7d2a0323ca94..fb513886b93f 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Executions_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Executions_Get.json @@ -16,6 +16,27 @@ "status": "Running", "startTime": "2023-02-13T20:37:30+00:00", "endTime": "2023-02-13T20:47:30+00:00", + "detailedStatus": { + "replicas": [ + { + "name": "testcontainerappsjob0-0", + "containers": [ + { + "name": "container1", + "code": 0, + "additionalInformation": "Completed", + "status": "Succeeded" + }, + { + "name": "container2", + "code": 0, + "additionalInformation": "Completed", + "status": "Succeeded" + } + ] + } + ] + }, "template": { "containers": [ {