diff --git a/src/SDKs/ContainerInstance/AzSdk.RP.props b/src/SDKs/ContainerInstance/AzSdk.RP.props index c626419144e9..44de165a8501 100644 --- a/src/SDKs/ContainerInstance/AzSdk.RP.props +++ b/src/SDKs/ContainerInstance/AzSdk.RP.props @@ -1,7 +1,7 @@ - ContainerInstance_2018-02-01-preview; + ContainerInstance_2018-04-01; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/ContainerInstance.Tests.csproj b/src/SDKs/ContainerInstance/ContainerInstance.Tests/ContainerInstance.Tests.csproj index ca4bc6cc6ab7..cdad27969755 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/ContainerInstance.Tests.csproj +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/ContainerInstance.Tests.csproj @@ -4,7 +4,7 @@ ContainerInstance.Tests ContainerInstance.Tests Class Library ContainerInstance.Tests - 1.0.2-preview + 1.0.0 diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/Helpers/ContainerInstanceTestUtilities.cs b/src/SDKs/ContainerInstance/ContainerInstance.Tests/Helpers/ContainerInstanceTestUtilities.cs index 6290d44bd6b9..c8e24a3f606d 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/Helpers/ContainerInstanceTestUtilities.cs +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/Helpers/ContainerInstanceTestUtilities.cs @@ -45,7 +45,7 @@ public static ContainerGroup CreateTestContainerGroup(string containerGroupName) name: containerGroupName, image: "alpine", ports: new List() { new ContainerPort(80) }, - command: new List() { "echo", "hello" }, + command: new List() { "/bin/sh", "-c", "while true; do sleep 10; done" }, resources: new ResourceRequirements(requests: new ResourceRequests(memoryInGB: 1.5, cpu: 1.0))) }; diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/Properties/AssemblyInfo.cs b/src/SDKs/ContainerInstance/ContainerInstance.Tests/Properties/AssemblyInfo.cs index 13278190ee99..2140b5e7e079 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/Properties/AssemblyInfo.cs +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/Properties/AssemblyInfo.cs @@ -20,5 +20,5 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("80C5B642-F93C-4E68-9B37-04565D3CF6AB")] -[assembly: AssemblyVersion("1.0.2.0")] -[assembly: AssemblyFileVersion("1.0.2.0")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceCreateTest.json b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceCreateTest.json index 655c6521021a..0827e622284f 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceCreateTest.json +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceCreateTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg5737?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzU3Mzc/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg1336?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzEzMzY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -13,7 +13,7 @@ "28" ], "x-ms-client-request-id": [ - "a66d3a11-f9b0-45e5-a62b-bf19503b0c54" + "48d0bea2-f2de-4fb8-8120-e81618dd62ce" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5737\",\r\n \"name\": \"aci_rg5737\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336\",\r\n \"name\": \"aci_rg1336\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:15:01 GMT" + "Tue, 10 Apr 2018 20:54:54 GMT" ], "Pragma": [ "no-cache" @@ -47,25 +47,28 @@ "1199" ], "x-ms-request-id": [ - "09656e80-5c87-4bfe-a3b6-39d06bc51e3f" + "2cdbb3e0-f866-47fb-9afe-893e23e02774" ], "x-ms-correlation-request-id": [ - "09656e80-5c87-4bfe-a3b6-39d06bc51e3f" + "2cdbb3e0-f866-47fb-9afe-893e23e02774" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191501Z:09656e80-5c87-4bfe-a3b6-39d06bc51e3f" + "WESTUS2:20180410T205455Z:2cdbb3e0-f866-47fb-9afe-893e23e02774" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5737/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2685?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzU3MzcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMjY4NT9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzEzMzYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNDA1OD9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2685\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk2685\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4058\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk4058\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -74,7 +77,7 @@ "761" ], "x-ms-client-request-id": [ - "b2da087d-3dff-4f2d-9107-1e8488ff11ed" + "2da8a90f-2f44-4b8f-82eb-d8741c644e38" ], "accept-language": [ "en-US" @@ -84,10 +87,10 @@ "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2685\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.64.72.186\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk2685\",\r\n \"fqdn\": \"acinetsdk2685.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5737/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2685\",\r\n \"name\": \"acinetsdk2685\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4058\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.82.193\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4058\",\r\n \"fqdn\": \"acinetsdk4058.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058\",\r\n \"name\": \"acinetsdk4058\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "754" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,42 +102,160 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:15:07 GMT" + "Tue, 10 Apr 2018 20:55:05 GMT" ], "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/24d50264-249f-4acd-88a3-381ba1492c10?api-version=2018-02-01-preview" + ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "99" + "97" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "93" + "84" ], "x-ms-request-id": [ - "westus:f019795b-9bc8-4e5c-be3b-94a6f253188a" + "westus:24d50264-249f-4acd-88a3-381ba1492c10" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "0165db84-d2a9-484e-8d1b-7f54667d5667" + "5ba09eea-7c4d-4bc0-b077-75fbf8c85504" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191508Z:0165db84-d2a9-484e-8d1b-7f54667d5667" + "WESTUS2:20180410T205506Z:5ba09eea-7c4d-4bc0-b077-75fbf8c85504" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/24d50264-249f-4acd-88a3-381ba1492c10?api-version=2018-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zLzI0ZDUwMjY0LTI0OWYtNGFjZC04OGEzLTM4MWJhMTQ5MmMxMD9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T20:55:02.1989932Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:11Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:11Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:13Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:13Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id bfeb46a8f7528c5c854a9613b0760d105f5da3b092c77103f127a4049c23da43\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id bfeb46a8f7528c5c854a9613b0760d105f5da3b092c77103f127a4049c23da43\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 20:55:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:36197976-cb0a-48b4-8177-73fec0e0cd12" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "177f39d7-e949-4b54-a457-f43ff84e3f2d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T205536Z:177f39d7-e949-4b54-a457-f43ff84e3f2d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzEzMzYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNDA1OD9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4058\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Terminated\",\r\n \"startTime\": \"2018-04-10T20:55:14Z\",\r\n \"exitCode\": 0,\r\n \"finishTime\": \"2018-04-10T20:55:14Z\",\r\n \"detailStatus\": \"Completed\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:11Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:11Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:13Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:13Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id bfeb46a8f7528c5c854a9613b0760d105f5da3b092c77103f127a4049c23da43\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id bfeb46a8f7528c5c854a9613b0760d105f5da3b092c77103f127a4049c23da43\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.82.193\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4058\",\r\n \"fqdn\": \"acinetsdk4058.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Succeeded\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058\",\r\n \"name\": \"acinetsdk4058\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 20:55:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:465f2aa9-9334-4f8f-8056-4a2d7845d2d4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "a66f9676-9358-41f5-8c47-b327aa7e2536" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T205536Z:a66f9676-9358-41f5-8c47-b327aa7e2536" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 } ], "Names": { "CreateResourceGroup": [ - "aci_rg5737" + "aci_rg1336" ], "ContainerInstanceCreateTest": [ - "acinetsdk2685" + "acinetsdk4058" ] }, "Variables": { diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceGetTest.json b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceGetTest.json index 1d73265042e9..7b7e856ed05e 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceGetTest.json +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceGetTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg292?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzI5Mj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg678?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzY3OD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -13,7 +13,7 @@ "28" ], "x-ms-client-request-id": [ - "69544a11-bcfe-4596-a5a8-dbb3e9359d21" + "127d196d-8437-49e4-9b8c-2209389367ee" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg292\",\r\n \"name\": \"aci_rg292\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678\",\r\n \"name\": \"aci_rg678\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "171" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:17:47 GMT" + "Tue, 10 Apr 2018 20:56:48 GMT" ], "Pragma": [ "no-cache" @@ -47,25 +47,28 @@ "1199" ], "x-ms-request-id": [ - "02de3fef-ddd5-4798-9a13-a5d8da14eab7" + "e0397168-e5c5-4062-b400-f46c1c90a90c" ], "x-ms-correlation-request-id": [ - "02de3fef-ddd5-4798-9a13-a5d8da14eab7" + "e0397168-e5c5-4062-b400-f46c1c90a90c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191748Z:02de3fef-ddd5-4798-9a13-a5d8da14eab7" + "WESTUS2:20180410T205649Z:e0397168-e5c5-4062-b400-f46c1c90a90c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg292/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5373?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzI5Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs1MzczP2FwaS12ZXJzaW9uPTIwMTgtMDItMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzY3OC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs0OTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5373\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk5373\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4952\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk4952\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -74,7 +77,7 @@ "761" ], "x-ms-client-request-id": [ - "1f4557f5-6c21-4f40-a4c2-6e0d1f64748d" + "01494a5d-937d-4a55-8225-32f411a0964a" ], "accept-language": [ "en-US" @@ -84,10 +87,10 @@ "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5373\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.42.130.185\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5373\",\r\n \"fqdn\": \"acinetsdk5373.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg292/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5373\",\r\n \"name\": \"acinetsdk5373\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4952\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.39.46\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4952\",\r\n \"fqdn\": \"acinetsdk4952.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952\",\r\n \"name\": \"acinetsdk4952\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "754" + "752" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,43 +102,161 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:17:51 GMT" + "Tue, 10 Apr 2018 20:56:53 GMT" ], "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/bd84bef5-4280-4430-a37a-e84d00d069c0?api-version=2018-02-01-preview" + ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "98" + "96" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "94" + "85" ], "x-ms-request-id": [ - "westus:2825af8b-c435-4974-8981-0e6ac0263d25" + "westus:bd84bef5-4280-4430-a37a-e84d00d069c0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "647143fc-e17f-40ca-a93a-750108e3771c" + "8da854b2-e35b-4dfb-a966-7be383dc07cf" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191752Z:647143fc-e17f-40ca-a93a-750108e3771c" + "WESTUS2:20180410T205654Z:8da854b2-e35b-4dfb-a966-7be383dc07cf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg292/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5373?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzI5Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs1MzczP2FwaS12ZXJzaW9uPTIwMTgtMDItMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/bd84bef5-4280-4430-a37a-e84d00d069c0?api-version=2018-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zL2JkODRiZWY1LTQyODAtNDQzMC1hMzdhLWU4NGQwMGQwNjljMD9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T20:56:52.917234Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 20:57:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:e8b77cc4-bb02-4e33-aa81-9b470ebfa36c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14916" + ], + "x-ms-correlation-request-id": [ + "09147093-663f-42bf-a995-c7f396941f34" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T205724Z:09147093-663f-42bf-a995-c7f396941f34" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzY3OC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs0OTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4952\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Terminated\",\r\n \"startTime\": \"2018-04-10T20:56:58Z\",\r\n \"exitCode\": 0,\r\n \"finishTime\": \"2018-04-10T20:56:58Z\",\r\n \"detailStatus\": \"Completed\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.39.46\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4952\",\r\n \"fqdn\": \"acinetsdk4952.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Succeeded\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952\",\r\n \"name\": \"acinetsdk4952\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 20:57:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:64ea0f34-4299-4a22-847b-a30cd30c22c4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14915" + ], + "x-ms-correlation-request-id": [ + "21ba7e17-4c72-4374-b25a-56e0e53557b3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T205724Z:21ba7e17-4c72-4374-b25a-56e0e53557b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzY3OC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs0OTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9aef5c69-ef58-41de-8025-4c9671b18a92" + "7dd44d3f-c66d-4630-af83-4fd2c8f10c4a" ], "accept-language": [ "en-US" @@ -145,7 +266,7 @@ "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5373\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.42.130.185\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5373\",\r\n \"fqdn\": \"acinetsdk5373.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg292/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5373\",\r\n \"name\": \"acinetsdk5373\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4952\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Terminated\",\r\n \"startTime\": \"2018-04-10T20:56:58Z\",\r\n \"exitCode\": 0,\r\n \"finishTime\": \"2018-04-10T20:56:58Z\",\r\n \"detailStatus\": \"Completed\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.39.46\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4952\",\r\n \"fqdn\": \"acinetsdk4952.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Succeeded\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952\",\r\n \"name\": \"acinetsdk4952\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -157,7 +278,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:17:52 GMT" + "Tue, 10 Apr 2018 20:57:23 GMT" ], "Pragma": [ "no-cache" @@ -170,19 +291,22 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "westus:0f733a15-e254-4337-99cf-6ad47c762c5b" + "westus:79d88716-18ac-4a18-a9ae-90d820381ac9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14914" ], "x-ms-correlation-request-id": [ - "52626a11-edc3-4151-b49c-abe6154adde7" + "12496b57-3b75-4d32-97de-2fa964702f76" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191752Z:52626a11-edc3-4151-b49c-abe6154adde7" + "WESTUS2:20180410T205724Z:12496b57-3b75-4d32-97de-2fa964702f76" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -190,10 +314,10 @@ ], "Names": { "CreateResourceGroup": [ - "aci_rg292" + "aci_rg678" ], "ContainerInstanceGetTest": [ - "acinetsdk5373" + "acinetsdk4952" ] }, "Variables": { diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListByResourceGroupTest.json b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListByResourceGroupTest.json index 5700ea7a5b05..d6052a676f21 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListByResourceGroupTest.json +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListByResourceGroupTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg3416?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzM0MTY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg9259?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzkyNTk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -13,7 +13,7 @@ "28" ], "x-ms-client-request-id": [ - "8ae06310-31d9-4def-8aa0-baaebbab8e61" + "0d99b448-a8e1-40e9-804f-55a4af3fa38e" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3416\",\r\n \"name\": \"aci_rg3416\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259\",\r\n \"name\": \"aci_rg9259\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -38,43 +38,46 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:18:00 GMT" + "Tue, 10 Apr 2018 21:24:08 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1199" ], "x-ms-request-id": [ - "d2f30e4a-02e2-4246-b5d1-25767cdb58de" + "030e6705-aaab-493a-8a0d-d1fb1b80f228" ], "x-ms-correlation-request-id": [ - "d2f30e4a-02e2-4246-b5d1-25767cdb58de" + "030e6705-aaab-493a-8a0d-d1fb1b80f228" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191801Z:d2f30e4a-02e2-4246-b5d1-25767cdb58de" + "WESTUS2:20180410T212409Z:030e6705-aaab-493a-8a0d-d1fb1b80f228" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3416/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5713?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzM0MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTcxMz9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzkyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMzgwNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5713\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk5713\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3807\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk3807\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "761" + "807" ], "x-ms-client-request-id": [ - "bef1d330-a9bf-46c2-a60c-cb784e1acf95" + "38a24dac-3e56-4d5f-a8f2-f3aa30cb167e" ], "accept-language": [ "en-US" @@ -84,10 +87,10 @@ "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5713\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.42.21.131\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5713\",\r\n \"fqdn\": \"acinetsdk5713.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3416/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5713\",\r\n \"name\": \"acinetsdk5713\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3807\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.229.99\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk3807\",\r\n \"fqdn\": \"acinetsdk3807.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807\",\r\n \"name\": \"acinetsdk3807\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "754" + "785" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,38 +102,156 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:18:06 GMT" + "Tue, 10 Apr 2018 21:24:16 GMT" ], "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/9989d26f-71f4-40d8-bd32-a85847fffe99?api-version=2018-02-01-preview" + ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "97" + "96" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "93" + "75" ], "x-ms-request-id": [ - "westus:393466d0-73bd-41a6-bcb7-5c8894d37487" + "westus:9989d26f-71f4-40d8-bd32-a85847fffe99" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1198" ], "x-ms-correlation-request-id": [ - "fb3d0cf2-0d68-4c2c-9e14-c2fc94b02cd9" + "c85e9d7b-49ac-4406-8962-1dc8ea0ea84c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191807Z:fb3d0cf2-0d68-4c2c-9e14-c2fc94b02cd9" + "WESTUS2:20180410T212417Z:c85e9d7b-49ac-4406-8962-1dc8ea0ea84c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg4076?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzQwNzY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/9989d26f-71f4-40d8-bd32-a85847fffe99?api-version=2018-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zLzk5ODlkMjZmLTcxZjQtNDBkOC1iZDMyLWE4NTg0N2ZmZmU5OT9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T21:24:15.2975855Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:24Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:24Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 4f6653dc697c7d04048c99bf10a7fa2b0e96da11e14dce73fbb8afd3dcf68d68\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:28Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:28Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 4f6653dc697c7d04048c99bf10a7fa2b0e96da11e14dce73fbb8afd3dcf68d68\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 21:24:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:25f46985-dd73-460d-9979-d735d0806e8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "a18a3daa-1193-447a-894b-90eb2891d60c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T212447Z:a18a3daa-1193-447a-894b-90eb2891d60c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzkyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMzgwNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3807\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:24:28Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:24Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:24Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 4f6653dc697c7d04048c99bf10a7fa2b0e96da11e14dce73fbb8afd3dcf68d68\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:28Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:28Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 4f6653dc697c7d04048c99bf10a7fa2b0e96da11e14dce73fbb8afd3dcf68d68\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.229.99\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk3807\",\r\n \"fqdn\": \"acinetsdk3807.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807\",\r\n \"name\": \"acinetsdk3807\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 21:24:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:a255aa8d-0c69-48c6-9f4f-ba3f0f671e7c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "793219f4-2d90-41e0-9870-db8c289acdef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T212448Z:793219f4-2d90-41e0-9870-db8c289acdef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg2331?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzIzMzE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -141,7 +262,7 @@ "28" ], "x-ms-client-request-id": [ - "4623cc36-4c1d-4618-afc6-6ba904c95bd2" + "8d55a4c7-9355-47ef-81ce-74d9b8fba8ac" ], "accept-language": [ "en-US" @@ -151,7 +272,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg4076\",\r\n \"name\": \"aci_rg4076\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331\",\r\n \"name\": \"aci_rg2331\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -166,43 +287,46 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:18:07 GMT" + "Tue, 10 Apr 2018 21:24:48 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1197" ], "x-ms-request-id": [ - "9918e14c-1a42-4c67-aa08-49c778f1ba05" + "d6ed9bb3-167b-4d72-be5f-b68c5409d7b9" ], "x-ms-correlation-request-id": [ - "9918e14c-1a42-4c67-aa08-49c778f1ba05" + "d6ed9bb3-167b-4d72-be5f-b68c5409d7b9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191808Z:9918e14c-1a42-4c67-aa08-49c778f1ba05" + "WESTUS2:20180410T212448Z:d6ed9bb3-167b-4d72-be5f-b68c5409d7b9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg4076/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk7920?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzQwNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNzkyMD9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzIzMzEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTQxOT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk7920\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk7920\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5419\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk5419\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "761" + "807" ], "x-ms-client-request-id": [ - "f39cf684-981a-4988-9483-43436e8940c9" + "941e98dd-a9e0-45ea-8839-f6cd4a5fac65" ], "accept-language": [ "en-US" @@ -212,10 +336,10 @@ "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk7920\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.209.46.215\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk7920\",\r\n \"fqdn\": \"acinetsdk7920.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg4076/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk7920\",\r\n \"name\": \"acinetsdk7920\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5419\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.65.204\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5419\",\r\n \"fqdn\": \"acinetsdk5419.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419\",\r\n \"name\": \"acinetsdk5419\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "755" + "786" ], "Content-Type": [ "application/json; charset=utf-8" @@ -227,43 +351,161 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:18:11 GMT" + "Tue, 10 Apr 2018 21:24:52 GMT" ], "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/fc7f18bb-fe89-4604-9130-5cb747ae9d54?api-version=2018-02-01-preview" + ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "96" + "95" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "92" + "74" ], "x-ms-request-id": [ - "westus:d40b38cc-a3b3-4281-bd9b-ee6302c9d7b5" + "westus:fc7f18bb-fe89-4604-9130-5cb747ae9d54" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1196" ], "x-ms-correlation-request-id": [ - "cda85c36-7c20-4b33-898a-bb0aa5e829cc" + "4fcb3c8a-df6e-455a-b802-5a42c17b8e37" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191812Z:cda85c36-7c20-4b33-898a-bb0aa5e829cc" + "WESTUS2:20180410T212453Z:4fcb3c8a-df6e-455a-b802-5a42c17b8e37" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3416/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzM0MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHM/YXBpLXZlcnNpb249MjAxOC0wMi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/fc7f18bb-fe89-4604-9130-5cb747ae9d54?api-version=2018-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zL2ZjN2YxOGJiLWZlODktNDYwNC05MTMwLTVjYjc0N2FlOWQ1ND9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T21:24:52.3087285Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 85c3dab1b3aedf53e6fbe01aef666f367790b25ea2dcfe66f57c705673be4128\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 85c3dab1b3aedf53e6fbe01aef666f367790b25ea2dcfe66f57c705673be4128\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 21:25:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:999a411f-8fbd-442c-9988-aa516469d909" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "6a0a8a83-ab6e-4f16-8eac-d293a2f95dbd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T212523Z:6a0a8a83-ab6e-4f16-8eac-d293a2f95dbd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzIzMzEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTQxOT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5419\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:24:57Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 85c3dab1b3aedf53e6fbe01aef666f367790b25ea2dcfe66f57c705673be4128\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 85c3dab1b3aedf53e6fbe01aef666f367790b25ea2dcfe66f57c705673be4128\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.65.204\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5419\",\r\n \"fqdn\": \"acinetsdk5419.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419\",\r\n \"name\": \"acinetsdk5419\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 21:25:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:2db89a8f-87e4-4342-9b91-9751a170153a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "03774dbf-b506-4de2-9a48-3e19ee06a4d5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T212523Z:03774dbf-b506-4de2-9a48-3e19ee06a4d5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzkyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHM/YXBpLXZlcnNpb249MjAxOC0wNC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e31d40b1-b4d9-4da2-b42a-f435f734bcab" + "b7e165ec-c780-4c01-b622-fb0bdf0b641f" ], "accept-language": [ "en-US" @@ -273,7 +515,7 @@ "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5713\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.42.21.131\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5713\",\r\n \"fqdn\": \"acinetsdk5713.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3416/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5713\",\r\n \"name\": \"acinetsdk5713\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3807\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.229.99\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk3807\",\r\n \"fqdn\": \"acinetsdk3807.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807\",\r\n \"name\": \"acinetsdk3807\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +527,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:18:11 GMT" + "Tue, 10 Apr 2018 21:25:23 GMT" ], "Pragma": [ "no-cache" @@ -298,19 +540,22 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "westus:05d3272c-bf4b-440b-ad54-7a37c94e4042" + "westus:1fd5693d-7a8a-4993-81d5-bd710611f4e9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14981" ], "x-ms-correlation-request-id": [ - "f694ec96-3110-43dd-96bd-b7a239a69d95" + "5bfc7005-0a04-4a8f-9865-48ad1e7e58d3" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191812Z:f694ec96-3110-43dd-96bd-b7a239a69d95" + "WESTUS2:20180410T212524Z:5bfc7005-0a04-4a8f-9865-48ad1e7e58d3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -318,12 +563,12 @@ ], "Names": { "CreateResourceGroup": [ - "aci_rg3416", - "aci_rg4076" + "aci_rg9259", + "aci_rg2331" ], "ContainerInstanceListByResourceGroupTest": [ - "acinetsdk5713", - "acinetsdk7920" + "acinetsdk3807", + "acinetsdk5419" ] }, "Variables": { diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListTest.json b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListTest.json index 523da5cd7b7b..dd76ea64fb2a 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListTest.json +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg1364?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzEzNjQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg3112?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzMxMTI/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -13,7 +13,7 @@ "28" ], "x-ms-client-request-id": [ - "5951f983-df15-46ac-80f2-a6cbd9beefe3" + "3f13f742-9d13-4f52-b0e4-63e1bf1fc86a" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1364\",\r\n \"name\": \"aci_rg1364\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112\",\r\n \"name\": \"aci_rg3112\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:17:26 GMT" + "Tue, 10 Apr 2018 21:22:35 GMT" ], "Pragma": [ "no-cache" @@ -47,34 +47,37 @@ "1199" ], "x-ms-request-id": [ - "f2b126d6-5831-4008-beb4-fe329d2fd293" + "62a3bbe0-1a01-4cf8-9f70-1e5f93ba69a3" ], "x-ms-correlation-request-id": [ - "f2b126d6-5831-4008-beb4-fe329d2fd293" + "62a3bbe0-1a01-4cf8-9f70-1e5f93ba69a3" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191727Z:f2b126d6-5831-4008-beb4-fe329d2fd293" + "WESTUS2:20180410T212235Z:62a3bbe0-1a01-4cf8-9f70-1e5f93ba69a3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1364/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk6626?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzEzNjQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNjYyNj9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzMxMTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNDgyOT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk6626\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk6626\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4829\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk4829\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "761" + "807" ], "x-ms-client-request-id": [ - "7e2203d4-e394-4026-a8f2-976587bac6de" + "6fb0ab82-a12d-44fc-9fdf-46016cd4da08" ], "accept-language": [ "en-US" @@ -84,10 +87,10 @@ "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk6626\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"138.91.233.138\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk6626\",\r\n \"fqdn\": \"acinetsdk6626.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1364/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk6626\",\r\n \"name\": \"acinetsdk6626\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4829\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:22:47Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.36.201\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4829\",\r\n \"fqdn\": \"acinetsdk4829.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829\",\r\n \"name\": \"acinetsdk4829\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "755" + "1705" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,38 +102,156 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:17:31 GMT" + "Tue, 10 Apr 2018 21:22:48 GMT" ], "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/3ee1695c-407b-48b6-a01a-4e534992f137?api-version=2018-02-01-preview" + ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "98" + "97" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "92" + "77" ], "x-ms-request-id": [ - "westus:9f466a1f-fc6a-458b-8faf-7a0865129b95" + "westus:3ee1695c-407b-48b6-a01a-4e534992f137" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "ff891a58-6007-446b-b260-192ba2460aa7" + "7124e449-8638-4f24-9d33-4eb1c23f9465" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191731Z:ff891a58-6007-446b-b260-192ba2460aa7" + "WESTUS2:20180410T212248Z:7124e449-8638-4f24-9d33-4eb1c23f9465" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg8265?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzgyNjU/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/3ee1695c-407b-48b6-a01a-4e534992f137?api-version=2018-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zLzNlZTE2OTVjLTQwN2ItNDhiNi1hMDFhLTRlNTM0OTkyZjEzNz9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T21:22:42.896718Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 21:23:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:4a46389a-6ccc-445f-a65b-12567d28f4b6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "0d7ec217-3ed0-459b-aa57-92d42b75a82a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T212318Z:0d7ec217-3ed0-459b-aa57-92d42b75a82a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzMxMTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNDgyOT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4829\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:22:47Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.36.201\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4829\",\r\n \"fqdn\": \"acinetsdk4829.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829\",\r\n \"name\": \"acinetsdk4829\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 21:23:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:a390505b-afbb-4e70-aabc-6cb703c03d8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "b21b7340-0034-4a20-974c-c2cc16189e39" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T212318Z:b21b7340-0034-4a20-974c-c2cc16189e39" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg5829?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzU4Mjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -141,7 +262,7 @@ "28" ], "x-ms-client-request-id": [ - "a5633b68-6e2c-4f17-820e-43da72a7fca8" + "bf57572b-5899-4e98-9069-18dd9cd2a578" ], "accept-language": [ "en-US" @@ -151,7 +272,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8265\",\r\n \"name\": \"aci_rg8265\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829\",\r\n \"name\": \"aci_rg5829\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -166,7 +287,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:17:31 GMT" + "Tue, 10 Apr 2018 21:23:18 GMT" ], "Pragma": [ "no-cache" @@ -175,34 +296,37 @@ "1197" ], "x-ms-request-id": [ - "50c2ebc1-b1c9-4550-84ae-850b68b5a7f6" + "af8687d6-2d90-45fd-bd8b-b0627a8b252c" ], "x-ms-correlation-request-id": [ - "50c2ebc1-b1c9-4550-84ae-850b68b5a7f6" + "af8687d6-2d90-45fd-bd8b-b0627a8b252c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191732Z:50c2ebc1-b1c9-4550-84ae-850b68b5a7f6" + "WESTUS2:20180410T212319Z:af8687d6-2d90-45fd-bd8b-b0627a8b252c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8265/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2820?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzgyNjUvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMjgyMD9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzU4MjkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrOTg3MT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2820\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk2820\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk9871\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk9871\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "761" + "807" ], "x-ms-client-request-id": [ - "4a8ee125-6381-43d4-9931-b95c4ec56642" + "5e15e6ea-14fb-415f-bdb8-e1cf6ddf77cc" ], "accept-language": [ "en-US" @@ -212,10 +336,10 @@ "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2820\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.118.248.50\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk2820\",\r\n \"fqdn\": \"acinetsdk2820.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8265/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2820\",\r\n \"name\": \"acinetsdk2820\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk9871\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.32.37\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk9871\",\r\n \"fqdn\": \"acinetsdk9871.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871\",\r\n \"name\": \"acinetsdk9871\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "754" + "784" ], "Content-Type": [ "application/json; charset=utf-8" @@ -227,43 +351,161 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:17:34 GMT" + "Tue, 10 Apr 2018 21:23:28 GMT" ], "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/eaae4f6e-8d5d-4af6-a78d-8b7c5f204b29?api-version=2018-02-01-preview" + ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "97" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "91" + "76" ], "x-ms-request-id": [ - "westus:43ed7903-af1f-4bf5-b654-dca0a36e5a58" + "westus:eaae4f6e-8d5d-4af6-a78d-8b7c5f204b29" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "f4d730f3-38cb-4047-b955-bf601ce4c9b0" + "cdfbcde9-ec45-40c0-a39b-6602aa347646" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191735Z:f4d730f3-38cb-4047-b955-bf601ce4c9b0" + "WESTUS2:20180410T212328Z:cdfbcde9-ec45-40c0-a39b-6602aa347646" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvY29udGFpbmVyR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTgtMDItMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/eaae4f6e-8d5d-4af6-a78d-8b7c5f204b29?api-version=2018-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zL2VhYWU0ZjZlLThkNWQtNGFmNi1hNzhkLThiN2M1ZjIwNGIyOT9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T21:23:25.0412796Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:33Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:33Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:35Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:35Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id bcd18804bd44411b3060c5fc30608b09d12f20934adce904494993b67b34b343\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id bcd18804bd44411b3060c5fc30608b09d12f20934adce904494993b67b34b343\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 21:23:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:4cb947b4-a3f3-4325-ba84-184b6d88784e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "918a3869-1e2b-4f54-a8aa-d1ce856f6460" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T212358Z:918a3869-1e2b-4f54-a8aa-d1ce856f6460" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzU4MjkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrOTg3MT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk9871\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:23:36Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:33Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:33Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:35Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:35Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id bcd18804bd44411b3060c5fc30608b09d12f20934adce904494993b67b34b343\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id bcd18804bd44411b3060c5fc30608b09d12f20934adce904494993b67b34b343\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.32.37\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk9871\",\r\n \"fqdn\": \"acinetsdk9871.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871\",\r\n \"name\": \"acinetsdk9871\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Apr 2018 21:23:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:751dc1a9-2d1a-4bbf-ad9e-a8286c4bdb12" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "514bc76e-f6e2-41ae-8bde-3f5d05e8822d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180410T212359Z:514bc76e-f6e2-41ae-8bde-3f5d05e8822d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvY29udGFpbmVyR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3ac01281-f8dc-4068-a9ab-ae056b9d8df3" + "a8e3a7d0-9ffa-4622-b2cd-999146637488" ], "accept-language": [ "en-US" @@ -273,7 +515,7 @@ "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk6626\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"138.91.233.138\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk6626\",\r\n \"fqdn\": \"acinetsdk6626.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1364/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk6626\",\r\n \"name\": \"acinetsdk6626\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2820\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.118.248.50\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk2820\",\r\n \"fqdn\": \"acinetsdk2820.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8265/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2820\",\r\n \"name\": \"acinetsdk2820\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"snat\",\r\n \"properties\": {\r\n \"image\": \"microsoft/powershell:nanoserver\",\r\n \"command\": [\r\n \"powershell\",\r\n \"-c\",\r\n \"do { Write-Host waiting...; sleep 3 } until(Test-NetConnection www.google.com -Port 443 | ? { $_.TcpTestSucceeded }); Write-Host NET\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 3.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/c-series-ci-win-snat/providers/Microsoft.ContainerInstance/containerGroups/snat\",\r\n \"name\": \"snat\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"cloudcondfwestcentralus.azurecr.io/nginx:alpine\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n },\r\n \"limits\": {}\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"mountPath\": \"/cache\"\r\n },\r\n {\r\n \"name\": \"default-token-brstn\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [\r\n {\r\n \"server\": \"cloudcondfwestcentralus.azurecr.io\",\r\n \"username\": \"cloudcondfwestcentralus\"\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"40.112.211.19\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"emptyDir\": {}\r\n },\r\n {\r\n \"name\": \"default-token-brstn\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbieaks2/providers/Microsoft.ContainerInstance/containerGroups/default-private-nginx\",\r\n \"name\": \"default-private-nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-01-26 02:14:12 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-aaaaaa-linux\",\r\n \"PodName\": \"private-nginx\",\r\n \"UID\": \"99a68513-023e-11e8-8c6f-0a58ac1f0b92\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"xizha2portsnew\",\r\n \"properties\": {\r\n \"image\": \"xizhabox/xizhanginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n },\r\n {\r\n \"port\": 8000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 8000\r\n }\r\n ],\r\n \"ip\": \"104.40.88.96\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaaci\",\r\n \"fqdn\": \"xizhaaci.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizha2portsnew\",\r\n \"name\": \"xizha2portsnew\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"webserver\",\r\n \"properties\": {\r\n \"image\": \"nginx:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.64.145.31\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"myacinginx\",\r\n \"fqdn\": \"myacinginx.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/yangltest/providers/Microsoft.ContainerInstance/containerGroups/yangltest\",\r\n \"name\": \"yangltest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"command\": [],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.186.87.66\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-connector/providers/Microsoft.ContainerInstance/containerGroups/nginx\",\r\n \"name\": \"nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"orchestrator\": \"kubernetes\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"nginx:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.168.21.246\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbietestrg/providers/Microsoft.ContainerInstance/containerGroups/robbietest_eastus1\",\r\n \"name\": \"robbietest_eastus1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-test/providers/Microsoft.ContainerInstance/containerGroups/nginx\",\r\n \"name\": \"nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx1\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-test/providers/Microsoft.ContainerInstance/containerGroups/nginx1\",\r\n \"name\": \"nginx1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4829\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.36.201\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4829\",\r\n \"fqdn\": \"acinetsdk4829.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829\",\r\n \"name\": \"acinetsdk4829\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk9871\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.32.37\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk9871\",\r\n \"fqdn\": \"acinetsdk9871.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871\",\r\n \"name\": \"acinetsdk9871\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"mario\",\r\n \"properties\": {\r\n \"image\": \"pengbai/docker-supermario\",\r\n \"ports\": [\r\n {\r\n \"port\": 8080\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 8080\r\n }\r\n ],\r\n \"ip\": \"13.91.134.207\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/mario-mar1\",\r\n \"name\": \"mario-mar1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"spawner\",\r\n \"properties\": {\r\n \"image\": \"pskreter/spawner:prod\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/spawner\",\r\n \"name\": \"spawner\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"tingting-8qv6olf\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"asdfas\"\r\n },\r\n {\r\n \"name\": \"DATABASE_URI\",\r\n \"value\": \"mongodb://aciherodemo:6k6pVtPfOSjMAQa9kapRkgxUW2WzC4Cu7418WIhjt6U68XSl7AirrI6j149f4cyo6KjzMo7tXGoa9ED4blQPIw==@aciherodemo.documents.azure.com:10255/?replicaSet=globaldb\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"tingting-8qv6olf\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 3.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.44.46\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/tingting-8qv6olf\",\r\n \"name\": \"tingting-8qv6olf\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"tony-7z18rxh\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"sasdfasdf\"\r\n },\r\n {\r\n \"name\": \"DATABASE_URI\",\r\n \"value\": \"mongodb://aciherodemo:6k6pVtPfOSjMAQa9kapRkgxUW2WzC4Cu7418WIhjt6U68XSl7AirrI6j149f4cyo6KjzMo7tXGoa9ED4blQPIw==@aciherodemo.documents.azure.com:10255/?replicaSet=globaldb\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"tony-7z18rxh\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 3.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.223.157\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/tony-7z18rxh\",\r\n \"name\": \"tony-7z18rxh\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"web-server\",\r\n \"properties\": {\r\n \"image\": \"pskreter/azure-friday-server:prod\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.140.69\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"azure-fridays-aci\",\r\n \"fqdn\": \"azure-fridays-aci.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/web-server\",\r\n \"name\": \"web-server\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"snat\",\r\n \"properties\": {\r\n \"image\": \"microsoft/powershell:nanoserver\",\r\n \"command\": [\r\n \"powershell\",\r\n \"-c\",\r\n \"do { Write-Host waiting...; sleep 3 } until(Test-NetConnection www.google.com -Port 443 | ? { $_.TcpTestSucceeded }); Write-Host NET\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 3.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/c-series-ci-win-snat/providers/Microsoft.ContainerInstance/containerGroups/snat\",\r\n \"name\": \"snat\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitest1\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.178.87\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitest1\",\r\n \"fqdn\": \"acitest1.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/acitest1\",\r\n \"name\": \"acitest1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"k1\": \"v1\",\r\n \"k2\": \"v2\",\r\n \"trafficGroup\": \"aci-test\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitest2\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.92.154\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitest2\",\r\n \"fqdn\": \"acitest2.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/acitest2\",\r\n \"name\": \"acitest2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitest3\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.88.183.209\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitest3\",\r\n \"fqdn\": \"acitest3.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/acitest3\",\r\n \"name\": \"acitest3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitest4\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.225.150\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitest4\",\r\n \"fqdn\": \"acitest4.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/acitest4\",\r\n \"name\": \"acitest4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"trafficGroup\": \"aci-test\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"azusage\",\r\n \"properties\": {\r\n \"image\": \"yangl/azure-usage:alpine\",\r\n \"command\": [\r\n \"dotnet\",\r\n \"azusage.dll\",\r\n \"summary\",\r\n \"--output\",\r\n \"table\",\r\n \"--access-token\",\r\n \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkZTaW11RnJGTm9DMHNKWEdtdjEzbk5aY2VEYyIsImtpZCI6IkZTaW11RnJGTm9DMHNKWEdtdjEzbk5aY2VEYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNTIyMTkwNzUwLCJuYmYiOjE1MjIxOTA3NTAsImV4cCI6MTUyMjE5NDY1MCwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzLzEzNWE5YmJjLWFkNjAtNDUyYy04ZmZlLTUxOWFhODYyZTg3OS9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiWTJOZ1lEam1PUDNHTmhtRnMvbWYvdmxzeXZtaHlmUEt5dHpLMm1adGJHWDUvRzlIVzV3QSIsImFtciI6WyJyc2EiLCJtZmEiXSwiYXBwaWQiOiJiNjc3YzI5MC1jZjRiLTRhOGUtYTYwZS05MWJhNjUwYTRhYmUiLCJhcHBpZGFjciI6IjIiLCJkZXZpY2VpZCI6IjRiZGNhZmQ2LTZjOTYtNDdhOC1hYzVhLTYxNDYxZGE2NDNlZSIsImVfZXhwIjoyNjI4MDAsImZhbWlseV9uYW1lIjoiTGl1IiwiZ2l2ZW5fbmFtZSI6IkFuZGVycyIsImlwYWRkciI6IjEzMS4xMDcuMTc0LjI2IiwibmFtZSI6IkFuZGVycyBMaXUiLCJvaWQiOiIxMzVhOWJiYy1hZDYwLTQ1MmMtOGZmZS01MTlhYTg2MmU4NzkiLCJvbnByZW1fc2lkIjoiUy0xLTUtMjEtMjEyNzUyMTE4NC0xNjA0MDEyOTIwLTE4ODc5Mjc1MjctODU0MzIwNCIsInB1aWQiOiIxMDAzN0ZGRTgwMUFDOEMxIiwic2NwIjoidXNlcl9pbXBlcnNvbmF0aW9uIiwic3ViIjoiMlhyOGlZc0lBSG9aaTBxeUhMd09IY1h3X1pNQmRWUmVFNDdweGNmSXR0TSIsInRpZCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsInVuaXF1ZV9uYW1lIjoieWFuZ2xAbWljcm9zb2Z0LmNvbSIsInVwbiI6InlhbmdsQG1pY3Jvc29mdC5jb20iLCJ1dGkiOiJiNmdrZlB0NEhVaXl3M2hEU1Y0RUFBIiwidmVyIjoiMS4wIn0.sb16LySAboXmTeXrfAQpRlYyuq6H83ygpxvZRRIodx8yHK_Rbb0_qyuVvb_f3RQYlKUw_d3UZDAfSpvukor38jfW5KgQCn2ZSJnOwTxZkkMwK-Oi-fLD9XduHNLIYH_xPwa0F6no1PjtZqnXK1Vd3md0cDf6bMsUilPuBt9j9_5G3gktqd0tY3ukEydBaAR2cn8S-MnFaHniM7ChBodM2ELsgjEAJWMN4g_BIwyEPYG82AKo9NIA0q85lgSpzsjIuISwC21m_BMqN_4hnEC9T_qXk7zQcAzbzVnCvqq2713ekAdcCg1E9CtzykqJy6uAJ7f2DFyn3dXs81Y9J1ln2A\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/azusage\",\r\n \"name\": \"azusage\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"azusage-cs\",\r\n \"properties\": {\r\n \"image\": \"yangl/azure-usage:alpine\",\r\n \"command\": [\r\n \"dotnet\",\r\n \"azusage.dll\",\r\n \"summary\",\r\n \"--output\",\r\n \"table\",\r\n \"--access-token\",\r\n \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkZTaW11RnJGTm9DMHNKWEdtdjEzbk5aY2VEYyIsImtpZCI6IkZTaW11RnJGTm9DMHNKWEdtdjEzbk5aY2VEYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNTIyMTkwNzUwLCJuYmYiOjE1MjIxOTA3NTAsImV4cCI6MTUyMjE5NDY1MCwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzLzEzNWE5YmJjLWFkNjAtNDUyYy04ZmZlLTUxOWFhODYyZTg3OS9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiWTJOZ1lEam1PUDNHTmhtRnMvbWYvdmxzeXZtaHlmUEt5dHpLMm1adGJHWDUvRzlIVzV3QSIsImFtciI6WyJyc2EiLCJtZmEiXSwiYXBwaWQiOiJiNjc3YzI5MC1jZjRiLTRhOGUtYTYwZS05MWJhNjUwYTRhYmUiLCJhcHBpZGFjciI6IjIiLCJkZXZpY2VpZCI6IjRiZGNhZmQ2LTZjOTYtNDdhOC1hYzVhLTYxNDYxZGE2NDNlZSIsImVfZXhwIjoyNjI4MDAsImZhbWlseV9uYW1lIjoiTGl1IiwiZ2l2ZW5fbmFtZSI6IkFuZGVycyIsImlwYWRkciI6IjEzMS4xMDcuMTc0LjI2IiwibmFtZSI6IkFuZGVycyBMaXUiLCJvaWQiOiIxMzVhOWJiYy1hZDYwLTQ1MmMtOGZmZS01MTlhYTg2MmU4NzkiLCJvbnByZW1fc2lkIjoiUy0xLTUtMjEtMjEyNzUyMTE4NC0xNjA0MDEyOTIwLTE4ODc5Mjc1MjctODU0MzIwNCIsInB1aWQiOiIxMDAzN0ZGRTgwMUFDOEMxIiwic2NwIjoidXNlcl9pbXBlcnNvbmF0aW9uIiwic3ViIjoiMlhyOGlZc0lBSG9aaTBxeUhMd09IY1h3X1pNQmRWUmVFNDdweGNmSXR0TSIsInRpZCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsInVuaXF1ZV9uYW1lIjoieWFuZ2xAbWljcm9zb2Z0LmNvbSIsInVwbiI6InlhbmdsQG1pY3Jvc29mdC5jb20iLCJ1dGkiOiJiNmdrZlB0NEhVaXl3M2hEU1Y0RUFBIiwidmVyIjoiMS4wIn0.sb16LySAboXmTeXrfAQpRlYyuq6H83ygpxvZRRIodx8yHK_Rbb0_qyuVvb_f3RQYlKUw_d3UZDAfSpvukor38jfW5KgQCn2ZSJnOwTxZkkMwK-Oi-fLD9XduHNLIYH_xPwa0F6no1PjtZqnXK1Vd3md0cDf6bMsUilPuBt9j9_5G3gktqd0tY3ukEydBaAR2cn8S-MnFaHniM7ChBodM2ELsgjEAJWMN4g_BIwyEPYG82AKo9NIA0q85lgSpzsjIuISwC21m_BMqN_4hnEC9T_qXk7zQcAzbzVnCvqq2713ekAdcCg1E9CtzykqJy6uAJ7f2DFyn3dXs81Y9J1ln2A\",\r\n \"-p\",\r\n \"ACC.*\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/azusage-cs\",\r\n \"name\": \"azusage-cs\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"trypython\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"command\": [\r\n \"python\",\r\n \"-c\",\r\n \"exec(\\\"print 'xizha'\\\")\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/harryh2\",\r\n \"name\": \"harryh2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"web-serverul5xox7zouziu\",\r\n \"properties\": {\r\n \"image\": \"hubertsui/web-server\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AZURE_SUBSCRIPTION_ID\",\r\n \"value\": \"ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78\"\r\n },\r\n {\r\n \"name\": \"AZURE_CLIENT_ID\",\r\n \"value\": \"c29a223b-bf6b-4cb7-ad9e-d7ade8b0f92e\"\r\n },\r\n {\r\n \"name\": \"AZURE_CLIENT_SECRET\",\r\n \"value\": \"50b82d88-a13d-4edd-bc53-8d68960bde93\"\r\n },\r\n {\r\n \"name\": \"AZURE_TENANT_ID\",\r\n \"value\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n {\r\n \"name\": \"AZURE_RESOURCE_GROUP\",\r\n \"value\": \"eventdrivenaci\"\r\n },\r\n {\r\n \"name\": \"COSMOS_CONNECTION_STRING\",\r\n \"value\": \"mongodb://cosmosdbul5xox7zouziu:UK1D9XbyYywQah11AiL4FnuGUfS8TQYbqai1VPvf6FlUzKBUQihYyDT0L8j1VlI6czn85t8JOErYqSC7snyQeA==@cosmosdbul5xox7zouziu.documents.azure.com:10255/?replicaSet=globaldb\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_NAMESPACE\",\r\n \"value\": \"servicebusul5xox7zouziu\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_SASKEY_NAME\",\r\n \"value\": \"RootManageSharedAccessKey\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_SASKEY_VALUE\",\r\n \"value\": \"USjvFAfOKliEjgGulxRqXLgGPuO1pKwa9X9QrOo0m9U=\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_CREATE_QUEUE\",\r\n \"value\": \"createqueue\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_DELETE_QUEUE\",\r\n \"value\": \"deletequeue\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.33.233\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"web-serverul5xox7zouziu\",\r\n \"fqdn\": \"web-serverul5xox7zouziu.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/eventdrivenaci/providers/Microsoft.ContainerInstance/containerGroups/web-serverul5xox7zouziu\",\r\n \"name\": \"web-serverul5xox7zouziu\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"fqdn\": \"web-serverul5xox7zouziu.westus.azurecontainer.io\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"mycontainer\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.177.113\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/mycontainer-myc1\",\r\n \"name\": \"mycontainer-myc1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 5\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event1\",\r\n \"name\": \"tilnl_event1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 3600\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event2\",\r\n \"name\": \"tilnl_event2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 3700\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event3\",\r\n \"name\": \"tilnl_event3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"cat /var/log/aci/testfile\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event4\",\r\n \"name\": \"tilnl_event4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event5\",\r\n \"name\": \"tilnl_event5\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"sleep 36000\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event6\",\r\n \"name\": \"tilnl_event6\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 36000\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event7\",\r\n \"name\": \"tilnl_event7\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"certs\",\r\n \"properties\": {\r\n \"image\": \"microsoft/azure-cli\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"az storage share create --name certs\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AZURE_STORAGE_KEY\",\r\n \"value\": \"Fi+NDJoxXVv/Vv48g6g0S4FnIK5zidZKctmFQ00MDFqbrBp+vf3Oy87x+06GckN8vAWJHgcDH2RgWXcIKf3Q5g==\"\r\n },\r\n {\r\n \"name\": \"AZURE_STORAGE_ACCOUNT\",\r\n \"value\": \"fuh2mlbdn7mwi\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/requestbin/providers/Microsoft.ContainerInstance/containerGroups/createshare\",\r\n \"name\": \"createshare\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"requestbin\",\r\n \"properties\": {\r\n \"image\": \"wenwu449/requestbin\",\r\n \"ports\": [\r\n {\r\n \"port\": 8000\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"REDIS_URL\",\r\n \"value\": \"redis://127.0.0.1:6379\"\r\n },\r\n {\r\n \"name\": \"REALM\",\r\n \"value\": \"prod\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.6,\r\n \"cpu\": 0.4\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"redis\",\r\n \"properties\": {\r\n \"image\": \"library/redis\",\r\n \"ports\": [\r\n {\r\n \"port\": 6379\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.6,\r\n \"cpu\": 0.4\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"caddyserver\",\r\n \"properties\": {\r\n \"image\": \"abiosoft/caddy\",\r\n \"command\": [\r\n \"/usr/bin/caddy\",\r\n \"-agree\",\r\n \"-conf\",\r\n \"/tmp/caddyfile\",\r\n \"-log\",\r\n \"stdout\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 443\r\n },\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.3,\r\n \"cpu\": 0.2\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"caddyfile\",\r\n \"mountPath\": \"/tmp\",\r\n \"readOnly\": false\r\n },\r\n {\r\n \"name\": \"certs\",\r\n \"mountPath\": \"/root/.caddy\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"13.91.247.144\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"fuh2mlbdn7mwi\",\r\n \"fqdn\": \"fuh2mlbdn7mwi.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"caddyfile\",\r\n \"secret\": {}\r\n },\r\n {\r\n \"name\": \"certs\",\r\n \"azureFile\": {\r\n \"shareName\": \"certs\",\r\n \"storageAccountName\": \"fuh2mlbdn7mwi\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/requestbin/providers/Microsoft.ContainerInstance/containerGroups/requestbin\",\r\n \"name\": \"requestbin\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"cloudcondfwestcentralus.azurecr.io/nginx:alpine\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n },\r\n \"limits\": {}\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"mountPath\": \"/cache\"\r\n },\r\n {\r\n \"name\": \"default-token-brstn\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [\r\n {\r\n \"server\": \"cloudcondfwestcentralus.azurecr.io\",\r\n \"username\": \"cloudcondfwestcentralus\"\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"52.160.43.147\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"emptyDir\": {}\r\n },\r\n {\r\n \"name\": \"default-token-brstn\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbieaks2/providers/Microsoft.ContainerInstance/containerGroups/default-private-nginx\",\r\n \"name\": \"default-private-nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-01-26 02:14:12 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-aaaaaa-linux\",\r\n \"PodName\": \"private-nginx\",\r\n \"UID\": \"99a68513-023e-11e8-8c6f-0a58ac1f0b92\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"container1\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do true; done\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"container2\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do true; sleep 5; done\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbietestrg/providers/Microsoft.ContainerInstance/containerGroups/jenna1\",\r\n \"name\": \"jenna1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 5\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbietestrg/providers/Microsoft.ContainerInstance/containerGroups/robbie_westus1\",\r\n \"name\": \"robbie_westus1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbietestrg/providers/Microsoft.ContainerInstance/containerGroups/robbie_westus2\",\r\n \"name\": \"robbie_westus2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-nginx\",\r\n \"name\": \"sakreter-nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testenv2\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"test2\",\r\n \"value\": \"test2\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/testenv2\",\r\n \"name\": \"testenv2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"worker-container\",\r\n \"properties\": {\r\n \"image\": \"pskreter/test\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"KIRIX_WORK\",\r\n \"value\": \"asdfasdf\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n },\r\n \"limits\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/kirix-worker-WodTB2r\",\r\n \"name\": \"kirix-worker-WodTB2r\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"xizha2portsnew\",\r\n \"properties\": {\r\n \"image\": \"xizhabox/xizhanginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n },\r\n {\r\n \"port\": 8000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 8000\r\n }\r\n ],\r\n \"ip\": \"13.93.180.146\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaaci\",\r\n \"fqdn\": \"xizhaaci.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizha2portsnew\",\r\n \"name\": \"xizha2portsnew\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"xizhadnstest\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.134.159\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhadnstest\",\r\n \"fqdn\": \"xizhadnstest.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizhaDNStest\",\r\n \"name\": \"xizhaDNStest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"West US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"client\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"command\": [\r\n \"python\",\r\n \"-m\",\r\n \"SimpleHTTPServer\",\r\n \"80\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"client2\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"ip\": \"13.88.15.204\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaporttest\",\r\n \"fqdn\": \"xizhaporttest.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizhaporttest\",\r\n \"name\": \"xizhaporttest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"West US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"client\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"command\": [\r\n \"python\",\r\n \"-m\",\r\n \"SimpleHTTPServer\",\r\n \"80\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"client2\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"ip\": \"13.88.181.166\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaporttest2\",\r\n \"fqdn\": \"xizhaporttest2.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizhaporttest2\",\r\n \"name\": \"xizhaporttest2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"West US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"client\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"command\": [\r\n \"python\",\r\n \"-m\",\r\n \"SimpleHTTPServer\",\r\n \"80\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"client2\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do echo hello world; sleep 1; done\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"ip\": \"13.91.124.36\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaporttest3\",\r\n \"fqdn\": \"xizhaporttest3.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizhaporttest3\",\r\n \"name\": \"xizhaporttest3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"West US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"xizhaclitest\",\r\n \"properties\": {\r\n \"image\": \"xizhabox/xizhanginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n },\r\n {\r\n \"port\": 8000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 2.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 8000\r\n }\r\n ],\r\n \"ip\": \"40.86.189.190\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRGWestUS/providers/Microsoft.ContainerInstance/containerGroups/xizhaclitest\",\r\n \"name\": \"xizhaclitest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"webserver\",\r\n \"properties\": {\r\n \"image\": \"nginx:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.209.42\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"myacinginx\",\r\n \"fqdn\": \"myacinginx.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/yangltest/providers/Microsoft.ContainerInstance/containerGroups/yangltest\",\r\n \"name\": \"yangltest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"command\": [],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.186.87.66\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-connector/providers/Microsoft.ContainerInstance/containerGroups/nginx\",\r\n \"name\": \"nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"orchestrator\": \"kubernetes\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/nanoserver\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/iis\",\r\n \"name\": \"iis\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/nanoserver\",\r\n \"command\": [\r\n \"powershell.exe\",\r\n \"-Command\",\r\n \"sleep 5; Invoke-WebRequest 216.58.193.68; sleep 60\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/iis2\",\r\n \"name\": \"iis2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/nanoserver\",\r\n \"command\": [\r\n \"powershell.exe\",\r\n \"-Command\",\r\n \"sleep 5; Invoke-WebRequest 216.58.193.68; sleep 60\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/iis3\",\r\n \"name\": \"iis3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/windowsservercore:1709\",\r\n \"command\": [\r\n \"powershell.exe\",\r\n \"-Command\",\r\n \"sleep 6000\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/iis4\",\r\n \"name\": \"iis4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/nanoserver:latest\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/nano\",\r\n \"name\": \"nano\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n },\r\n \"limits\": {}\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"mountPath\": \"/cache\"\r\n },\r\n {\r\n \"name\": \"default-token-9jxn8\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"13.92.214.163\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"emptyDir\": {}\r\n },\r\n {\r\n \"name\": \"default-token-9jxn8\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbieaks/providers/Microsoft.ContainerInstance/containerGroups/default-nginx\",\r\n \"name\": \"default-nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-03-22 17:55:37 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-robbie-conn-linux\",\r\n \"PodName\": \"nginx\",\r\n \"UID\": \"3a0ea6e7-2dfa-11e8-9da2-0a58ac1f1387\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"allen-3ync7\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"asdfas\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"allen-3ync7\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/allen-3ync7\",\r\n \"name\": \"allen-3ync7\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"East US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"anders-0n084\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"sfasdf\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"anders-0n084\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/anders-0n084\",\r\n \"name\": \"anders-0n084\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"East US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"harry-aggx7\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"asdfasdf\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"harry-aggx7\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/harry-aggx7\",\r\n \"name\": \"harry-aggx7\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"East US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"tony-haxbo\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"sdfasd\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"tony-haxbo\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/tony-haxbo\",\r\n \"name\": \"tony-haxbo\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"East US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitst1\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.151.40.142\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitst1\",\r\n \"fqdn\": \"acitst1.westus2.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/acitst1\",\r\n \"name\": \"acitst1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"trafficGroup\": \"aci-test\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitst2\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.151.60.183\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitst2\",\r\n \"fqdn\": \"acitst2.westus2.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/acitst2\",\r\n \"name\": \"acitst2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"trafficGroup\": \"aci-test\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitst3\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.151.25.230\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitst3\",\r\n \"fqdn\": \"acitst3.westus2.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/acitst3\",\r\n \"name\": \"acitst3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitst4\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.229.56.169\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitst4\",\r\n \"fqdn\": \"acitst4.westus2.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/acitst4\",\r\n \"name\": \"acitst4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"retst1\",\r\n \"properties\": {\r\n \"image\": \"shou3301/aci-trafficmanager-reconciler:v1\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AAD_APPID\",\r\n \"value\": \"http://accrunner.net\"\r\n },\r\n {\r\n \"name\": \"AAD_APPKEY\",\r\n \"value\": \"HkrEgLQUtE9PAGffDqopE5PXSyOthLqlM+ddqQr274s=\"\r\n },\r\n {\r\n \"name\": \"AAD_TENANT\",\r\n \"value\": \"microsoft.com\"\r\n },\r\n {\r\n \"name\": \"SUBSCRIPTION\",\r\n \"value\": \"ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78\"\r\n },\r\n {\r\n \"name\": \"RESOURCE_GROUP\",\r\n \"value\": \"chshou\"\r\n },\r\n {\r\n \"name\": \"TRAFFIC_MANAGER\",\r\n \"value\": \"aci-test\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/retst1\",\r\n \"name\": \"retst1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"retst2\",\r\n \"properties\": {\r\n \"image\": \"shou3301/aci-trafficmanager-reconciler:v1\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AAD_APPID\",\r\n \"value\": \"http://accrunner.net\"\r\n },\r\n {\r\n \"name\": \"AAD_APPKEY\",\r\n \"value\": \"HkrEgLQUtE9PAGffDqopE5PXSyOthLqlM+ddqQr274s=\"\r\n },\r\n {\r\n \"name\": \"AAD_TENANT\",\r\n \"value\": \"microsoft.com\"\r\n },\r\n {\r\n \"name\": \"SUBSCRIPTION\",\r\n \"value\": \"ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78\"\r\n },\r\n {\r\n \"name\": \"RESOURCE_GROUP\",\r\n \"value\": \"chshou\"\r\n },\r\n {\r\n \"name\": \"TRAFFIC_MANAGER\",\r\n \"value\": \"aci-test\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/retst2\",\r\n \"name\": \"retst2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"cskenerltst\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/cskenerltst\",\r\n \"name\": \"cskenerltst\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"EastUS2EUAP\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +527,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Feb 2018 19:17:38 GMT" + "Tue, 10 Apr 2018 21:23:59 GMT" ], "Pragma": [ "no-cache" @@ -294,23 +536,28 @@ "Accept-Encoding" ], "x-ms-original-request-ids": [ - "westus:4b1af6d7-d649-4919-9b12-0209b11b48a2", - "eastus:f507d58d-92c9-4589-b2da-cd819da905d6" + "westus:15c309d7-4778-408f-88d1-5c9b79b597d6", + "eastus:e6cc8313-f429-4009-874b-ff610ad4647e", + "westus2:b8a0ce97-990c-4376-aea8-bc016e41e4bf", + "eastus2euap:2f95c456-913c-4884-9413-1621c54a33cb" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14986" ], "x-ms-request-id": [ - "b237aef7-ae37-4e6f-ae38-576018d33c12" + "900ffa6b-c831-41a5-9e6b-d0b3f2b9fd95" ], "x-ms-correlation-request-id": [ - "b237aef7-ae37-4e6f-ae38-576018d33c12" + "900ffa6b-c831-41a5-9e6b-d0b3f2b9fd95" ], "x-ms-routing-request-id": [ - "WESTUS2:20180206T191739Z:b237aef7-ae37-4e6f-ae38-576018d33c12" + "WESTUS2:20180410T212359Z:900ffa6b-c831-41a5-9e6b-d0b3f2b9fd95" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -318,12 +565,12 @@ ], "Names": { "CreateResourceGroup": [ - "aci_rg1364", - "aci_rg8265" + "aci_rg3112", + "aci_rg5829" ], "ContainerInstanceListTest": [ - "acinetsdk6626", - "acinetsdk2820" + "acinetsdk4829", + "acinetsdk9871" ] }, "Variables": { diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperations.cs index 554534cd5c86..8e20a727cb95 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperations.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperations.cs @@ -646,6 +646,34 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) /// The properties of the container group to be created or updated. /// /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, ContainerGroup containerGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, containerGroupName, containerGroup, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update container groups. + /// + /// + /// Updates container group tags with specified values. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The container group resource with just the tags to be updated. + /// + /// /// Headers that will be added to request. /// /// @@ -666,7 +694,7 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, ContainerGroup containerGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Resource resource, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -684,13 +712,9 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "containerGroupName"); } - if (containerGroup == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "containerGroup"); - } - if (containerGroup != null) + if (resource == null) { - containerGroup.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "resource"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -701,9 +725,9 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("containerGroupName", containerGroupName); - tracingParameters.Add("containerGroup", containerGroup); + tracingParameters.Add("resource", resource); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -723,7 +747,7 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -754,9 +778,9 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) // Serialize Request string _requestContent = null; - if(containerGroup != null) + if(resource != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(containerGroup, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(resource, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -780,7 +804,7 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201) + if ((int)_statusCode != 200) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -840,24 +864,6 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -866,10 +872,12 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) } /// - /// Update container groups. + /// Delete the specified container group. /// /// - /// Updates container group tags with specified values. + /// Delete the specified container group in the specified subscription and + /// resource group. The operation does not delete other resources provided by + /// the user, such as volumes. /// /// /// The name of the resource group. @@ -877,9 +885,6 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) /// /// The name of the container group. /// - /// - /// The container group resource with just the tags to be updated. - /// /// /// Headers that will be added to request. /// @@ -901,7 +906,7 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Resource resource = default(Resource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -928,9 +933,8 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("containerGroupName", containerGroupName); - tracingParameters.Add("resource", resource); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -950,7 +954,7 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -981,12 +985,6 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) // Serialize Request string _requestContent = null; - if(resource != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(resource, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -1007,7 +1005,7 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1075,12 +1073,10 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) } /// - /// Delete the specified container group. + /// Create or update container groups. /// /// - /// Delete the specified container group in the specified subscription and - /// resource group. The operation does not delete other resources provided by - /// the user, such as volumes. + /// Create or update container groups with specified configurations. /// /// /// The name of the resource group. @@ -1088,6 +1084,9 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) /// /// The name of the container group. /// + /// + /// The properties of the container group to be created or updated. + /// /// /// Headers that will be added to request. /// @@ -1109,7 +1108,7 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, ContainerGroup containerGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1127,6 +1126,14 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "containerGroupName"); } + if (containerGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "containerGroup"); + } + if (containerGroup != null) + { + containerGroup.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1136,8 +1143,9 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("containerGroupName", containerGroupName); + tracingParameters.Add("containerGroup", containerGroup); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -1157,7 +1165,7 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1188,6 +1196,12 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) // Serialize Request string _requestContent = null; + if(containerGroup != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(containerGroup, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -1208,7 +1222,7 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 204) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1268,6 +1282,24 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperationsExtensions.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperationsExtensions.cs index c9797924e59b..58f542aebd3a 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperationsExtensions.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperationsExtensions.cs @@ -231,7 +231,7 @@ public static ContainerGroup CreateOrUpdate(this IContainerGroupsOperations oper /// /// The container group resource with just the tags to be updated. /// - public static ContainerGroup Update(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName, Resource resource = default(Resource)) + public static ContainerGroup Update(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName, Resource resource) { return operations.UpdateAsync(resourceGroupName, containerGroupName, resource).GetAwaiter().GetResult(); } @@ -257,7 +257,7 @@ public static ContainerGroup CreateOrUpdate(this IContainerGroupsOperations oper /// /// The cancellation token. /// - public static async Task UpdateAsync(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName, Resource resource = default(Resource), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName, Resource resource, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, containerGroupName, resource, null, cancellationToken).ConfigureAwait(false)) { @@ -315,6 +315,58 @@ public static ContainerGroup Delete(this IContainerGroupsOperations operations, } } + /// + /// Create or update container groups. + /// + /// + /// Create or update container groups with specified configurations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The properties of the container group to be created or updated. + /// + public static ContainerGroup BeginCreateOrUpdate(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName, ContainerGroup containerGroup) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, containerGroupName, containerGroup).GetAwaiter().GetResult(); + } + + /// + /// Create or update container groups. + /// + /// + /// Create or update container groups with specified configurations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The properties of the container group to be created or updated. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName, ContainerGroup containerGroup, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, containerGroupName, containerGroup, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Get a list of container groups in the specified subscription. /// diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerInstanceManagementClient.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerInstanceManagementClient.cs index 97668e91bee6..c81616ba4690 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerInstanceManagementClient.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerInstanceManagementClient.cs @@ -92,6 +92,11 @@ public partial class ContainerInstanceManagementClient : ServiceClient public virtual IContainerLogsOperations ContainerLogs { get; private set; } + /// + /// Gets the IStartContainerOperations. + /// + public virtual IStartContainerOperations StartContainer { get; private set; } + /// /// Initializes a new instance of the ContainerInstanceManagementClient class. /// @@ -297,8 +302,9 @@ private void Initialize() Operations = new Operations(this); ContainerGroupUsage = new ContainerGroupUsageOperations(this); ContainerLogs = new ContainerLogsOperations(this); + StartContainer = new StartContainerOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-02-01-preview"; + ApiVersion = "2018-04-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerGroupsOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerGroupsOperations.cs index 782279b4d5df..cff3db2e7838 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerGroupsOperations.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerGroupsOperations.cs @@ -170,7 +170,7 @@ public partial interface IContainerGroupsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Resource resource = default(Resource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Resource resource, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete the specified container group. /// @@ -202,6 +202,37 @@ public partial interface IContainerGroupsOperations /// Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Create or update container groups. + /// + /// + /// Create or update container groups with specified configurations. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The properties of the container group to be created or updated. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, ContainerGroup containerGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Get a list of container groups in the specified subscription. /// /// diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerInstanceManagementClient.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerInstanceManagementClient.cs index 298c3f0e41d5..f66389e84d4a 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerInstanceManagementClient.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerInstanceManagementClient.cs @@ -89,5 +89,10 @@ public partial interface IContainerInstanceManagementClient : System.IDisposable /// IContainerLogsOperations ContainerLogs { get; } + /// + /// Gets the IStartContainerOperations. + /// + IStartContainerOperations StartContainer { get; } + } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IStartContainerOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IStartContainerOperations.cs new file mode 100644 index 000000000000..a0ce6cc16cb0 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IStartContainerOperations.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// StartContainerOperations operations. + /// + public partial interface IStartContainerOperations + { + /// + /// Starts the exec command for a specific container instance. + /// + /// + /// Starts the exec command for a specified container instance in a + /// specified resource group and container group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The request for the exec command. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> LaunchExecWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequest.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequest.cs new file mode 100644 index 000000000000..9b908b7a3d74 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequest.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The start container exec request. + /// + public partial class ContainerExecRequest + { + /// + /// Initializes a new instance of the ContainerExecRequest class. + /// + public ContainerExecRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerExecRequest class. + /// + /// The command to be executed. + /// The size of the terminal. + public ContainerExecRequest(string command = default(string), ContainerExecRequestTerminalSize terminalSize = default(ContainerExecRequestTerminalSize)) + { + Command = command; + TerminalSize = terminalSize; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the command to be executed. + /// + [JsonProperty(PropertyName = "command")] + public string Command { get; set; } + + /// + /// Gets or sets the size of the terminal. + /// + [JsonProperty(PropertyName = "terminalSize")] + public ContainerExecRequestTerminalSize TerminalSize { get; set; } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequestTerminalSize.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequestTerminalSize.cs new file mode 100644 index 000000000000..57a8fc3a50b8 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequestTerminalSize.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The size of the terminal. + /// + public partial class ContainerExecRequestTerminalSize + { + /// + /// Initializes a new instance of the ContainerExecRequestTerminalSize + /// class. + /// + public ContainerExecRequestTerminalSize() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerExecRequestTerminalSize + /// class. + /// + /// The row size of the terminal + /// The column size of the terminal + public ContainerExecRequestTerminalSize(int? row = default(int?), int? column = default(int?)) + { + Row = row; + Column = column; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the row size of the terminal + /// + [JsonProperty(PropertyName = "row")] + public int? Row { get; set; } + + /// + /// Gets or sets the column size of the terminal + /// + [JsonProperty(PropertyName = "column")] + public int? Column { get; set; } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecResponse.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecResponse.cs new file mode 100644 index 000000000000..12283406ee9d --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecResponse.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The information for the container exec command. + /// + public partial class ContainerExecResponse + { + /// + /// Initializes a new instance of the ContainerExecResponse class. + /// + public ContainerExecResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerExecResponse class. + /// + /// The uri for the exec websocket. + /// The password to start the exec + /// command. + public ContainerExecResponse(string webSocketUri = default(string), string password = default(string)) + { + WebSocketUri = webSocketUri; + Password = password; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the uri for the exec websocket. + /// + [JsonProperty(PropertyName = "webSocketUri")] + public string WebSocketUri { get; private set; } + + /// + /// Gets the password to start the exec command. + /// + [JsonProperty(PropertyName = "password")] + public string Password { get; private set; } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerState.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerState.cs index f943fd5a9367..380c22ec5614 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerState.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerState.cs @@ -54,38 +54,35 @@ public ContainerState() partial void CustomInit(); /// - /// Gets or sets the state of the container instance. + /// Gets the state of the container instance. /// [JsonProperty(PropertyName = "state")] - public string State { get; set; } + public string State { get; private set; } /// - /// Gets or sets the date-time when the container instance state - /// started. + /// Gets the date-time when the container instance state started. /// [JsonProperty(PropertyName = "startTime")] - public System.DateTime? StartTime { get; set; } + public System.DateTime? StartTime { get; private set; } /// - /// Gets or sets the container instance exit codes correspond to those - /// from the `docker run` command. + /// Gets the container instance exit codes correspond to those from the + /// `docker run` command. /// [JsonProperty(PropertyName = "exitCode")] - public int? ExitCode { get; set; } + public int? ExitCode { get; private set; } /// - /// Gets or sets the date-time when the container instance state - /// finished. + /// Gets the date-time when the container instance state finished. /// [JsonProperty(PropertyName = "finishTime")] - public System.DateTime? FinishTime { get; set; } + public System.DateTime? FinishTime { get; private set; } /// - /// Gets or sets the human-readable status of the container instance - /// state. + /// Gets the human-readable status of the container instance state. /// [JsonProperty(PropertyName = "detailStatus")] - public string DetailStatus { get; set; } + public string DetailStatus { get; private set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EventModel.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EventModel.cs index 11bfc04429c3..bc0a15205f0c 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EventModel.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EventModel.cs @@ -54,40 +54,40 @@ public EventModel() partial void CustomInit(); /// - /// Gets or sets the count of the event. + /// Gets the count of the event. /// [JsonProperty(PropertyName = "count")] - public int? Count { get; set; } + public int? Count { get; private set; } /// - /// Gets or sets the date-time of the earliest logged event. + /// Gets the date-time of the earliest logged event. /// [JsonProperty(PropertyName = "firstTimestamp")] - public System.DateTime? FirstTimestamp { get; set; } + public System.DateTime? FirstTimestamp { get; private set; } /// - /// Gets or sets the date-time of the latest logged event. + /// Gets the date-time of the latest logged event. /// [JsonProperty(PropertyName = "lastTimestamp")] - public System.DateTime? LastTimestamp { get; set; } + public System.DateTime? LastTimestamp { get; private set; } /// - /// Gets or sets the event name. + /// Gets the event name. /// [JsonProperty(PropertyName = "name")] - public string Name { get; set; } + public string Name { get; private set; } /// - /// Gets or sets the event message. + /// Gets the event message. /// [JsonProperty(PropertyName = "message")] - public string Message { get; set; } + public string Message { get; private set; } /// - /// Gets or sets the event type. + /// Gets the event type. /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public string Type { get; private set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Logs.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Logs.cs index 7825f565e767..5e0189538ef6 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Logs.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Logs.cs @@ -42,10 +42,10 @@ public Logs() partial void CustomInit(); /// - /// Gets or sets the content of the log. + /// Gets the content of the log. /// [JsonProperty(PropertyName = "content")] - public string Content { get; set; } + public string Content { get; private set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Operation.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Operation.cs index 3b24e378b69c..a31e03b20f56 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Operation.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Operation.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.ContainerInstance.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -35,7 +34,7 @@ public Operation() /// operation. /// The intended executor of the operation. /// Possible values include: 'User', 'System' - public Operation(string name, OperationDisplay display, string origin = default(string)) + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string)) { Name = name; Display = display; @@ -49,10 +48,10 @@ public Operation() partial void CustomInit(); /// - /// Gets or sets the name of the operation. + /// Gets the name of the operation. /// [JsonProperty(PropertyName = "name")] - public string Name { get; set; } + public string Name { get; private set; } /// /// Gets or sets the display information of the operation. @@ -61,28 +60,11 @@ public Operation() public OperationDisplay Display { get; set; } /// - /// Gets or sets the intended executor of the operation. Possible - /// values include: 'User', 'System' + /// Gets the intended executor of the operation. Possible values + /// include: 'User', 'System' /// [JsonProperty(PropertyName = "origin")] - public string Origin { get; set; } + public string Origin { get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (Display == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Display"); - } - } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/OperationDisplay.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/OperationDisplay.cs index fcb97d29e678..c3da6753341f 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/OperationDisplay.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/OperationDisplay.cs @@ -50,28 +50,28 @@ public OperationDisplay() partial void CustomInit(); /// - /// Gets or sets the name of the provider of the operation. + /// Gets the name of the provider of the operation. /// [JsonProperty(PropertyName = "provider")] - public string Provider { get; set; } + public string Provider { get; private set; } /// - /// Gets or sets the name of the resource type of the operation. + /// Gets the name of the resource type of the operation. /// [JsonProperty(PropertyName = "resource")] - public string Resource { get; set; } + public string Resource { get; private set; } /// - /// Gets or sets the friendly name of the operation. + /// Gets the friendly name of the operation. /// [JsonProperty(PropertyName = "operation")] - public string Operation { get; set; } + public string Operation { get; private set; } /// - /// Gets or sets the description of the operation. + /// Gets the description of the operation. /// [JsonProperty(PropertyName = "description")] - public string Description { get; set; } + public string Description { get; private set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/SdkInfo_ContainerInstanceManagementClient.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/SdkInfo_ContainerInstanceManagementClient.cs index 1bbd67bdfee2..58def669f678 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/SdkInfo_ContainerInstanceManagementClient.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/SdkInfo_ContainerInstanceManagementClient.cs @@ -11,10 +11,11 @@ public static IEnumerable> ApiInfo_ContainerInstan { return new Tuple[] { - new Tuple("ContainerInstance", "ContainerGroupUsage", "2018-02-01-preview"), - new Tuple("ContainerInstance", "ContainerGroups", "2018-02-01-preview"), - new Tuple("ContainerInstance", "ContainerLogs", "2018-02-01-preview"), - new Tuple("ContainerInstance", "Operations", "2018-02-01-preview"), + new Tuple("ContainerInstance", "ContainerGroupUsage", "2018-04-01"), + new Tuple("ContainerInstance", "ContainerGroups", "2018-04-01"), + new Tuple("ContainerInstance", "ContainerLogs", "2018-04-01"), + new Tuple("ContainerInstance", "Operations", "2018-04-01"), + new Tuple("ContainerInstance", "StartContainer", "2018-04-01"), }.AsEnumerable(); } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperations.cs new file mode 100644 index 000000000000..60694bb1da93 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperations.cs @@ -0,0 +1,277 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// StartContainerOperations operations. + /// + internal partial class StartContainerOperations : IServiceOperations, IStartContainerOperations + { + /// + /// Initializes a new instance of the StartContainerOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal StartContainerOperations(ContainerInstanceManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ContainerInstanceManagementClient + /// + public ContainerInstanceManagementClient Client { get; private set; } + + /// + /// Starts the exec command for a specific container instance. + /// + /// + /// Starts the exec command for a specified container instance in a specified + /// resource group and container group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The request for the exec command. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> LaunchExecWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (containerGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "containerGroupName"); + } + if (containerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "containerName"); + } + if (containerExecRequest == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "containerExecRequest"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("containerGroupName", containerGroupName); + tracingParameters.Add("containerName", containerName); + tracingParameters.Add("containerExecRequest", containerExecRequest); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "LaunchExec", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{containerGroupName}", System.Uri.EscapeDataString(containerGroupName)); + _url = _url.Replace("{containerName}", System.Uri.EscapeDataString(containerName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(containerExecRequest != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(containerExecRequest, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperationsExtensions.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperationsExtensions.cs new file mode 100644 index 000000000000..7fd944ac4bac --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperationsExtensions.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for StartContainerOperations. + /// + public static partial class StartContainerOperationsExtensions + { + /// + /// Starts the exec command for a specific container instance. + /// + /// + /// Starts the exec command for a specified container instance in a specified + /// resource group and container group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The request for the exec command. + /// + public static ContainerExecResponse LaunchExec(this IStartContainerOperations operations, string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest) + { + return operations.LaunchExecAsync(resourceGroupName, containerGroupName, containerName, containerExecRequest).GetAwaiter().GetResult(); + } + + /// + /// Starts the exec command for a specific container instance. + /// + /// + /// Starts the exec command for a specified container instance in a specified + /// resource group and container group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The request for the exec command. + /// + /// + /// The cancellation token. + /// + public static async Task LaunchExecAsync(this IStartContainerOperations operations, string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.LaunchExecWithHttpMessagesAsync(resourceGroupName, containerGroupName, containerName, containerExecRequest, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Microsoft.Azure.Management.ContainerInstance.csproj b/src/SDKs/ContainerInstance/Management.ContainerInstance/Microsoft.Azure.Management.ContainerInstance.csproj index 2482b90a196a..2c50d8d92883 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Microsoft.Azure.Management.ContainerInstance.csproj +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Microsoft.Azure.Management.ContainerInstance.csproj @@ -5,13 +5,13 @@ Microsoft Azure Container Instance Management Library - 1.0.2-preview + 1.1.0 Microsoft.Azure.Management.ContainerInstance Microsoft.Azure.Management.ContainerInstance Microsoft Azure Container Instance Management;Container Instance; diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/generate.ps1 b/src/SDKs/ContainerInstance/Management.ContainerInstance/generate.ps1 new file mode 100644 index 000000000000..a44843860f9a --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/generate.ps1 @@ -0,0 +1 @@ +powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File "$(split-path $SCRIPT:MyInvocation.MyCommand.Path -parent)\..\..\..\..\tools\generateTool.ps1" -ResourceProvider "containerinstance/resource-manager" -PowershellInvoker -AutoRestVersion "latest" diff --git a/src/SDKs/_metadata/containerinstance_resource-manager.txt b/src/SDKs/_metadata/containerinstance_resource-manager.txt index aaef79fb6adc..999086b3bac2 100644 --- a/src/SDKs/_metadata/containerinstance_resource-manager.txt +++ b/src/SDKs/_metadata/containerinstance_resource-manager.txt @@ -1,11 +1,17 @@ -2018-02-06 23:42:53 UTC - +Executing AutoRest command +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerinstance/resource-manager/readme.md --csharp --csharp-sdks-folder=F:\github\azure-sdk-for-net\tools\..\src\SDKs\ --version=latest --reflect-api-versions +2018-04-11 18:42:02 UTC 1) azure-rest-api-specs repository information -GitHub user: Azure +GitHub fork: Azure Branch: master -Commit: 46b77dda1a9f868df5545fce22cf2fd0fc96cdde +Commit: d2316a3096006c9d0390fc6ec6dff31c0e65288a 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\xizha\AppData\Roaming\npm `-- autorest@2.0.4245 +Bootstrapper version: C:\Users\chshou\AppData\Roaming\npm `-- autorest@2.0.4262 + + Latest installed version: +.\tools\generate.ps1 was invoked by generate.ps1 + +