-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add single execution history endpoint, refactor copy paste code for j… (
#23816) * Add single execution history endpoint, refactor copy paste code for jobName and jobExecutionName path parameters * Fix validation errors from ARM * Fix validation errors * Code review comments * Fix validation error * code review comments from Anand
- Loading branch information
Showing
2 changed files
with
123 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Execution_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "rg", | ||
"jobName": "testcontainerAppsJob0", | ||
"jobExecutionName": "jobExecution1", | ||
"api-version": "2023-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"name": "jobExecution1", | ||
"status": "Running", | ||
"startTime": "2023-02-13T20:37:30+00:00", | ||
"endTime": "2023-02-13T20:47:30+00:00", | ||
"template": { | ||
"containers": [ | ||
{ | ||
"image": "repo/testcontainerAppsJob0:v4", | ||
"name": "testcontainerAppsJob0", | ||
"resources": { | ||
"cpu": 0.2, | ||
"memory": "100Mi" | ||
} | ||
} | ||
], | ||
"initContainers": [ | ||
{ | ||
"image": "repo/testcontainerAppsJob0:v4", | ||
"name": "testinitcontainerAppsJob0", | ||
"resources": { | ||
"cpu": 0.2, | ||
"memory": "100Mi" | ||
}, | ||
"command": [ | ||
"/bin/sh" | ||
], | ||
"args": [ | ||
"-c", | ||
"while true; do echo hello; sleep 10;done" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |