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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
|
interactions:
- request:
body: '{"location": "westus", "identity": {"type": "SystemAssigned"}, "properties":
{"containers": [{"name": "pycontainer26441510", "properties": {"image": "alpine:latest",
"resources": {"requests": {"memoryInGB": 1.0, "cpu": 1.0}}, "volumeMounts":
[{"name": "empty-volume", "mountPath": "/mnt/mydir"}], "livenessProbe": {"exec":
{"command": ["cat/tmp/healthy"]}, "periodSeconds": 5}}}], "restartPolicy": "OnFailure",
"osType": "Linux", "volumes": [{"name": "empty-volume", "emptyDir": {}}], "diagnostics":
{"logAnalytics": {"workspaceId": "workspaceId", "workspaceKey": "workspaceKey"}}}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['582']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.2 (Windows-10-10.0.17763-SP0) requests/2.18.4 msrest/0.5.4
msrest_azure/0.4.34 azure-mgmt-containerinstance/1.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510?api-version=2018-10-01
response:
body: {string: '{"properties":{"provisioningState":"Pending","containers":[{"name":"pycontainer26441510","properties":{"image":"alpine:latest","ports":[],"environmentVariables":[],"resources":{"requests":{"memoryInGB":1.0,"cpu":1.0}},"volumeMounts":[{"name":"empty-volume","mountPath":"/mnt/mydir"}],"livenessProbe":{"exec":{"command":["cat/tmp/healthy"]},"periodSeconds":5}}}],"restartPolicy":"OnFailure","osType":"Linux","volumes":[{"name":"empty-volume","emptyDir":{}}],"instanceView":{"state":"Pending"},"diagnostics":{"logAnalytics":{"workspaceId":"workspaceId"}}},"identity":{"principalId":"5b9c7825-cea3-438c-9d39-67e7284a4c46","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510","name":"pycontainer26441510","type":"Microsoft.ContainerInstance/containerGroups","location":"westus"}'}
headers:
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/badf1f90-0b6a-4f30-bee0-21083e0f91df?api-version=2018-06-01']
cache-control: [no-cache]
content-length: ['1004']
content-type: [application/json; charset=utf-8]
date: ['Mon, 08 Oct 2018 16:46:22 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-resource-requests-pt1h: ['96']
x-ms-ratelimit-remaining-subscription-resource-requests-pt5m: ['99']
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python/3.6.2 (Windows-10-10.0.17763-SP0) requests/2.18.4 msrest/0.5.4
msrest_azure/0.4.34 azure-mgmt-containerinstance/1.0.0 Azure-SDK-For-Python]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/badf1f90-0b6a-4f30-bee0-21083e0f91df?api-version=2018-06-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510","status":"Succeeded","startTime":"2018-10-08T16:46:22.8846678Z","properties":{"events":[{"count":1,"firstTimestamp":"2018-10-08T16:46:25Z","lastTimestamp":"2018-10-08T16:46:25Z","name":"Pulling","message":"pulling
image \"alpine:latest\"","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:29Z","lastTimestamp":"2018-10-08T16:46:29Z","name":"Pulled","message":"Successfully
pulled image \"alpine:latest\"","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:29Z","lastTimestamp":"2018-10-08T16:46:29Z","name":"Created","message":"Created
container with id 0b19efa0986f5d279fab6c12dde2c658251be7cb4ef7bb693711c43055f6637b","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:30Z","lastTimestamp":"2018-10-08T16:46:30Z","name":"Started","message":"Started
container with id 0b19efa0986f5d279fab6c12dde2c658251be7cb4ef7bb693711c43055f6637b","type":"Normal"}]}}'}
headers:
cache-control: [no-cache]
content-length: ['1100']
content-type: [application/json; charset=utf-8]
date: ['Mon, 08 Oct 2018 16:46:54 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: ['Accept-Encoding,Accept-Encoding']
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.6.2 (Windows-10-10.0.17763-SP0) requests/2.18.4 msrest/0.5.4
msrest_azure/0.4.34 azure-mgmt-containerinstance/1.0.0 Azure-SDK-For-Python]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510?api-version=2018-10-01
response:
body: {string: '{"properties":{"provisioningState":"Succeeded","containers":[{"name":"pycontainer26441510","properties":{"image":"alpine:latest","ports":[],"environmentVariables":[],"instanceView":{"restartCount":0,"currentState":{"state":"Terminated","startTime":"2018-10-08T16:46:30Z","exitCode":0,"finishTime":"2018-10-08T16:46:30Z","detailStatus":"Completed"},"events":[{"count":1,"firstTimestamp":"2018-10-08T16:46:25Z","lastTimestamp":"2018-10-08T16:46:25Z","name":"Pulling","message":"pulling
image \"alpine:latest\"","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:29Z","lastTimestamp":"2018-10-08T16:46:29Z","name":"Pulled","message":"Successfully
pulled image \"alpine:latest\"","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:29Z","lastTimestamp":"2018-10-08T16:46:29Z","name":"Created","message":"Created
container with id 0b19efa0986f5d279fab6c12dde2c658251be7cb4ef7bb693711c43055f6637b","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:30Z","lastTimestamp":"2018-10-08T16:46:30Z","name":"Started","message":"Started
container with id 0b19efa0986f5d279fab6c12dde2c658251be7cb4ef7bb693711c43055f6637b","type":"Normal"}]},"resources":{"requests":{"memoryInGB":1.0,"cpu":1.0}},"volumeMounts":[{"name":"empty-volume","mountPath":"/mnt/mydir"}],"livenessProbe":{"exec":{"command":["cat/tmp/healthy"]},"periodSeconds":5}}}],"restartPolicy":"OnFailure","osType":"Linux","volumes":[{"name":"empty-volume","emptyDir":{}}],"instanceView":{"events":[],"state":"Succeeded"},"diagnostics":{"logAnalytics":{"workspaceId":"workspaceId"}}},"identity":{"principalId":"5b9c7825-cea3-438c-9d39-67e7284a4c46","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510","name":"pycontainer26441510","type":"Microsoft.ContainerInstance/containerGroups","location":"westus"}'}
headers:
cache-control: [no-cache]
content-length: ['2015']
content-type: [application/json; charset=utf-8]
date: ['Mon, 08 Oct 2018 16:46:54 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: ['Accept-Encoding,Accept-Encoding']
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.6.2 (Windows-10-10.0.17763-SP0) requests/2.18.4 msrest/0.5.4
msrest_azure/0.4.34 azure-mgmt-containerinstance/1.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510?api-version=2018-10-01
response:
body: {string: '{"properties":{"provisioningState":"Succeeded","containers":[{"name":"pycontainer26441510","properties":{"image":"alpine:latest","ports":[],"environmentVariables":[],"instanceView":{"restartCount":0,"currentState":{"state":"Terminated","startTime":"2018-10-08T16:46:30Z","exitCode":0,"finishTime":"2018-10-08T16:46:30Z","detailStatus":"Completed"},"events":[{"count":1,"firstTimestamp":"2018-10-08T16:46:25Z","lastTimestamp":"2018-10-08T16:46:25Z","name":"Pulling","message":"pulling
image \"alpine:latest\"","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:29Z","lastTimestamp":"2018-10-08T16:46:29Z","name":"Pulled","message":"Successfully
pulled image \"alpine:latest\"","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:29Z","lastTimestamp":"2018-10-08T16:46:29Z","name":"Created","message":"Created
container with id 0b19efa0986f5d279fab6c12dde2c658251be7cb4ef7bb693711c43055f6637b","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:30Z","lastTimestamp":"2018-10-08T16:46:30Z","name":"Started","message":"Started
container with id 0b19efa0986f5d279fab6c12dde2c658251be7cb4ef7bb693711c43055f6637b","type":"Normal"}]},"resources":{"requests":{"memoryInGB":1.0,"cpu":1.0}},"volumeMounts":[{"name":"empty-volume","mountPath":"/mnt/mydir"}],"livenessProbe":{"exec":{"command":["cat/tmp/healthy"]},"periodSeconds":5}}}],"restartPolicy":"OnFailure","osType":"Linux","volumes":[{"name":"empty-volume","emptyDir":{}}],"instanceView":{"events":[],"state":"Succeeded"},"diagnostics":{"logAnalytics":{"workspaceId":"workspaceId"}}},"identity":{"principalId":"5b9c7825-cea3-438c-9d39-67e7284a4c46","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510","name":"pycontainer26441510","type":"Microsoft.ContainerInstance/containerGroups","location":"westus"}'}
headers:
cache-control: [no-cache]
content-length: ['2015']
content-type: [application/json; charset=utf-8]
date: ['Mon, 08 Oct 2018 16:46:55 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: ['Accept-Encoding,Accept-Encoding']
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.6.2 (Windows-10-10.0.17763-SP0) requests/2.18.4 msrest/0.5.4
msrest_azure/0.4.34 azure-mgmt-containerinstance/1.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-10-01
response:
body: {string: '{"value":[{"properties":{"provisioningState":"Succeeded","containers":[{"name":"pycontainer26441510","properties":{"image":"alpine:latest","ports":[],"environmentVariables":[],"resources":{"requests":{"memoryInGB":1.0,"cpu":1.0}},"volumeMounts":[{"name":"empty-volume","mountPath":"/mnt/mydir"}],"livenessProbe":{"exec":{"command":["cat/tmp/healthy"]},"periodSeconds":5}}}],"restartPolicy":"OnFailure","osType":"Linux","volumes":[{"name":"empty-volume","emptyDir":{}}],"diagnostics":{"logAnalytics":{"workspaceId":"workspaceId"}}},"identity":{"principalId":"5b9c7825-cea3-438c-9d39-67e7284a4c46","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510","name":"pycontainer26441510","type":"Microsoft.ContainerInstance/containerGroups","location":"westus"}]}'}
headers:
cache-control: [no-cache]
content-length: ['983']
content-type: [application/json; charset=utf-8]
date: ['Mon, 08 Oct 2018 16:46:56 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: ['Accept-Encoding,Accept-Encoding']
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"command": "/bin/bash", "terminalSize": {"rows": 24, "cols": 80}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['66']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.6.2 (Windows-10-10.0.17763-SP0) requests/2.18.4 msrest/0.5.4
msrest_azure/0.4.34 azure-mgmt-containerinstance/1.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510/containers/pycontainer26441510/exec?api-version=2018-10-01
response:
body: {string: '{"webSocketUri":"wss://bridge-linux-04.westus.management.azurecontainer.io/exec/caas-15dc6bc1d2404ce9bfb7e9e16ac1e70d/bridge-9658fa886f0ac586?rows=24&cols=80&api-version=2018-02-01-preview","password":"Zv3AhfxiTlsEKCIbm8YrLUlwb1Uco2zXllZOsVpJbTE[[EOM]]"}'}
headers:
cache-control: [no-cache]
content-length: ['254']
content-type: [application/json; charset=utf-8]
date: ['Mon, 08 Oct 2018 16:46:57 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: ['Accept-Encoding,Accept-Encoding']
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python/3.6.2 (Windows-10-10.0.17763-SP0) requests/2.18.4 msrest/0.5.4
msrest_azure/0.4.34 azure-mgmt-containerinstance/1.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510/containers/pycontainer26441510/logs?api-version=2018-10-01
response:
body: {string: '{"content":""}'}
headers:
cache-control: [no-cache]
content-length: ['14']
content-type: [application/json; charset=utf-8]
date: ['Mon, 08 Oct 2018 16:46:58 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: ['Accept-Encoding,Accept-Encoding']
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
User-Agent: [python/3.6.2 (Windows-10-10.0.17763-SP0) requests/2.18.4 msrest/0.5.4
msrest_azure/0.4.34 azure-mgmt-containerinstance/1.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510/restart?api-version=2018-10-01
response:
body: {string: ''}
headers:
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/5dd8ccdd-4f3e-47a9-a3da-05c76ef89bb2?api-version=2018-06-01']
cache-control: [no-cache]
date: ['Mon, 08 Oct 2018 16:46:59 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python/3.6.2 (Windows-10-10.0.17763-SP0) requests/2.18.4 msrest/0.5.4
msrest_azure/0.4.34 azure-mgmt-containerinstance/1.0.0 Azure-SDK-For-Python]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/5dd8ccdd-4f3e-47a9-a3da-05c76ef89bb2?api-version=2018-06-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerinstance_test_container_instance26441510/providers/Microsoft.ContainerInstance/containerGroups/pycontainer26441510","status":"Succeeded","startTime":"2018-10-08T16:46:59.7788433Z","properties":{"events":[{"count":1,"firstTimestamp":"2018-10-08T16:46:25Z","lastTimestamp":"2018-10-08T16:46:25Z","name":"Pulling","message":"pulling
image \"alpine:latest\"","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:29Z","lastTimestamp":"2018-10-08T16:46:29Z","name":"Pulled","message":"Successfully
pulled image \"alpine:latest\"","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:29Z","lastTimestamp":"2018-10-08T16:46:29Z","name":"Created","message":"Created
container with id 0b19efa0986f5d279fab6c12dde2c658251be7cb4ef7bb693711c43055f6637b","type":"Normal"},{"count":1,"firstTimestamp":"2018-10-08T16:46:30Z","lastTimestamp":"2018-10-08T16:46:30Z","name":"Started","message":"Started
container with id 0b19efa0986f5d279fab6c12dde2c658251be7cb4ef7bb693711c43055f6637b","type":"Normal"}]}}'}
headers:
cache-control: [no-cache]
content-length: ['1100']
content-type: [application/json; charset=utf-8]
date: ['Mon, 08 Oct 2018 16:47:30 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: ['Accept-Encoding,Accept-Encoding']
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
version: 1
|