1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
interactions:
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Fri, 24 Aug 2018 06:23:12 GMT']
method: GET
uri: https://batchf06f0dd7.eastus.batch.azure.com/applications?api-version=2018-08-01.7.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://batchf06f0dd7.eastus.batch.azure.com/$metadata#listapplicationsummariesresponses\",\"value\":[\r\n
\ {\r\n \"id\":\"application_id\",\"versions\":[\r\n \"v1.0\"\r\n
\ ]\r\n }\r\n ]\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Fri, 24 Aug 2018 06:23:13 GMT']
request-id: [f9ccae6c-f942-4a86-8f20-39d58c94e508]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Fri, 24 Aug 2018 06:23:13 GMT']
method: GET
uri: https://batchf06f0dd7.eastus.batch.azure.com/applications/application_id?api-version=2018-08-01.7.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://batchf06f0dd7.eastus.batch.azure.com/$metadata#getapplicationsummaryresponse/@Element\",\"id\":\"application_id\",\"versions\":[\r\n
\ \"v1.0\"\r\n ]\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Fri, 24 Aug 2018 06:23:14 GMT']
request-id: [48cc2c6a-c810-4bb6-a6dc-777b25c5705d]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"applicationPackageReferences": [{"applicationId": "application_id", "version":
"v1.0"}], "id": "python_task_with_app_package", "commandLine": "cmd /c \"echo
hello world\""}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['174']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Fri, 24 Aug 2018 06:23:14 GMT']
method: POST
uri: https://batchf06f0dd7.eastus.batch.azure.com/jobs/batchf06f0dd7/tasks?api-version=2018-08-01.7.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://batchf06f0dd7.eastus.batch.azure.com/jobs/batchf06f0dd7/tasks/python_task_with_app_package']
dataserviceversion: ['3.0']
date: ['Fri, 24 Aug 2018 06:23:14 GMT']
etag: ['0x8D6098A132CCBE4']
last-modified: ['Fri, 24 Aug 2018 06:23:15 GMT']
location: ['https://batchf06f0dd7.eastus.batch.azure.com/jobs/batchf06f0dd7/tasks/python_task_with_app_package']
request-id: [eefeba72-ccd4-4bdd-b18a-a6208c7e623e]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Fri, 24 Aug 2018 06:23:15 GMT']
method: GET
uri: https://batchf06f0dd7.eastus.batch.azure.com/jobs/batchf06f0dd7/tasks/python_task_with_app_package?api-version=2018-08-01.7.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://batchf06f0dd7.eastus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"python_task_with_app_package\",\"url\":\"https://batchf06f0dd7.eastus.batch.azure.com/jobs/batchf06f0dd7/tasks/python_task_with_app_package\",\"eTag\":\"0x8D6098A132CCBE4\",\"creationTime\":\"2018-08-24T06:23:15.1343588Z\",\"lastModified\":\"2018-08-24T06:23:15.1343588Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-08-24T06:23:15.1343588Z\",\"commandLine\":\"cmd
/c \\\"echo hello world\\\"\",\"applicationPackageReferences\":[\r\n {\r\n
\ \"applicationId\":\"application_id\",\"version\":\"v1.0\"\r\n }\r\n
\ ],\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n
\ }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n
\ },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Fri, 24 Aug 2018 06:23:15 GMT']
etag: ['0x8D6098A132CCBE4']
last-modified: ['Fri, 24 Aug 2018 06:23:15 GMT']
request-id: [527593e6-02fe-43bc-9a6d-e332389f63b4]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
version: 1
|