diff --git a/api-specs.json b/api-specs.json index 7063ca6e53f..262e3a0d214 100644 --- a/api-specs.json +++ b/api-specs.json @@ -88,7 +88,7 @@ "dir": "azure-mgmt-containerinstance", "source": "specification/containerinstance/resource-manager/readme.md", "package": "com.microsoft.azure.management.containerinstance", - "args": "--payload-flattening-threshold=1 --tag=package-2018-10" + "args": "--payload-flattening-threshold=1 --tag=package-2021-03 --remove-inner=Container,Operation,CachedImages,Capabilities" }, "containerregistry": { "dir": "azure-mgmt-containerregistry", diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/CachedImages.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/CachedImages.java index dbfa78053d0..5cb859a844e 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/CachedImages.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/CachedImages.java @@ -14,12 +14,6 @@ * The cached image and OS type. */ public class CachedImages { - /** - * The resource Id of the cached image. - */ - @JsonProperty(value = "id") - private String id; - /** * The OS type of the cached image. */ @@ -32,26 +26,6 @@ public class CachedImages { @JsonProperty(value = "image", required = true) private String image; - /** - * Get the resource Id of the cached image. - * - * @return the id value - */ - public String id() { - return this.id; - } - - /** - * Set the resource Id of the cached image. - * - * @param id the id value to set - * @return the CachedImages object itself. - */ - public CachedImages withId(String id) { - this.id = id; - return this; - } - /** * Get the OS type of the cached image. * diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Container.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Container.java index 39cf4a2f9cf..c422c9695a1 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Container.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Container.java @@ -2,12 +2,13 @@ * 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. */ package com.microsoft.azure.management.containerinstance; import java.util.List; - import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerGroupSku.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerGroupSku.java new file mode 100644 index 00000000000..3ba6a474791 --- /dev/null +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerGroupSku.java @@ -0,0 +1,41 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.containerinstance; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ContainerGroupSku. + */ +public final class ContainerGroupSku extends ExpandableStringEnum { + /** Static value Standard for ContainerGroupSku. */ + public static final ContainerGroupSku STANDARD = fromString("Standard"); + + /** Static value Dedicated for ContainerGroupSku. */ + public static final ContainerGroupSku DEDICATED = fromString("Dedicated"); + + /** + * Creates or finds a ContainerGroupSku from its string representation. + * @param name a name to look for + * @return the corresponding ContainerGroupSku + */ + @JsonCreator + public static ContainerGroupSku fromString(String name) { + return fromString(name, ContainerGroupSku.class); + } + + /** + * @return known ContainerGroupSku values + */ + public static Collection values() { + return values(ContainerGroupSku.class); + } +} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerGroups.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerGroups.java index 6cc73d18e87..1a073893929 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerGroups.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerGroups.java @@ -3,8 +3,10 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. */ + package com.microsoft.azure.management.containerinstance; +import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.containerinstance.implementation.ContainerGroupsInner; @@ -23,9 +25,6 @@ import rx.Completable; import rx.Observable; -import java.util.List; -import java.util.Set; - /** * Entry point to the container instance management API. */ @@ -100,7 +99,7 @@ public interface ContainerGroups extends * @return all operations for Azure Container Instance service */ @Beta(Beta.SinceVersion.V1_5_0) - Set listOperations(); + PagedList listOperations(); /** * Lists all operations for Azure Container Instance service. @@ -108,7 +107,7 @@ public interface ContainerGroups extends * @return a representation of the future computation of this call */ @Beta(Beta.SinceVersion.V1_23_0) - Observable> listOperationsAsync(); + Observable listOperationsAsync(); /** * Lists cached images for a subscription in a region. @@ -117,7 +116,7 @@ public interface ContainerGroups extends * @return all cached images from the specified location */ @Beta(Beta.SinceVersion.V1_23_0) - List listCachedImages(String location); + PagedList listCachedImages(String location); /** * Lists cached images for a subscription in a region. @@ -135,7 +134,7 @@ public interface ContainerGroups extends * @return a list of all of the capabilities of the given location */ @Beta(Beta.SinceVersion.V1_23_0) - List listCapabilities(String location); + PagedList listCapabilities(String location); /** * Lists the capabilities of a location. diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerHttpGet.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerHttpGet.java index ba790c3dcda..d8eb2999b93 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerHttpGet.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerHttpGet.java @@ -30,7 +30,13 @@ public class ContainerHttpGet { * The scheme. Possible values include: 'http', 'https'. */ @JsonProperty(value = "scheme") - private String scheme; + private Scheme scheme; + + /** + * The HTTP headers. + */ + @JsonProperty(value = "httpHeaders") + private HttpHeaders httpHeaders; /** * Get the path to probe. @@ -77,7 +83,7 @@ public ContainerHttpGet withPort(int port) { * * @return the scheme value */ - public String scheme() { + public Scheme scheme() { return this.scheme; } @@ -87,9 +93,29 @@ public String scheme() { * @param scheme the scheme value to set * @return the ContainerHttpGet object itself. */ - public ContainerHttpGet withScheme(String scheme) { + public ContainerHttpGet withScheme(Scheme scheme) { this.scheme = scheme; return this; } + /** + * Get the HTTP headers. + * + * @return the httpHeaders value + */ + public HttpHeaders httpHeaders() { + return this.httpHeaders; + } + + /** + * Set the HTTP headers. + * + * @param httpHeaders the httpHeaders value to set + * @return the ContainerHttpGet object itself. + */ + public ContainerHttpGet withHttpHeaders(HttpHeaders httpHeaders) { + this.httpHeaders = httpHeaders; + return this; + } + } diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerState.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerState.java index 4e68dab4bcf..c061698a454 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerState.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/ContainerState.java @@ -18,32 +18,32 @@ public class ContainerState { /** * The state of the container instance. */ - @JsonProperty(value = "state") + @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) private String state; /** * The date-time when the container instance state started. */ - @JsonProperty(value = "startTime") + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime startTime; /** * The container instance exit codes correspond to those from the `docker * run` command. */ - @JsonProperty(value = "exitCode") + @JsonProperty(value = "exitCode", access = JsonProperty.Access.WRITE_ONLY) private Integer exitCode; /** * The date-time when the container instance state finished. */ - @JsonProperty(value = "finishTime") + @JsonProperty(value = "finishTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime finishTime; /** * The human-readable status of the container instance state. */ - @JsonProperty(value = "detailStatus") + @JsonProperty(value = "detailStatus", access = JsonProperty.Access.WRITE_ONLY) private String detailStatus; /** @@ -55,17 +55,6 @@ public String state() { return this.state; } - /** - * Set the state of the container instance. - * - * @param state the state value to set - * @return the ContainerState object itself. - */ - public ContainerState withState(String state) { - this.state = state; - return this; - } - /** * Get the date-time when the container instance state started. * @@ -75,17 +64,6 @@ public DateTime startTime() { return this.startTime; } - /** - * Set the date-time when the container instance state started. - * - * @param startTime the startTime value to set - * @return the ContainerState object itself. - */ - public ContainerState withStartTime(DateTime startTime) { - this.startTime = startTime; - return this; - } - /** * Get the container instance exit codes correspond to those from the `docker run` command. * @@ -95,17 +73,6 @@ public Integer exitCode() { return this.exitCode; } - /** - * Set the container instance exit codes correspond to those from the `docker run` command. - * - * @param exitCode the exitCode value to set - * @return the ContainerState object itself. - */ - public ContainerState withExitCode(Integer exitCode) { - this.exitCode = exitCode; - return this; - } - /** * Get the date-time when the container instance state finished. * @@ -115,17 +82,6 @@ public DateTime finishTime() { return this.finishTime; } - /** - * Set the date-time when the container instance state finished. - * - * @param finishTime the finishTime value to set - * @return the ContainerState object itself. - */ - public ContainerState withFinishTime(DateTime finishTime) { - this.finishTime = finishTime; - return this; - } - /** * Get the human-readable status of the container instance state. * @@ -135,15 +91,4 @@ public String detailStatus() { return this.detailStatus; } - /** - * Set the human-readable status of the container instance state. - * - * @param detailStatus the detailStatus value to set - * @return the ContainerState object itself. - */ - public ContainerState withDetailStatus(String detailStatus) { - this.detailStatus = detailStatus; - return this; - } - } diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/EncryptionProperties.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/EncryptionProperties.java new file mode 100644 index 00000000000..b1cda8abc50 --- /dev/null +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/EncryptionProperties.java @@ -0,0 +1,95 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.containerinstance; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The container group encryption properties. + */ +public class EncryptionProperties { + /** + * The keyvault base url. + */ + @JsonProperty(value = "vaultBaseUrl", required = true) + private String vaultBaseUrl; + + /** + * The encryption key name. + */ + @JsonProperty(value = "keyName", required = true) + private String keyName; + + /** + * The encryption key version. + */ + @JsonProperty(value = "keyVersion", required = true) + private String keyVersion; + + /** + * Get the keyvault base url. + * + * @return the vaultBaseUrl value + */ + public String vaultBaseUrl() { + return this.vaultBaseUrl; + } + + /** + * Set the keyvault base url. + * + * @param vaultBaseUrl the vaultBaseUrl value to set + * @return the EncryptionProperties object itself. + */ + public EncryptionProperties withVaultBaseUrl(String vaultBaseUrl) { + this.vaultBaseUrl = vaultBaseUrl; + return this; + } + + /** + * Get the encryption key name. + * + * @return the keyName value + */ + public String keyName() { + return this.keyName; + } + + /** + * Set the encryption key name. + * + * @param keyName the keyName value to set + * @return the EncryptionProperties object itself. + */ + public EncryptionProperties withKeyName(String keyName) { + this.keyName = keyName; + return this; + } + + /** + * Get the encryption key version. + * + * @return the keyVersion value + */ + public String keyVersion() { + return this.keyVersion; + } + + /** + * Set the encryption key version. + * + * @param keyVersion the keyVersion value to set + * @return the EncryptionProperties object itself. + */ + public EncryptionProperties withKeyVersion(String keyVersion) { + this.keyVersion = keyVersion; + return this; + } + +} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Event.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Event.java index d862e147015..b270105dd24 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Event.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Event.java @@ -18,37 +18,37 @@ public class Event { /** * The count of the event. */ - @JsonProperty(value = "count") + @JsonProperty(value = "count", access = JsonProperty.Access.WRITE_ONLY) private Integer count; /** * The date-time of the earliest logged event. */ - @JsonProperty(value = "firstTimestamp") + @JsonProperty(value = "firstTimestamp", access = JsonProperty.Access.WRITE_ONLY) private DateTime firstTimestamp; /** * The date-time of the latest logged event. */ - @JsonProperty(value = "lastTimestamp") + @JsonProperty(value = "lastTimestamp", access = JsonProperty.Access.WRITE_ONLY) private DateTime lastTimestamp; /** * The event name. */ - @JsonProperty(value = "name") + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /** * The event message. */ - @JsonProperty(value = "message") + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; /** * The event type. */ - @JsonProperty(value = "type") + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; /** @@ -60,17 +60,6 @@ public Integer count() { return this.count; } - /** - * Set the count of the event. - * - * @param count the count value to set - * @return the Event object itself. - */ - public Event withCount(Integer count) { - this.count = count; - return this; - } - /** * Get the date-time of the earliest logged event. * @@ -80,17 +69,6 @@ public DateTime firstTimestamp() { return this.firstTimestamp; } - /** - * Set the date-time of the earliest logged event. - * - * @param firstTimestamp the firstTimestamp value to set - * @return the Event object itself. - */ - public Event withFirstTimestamp(DateTime firstTimestamp) { - this.firstTimestamp = firstTimestamp; - return this; - } - /** * Get the date-time of the latest logged event. * @@ -100,17 +78,6 @@ public DateTime lastTimestamp() { return this.lastTimestamp; } - /** - * Set the date-time of the latest logged event. - * - * @param lastTimestamp the lastTimestamp value to set - * @return the Event object itself. - */ - public Event withLastTimestamp(DateTime lastTimestamp) { - this.lastTimestamp = lastTimestamp; - return this; - } - /** * Get the event name. * @@ -120,17 +87,6 @@ public String name() { return this.name; } - /** - * Set the event name. - * - * @param name the name value to set - * @return the Event object itself. - */ - public Event withName(String name) { - this.name = name; - return this; - } - /** * Get the event message. * @@ -140,17 +96,6 @@ public String message() { return this.message; } - /** - * Set the event message. - * - * @param message the message value to set - * @return the Event object itself. - */ - public Event withMessage(String message) { - this.message = message; - return this; - } - /** * Get the event type. * @@ -160,15 +105,4 @@ public String type() { return this.type; } - /** - * Set the event type. - * - * @param type the type value to set - * @return the Event object itself. - */ - public Event withType(String type) { - this.type = type; - return this; - } - } diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/HttpHeaders.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/HttpHeaders.java new file mode 100644 index 00000000000..4568e3134b7 --- /dev/null +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/HttpHeaders.java @@ -0,0 +1,69 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.containerinstance; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The HTTP headers. + */ +public class HttpHeaders { + /** + * The header name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The header value. + */ + @JsonProperty(value = "value") + private String value; + + /** + * Get the header name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the header name. + * + * @param name the name value to set + * @return the HttpHeaders object itself. + */ + public HttpHeaders withName(String name) { + this.name = name; + return this; + } + + /** + * Get the header value. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set the header value. + * + * @param value the value value to set + * @return the HttpHeaders object itself. + */ + public HttpHeaders withValue(String value) { + this.value = value; + return this; + } + +} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/InitContainerDefinition.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/InitContainerDefinition.java new file mode 100644 index 00000000000..ed40a1fd51d --- /dev/null +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/InitContainerDefinition.java @@ -0,0 +1,165 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.containerinstance; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * The init container definition. + */ +@JsonFlatten +public class InitContainerDefinition { + /** + * The name for the init container. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * The image of the init container. + */ + @JsonProperty(value = "properties.image") + private String image; + + /** + * The command to execute within the init container in exec form. + */ + @JsonProperty(value = "properties.command") + private List command; + + /** + * The environment variables to set in the init container. + */ + @JsonProperty(value = "properties.environmentVariables") + private List environmentVariables; + + /** + * The instance view of the init container. Only valid in response. + */ + @JsonProperty(value = "properties.instanceView", access = JsonProperty.Access.WRITE_ONLY) + private InitContainerPropertiesDefinitionInstanceView instanceView; + + /** + * The volume mounts available to the init container. + */ + @JsonProperty(value = "properties.volumeMounts") + private List volumeMounts; + + /** + * Get the name for the init container. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name for the init container. + * + * @param name the name value to set + * @return the InitContainerDefinition object itself. + */ + public InitContainerDefinition withName(String name) { + this.name = name; + return this; + } + + /** + * Get the image of the init container. + * + * @return the image value + */ + public String image() { + return this.image; + } + + /** + * Set the image of the init container. + * + * @param image the image value to set + * @return the InitContainerDefinition object itself. + */ + public InitContainerDefinition withImage(String image) { + this.image = image; + return this; + } + + /** + * Get the command to execute within the init container in exec form. + * + * @return the command value + */ + public List command() { + return this.command; + } + + /** + * Set the command to execute within the init container in exec form. + * + * @param command the command value to set + * @return the InitContainerDefinition object itself. + */ + public InitContainerDefinition withCommand(List command) { + this.command = command; + return this; + } + + /** + * Get the environment variables to set in the init container. + * + * @return the environmentVariables value + */ + public List environmentVariables() { + return this.environmentVariables; + } + + /** + * Set the environment variables to set in the init container. + * + * @param environmentVariables the environmentVariables value to set + * @return the InitContainerDefinition object itself. + */ + public InitContainerDefinition withEnvironmentVariables(List environmentVariables) { + this.environmentVariables = environmentVariables; + return this; + } + + /** + * Get the instance view of the init container. Only valid in response. + * + * @return the instanceView value + */ + public InitContainerPropertiesDefinitionInstanceView instanceView() { + return this.instanceView; + } + + /** + * Get the volume mounts available to the init container. + * + * @return the volumeMounts value + */ + public List volumeMounts() { + return this.volumeMounts; + } + + /** + * Set the volume mounts available to the init container. + * + * @param volumeMounts the volumeMounts value to set + * @return the InitContainerDefinition object itself. + */ + public InitContainerDefinition withVolumeMounts(List volumeMounts) { + this.volumeMounts = volumeMounts; + return this; + } + +} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/InitContainerPropertiesDefinitionInstanceView.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/InitContainerPropertiesDefinitionInstanceView.java new file mode 100644 index 00000000000..ea47c5411fd --- /dev/null +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/InitContainerPropertiesDefinitionInstanceView.java @@ -0,0 +1,78 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.containerinstance; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The instance view of the init container. Only valid in response. + */ +public class InitContainerPropertiesDefinitionInstanceView { + /** + * The number of times that the init container has been restarted. + */ + @JsonProperty(value = "restartCount", access = JsonProperty.Access.WRITE_ONLY) + private Integer restartCount; + + /** + * The current state of the init container. + */ + @JsonProperty(value = "currentState", access = JsonProperty.Access.WRITE_ONLY) + private ContainerState currentState; + + /** + * The previous state of the init container. + */ + @JsonProperty(value = "previousState", access = JsonProperty.Access.WRITE_ONLY) + private ContainerState previousState; + + /** + * The events of the init container. + */ + @JsonProperty(value = "events", access = JsonProperty.Access.WRITE_ONLY) + private List events; + + /** + * Get the number of times that the init container has been restarted. + * + * @return the restartCount value + */ + public Integer restartCount() { + return this.restartCount; + } + + /** + * Get the current state of the init container. + * + * @return the currentState value + */ + public ContainerState currentState() { + return this.currentState; + } + + /** + * Get the previous state of the init container. + * + * @return the previousState value + */ + public ContainerState previousState() { + return this.previousState; + } + + /** + * Get the events of the init container. + * + * @return the events value + */ + public List events() { + return this.events; + } + +} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/LogAnalytics.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/LogAnalytics.java index af288696c02..d351c784b71 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/LogAnalytics.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/LogAnalytics.java @@ -40,6 +40,12 @@ public class LogAnalytics { @JsonProperty(value = "metadata") private Map metadata; + /** + * The workspace resource id for log analytics. + */ + @JsonProperty(value = "workspaceResourceId") + private Map workspaceResourceId; + /** * Get the workspace id for log analytics. * @@ -120,4 +126,24 @@ public LogAnalytics withMetadata(Map metadata) { return this; } + /** + * Get the workspace resource id for log analytics. + * + * @return the workspaceResourceId value + */ + public Map workspaceResourceId() { + return this.workspaceResourceId; + } + + /** + * Set the workspace resource id for log analytics. + * + * @param workspaceResourceId the workspaceResourceId value to set + * @return the LogAnalytics object itself. + */ + public LogAnalytics withWorkspaceResourceId(Map workspaceResourceId) { + this.workspaceResourceId = workspaceResourceId; + return this; + } + } diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Operation.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Operation.java index 843241eb92a..fce9c49e3b1 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Operation.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Operation.java @@ -2,6 +2,8 @@ * 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. */ package com.microsoft.azure.management.containerinstance; diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Scheme.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Scheme.java new file mode 100644 index 00000000000..30e37d5e8ff --- /dev/null +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Scheme.java @@ -0,0 +1,41 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.containerinstance; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for Scheme. + */ +public final class Scheme extends ExpandableStringEnum { + /** Static value http for Scheme. */ + public static final Scheme HTTP = fromString("http"); + + /** Static value https for Scheme. */ + public static final Scheme HTTPS = fromString("https"); + + /** + * Creates or finds a Scheme from its string representation. + * @param name a name to look for + * @return the corresponding Scheme + */ + @JsonCreator + public static Scheme fromString(String name) { + return fromString(name, Scheme.class); + } + + /** + * @return known Scheme values + */ + public static Collection values() { + return values(Scheme.class); + } +} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/CachedImagesListResultInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/CachedImagesListResultInner.java deleted file mode 100644 index 49531fbc3ce..00000000000 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/CachedImagesListResultInner.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 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. - */ - -package com.microsoft.azure.management.containerinstance.implementation; - -import java.util.List; -import com.microsoft.azure.management.containerinstance.CachedImages; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The response containing cached images. - */ -public class CachedImagesListResultInner { - /** - * The list of cached images. - */ - @JsonProperty(value = "value") - private List value; - - /** - * The URI to fetch the next page of cached images. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the list of cached images. - * - * @return the value value - */ - public List value() { - return this.value; - } - - /** - * Set the list of cached images. - * - * @param value the value value to set - * @return the CachedImagesListResultInner object itself. - */ - public CachedImagesListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the URI to fetch the next page of cached images. - * - * @return the nextLink value - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the URI to fetch the next page of cached images. - * - * @param nextLink the nextLink value to set - * @return the CachedImagesListResultInner object itself. - */ - public CachedImagesListResultInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - -} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/CapabilitiesListResultInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/CapabilitiesListResultInner.java deleted file mode 100644 index c46ef4da885..00000000000 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/CapabilitiesListResultInner.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 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. - */ - -package com.microsoft.azure.management.containerinstance.implementation; - -import java.util.List; -import com.microsoft.azure.management.containerinstance.Capabilities; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The response containing list of capabilities. - */ -public class CapabilitiesListResultInner { - /** - * The list of capabilities. - */ - @JsonProperty(value = "value") - private List value; - - /** - * The URI to fetch the next page of capabilities. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the list of capabilities. - * - * @return the value value - */ - public List value() { - return this.value; - } - - /** - * Set the list of capabilities. - * - * @param value the value value to set - * @return the CapabilitiesListResultInner object itself. - */ - public CapabilitiesListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the URI to fetch the next page of capabilities. - * - * @return the nextLink value - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the URI to fetch the next page of capabilities. - * - * @param nextLink the nextLink value to set - * @return the CapabilitiesListResultInner object itself. - */ - public CapabilitiesListResultInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - -} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerAttachResponseInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerAttachResponseInner.java new file mode 100644 index 00000000000..e8820a31bf0 --- /dev/null +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerAttachResponseInner.java @@ -0,0 +1,70 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.containerinstance.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The information for the output stream from container attach. + */ +public class ContainerAttachResponseInner { + /** + * The uri for the output stream from the attach. + */ + @JsonProperty(value = "webSocketUri") + private String webSocketUri; + + /** + * The password to the output stream from the attach. Send as an + * Authorization header value when connecting to the websocketUri. + */ + @JsonProperty(value = "password") + private String password; + + /** + * Get the uri for the output stream from the attach. + * + * @return the webSocketUri value + */ + public String webSocketUri() { + return this.webSocketUri; + } + + /** + * Set the uri for the output stream from the attach. + * + * @param webSocketUri the webSocketUri value to set + * @return the ContainerAttachResponseInner object itself. + */ + public ContainerAttachResponseInner withWebSocketUri(String webSocketUri) { + this.webSocketUri = webSocketUri; + return this; + } + + /** + * Get the password to the output stream from the attach. Send as an Authorization header value when connecting to the websocketUri. + * + * @return the password value + */ + public String password() { + return this.password; + } + + /** + * Set the password to the output stream from the attach. Send as an Authorization header value when connecting to the websocketUri. + * + * @param password the password value to set + * @return the ContainerAttachResponseInner object itself. + */ + public ContainerAttachResponseInner withPassword(String password) { + this.password = password; + return this; + } + +} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupInner.java index 26fad068e1d..9b71be3d540 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupInner.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupInner.java @@ -8,9 +8,9 @@ package com.microsoft.azure.management.containerinstance.implementation; -import com.microsoft.azure.management.containerinstance.Container; import com.microsoft.azure.management.containerinstance.ContainerGroupIdentity; import java.util.List; +import com.microsoft.azure.management.containerinstance.Container; import com.microsoft.azure.management.containerinstance.ImageRegistryCredential; import com.microsoft.azure.management.containerinstance.ContainerGroupRestartPolicy; import com.microsoft.azure.management.containerinstance.IpAddress; @@ -20,6 +20,9 @@ import com.microsoft.azure.management.containerinstance.ContainerGroupDiagnostics; import com.microsoft.azure.management.containerinstance.ContainerGroupNetworkProfile; import com.microsoft.azure.management.containerinstance.DnsConfiguration; +import com.microsoft.azure.management.containerinstance.ContainerGroupSku; +import com.microsoft.azure.management.containerinstance.EncryptionProperties; +import com.microsoft.azure.management.containerinstance.InitContainerDefinition; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; @@ -111,6 +114,25 @@ public class ContainerGroupInner extends Resource { @JsonProperty(value = "properties.dnsConfig") private DnsConfiguration dnsConfig; + /** + * The SKU for a container group. Possible values include: 'Standard', + * 'Dedicated'. + */ + @JsonProperty(value = "properties.sku") + private ContainerGroupSku sku; + + /** + * The encryption properties for a container group. + */ + @JsonProperty(value = "properties.encryptionProperties") + private EncryptionProperties encryptionProperties; + + /** + * The init containers for a container group. + */ + @JsonProperty(value = "properties.initContainers") + private List initContainers; + /** * Get the identity of the container group, if configured. * @@ -337,4 +359,64 @@ public ContainerGroupInner withDnsConfig(DnsConfiguration dnsConfig) { return this; } + /** + * Get the SKU for a container group. Possible values include: 'Standard', 'Dedicated'. + * + * @return the sku value + */ + public ContainerGroupSku sku() { + return this.sku; + } + + /** + * Set the SKU for a container group. Possible values include: 'Standard', 'Dedicated'. + * + * @param sku the sku value to set + * @return the ContainerGroupInner object itself. + */ + public ContainerGroupInner withSku(ContainerGroupSku sku) { + this.sku = sku; + return this; + } + + /** + * Get the encryption properties for a container group. + * + * @return the encryptionProperties value + */ + public EncryptionProperties encryptionProperties() { + return this.encryptionProperties; + } + + /** + * Set the encryption properties for a container group. + * + * @param encryptionProperties the encryptionProperties value to set + * @return the ContainerGroupInner object itself. + */ + public ContainerGroupInner withEncryptionProperties(EncryptionProperties encryptionProperties) { + this.encryptionProperties = encryptionProperties; + return this; + } + + /** + * Get the init containers for a container group. + * + * @return the initContainers value + */ + public List initContainers() { + return this.initContainers; + } + + /** + * Set the init containers for a container group. + * + * @param initContainers the initContainers value to set + * @return the ContainerGroupInner object itself. + */ + public ContainerGroupInner withInitContainers(List initContainers) { + this.initContainers = initContainers; + return this; + } + } diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupUsagesInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupUsagesInner.java deleted file mode 100644 index 4c848a61f02..00000000000 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupUsagesInner.java +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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. - */ - -package com.microsoft.azure.management.containerinstance.implementation; - -import retrofit2.Retrofit; -import com.google.common.reflect.TypeToken; -import com.microsoft.azure.CloudException; -import com.microsoft.rest.ServiceCallback; -import com.microsoft.rest.ServiceFuture; -import com.microsoft.rest.ServiceResponse; -import java.io.IOException; -import okhttp3.ResponseBody; -import retrofit2.http.GET; -import retrofit2.http.Header; -import retrofit2.http.Headers; -import retrofit2.http.Path; -import retrofit2.http.Query; -import retrofit2.Response; -import rx.functions.Func1; -import rx.Observable; - -/** - * An instance of this class provides access to all the operations defined - * in ContainerGroupUsages. - */ -public class ContainerGroupUsagesInner { - /** The Retrofit service to perform REST calls. */ - private ContainerGroupUsagesService service; - /** The service client containing this operation class. */ - private ContainerInstanceManagementClientImpl client; - - /** - * Initializes an instance of ContainerGroupUsagesInner. - * - * @param retrofit the Retrofit instance built from a Retrofit Builder. - * @param client the instance of the service client containing this operation class. - */ - public ContainerGroupUsagesInner(Retrofit retrofit, ContainerInstanceManagementClientImpl client) { - this.service = retrofit.create(ContainerGroupUsagesService.class); - this.client = client; - } - - /** - * The interface defining all the services for ContainerGroupUsages to be - * used by Retrofit to perform actually REST calls. - */ - interface ContainerGroupUsagesService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.ContainerGroupUsages list" }) - @GET("subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages") - Observable> list(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - } - - /** - * Get the usage for a subscription. - * - * @param location The identifier for the physical azure location. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the UsageListResultInner object if successful. - */ - public UsageListResultInner list(String location) { - return listWithServiceResponseAsync(location).toBlocking().single().body(); - } - - /** - * Get the usage for a subscription. - * - * @param location The identifier for the physical azure location. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture listAsync(String location, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listWithServiceResponseAsync(location), serviceCallback); - } - - /** - * Get the usage for a subscription. - * - * @param location The identifier for the physical azure location. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UsageListResultInner object - */ - public Observable listAsync(String location) { - return listWithServiceResponseAsync(location).map(new Func1, UsageListResultInner>() { - @Override - public UsageListResultInner call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Get the usage for a subscription. - * - * @param location The identifier for the physical azure location. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UsageListResultInner object - */ - public Observable> listWithServiceResponseAsync(String location) { - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (location == null) { - throw new IllegalArgumentException("Parameter location is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - return service.list(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = listDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - -} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupsImpl.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupsImpl.java index fb23ab2b50c..96a900af998 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupsImpl.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupsImpl.java @@ -6,7 +6,6 @@ package com.microsoft.azure.management.containerinstance.implementation; - import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.containerinstance.CachedImages; @@ -22,11 +21,6 @@ import rx.Observable; import rx.functions.Func1; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - /** * Implementation for ContainerGroups. */ @@ -82,7 +76,7 @@ public String getLogContent(String resourceGroupName, String containerGroupName, @Override public String getLogContent(String resourceGroupName, String containerGroupName, String containerName, int tailLineCount) { - LogsInner logsInner = this.manager().inner().containers().listLogs(resourceGroupName, containerGroupName, containerName, tailLineCount); + LogsInner logsInner = this.manager().inner().containers().listLogs(resourceGroupName, containerGroupName, containerName, tailLineCount, null); return logsInner != null ? logsInner.content() : null; } @@ -100,7 +94,7 @@ public String call(LogsInner logsInner) { @Override public Observable getLogContentAsync(String resourceGroupName, String containerGroupName, String containerName, int tailLineCount) { - return this.manager().inner().containers().listLogsAsync(resourceGroupName, containerGroupName, containerName, tailLineCount) + return this.manager().inner().containers().listLogsAsync(resourceGroupName, containerGroupName, containerName, tailLineCount, null) .map(new Func1() { @Override public String call(LogsInner logsInner) { @@ -110,57 +104,33 @@ public String call(LogsInner logsInner) { } @Override - public Set listOperations() { - OperationListResultInner operationListResultInner = this.manager().inner().operations().list(); - - return Collections.unmodifiableSet(operationListResultInner != null && operationListResultInner.value() != null - ? new HashSet(operationListResultInner.value()) - : new HashSet()); + public PagedList listOperations() { + return this.manager().inner().operations().list(); } @Override - public Observable> listOperationsAsync() { - return this.manager().inner().operations().listAsync() - .map(new Func1>() { - @Override - public Set call(OperationListResultInner operationListResultInner) { - return Collections.unmodifiableSet(operationListResultInner != null && operationListResultInner.value() != null - ? new HashSet(operationListResultInner.value()) - : new HashSet()); - } - }); + public Observable listOperationsAsync() { + return convertPageToInnerAsync(this.manager().inner().operations().listAsync()); } @Override - public List listCachedImages(String location) { - return this.manager().inner().listCachedImages(location).value(); + public PagedList listCachedImages(String location) { + return this.manager().inner().locations().listCachedImages(location); } @Override public Observable listCachedImagesAsync(String location) { - return this.manager().inner().listCachedImagesAsync(location) - .flatMap(new Func1>() { - @Override - public Observable call(CachedImagesListResultInner cachedImagesListResultInner) { - return Observable.from(cachedImagesListResultInner.value()); - } - }); + return convertPageToInnerAsync(this.manager().inner().locations().listCachedImagesAsync(location)); } @Override - public List listCapabilities(String location) { - return this.manager().inner().listCapabilities(location).value(); + public PagedList listCapabilities(String location) { + return this.manager().inner().locations().listCapabilities(location); } @Override public Observable listCapabilitiesAsync(String location) { - return this.manager().inner().listCapabilitiesAsync(location) - .flatMap(new Func1>() { - @Override - public Observable call(CapabilitiesListResultInner capabilitiesListResultInner) { - return Observable.from(capabilitiesListResultInner.value()); - } - }); + return convertPageToInnerAsync(this.manager().inner().locations().listCapabilitiesAsync(location)); } @Override diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupsInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupsInner.java index c4b1ba7925b..30a0bca199e 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupsInner.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerGroupsInner.java @@ -95,6 +95,10 @@ interface ContainerGroupsService { @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", method = "DELETE", hasBody = true) Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("containerGroupName") String containerGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.ContainerGroups beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("containerGroupName") String containerGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.ContainerGroups restart" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart") Observable> restart(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("containerGroupName") String containerGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -737,7 +741,7 @@ private ServiceResponse updateDelegate(Response deleteAsync(String resourceGroupName, * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerGroupInner object + * @return the observable for the request */ public Observable deleteAsync(String resourceGroupName, String containerGroupName) { return deleteWithServiceResponseAsync(resourceGroupName, containerGroupName).map(new Func1, ContainerGroupInner>() { @@ -779,7 +783,7 @@ public ContainerGroupInner call(ServiceResponse response) { * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerGroupInner object + * @return the observable for the request */ public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String containerGroupName) { if (this.client.subscriptionId() == null) { @@ -794,12 +798,85 @@ public Observable> deleteWithServiceRespons if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.delete(this.client.subscriptionId(), resourceGroupName, containerGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, containerGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Delete the specified container group. + * 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. + * + * @param resourceGroupName The name of the resource group. + * @param containerGroupName The name of the container group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ContainerGroupInner object if successful. + */ + public ContainerGroupInner beginDelete(String resourceGroupName, String containerGroupName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, containerGroupName).toBlocking().single().body(); + } + + /** + * Delete the specified container group. + * 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. + * + * @param resourceGroupName The name of the resource group. + * @param containerGroupName The name of the container group. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String containerGroupName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, containerGroupName), serviceCallback); + } + + /** + * Delete the specified container group. + * 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. + * + * @param resourceGroupName The name of the resource group. + * @param containerGroupName The name of the container group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ContainerGroupInner object + */ + public Observable beginDeleteAsync(String resourceGroupName, String containerGroupName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, containerGroupName).map(new Func1, ContainerGroupInner>() { + @Override + public ContainerGroupInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete the specified container group. + * 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. + * + * @param resourceGroupName The name of the resource group. + * @param containerGroupName The name of the container group. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ContainerGroupInner object + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String containerGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (containerGroupName == null) { + throw new IllegalArgumentException("Parameter containerGroupName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, containerGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteDelegate(response); + ServiceResponse clientResponse = beginDeleteDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -808,9 +885,10 @@ public Observable> call(Response deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse beginDeleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) .register(204, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); @@ -1068,7 +1146,7 @@ private ServiceResponse stopDelegate(Response response) thro /** * Starts all containers in a container group. - * Starts all containers in a container group. + * Starts all containers in a container group. Compute resources will be allocated and billing will start. * * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. @@ -1082,7 +1160,7 @@ public void start(String resourceGroupName, String containerGroupName) { /** * Starts all containers in a container group. - * Starts all containers in a container group. + * Starts all containers in a container group. Compute resources will be allocated and billing will start. * * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. @@ -1096,7 +1174,7 @@ public ServiceFuture startAsync(String resourceGroupName, String container /** * Starts all containers in a container group. - * Starts all containers in a container group. + * Starts all containers in a container group. Compute resources will be allocated and billing will start. * * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. @@ -1114,7 +1192,7 @@ public Void call(ServiceResponse response) { /** * Starts all containers in a container group. - * Starts all containers in a container group. + * Starts all containers in a container group. Compute resources will be allocated and billing will start. * * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. @@ -1140,7 +1218,7 @@ public Observable> startWithServiceResponseAsync(String re /** * Starts all containers in a container group. - * Starts all containers in a container group. + * Starts all containers in a container group. Compute resources will be allocated and billing will start. * * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. @@ -1154,7 +1232,7 @@ public void beginStart(String resourceGroupName, String containerGroupName) { /** * Starts all containers in a container group. - * Starts all containers in a container group. + * Starts all containers in a container group. Compute resources will be allocated and billing will start. * * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. @@ -1168,7 +1246,7 @@ public ServiceFuture beginStartAsync(String resourceGroupName, String cont /** * Starts all containers in a container group. - * Starts all containers in a container group. + * Starts all containers in a container group. Compute resources will be allocated and billing will start. * * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. @@ -1186,7 +1264,7 @@ public Void call(ServiceResponse response) { /** * Starts all containers in a container group. - * Starts all containers in a container group. + * Starts all containers in a container group. Compute resources will be allocated and billing will start. * * @param resourceGroupName The name of the resource group. * @param containerGroupName The name of the container group. @@ -1222,7 +1300,7 @@ public Observable> call(Response response) { private ServiceResponse beginStartDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(204, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerInstanceManagementClientImpl.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerInstanceManagementClientImpl.java index 405ab12d544..ed7a5a35034 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerInstanceManagementClientImpl.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainerInstanceManagementClientImpl.java @@ -8,32 +8,15 @@ package com.microsoft.azure.management.containerinstance.implementation; -import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; -import com.microsoft.azure.CloudException; import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient; -import com.microsoft.rest.ServiceCallback; -import com.microsoft.rest.ServiceFuture; -import com.microsoft.rest.ServiceResponse; -import java.io.IOException; -import okhttp3.ResponseBody; -import retrofit2.http.GET; -import retrofit2.http.Header; -import retrofit2.http.Headers; -import retrofit2.http.Path; -import retrofit2.http.Query; -import retrofit2.Response; -import rx.functions.Func1; -import rx.Observable; /** * Initializes a new instance of the ContainerInstanceManagementClientImpl class. */ public class ContainerInstanceManagementClientImpl extends AzureServiceClient { - /** The Retrofit service to perform REST calls. */ - private ContainerInstanceManagementClientService service; /** the {@link AzureClient} used for long running operations. */ private AzureClient azureClient; @@ -176,16 +159,16 @@ public OperationsInner operations() { } /** - * The ContainerGroupUsagesInner object to access its operations. + * The LocationsInner object to access its operations. */ - private ContainerGroupUsagesInner containerGroupUsages; + private LocationsInner locations; /** - * Gets the ContainerGroupUsagesInner object to access its operations. - * @return the ContainerGroupUsagesInner object. + * Gets the LocationsInner object to access its operations. + * @return the LocationsInner object. */ - public ContainerGroupUsagesInner containerGroupUsages() { - return this.containerGroupUsages; + public LocationsInner locations() { + return this.locations; } /** @@ -201,19 +184,6 @@ public ContainersInner containers() { return this.containers; } - /** - * The ServiceAssociationLinksInner object to access its operations. - */ - private ServiceAssociationLinksInner serviceAssociationLinks; - - /** - * Gets the ServiceAssociationLinksInner object to access its operations. - * @return the ServiceAssociationLinksInner object. - */ - public ServiceAssociationLinksInner serviceAssociationLinks() { - return this.serviceAssociationLinks; - } - /** * Initializes an instance of ContainerInstanceManagementClient client. * @@ -245,17 +215,15 @@ public ContainerInstanceManagementClientImpl(RestClient restClient) { } protected void initialize() { - this.apiVersion = "2018-10-01"; + this.apiVersion = "2021-03-01"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; this.containerGroups = new ContainerGroupsInner(restClient().retrofit(), this); this.operations = new OperationsInner(restClient().retrofit(), this); - this.containerGroupUsages = new ContainerGroupUsagesInner(restClient().retrofit(), this); + this.locations = new LocationsInner(restClient().retrofit(), this); this.containers = new ContainersInner(restClient().retrofit(), this); - this.serviceAssociationLinks = new ServiceAssociationLinksInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); - initializeService(); } /** @@ -265,192 +233,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "ContainerInstanceManagementClient", "2018-10-01"); - } - - private void initializeService() { - service = restClient().retrofit().create(ContainerInstanceManagementClientService.class); - } - - /** - * The interface defining all the services for ContainerInstanceManagementClient to be - * used by Retrofit to perform actually REST calls. - */ - interface ContainerInstanceManagementClientService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.ContainerInstanceManagementClient listCachedImages" }) - @GET("subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages") - Observable> listCachedImages(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.ContainerInstanceManagementClient listCapabilities" }) - @GET("subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities") - Observable> listCapabilities(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - } - - /** - * Get the list of cached images. - * Get the list of cached images on specific OS type for a subscription in a region. - * - * @param location The identifier for the physical azure location. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the CachedImagesListResultInner object if successful. - */ - public CachedImagesListResultInner listCachedImages(String location) { - return listCachedImagesWithServiceResponseAsync(location).toBlocking().single().body(); - } - - /** - * Get the list of cached images. - * Get the list of cached images on specific OS type for a subscription in a region. - * - * @param location The identifier for the physical azure location. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture listCachedImagesAsync(String location, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listCachedImagesWithServiceResponseAsync(location), serviceCallback); - } - - /** - * Get the list of cached images. - * Get the list of cached images on specific OS type for a subscription in a region. - * - * @param location The identifier for the physical azure location. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the CachedImagesListResultInner object - */ - public Observable listCachedImagesAsync(String location) { - return listCachedImagesWithServiceResponseAsync(location).map(new Func1, CachedImagesListResultInner>() { - @Override - public CachedImagesListResultInner call(ServiceResponse response) { - return response.body(); - } - }); + return String.format("%s (%s, %s)", super.userAgent(), "ContainerInstanceManagementClient", "2021-03-01"); } - - /** - * Get the list of cached images. - * Get the list of cached images on specific OS type for a subscription in a region. - * - * @param location The identifier for the physical azure location. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the CachedImagesListResultInner object - */ - public Observable> listCachedImagesWithServiceResponseAsync(String location) { - if (this.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.subscriptionId() is required and cannot be null."); - } - if (location == null) { - throw new IllegalArgumentException("Parameter location is required and cannot be null."); - } - if (this.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null."); - } - return service.listCachedImages(this.subscriptionId(), location, this.apiVersion(), this.acceptLanguage(), this.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = listCachedImagesDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse listCachedImagesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.restClient().responseBuilderFactory().newInstance(this.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - - /** - * Get the list of capabilities of the location. - * Get the list of CPU/memory/GPU capabilities of a region. - * - * @param location The identifier for the physical azure location. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the CapabilitiesListResultInner object if successful. - */ - public CapabilitiesListResultInner listCapabilities(String location) { - return listCapabilitiesWithServiceResponseAsync(location).toBlocking().single().body(); - } - - /** - * Get the list of capabilities of the location. - * Get the list of CPU/memory/GPU capabilities of a region. - * - * @param location The identifier for the physical azure location. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture listCapabilitiesAsync(String location, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listCapabilitiesWithServiceResponseAsync(location), serviceCallback); - } - - /** - * Get the list of capabilities of the location. - * Get the list of CPU/memory/GPU capabilities of a region. - * - * @param location The identifier for the physical azure location. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the CapabilitiesListResultInner object - */ - public Observable listCapabilitiesAsync(String location) { - return listCapabilitiesWithServiceResponseAsync(location).map(new Func1, CapabilitiesListResultInner>() { - @Override - public CapabilitiesListResultInner call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Get the list of capabilities of the location. - * Get the list of CPU/memory/GPU capabilities of a region. - * - * @param location The identifier for the physical azure location. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the CapabilitiesListResultInner object - */ - public Observable> listCapabilitiesWithServiceResponseAsync(String location) { - if (this.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.subscriptionId() is required and cannot be null."); - } - if (location == null) { - throw new IllegalArgumentException("Parameter location is required and cannot be null."); - } - if (this.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null."); - } - return service.listCapabilities(this.subscriptionId(), location, this.apiVersion(), this.acceptLanguage(), this.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = listCapabilitiesDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse listCapabilitiesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.restClient().responseBuilderFactory().newInstance(this.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - } diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainersInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainersInner.java index 5b5166396e1..12202cd53a2 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainersInner.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ContainersInner.java @@ -57,12 +57,16 @@ public ContainersInner(Retrofit retrofit, ContainerInstanceManagementClientImpl interface ContainersService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.Containers listLogs" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs") - Observable> listLogs(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("containerGroupName") String containerGroupName, @Path("containerName") String containerName, @Query("api-version") String apiVersion, @Query("tail") Integer tail, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> listLogs(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("containerGroupName") String containerGroupName, @Path("containerName") String containerName, @Query("api-version") String apiVersion, @Query("tail") Integer tail, @Query("timestamps") Boolean timestamps, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.Containers executeCommand" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec") Observable> executeCommand(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("containerGroupName") String containerGroupName, @Path("containerName") String containerName, @Query("api-version") String apiVersion, @Body ContainerExecRequest containerExecRequest, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.Containers attach" }) + @POST("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach") + Observable> attach(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("containerGroupName") String containerGroupName, @Path("containerName") String containerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + } /** @@ -142,7 +146,8 @@ public Observable> listLogsWithServiceResponseAsync(S throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final Integer tail = null; - return service.listLogs(this.client.subscriptionId(), resourceGroupName, containerGroupName, containerName, this.client.apiVersion(), tail, this.client.acceptLanguage(), this.client.userAgent()) + final Boolean timestamps = null; + return service.listLogs(this.client.subscriptionId(), resourceGroupName, containerGroupName, containerName, this.client.apiVersion(), tail, timestamps, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -164,13 +169,14 @@ public Observable> call(Response respon * @param containerGroupName The name of the container group. * @param containerName The name of the container instance. * @param tail The number of lines to show from the tail of the container instance log. If not provided, all available logs are shown up to 4mb. + * @param timestamps If true, adds a timestamp at the beginning of every line of log output. If not provided, defaults to false. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the LogsInner object if successful. */ - public LogsInner listLogs(String resourceGroupName, String containerGroupName, String containerName, Integer tail) { - return listLogsWithServiceResponseAsync(resourceGroupName, containerGroupName, containerName, tail).toBlocking().single().body(); + public LogsInner listLogs(String resourceGroupName, String containerGroupName, String containerName, Integer tail, Boolean timestamps) { + return listLogsWithServiceResponseAsync(resourceGroupName, containerGroupName, containerName, tail, timestamps).toBlocking().single().body(); } /** @@ -181,12 +187,13 @@ public LogsInner listLogs(String resourceGroupName, String containerGroupName, S * @param containerGroupName The name of the container group. * @param containerName The name of the container instance. * @param tail The number of lines to show from the tail of the container instance log. If not provided, all available logs are shown up to 4mb. + * @param timestamps If true, adds a timestamp at the beginning of every line of log output. If not provided, defaults to false. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listLogsAsync(String resourceGroupName, String containerGroupName, String containerName, Integer tail, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listLogsWithServiceResponseAsync(resourceGroupName, containerGroupName, containerName, tail), serviceCallback); + public ServiceFuture listLogsAsync(String resourceGroupName, String containerGroupName, String containerName, Integer tail, Boolean timestamps, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listLogsWithServiceResponseAsync(resourceGroupName, containerGroupName, containerName, tail, timestamps), serviceCallback); } /** @@ -197,11 +204,12 @@ public ServiceFuture listLogsAsync(String resourceGroupName, String c * @param containerGroupName The name of the container group. * @param containerName The name of the container instance. * @param tail The number of lines to show from the tail of the container instance log. If not provided, all available logs are shown up to 4mb. + * @param timestamps If true, adds a timestamp at the beginning of every line of log output. If not provided, defaults to false. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the LogsInner object */ - public Observable listLogsAsync(String resourceGroupName, String containerGroupName, String containerName, Integer tail) { - return listLogsWithServiceResponseAsync(resourceGroupName, containerGroupName, containerName, tail).map(new Func1, LogsInner>() { + public Observable listLogsAsync(String resourceGroupName, String containerGroupName, String containerName, Integer tail, Boolean timestamps) { + return listLogsWithServiceResponseAsync(resourceGroupName, containerGroupName, containerName, tail, timestamps).map(new Func1, LogsInner>() { @Override public LogsInner call(ServiceResponse response) { return response.body(); @@ -217,10 +225,11 @@ public LogsInner call(ServiceResponse response) { * @param containerGroupName The name of the container group. * @param containerName The name of the container instance. * @param tail The number of lines to show from the tail of the container instance log. If not provided, all available logs are shown up to 4mb. + * @param timestamps If true, adds a timestamp at the beginning of every line of log output. If not provided, defaults to false. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the LogsInner object */ - public Observable> listLogsWithServiceResponseAsync(String resourceGroupName, String containerGroupName, String containerName, Integer tail) { + public Observable> listLogsWithServiceResponseAsync(String resourceGroupName, String containerGroupName, String containerName, Integer tail, Boolean timestamps) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -236,7 +245,7 @@ public Observable> listLogsWithServiceResponseAsync(S if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listLogs(this.client.subscriptionId(), resourceGroupName, containerGroupName, containerName, this.client.apiVersion(), tail, this.client.acceptLanguage(), this.client.userAgent()) + return service.listLogs(this.client.subscriptionId(), resourceGroupName, containerGroupName, containerName, this.client.apiVersion(), tail, timestamps, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -362,4 +371,101 @@ private ServiceResponse executeCommandDelegate(Respo .build(response); } + /** + * Attach to the output of a specific container instance. + * Attach to the output stream of a specific container instance in a specified resource group and container group. + * + * @param resourceGroupName The name of the resource group. + * @param containerGroupName The name of the container group. + * @param containerName The name of the container instance. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ContainerAttachResponseInner object if successful. + */ + public ContainerAttachResponseInner attach(String resourceGroupName, String containerGroupName, String containerName) { + return attachWithServiceResponseAsync(resourceGroupName, containerGroupName, containerName).toBlocking().single().body(); + } + + /** + * Attach to the output of a specific container instance. + * Attach to the output stream of a specific container instance in a specified resource group and container group. + * + * @param resourceGroupName The name of the resource group. + * @param containerGroupName The name of the container group. + * @param containerName The name of the container instance. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture attachAsync(String resourceGroupName, String containerGroupName, String containerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(attachWithServiceResponseAsync(resourceGroupName, containerGroupName, containerName), serviceCallback); + } + + /** + * Attach to the output of a specific container instance. + * Attach to the output stream of a specific container instance in a specified resource group and container group. + * + * @param resourceGroupName The name of the resource group. + * @param containerGroupName The name of the container group. + * @param containerName The name of the container instance. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ContainerAttachResponseInner object + */ + public Observable attachAsync(String resourceGroupName, String containerGroupName, String containerName) { + return attachWithServiceResponseAsync(resourceGroupName, containerGroupName, containerName).map(new Func1, ContainerAttachResponseInner>() { + @Override + public ContainerAttachResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Attach to the output of a specific container instance. + * Attach to the output stream of a specific container instance in a specified resource group and container group. + * + * @param resourceGroupName The name of the resource group. + * @param containerGroupName The name of the container group. + * @param containerName The name of the container instance. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ContainerAttachResponseInner object + */ + public Observable> attachWithServiceResponseAsync(String resourceGroupName, String containerGroupName, String containerName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (containerGroupName == null) { + throw new IllegalArgumentException("Parameter containerGroupName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.attach(this.client.subscriptionId(), resourceGroupName, containerGroupName, containerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = attachDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse attachDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + } diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/LocationsInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/LocationsInner.java new file mode 100644 index 00000000000..c3554dc056d --- /dev/null +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/LocationsInner.java @@ -0,0 +1,640 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.containerinstance.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.containerinstance.CachedImages; +import com.microsoft.azure.management.containerinstance.Capabilities; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Locations. + */ +public class LocationsInner { + /** The Retrofit service to perform REST calls. */ + private LocationsService service; + /** The service client containing this operation class. */ + private ContainerInstanceManagementClientImpl client; + + /** + * Initializes an instance of LocationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public LocationsInner(Retrofit retrofit, ContainerInstanceManagementClientImpl client) { + this.service = retrofit.create(LocationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Locations to be + * used by Retrofit to perform actually REST calls. + */ + interface LocationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.Locations listUsage" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages") + Observable> listUsage(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.Locations listCachedImages" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages") + Observable> listCachedImages(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.Locations listCapabilities" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities") + Observable> listCapabilities(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.Locations listCachedImagesNext" }) + @GET + Observable> listCachedImagesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.Locations listCapabilitiesNext" }) + @GET + Observable> listCapabilitiesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Get the usage for a subscription. + * + * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<UsageInner> object if successful. + */ + public List listUsage(String location) { + return listUsageWithServiceResponseAsync(location).toBlocking().single().body(); + } + + /** + * Get the usage for a subscription. + * + * @param location The identifier for the physical azure location. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listUsageAsync(String location, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listUsageWithServiceResponseAsync(location), serviceCallback); + } + + /** + * Get the usage for a subscription. + * + * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<UsageInner> object + */ + public Observable> listUsageAsync(String location) { + return listUsageWithServiceResponseAsync(location).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get the usage for a subscription. + * + * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<UsageInner> object + */ + public Observable>> listUsageWithServiceResponseAsync(String location) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (location == null) { + throw new IllegalArgumentException("Parameter location is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listUsage(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listUsageDelegate(response); + List items = null; + if (result.body() != null) { + items = result.body().items(); + } + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listUsageDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<CachedImages> object if successful. + */ + public PagedList listCachedImages(final String location) { + ServiceResponse> response = listCachedImagesSinglePageAsync(location).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listCachedImagesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + * @param location The identifier for the physical azure location. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listCachedImagesAsync(final String location, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listCachedImagesSinglePageAsync(location), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listCachedImagesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<CachedImages> object + */ + public Observable> listCachedImagesAsync(final String location) { + return listCachedImagesWithServiceResponseAsync(location) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<CachedImages> object + */ + public Observable>> listCachedImagesWithServiceResponseAsync(final String location) { + return listCachedImagesSinglePageAsync(location) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listCachedImagesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + ServiceResponse> * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<CachedImages> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listCachedImagesSinglePageAsync(final String location) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (location == null) { + throw new IllegalArgumentException("Parameter location is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listCachedImages(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listCachedImagesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listCachedImagesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<Capabilities> object if successful. + */ + public PagedList listCapabilities(final String location) { + ServiceResponse> response = listCapabilitiesSinglePageAsync(location).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listCapabilitiesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + * @param location The identifier for the physical azure location. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listCapabilitiesAsync(final String location, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listCapabilitiesSinglePageAsync(location), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listCapabilitiesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Capabilities> object + */ + public Observable> listCapabilitiesAsync(final String location) { + return listCapabilitiesWithServiceResponseAsync(location) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Capabilities> object + */ + public Observable>> listCapabilitiesWithServiceResponseAsync(final String location) { + return listCapabilitiesSinglePageAsync(location) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listCapabilitiesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + ServiceResponse> * @param location The identifier for the physical azure location. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<Capabilities> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listCapabilitiesSinglePageAsync(final String location) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (location == null) { + throw new IllegalArgumentException("Parameter location is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listCapabilities(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listCapabilitiesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listCapabilitiesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<CachedImages> object if successful. + */ + public PagedList listCachedImagesNext(final String nextPageLink) { + ServiceResponse> response = listCachedImagesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listCachedImagesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listCachedImagesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listCachedImagesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listCachedImagesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<CachedImages> object + */ + public Observable> listCachedImagesNextAsync(final String nextPageLink) { + return listCachedImagesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<CachedImages> object + */ + public Observable>> listCachedImagesNextWithServiceResponseAsync(final String nextPageLink) { + return listCachedImagesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listCachedImagesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get the list of cached images. + * Get the list of cached images on specific OS type for a subscription in a region. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<CachedImages> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listCachedImagesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listCachedImagesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listCachedImagesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listCachedImagesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<Capabilities> object if successful. + */ + public PagedList listCapabilitiesNext(final String nextPageLink) { + ServiceResponse> response = listCapabilitiesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listCapabilitiesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listCapabilitiesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listCapabilitiesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listCapabilitiesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Capabilities> object + */ + public Observable> listCapabilitiesNextAsync(final String nextPageLink) { + return listCapabilitiesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Capabilities> object + */ + public Observable>> listCapabilitiesNextWithServiceResponseAsync(final String nextPageLink) { + return listCapabilitiesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listCapabilitiesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get the list of capabilities of the location. + * Get the list of CPU/memory/GPU capabilities of a region. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<Capabilities> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listCapabilitiesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listCapabilitiesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listCapabilitiesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listCapabilitiesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/OperationListResultInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/OperationListResultInner.java deleted file mode 100644 index 9b2b30f0498..00000000000 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/OperationListResultInner.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * 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. - */ - -package com.microsoft.azure.management.containerinstance.implementation; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.microsoft.azure.management.containerinstance.Operation; - -/** - * The operation list response that contains all operations for Azure Container - * Instance service. - */ -public class OperationListResultInner { - /** - * The list of operations. - */ - @JsonProperty(value = "value") - private List value; - - /** - * The URI to fetch the next page of operations. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the list of operations. - * - * @return the value value - */ - public List value() { - return this.value; - } - - /** - * Set the list of operations. - * - * @param value the value value to set - * @return the OperationListResultInner object itself. - */ - public OperationListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the URI to fetch the next page of operations. - * - * @return the nextLink value - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the URI to fetch the next page of operations. - * - * @param nextLink the nextLink value to set - * @return the OperationListResultInner object itself. - */ - public OperationListResultInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - -} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/OperationsInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/OperationsInner.java index 2e73e54eddf..c0067439b43 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/OperationsInner.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/OperationsInner.java @@ -10,16 +10,22 @@ import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; -import com.microsoft.rest.ServiceCallback; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.containerinstance.Operation; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; import java.io.IOException; +import java.util.List; import okhttp3.ResponseBody; import retrofit2.http.GET; import retrofit2.http.Header; import retrofit2.http.Headers; import retrofit2.http.Query; +import retrofit2.http.Url; import retrofit2.Response; import rx.functions.Func1; import rx.Observable; @@ -54,6 +60,10 @@ interface OperationsService { @GET("providers/Microsoft.ContainerInstance/operations") Observable> list(@Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.Operations listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + } /** @@ -62,10 +72,16 @@ interface OperationsService { * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the OperationListResultInner object if successful. + * @return the PagedList<Operation> object if successful. */ - public OperationListResultInner list() { - return listWithServiceResponseAsync().toBlocking().single().body(); + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** @@ -75,42 +91,182 @@ public OperationListResultInner list() { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listAsync(final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** * List the operations for Azure Container Instance service. * * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the OperationListResultInner object + * @return the observable to the PagedList<Operation> object */ - public Observable listAsync() { - return listWithServiceResponseAsync().map(new Func1, OperationListResultInner>() { - @Override - public OperationListResultInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List the operations for Azure Container Instance service. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Operation> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); } /** * List the operations for Azure Container Instance service. * * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the OperationListResultInner object + * @return the PagedList<Operation> object wrapped in {@link ServiceResponse} if successful. */ - public Observable> listWithServiceResponseAsync() { + public Observable>> listSinglePageAsync() { if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * List the operations for Azure Container Instance service. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<Operation> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List the operations for Azure Container Instance service. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List the operations for Azure Container Instance service. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Operation> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List the operations for Azure Container Instance service. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Operation> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List the operations for Azure Container Instance service. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<Operation> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = listDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -118,9 +274,9 @@ public Observable> call(Response listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/PageImpl1.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/PageImpl1.java new file mode 100644 index 00000000000..c374ffeb26a --- /dev/null +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/PageImpl1.java @@ -0,0 +1,75 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.containerinstance.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl1 implements Page { + /** + * The link to the next page. + */ + @JsonProperty("") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("value") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String nextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List items() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl1 setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl1 setItems(List items) { + this.items = items; + return this; + } +} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ServiceAssociationLinksInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ServiceAssociationLinksInner.java deleted file mode 100644 index 7a5c22eb01e..00000000000 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/ServiceAssociationLinksInner.java +++ /dev/null @@ -1,157 +0,0 @@ -/** - * 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. - */ - -package com.microsoft.azure.management.containerinstance.implementation; - -import retrofit2.Retrofit; -import com.google.common.reflect.TypeToken; -import com.microsoft.azure.CloudException; -import com.microsoft.rest.ServiceCallback; -import com.microsoft.rest.ServiceFuture; -import com.microsoft.rest.ServiceResponse; -import java.io.IOException; -import okhttp3.ResponseBody; -import retrofit2.http.Header; -import retrofit2.http.Headers; -import retrofit2.http.HTTP; -import retrofit2.http.Path; -import retrofit2.http.Query; -import retrofit2.Response; -import rx.functions.Func1; -import rx.Observable; - -/** - * An instance of this class provides access to all the operations defined - * in ServiceAssociationLinks. - */ -public class ServiceAssociationLinksInner { - /** The Retrofit service to perform REST calls. */ - private ServiceAssociationLinksService service; - /** The service client containing this operation class. */ - private ContainerInstanceManagementClientImpl client; - - /** - * Initializes an instance of ServiceAssociationLinksInner. - * - * @param retrofit the Retrofit instance built from a Retrofit Builder. - * @param client the instance of the service client containing this operation class. - */ - public ServiceAssociationLinksInner(Retrofit retrofit, ContainerInstanceManagementClientImpl client) { - this.service = retrofit.create(ServiceAssociationLinksService.class); - this.client = client; - } - - /** - * The interface defining all the services for ServiceAssociationLinks to be - * used by Retrofit to perform actually REST calls. - */ - interface ServiceAssociationLinksService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerinstance.ServiceAssociationLinks delete" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", method = "DELETE", hasBody = true) - Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkName") String virtualNetworkName, @Path("subnetName") String subnetName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - } - - /** - * Delete the container instance service association link for the subnet. - * Delete the container instance service association link for the subnet. This operation unblocks user from deleting subnet. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - */ - public void delete(String resourceGroupName, String virtualNetworkName, String subnetName) { - deleteWithServiceResponseAsync(resourceGroupName, virtualNetworkName, subnetName).toBlocking().single().body(); - } - - /** - * Delete the container instance service association link for the subnet. - * Delete the container instance service association link for the subnet. This operation unblocks user from deleting subnet. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, virtualNetworkName, subnetName), serviceCallback); - } - - /** - * Delete the container instance service association link for the subnet. - * Delete the container instance service association link for the subnet. This operation unblocks user from deleting subnet. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName) { - return deleteWithServiceResponseAsync(resourceGroupName, virtualNetworkName, subnetName).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Delete the container instance service association link for the subnet. - * Delete the container instance service association link for the subnet. This operation unblocks user from deleting subnet. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName) { - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (resourceGroupName == null) { - throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); - } - if (virtualNetworkName == null) { - throw new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null."); - } - if (subnetName == null) { - throw new IllegalArgumentException("Parameter subnetName is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - return service.delete(this.client.subscriptionId(), resourceGroupName, virtualNetworkName, subnetName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = deleteDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - -} diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Usage.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/UsageInner.java similarity index 90% rename from azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Usage.java rename to azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/UsageInner.java index 9646296dddf..7c574acbff3 100644 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/Usage.java +++ b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/UsageInner.java @@ -6,14 +6,15 @@ * Code generated by Microsoft (R) AutoRest Code Generator. */ -package com.microsoft.azure.management.containerinstance; +package com.microsoft.azure.management.containerinstance.implementation; +import com.microsoft.azure.management.containerinstance.UsageName; import com.fasterxml.jackson.annotation.JsonProperty; /** * A single usage result. */ -public class Usage { +public class UsageInner { /** * Unit of the usage result. */ diff --git a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/UsageListResultInner.java b/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/UsageListResultInner.java deleted file mode 100644 index 52a218be728..00000000000 --- a/azure-mgmt-containerinstance/src/main/java/com/microsoft/azure/management/containerinstance/implementation/UsageListResultInner.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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. - */ - -package com.microsoft.azure.management.containerinstance.implementation; - -import java.util.List; -import com.microsoft.azure.management.containerinstance.Usage; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The response containing the usage data. - */ -public class UsageListResultInner { - /** - * The value property. - */ - @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) - private List value; - - /** - * Get the value value. - * - * @return the value value - */ - public List value() { - return this.value; - } - -} diff --git a/azure-samples/src/test/resources/session-records/testManageContainerInstanceWithMultipleContainerImages.json b/azure-samples/src/test/resources/session-records/testManageContainerInstanceWithMultipleContainerImages.json index 98432dbe52a..9ce8c8a919f 100644 --- a/azure-samples/src/test/resources/session-records/testManageContainerInstanceWithMultipleContainerImages.json +++ b/azure-samples/src/test/resources/session-records/testManageContainerInstanceWithMultipleContainerImages.json @@ -1,13 +1,13 @@ { "networkCallRecords" : [ { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci64e837319?api-version=2020-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci7fa102102?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Linux/5.4.0-52-generic MacAddressHash:d60baead5e150851a6edf2430eb7cd58240bd9b8db9be720d63941b29ee8c7bb Java:14.0.2 (ResourceManagementClient, 2020-06-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ResourceManagementClient, 2020-06-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Fri, 13 Nov 2020 03:02:19 GMT", + "date" : "Mon, 29 Mar 2021 06:26:43 GMT", "content-length" : "309", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1199", @@ -15,49 +15,49 @@ "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "1d3eab07-52de-4653-8e53-725545760b8b", + "x-ms-correlation-request-id" : "f00345f0-5043-4fa3-a9ed-a8b649bd25f8", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20201113T030219Z:1d3eab07-52de-4653-8e53-725545760b8b", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062643Z:f00345f0-5043-4fa3-a9ed-a8b649bd25f8", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "1d3eab07-52de-4653-8e53-725545760b8b", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319\",\"name\":\"rgaci64e837319\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"westus\",\"tags\":{\"date\":\"2020-11-13T03:02:17.108Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + "x-ms-request-id" : "f00345f0-5043-4fa3-a9ed-a8b649bd25f8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102\",\"name\":\"rgaci7fa102102\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"westus\",\"tags\":{\"date\":\"2021-03-29T06:26:40.930Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Linux/5.4.0-52-generic MacAddressHash:d60baead5e150851a6edf2430eb7cd58240bd9b8db9be720d63941b29ee8c7bb Java:14.0.2 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Fri, 13 Nov 2020 03:02:31 GMT", - "content-length" : "981", + "date" : "Mon, 29 Mar 2021 06:26:51 GMT", + "content-length" : "997", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1198", "retry-after" : "0", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "83f36b55-16cf-4331-91b9-bfdc70936d39", + "x-ms-correlation-request-id" : "ff33b52b-a280-4fe1-a72f-969e25040565", "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h" : "999", "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m" : "299", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20201113T030231Z:83f36b55-16cf-4331-91b9-bfdc70936d39", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062651Z:ff33b52b-a280-4fe1-a72f-969e25040565", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "westus:eebf3e50-b2de-4b6e-90e1-f8dc309b0bb7", - "Body" : "{\"properties\":{\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"acisamplecee101403-1\",\"properties\":{\"image\":\"microsoft/aci-helloworld\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}},{\"name\":\"acisamplecee101403-2\",\"properties\":{\"image\":\"microsoft/aci-tutorial-sidecar\",\"ports\":[],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"13.83.247.209\",\"type\":\"Public\",\"dnsNameLabel\":\"acisamplecee101403\",\"fqdn\":\"acisamplecee101403.westus.azurecontainer.io\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403\",\"name\":\"acisamplecee101403\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"westus\",\"tags\":{}}", - "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/eebf3e50-b2de-4b6e-90e1-f8dc309b0bb7?api-version=2018-06-01" + "x-ms-request-id" : "westus:1979c463-a38f-4319-9607-62ec174c80a6", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"acisamplecda973343-1\",\"properties\":{\"image\":\"microsoft/aci-helloworld\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}},{\"name\":\"acisamplecda973343-2\",\"properties\":{\"image\":\"microsoft/aci-tutorial-sidecar\",\"ports\":[],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"type\":\"Public\",\"dnsNameLabel\":\"acisamplecda973343\",\"fqdn\":\"acisamplecda973343.westus.azurecontainer.io\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343\",\"name\":\"acisamplecda973343\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"westus\",\"tags\":{}}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/1979c463-a38f-4319-9607-62ec174c80a6?api-version=2018-06-01" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/eebf3e50-b2de-4b6e-90e1-f8dc309b0bb7?api-version=2018-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/1979c463-a38f-4319-9607-62ec174c80a6?api-version=2018-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Linux/5.4.0-52-generic MacAddressHash:d60baead5e150851a6edf2430eb7cd58240bd9b8db9be720d63941b29ee8c7bb Java:14.0.2 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Fri, 13 Nov 2020 03:02:33 GMT", + "date" : "Mon, 29 Mar 2021 06:27:21 GMT", "content-length" : "252", "expires" : "-1", "vary" : "Accept-Encoding,Accept-Encoding", @@ -66,23 +66,23 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a7dce3cf-0ffc-4d99-84cb-9331f4486046", + "x-ms-correlation-request-id" : "40256e7c-a2ac-4976-9e2a-44c7b1523e7e", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20201113T030233Z:a7dce3cf-0ffc-4d99-84cb-9331f4486046", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062722Z:40256e7c-a2ac-4976-9e2a-44c7b1523e7e", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "westus:d00b11fe-b20b-4658-ad40-602d3a026fcf", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403\",\"status\":\"Pending\",\"startTime\":\"2020-11-13T03:02:30.4434513Z\",\"properties\":{\"events\":[]}}" + "x-ms-request-id" : "westus:8f3ee408-b9e6-4d5c-a52e-bd39cc14e90b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343\",\"status\":\"Pending\",\"startTime\":\"2021-03-29T06:26:49.9733306Z\",\"properties\":{\"events\":[]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/eebf3e50-b2de-4b6e-90e1-f8dc309b0bb7?api-version=2018-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westus/operations/1979c463-a38f-4319-9607-62ec174c80a6?api-version=2018-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Linux/5.4.0-52-generic MacAddressHash:d60baead5e150851a6edf2430eb7cd58240bd9b8db9be720d63941b29ee8c7bb Java:14.0.2 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Fri, 13 Nov 2020 03:03:04 GMT", - "content-length" : "1619", + "date" : "Mon, 29 Mar 2021 06:27:52 GMT", + "content-length" : "1827", "expires" : "-1", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", @@ -90,23 +90,23 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "2814403c-b6a8-4475-aef4-0bd53d20a962", + "x-ms-correlation-request-id" : "fe31115f-77ed-416c-a924-c6c4cf2fd263", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20201113T030304Z:2814403c-b6a8-4475-aef4-0bd53d20a962", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062753Z:fe31115f-77ed-416c-a924-c6c4cf2fd263", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "westus:ff49a9db-0145-4091-af25-f295a78b81ff", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-13T03:02:30.4434513Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:38Z\",\"lastTimestamp\":\"2020-11-13T03:02:38Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-helloworld\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:44Z\",\"lastTimestamp\":\"2020-11-13T03:02:44Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-helloworld\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:47Z\",\"lastTimestamp\":\"2020-11-13T03:02:47Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:47Z\",\"lastTimestamp\":\"2020-11-13T03:02:47Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:47Z\",\"lastTimestamp\":\"2020-11-13T03:02:47Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-tutorial-sidecar\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:51Z\",\"lastTimestamp\":\"2020-11-13T03:02:51Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-tutorial-sidecar\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:52Z\",\"lastTimestamp\":\"2020-11-13T03:02:52Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:52Z\",\"lastTimestamp\":\"2020-11-13T03:02:52Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]}}" + "x-ms-request-id" : "westus:ba0ba048-b9e9-4d23-8cc6-d215f1bb2e69", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-29T06:26:49.9733306Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:00Z\",\"lastTimestamp\":\"2021-03-29T06:27:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-helloworld@sha256:565dba8ce20ca1a311c2d9485089d7ddc935dd50140510050345a1b0ea4ffa6e\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:05Z\",\"lastTimestamp\":\"2021-03-29T06:27:05Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-helloworld@sha256:565dba8ce20ca1a311c2d9485089d7ddc935dd50140510050345a1b0ea4ffa6e\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:15Z\",\"lastTimestamp\":\"2021-03-29T06:27:15Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:00Z\",\"lastTimestamp\":\"2021-03-29T06:27:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-tutorial-sidecar@sha256:d67781a4a9d7af74aba5cd8021727e3ff728ca96ef521a7fb723bfc65315dd52\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:05Z\",\"lastTimestamp\":\"2021-03-29T06:27:05Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-tutorial-sidecar@sha256:d67781a4a9d7af74aba5cd8021727e3ff728ca96ef521a7fb723bfc65315dd52\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:16Z\",\"lastTimestamp\":\"2021-03-29T06:27:16Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:18Z\",\"lastTimestamp\":\"2021-03-29T06:27:18Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 6e48d1d7f8b8fff84773fb509c94704edffefcc01747bf937a704e827f3f6a68.\",\"type\":\"Normal\"}]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Linux/5.4.0-52-generic MacAddressHash:d60baead5e150851a6edf2430eb7cd58240bd9b8db9be720d63941b29ee8c7bb Java:14.0.2 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Fri, 13 Nov 2020 03:03:04 GMT", - "content-length" : "2615", + "date" : "Mon, 29 Mar 2021 06:27:53 GMT", + "content-length" : "2916", "expires" : "-1", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", @@ -114,24 +114,24 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e6830a5a-e228-4bad-bb6e-dd8d7658c281", + "x-ms-correlation-request-id" : "1e39ab7f-d756-4f75-a44c-fc787ac2254d", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20201113T030304Z:e6830a5a-e228-4bad-bb6e-dd8d7658c281", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062754Z:1e39ab7f-d756-4f75-a44c-fc787ac2254d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "westus:c5d9dd0b-7159-46bb-95fd-de50c30ce16d", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"acisamplecee101403-1\",\"properties\":{\"image\":\"microsoft/aci-helloworld\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-11-13T03:02:47Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:38Z\",\"lastTimestamp\":\"2020-11-13T03:02:38Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-helloworld\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:44Z\",\"lastTimestamp\":\"2020-11-13T03:02:44Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-helloworld\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:47Z\",\"lastTimestamp\":\"2020-11-13T03:02:47Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:47Z\",\"lastTimestamp\":\"2020-11-13T03:02:47Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}},{\"name\":\"acisamplecee101403-2\",\"properties\":{\"image\":\"microsoft/aci-tutorial-sidecar\",\"ports\":[],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-11-13T03:02:52Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:47Z\",\"lastTimestamp\":\"2020-11-13T03:02:47Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-tutorial-sidecar\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:51Z\",\"lastTimestamp\":\"2020-11-13T03:02:51Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-tutorial-sidecar\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:52Z\",\"lastTimestamp\":\"2020-11-13T03:02:52Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:52Z\",\"lastTimestamp\":\"2020-11-13T03:02:52Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"13.83.247.209\",\"type\":\"Public\",\"dnsNameLabel\":\"acisamplecee101403\",\"fqdn\":\"acisamplecee101403.westus.azurecontainer.io\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403\",\"name\":\"acisamplecee101403\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"westus\",\"tags\":{}}" + "x-ms-request-id" : "westus:78e1d9b8-a707-4005-adac-683d38e250b3", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"acisamplecda973343-1\",\"properties\":{\"image\":\"microsoft/aci-helloworld\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:27:15.636Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:00Z\",\"lastTimestamp\":\"2021-03-29T06:27:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-helloworld@sha256:565dba8ce20ca1a311c2d9485089d7ddc935dd50140510050345a1b0ea4ffa6e\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:05Z\",\"lastTimestamp\":\"2021-03-29T06:27:05Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-helloworld@sha256:565dba8ce20ca1a311c2d9485089d7ddc935dd50140510050345a1b0ea4ffa6e\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:15Z\",\"lastTimestamp\":\"2021-03-29T06:27:15Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}},{\"name\":\"acisamplecda973343-2\",\"properties\":{\"image\":\"microsoft/aci-tutorial-sidecar\",\"ports\":[],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"startTime\":\"2021-03-29T06:27:16.685Z\",\"finishTime\":\"2021-03-29T06:27:18.526Z\",\"detailStatus\":\"Error\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:00Z\",\"lastTimestamp\":\"2021-03-29T06:27:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-tutorial-sidecar@sha256:d67781a4a9d7af74aba5cd8021727e3ff728ca96ef521a7fb723bfc65315dd52\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:05Z\",\"lastTimestamp\":\"2021-03-29T06:27:05Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-tutorial-sidecar@sha256:d67781a4a9d7af74aba5cd8021727e3ff728ca96ef521a7fb723bfc65315dd52\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:16Z\",\"lastTimestamp\":\"2021-03-29T06:27:16Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:18Z\",\"lastTimestamp\":\"2021-03-29T06:27:18Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 6e48d1d7f8b8fff84773fb509c94704edffefcc01747bf937a704e827f3f6a68.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.83.178.202\",\"type\":\"Public\",\"dnsNameLabel\":\"acisamplecda973343\",\"fqdn\":\"acisamplecda973343.westus.azurecontainer.io\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343\",\"name\":\"acisamplecda973343\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"westus\",\"tags\":{}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403/containers/acisamplecee101403-1/logs?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343/containers/acisamplecda973343-1/logs?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Linux/5.4.0-52-generic MacAddressHash:d60baead5e150851a6edf2430eb7cd58240bd9b8db9be720d63941b29ee8c7bb Java:14.0.2 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Fri, 13 Nov 2020 03:03:21 GMT", - "content-length" : "1140", + "date" : "Mon, 29 Mar 2021 06:28:13 GMT", + "content-length" : "244", "expires" : "-1", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", @@ -139,24 +139,24 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "16e1f8c5-f587-41de-95b2-82994fdca4f6", + "x-ms-correlation-request-id" : "8815c4fc-791c-4d4d-9cb8-d6499e6958ae", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20201113T030321Z:16e1f8c5-f587-41de-95b2-82994fdca4f6", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062813Z:8815c4fc-791c-4d4d-9cb8-d6499e6958ae", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "westus:3e732d83-d860-431c-a98e-72c3c4229b84", - "Body" : "{\"content\":\"listening on port 80\\n::1 - - [13/Nov/2020:03:02:52 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::1 - - [13/Nov/2020:03:02:55 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::1 - - [13/Nov/2020:03:02:58 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::1 - - [13/Nov/2020:03:03:01 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::1 - - [13/Nov/2020:03:03:04 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::ffff:10.240.255.56 - - [13/Nov/2020:03:03:05 +0000] \\\"GET / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"okhttp/3.12.0\\\"\\n::1 - - [13/Nov/2020:03:03:07 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::1 - - [13/Nov/2020:03:03:10 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::1 - - [13/Nov/2020:03:03:13 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::1 - - [13/Nov/2020:03:03:16 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::1 - - [13/Nov/2020:03:03:19 +0000] \\\"HEAD / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"curl/7.54.0\\\"\\n::ffff:10.240.255.56 - - [13/Nov/2020:03:03:20 +0000] \\\"GET / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"okhttp/3.12.0\\\"\\n\"}" + "x-ms-request-id" : "westus:c9c84b23-3ecd-4d9b-82e5-e00d893212f5", + "Body" : "{\"content\":\"listening on port 80\\n::ffff:10.92.0.26 - - [29/Mar/2021:06:27:55 +0000] \\\"GET / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"okhttp/3.12.0\\\"\\n::ffff:10.92.0.24 - - [29/Mar/2021:06:28:12 +0000] \\\"GET / HTTP/1.1\\\" 200 1663 \\\"-\\\" \\\"okhttp/3.12.0\\\"\\n\"}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403/containers/acisamplecee101403-2/logs?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343/containers/acisamplecda973343-2/logs?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Linux/5.4.0-52-generic MacAddressHash:d60baead5e150851a6edf2430eb7cd58240bd9b8db9be720d63941b29ee8c7bb Java:14.0.2 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Fri, 13 Nov 2020 03:03:22 GMT", - "content-length" : "8143", + "date" : "Mon, 29 Mar 2021 06:28:14 GMT", + "content-length" : "423", "expires" : "-1", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", @@ -164,24 +164,24 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "f42d6d26-bb52-499e-88ac-e9ab1f200a67", + "x-ms-correlation-request-id" : "b26dbeb9-c448-44fb-a21a-2bc8c4a17732", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20201113T030323Z:f42d6d26-bb52-499e-88ac-e9ab1f200a67", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062814Z:b26dbeb9-c448-44fb-a21a-2bc8c4a17732", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "westus:83a4cbb2-3c74-491d-95d3-7adfd8f3e06e", - "Body" : "{\"content\":\"\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:02:52\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\nHTTP/1.1 200 OK\\r\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:02:52 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:02:55\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\nHTTP/1.1 200 OK\\r\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:02:55 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:02:58\\n\\nHTTP/1.1 200 OK\\r\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:02:58 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:03:01\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\nHTTP/1.1 200 OK\\r\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:03:01 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:03:04\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\nHTTP/1.1 200 OK\\r\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:03:04 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:03:07\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\nHTTP/1.1 200 OK\\r\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:03:07 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:03:10\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\nHTTP/1.1 200 OK\\r\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:03:10 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:03:13\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\nHTTP/1.1 200 OK\\r\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:03:13 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:03:16\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\nHTTP/1.1 200 OK\\r\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:03:16 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:03:19\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\nHTTP/1.1 200 OK\\r\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:03:19 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2020-11-13 03:03:22\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r 0 1663 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\nHTTP/1.1 200 OK\\r\\nX-Powered-By: Express\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: public, max-age=0\\r\\nLast-Modified: Wed, 29 Nov 2017 06:40:40 GMT\\r\\nETag: W/\\\"67f-16006818640\\\"\\r\\nContent-Type: text/html; charset=UTF-8\\r\\nContent-Length: 1663\\r\\nDate: Fri, 13 Nov 2020 03:03:22 GMT\\r\\nConnection: keep-alive\\r\\n\\r\\n\"}" + "x-ms-request-id" : "westus:43ef0627-2ec9-4290-adc8-e7e5ae33821c", + "Body" : "{\"content\":\"\\u001b[H\\u001b[JEvery 3s: curl -I http://localhost 2021-03-29 06:27:16\\n\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 80: Connection refused\\n\"}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Linux/5.4.0-52-generic MacAddressHash:d60baead5e150851a6edf2430eb7cd58240bd9b8db9be720d63941b29ee8c7bb Java:14.0.2 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Fri, 13 Nov 2020 03:03:27 GMT", - "content-length" : "2615", + "date" : "Mon, 29 Mar 2021 06:28:19 GMT", + "content-length" : "2916", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-deletes" : "14999", "vary" : "Accept-Encoding,Accept-Encoding", @@ -189,25 +189,25 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a0e9a360-7f62-47fe-9874-e86f9fab13f8", + "x-ms-correlation-request-id" : "435c9956-ec4a-4572-8b37-33ef92a45c98", "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h" : "999", "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m" : "299", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20201113T030328Z:a0e9a360-7f62-47fe-9874-e86f9fab13f8", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062819Z:435c9956-ec4a-4572-8b37-33ef92a45c98", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "westus:8ed97103-4cf9-4fbf-bf21-7d2ffc8686fb", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"acisamplecee101403-1\",\"properties\":{\"image\":\"microsoft/aci-helloworld\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-11-13T03:02:47Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:38Z\",\"lastTimestamp\":\"2020-11-13T03:02:38Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-helloworld\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:44Z\",\"lastTimestamp\":\"2020-11-13T03:02:44Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-helloworld\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:47Z\",\"lastTimestamp\":\"2020-11-13T03:02:47Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:47Z\",\"lastTimestamp\":\"2020-11-13T03:02:47Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}},{\"name\":\"acisamplecee101403-2\",\"properties\":{\"image\":\"microsoft/aci-tutorial-sidecar\",\"ports\":[],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-11-13T03:02:52Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:47Z\",\"lastTimestamp\":\"2020-11-13T03:02:47Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-tutorial-sidecar\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:51Z\",\"lastTimestamp\":\"2020-11-13T03:02:51Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-tutorial-sidecar\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:52Z\",\"lastTimestamp\":\"2020-11-13T03:02:52Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-11-13T03:02:52Z\",\"lastTimestamp\":\"2020-11-13T03:02:52Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"13.83.247.209\",\"type\":\"Public\",\"dnsNameLabel\":\"acisamplecee101403\",\"fqdn\":\"acisamplecee101403.westus.azurecontainer.io\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci64e837319/providers/Microsoft.ContainerInstance/containerGroups/acisamplecee101403\",\"name\":\"acisamplecee101403\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"westus\",\"tags\":{}}" + "x-ms-request-id" : "westus:71de430e-ca5f-4d22-9dba-4db11102112e", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"acisamplecda973343-1\",\"properties\":{\"image\":\"microsoft/aci-helloworld\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:27:15.636Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:00Z\",\"lastTimestamp\":\"2021-03-29T06:27:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-helloworld@sha256:565dba8ce20ca1a311c2d9485089d7ddc935dd50140510050345a1b0ea4ffa6e\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:05Z\",\"lastTimestamp\":\"2021-03-29T06:27:05Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-helloworld@sha256:565dba8ce20ca1a311c2d9485089d7ddc935dd50140510050345a1b0ea4ffa6e\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:15Z\",\"lastTimestamp\":\"2021-03-29T06:27:15Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}},{\"name\":\"acisamplecda973343-2\",\"properties\":{\"image\":\"microsoft/aci-tutorial-sidecar\",\"ports\":[],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"startTime\":\"2021-03-29T06:27:16.685Z\",\"finishTime\":\"2021-03-29T06:27:18.526Z\",\"detailStatus\":\"Error\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:00Z\",\"lastTimestamp\":\"2021-03-29T06:27:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"microsoft/aci-tutorial-sidecar@sha256:d67781a4a9d7af74aba5cd8021727e3ff728ca96ef521a7fb723bfc65315dd52\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:05Z\",\"lastTimestamp\":\"2021-03-29T06:27:05Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"microsoft/aci-tutorial-sidecar@sha256:d67781a4a9d7af74aba5cd8021727e3ff728ca96ef521a7fb723bfc65315dd52\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:16Z\",\"lastTimestamp\":\"2021-03-29T06:27:16Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T06:27:18Z\",\"lastTimestamp\":\"2021-03-29T06:27:18Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 6e48d1d7f8b8fff84773fb509c94704edffefcc01747bf937a704e827f3f6a68.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":0.8,\"cpu\":0.5}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.83.178.202\",\"type\":\"Public\",\"dnsNameLabel\":\"acisamplecda973343\",\"fqdn\":\"acisamplecda973343.westus.azurecontainer.io\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci7fa102102/providers/Microsoft.ContainerInstance/containerGroups/acisamplecda973343\",\"name\":\"acisamplecda973343\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"westus\",\"tags\":{}}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci64e837319?api-version=2020-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci7fa102102?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Linux/5.4.0-52-generic MacAddressHash:d60baead5e150851a6edf2430eb7cd58240bd9b8db9be720d63941b29ee8c7bb Java:14.0.2 (ResourceManagementClient, 2020-06-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ResourceManagementClient, 2020-06-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Fri, 13 Nov 2020 03:03:31 GMT", + "date" : "Mon, 29 Mar 2021 06:28:22 GMT", "content-length" : "0", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-deletes" : "14998", @@ -215,14 +215,14 @@ "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "77b068b0-e4ce-4615-8fe1-6921c61e3dc7", + "x-ms-correlation-request-id" : "9fa53a2f-8693-467e-90fc-e0ea45b49cee", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20201113T030332Z:77b068b0-e4ce-4615-8fe1-6921c61e3dc7", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR0FDSTY0RTgzNzMxOS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2020-06-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062823Z:9fa53a2f-8693-467e-90fc-e0ea45b49cee", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR0FDSTdGQTEwMjEwMi1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "77b068b0-e4ce-4615-8fe1-6921c61e3dc7", + "x-ms-request-id" : "9fa53a2f-8693-467e-90fc-e0ea45b49cee", "Body" : "" } } ], - "variables" : [ "rgaci64e837319", "acisamplecee101403", "19e0b62b-ffe3-497e-b5e0-559705ec9a87", "ac1d4527-ad2d-4ae8-bb4c-62461dc8fa4e" ] + "variables" : [ "rgaci7fa102102", "acisamplecda973343", "6929ace5-a238-4a2e-a392-b01f8d0b045c", "3b7701db-ad5b-4680-8b0b-3dd9812e8140" ] } \ No newline at end of file diff --git a/azure/src/test/java/com/microsoft/azure/management/AzureTests.java b/azure/src/test/java/com/microsoft/azure/management/AzureTests.java index 727aec936fc..5e822db3aa5 100644 --- a/azure/src/test/java/com/microsoft/azure/management/AzureTests.java +++ b/azure/src/test/java/com/microsoft/azure/management/AzureTests.java @@ -1281,7 +1281,7 @@ public void testContainerInstanceWithPublicIpAddressWithUserAssignedMsi() throws containerGroup.refresh(); - Set containerGroupOperations = azure.containerGroups().listOperations(); + PagedList containerGroupOperations = azure.containerGroups().listOperations(); // Number of supported operation can change hence don't assert with a predefined number. Assert.assertTrue(containerGroupOperations.size() > 0); } diff --git a/azure/src/test/java/com/microsoft/azure/management/TestContainerInstanceWithPrivateIpAddress.java b/azure/src/test/java/com/microsoft/azure/management/TestContainerInstanceWithPrivateIpAddress.java index 6fba9278eb1..9bce3cac9e2 100644 --- a/azure/src/test/java/com/microsoft/azure/management/TestContainerInstanceWithPrivateIpAddress.java +++ b/azure/src/test/java/com/microsoft/azure/management/TestContainerInstanceWithPrivateIpAddress.java @@ -1,5 +1,6 @@ package com.microsoft.azure.management; +import com.microsoft.azure.PagedList; import com.microsoft.azure.management.containerinstance.Container; import com.microsoft.azure.management.containerinstance.ContainerGroup; import com.microsoft.azure.management.containerinstance.ContainerGroupRestartPolicy; @@ -119,7 +120,7 @@ public ContainerGroup createResource(ContainerGroups containerGroups) throws Exc containerGroup.refresh(); - Set containerGroupOperations = containerGroups.listOperations(); + PagedList containerGroupOperations = containerGroups.listOperations(); // Number of supported operation can change hence don't assert with a predefined number. Assert.assertTrue(containerGroupOperations.size() > 0); diff --git a/azure/src/test/java/com/microsoft/azure/management/TestContainerInstanceWithPublicIpAddressWithSystemAssignedMSI.java b/azure/src/test/java/com/microsoft/azure/management/TestContainerInstanceWithPublicIpAddressWithSystemAssignedMSI.java index d0ca997e292..a7b929b180d 100644 --- a/azure/src/test/java/com/microsoft/azure/management/TestContainerInstanceWithPublicIpAddressWithSystemAssignedMSI.java +++ b/azure/src/test/java/com/microsoft/azure/management/TestContainerInstanceWithPublicIpAddressWithSystemAssignedMSI.java @@ -1,5 +1,6 @@ package com.microsoft.azure.management; +import com.microsoft.azure.PagedList; import com.microsoft.azure.management.containerinstance.ResourceIdentityType; import com.microsoft.azure.management.containerinstance.Container; import com.microsoft.azure.management.containerinstance.ContainerGroup; @@ -105,7 +106,7 @@ public ContainerGroup createResource(ContainerGroups containerGroups) throws Exc containerGroup.refresh(); - Set containerGroupOperations = containerGroups.listOperations(); + PagedList containerGroupOperations = containerGroups.listOperations(); // Number of supported operation can change hence don't assert with a predefined number. Assert.assertTrue(containerGroupOperations.size() > 0); diff --git a/azure/src/test/resources/session-records/testContainerInstanceWithPublicIpAddressWithSystemAssignedMsi.json b/azure/src/test/resources/session-records/testContainerInstanceWithPublicIpAddressWithSystemAssignedMsi.json index ffda23bb9b8..c6258dd87d5 100644 --- a/azure/src/test/resources/session-records/testContainerInstanceWithPublicIpAddressWithSystemAssignedMsi.json +++ b/azure/src/test/resources/session-records/testContainerInstanceWithPublicIpAddressWithSystemAssignedMsi.json @@ -1,820 +1,648 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/containerGroups?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:11:34 GMT", - "content-length" : "1637", + "date" : "Mon, 29 Mar 2021 06:19:40 GMT", + "content-length" : "12", "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding,Accept-Encoding", - "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11957", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "8988eb23-a460-4af8-9952-4512924b091d", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221135Z:8988eb23-a460-4af8-9952-4512924b091d", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:622eb1cc-5c9f-436a-9a1a-0d6391ca0820", - "Body" : "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.62.42\",\"type\":\"Public\",\"dnsNameLabel\":\"aci429937\",\"fqdn\":\"aci429937.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}]},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci13656/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id28773076\":{\"principalId\":\"448b2361-7f45-44b5-92a8-5c6e703aba4f\",\"clientId\":\"9d98ac10-cecd-48c0-add2-9dda30215f33\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci13656/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-ida6890225\":{\"principalId\":\"143af4bf-9b0c-4321-add6-7a1266374cc0\",\"clientId\":\"bf807aae-3331-4fcb-b1fb-ccc56cac1ae2\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci13656/providers/Microsoft.ContainerInstance/containerGroups/aci429937\",\"name\":\"aci429937\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}]}" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci13656/providers/Microsoft.ContainerInstance/containerGroups/aci429937?api-version=2018-10-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Sun, 13 Oct 2019 22:11:34 GMT", - "content-length" : "3218", - "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding,Accept-Encoding", + "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11956", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e6d6ced0-b346-422f-97d8-91bf140ceee1", + "x-ms-correlation-request-id" : "39eaba13-16d8-4a82-9ec4-d3f853feba01", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221135Z:e6d6ced0-b346-422f-97d8-91bf140ceee1", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T061941Z:39eaba13-16d8-4a82-9ec4-d3f853feba01", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:e950f914-70f7-478e-8599-ea0662db1c1d", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T20:14:14Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:13:33Z\",\"lastTimestamp\":\"2019-10-13T20:13:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:13:55Z\",\"lastTimestamp\":\"2019-10-13T20:13:55Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:13Z\",\"lastTimestamp\":\"2019-10-13T20:14:13Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:14Z\",\"lastTimestamp\":\"2019-10-13T20:14:14Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T20:14:27Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:14Z\",\"lastTimestamp\":\"2019-10-13T20:14:14Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:21Z\",\"lastTimestamp\":\"2019-10-13T20:14:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:27Z\",\"lastTimestamp\":\"2019-10-13T20:14:27Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:28Z\",\"lastTimestamp\":\"2019-10-13T20:14:28Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.62.42\",\"type\":\"Public\",\"dnsNameLabel\":\"aci429937\",\"fqdn\":\"aci429937.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci13656/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id28773076\":{\"principalId\":\"448b2361-7f45-44b5-92a8-5c6e703aba4f\",\"clientId\":\"9d98ac10-cecd-48c0-add2-9dda30215f33\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci13656/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-ida6890225\":{\"principalId\":\"143af4bf-9b0c-4321-add6-7a1266374cc0\",\"clientId\":\"bf807aae-3331-4fcb-b1fb-ccc56cac1ae2\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci13656/providers/Microsoft.ContainerInstance/containerGroups/aci429937\",\"name\":\"aci429937\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "39eaba13-16d8-4a82-9ec4-d3f853feba01", + "Body" : "{\"value\":[]}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci059438?api-version=2020-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci82769c?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ResourceManagementClient, 2019-08-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ResourceManagementClient, 2020-06-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:11:40 GMT", + "date" : "Mon, 29 Mar 2021 06:19:44 GMT", "content-length" : "304", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1181", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", "retry-after" : "0", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d191a46c-b4e5-47d7-9c6e-dde12711ffbb", + "x-ms-correlation-request-id" : "997d65bb-680e-4658-85a1-a13a743fd59b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221141Z:d191a46c-b4e5-47d7-9c6e-dde12711ffbb", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T061945Z:997d65bb-680e-4658-85a1-a13a743fd59b", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "d191a46c-b4e5-47d7-9c6e-dde12711ffbb", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438\",\"name\":\"rgaci059438\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus2\",\"tags\":{\"date\":\"2019-10-13T22:11:35.450Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + "x-ms-request-id" : "997d65bb-680e-4658-85a1-a13a743fd59b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c\",\"name\":\"rgaci82769c\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus2\",\"tags\":{\"date\":\"2021-03-29T06:19:42.107Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:11:51 GMT", - "content-length" : "1183", + "date" : "Mon, 29 Mar 2021 06:20:02 GMT", + "content-length" : "1198", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1180", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", "retry-after" : "0", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "2b976564-9296-45d5-88d6-78cc9e409dc5", + "x-ms-correlation-request-id" : "33432fa4-4512-4c67-9973-2a76d247548e", "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h" : "299", "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m" : "99", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221151Z:2b976564-9296-45d5-88d6-78cc9e409dc5", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:b73d92ad-1df4-4982-b897-54c9d58eab16", - "Body" : "{\"properties\":{\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}", - "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/b73d92ad-1df4-4982-b897-54c9d58eab16?api-version=2018-06-01" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/b73d92ad-1df4-4982-b897-54c9d58eab16?api-version=2018-06-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)" - }, - "Response" : { - "date" : "Sun, 13 Oct 2019 22:11:51 GMT", - "content-length" : "240", - "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding,Accept-Encoding", - "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11955", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e0cd1bed-298e-45c5-95d0-15f8e6bc49ea", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221151Z:e0cd1bed-298e-45c5-95d0-15f8e6bc49ea", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062002Z:33432fa4-4512-4c67-9973-2a76d247548e", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:ac84cc17-ee23-4fef-8986-45fd75a27c15", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"status\":\"Pending\",\"startTime\":\"2019-10-13T22:11:49.9272126Z\",\"properties\":{\"events\":[]}}" + "x-ms-request-id" : "eastus2:9426d48a-e3ea-4736-b796-704dd4178bdf", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/9426d48a-e3ea-4736-b796-704dd4178bdf?api-version=2018-06-01" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/b73d92ad-1df4-4982-b897-54c9d58eab16?api-version=2018-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/9426d48a-e3ea-4736-b796-704dd4178bdf?api-version=2018-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:12:21 GMT", + "date" : "Mon, 29 Mar 2021 06:20:33 GMT", "content-length" : "240", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11954", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "5de35989-d422-4281-921a-f765c71ce4d5", + "x-ms-correlation-request-id" : "6fb31972-7bb7-4cb6-be9d-ebcea0fc4732", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221221Z:5de35989-d422-4281-921a-f765c71ce4d5", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062033Z:6fb31972-7bb7-4cb6-be9d-ebcea0fc4732", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:477c9cad-aaf4-4e6c-8447-6c7ec59c1a4d", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"status\":\"Pending\",\"startTime\":\"2019-10-13T22:11:49.9272126Z\",\"properties\":{\"events\":[]}}" + "x-ms-request-id" : "eastus2:f2350138-d217-4648-8857-d62a5a7bba23", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"status\":\"Pending\",\"startTime\":\"2021-03-29T06:19:59.8073636Z\",\"properties\":{\"events\":[]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/b73d92ad-1df4-4982-b897-54c9d58eab16?api-version=2018-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/9426d48a-e3ea-4736-b796-704dd4178bdf?api-version=2018-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:12:52 GMT", - "content-length" : "401", + "date" : "Mon, 29 Mar 2021 06:21:04 GMT", + "content-length" : "241", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11953", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e440d712-902a-4efc-8060-a0bf6102d264", + "x-ms-correlation-request-id" : "6e850b08-674a-4c8a-9eb0-fa7ee31c42cc", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221252Z:e440d712-902a-4efc-8060-a0bf6102d264", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062105Z:6e850b08-674a-4c8a-9eb0-fa7ee31c42cc", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:c97b8541-6a31-41eb-a257-28f2b1051951", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"status\":\"Creating\",\"startTime\":\"2019-10-13T22:11:49.9272126Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"}]}}" + "x-ms-request-id" : "eastus2:b3315826-0ffe-4540-8d4f-8eca60c31a64", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"status\":\"Creating\",\"startTime\":\"2021-03-29T06:19:59.8073636Z\",\"properties\":{\"events\":[]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/b73d92ad-1df4-4982-b897-54c9d58eab16?api-version=2018-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/9426d48a-e3ea-4736-b796-704dd4178bdf?api-version=2018-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:13:22 GMT", - "content-length" : "1521", + "date" : "Mon, 29 Mar 2021 06:21:34 GMT", + "content-length" : "242", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11952", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "caad7369-f6c9-4b34-9924-f5180dd14470", + "x-ms-correlation-request-id" : "3df05691-20d7-42cc-93c7-046c22beeaec", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221323Z:caad7369-f6c9-4b34-9924-f5180dd14470", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062135Z:3df05691-20d7-42cc-93c7-046c22beeaec", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:41f565e8-1e1e-4daf-9547-01627096113f", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"status\":\"Succeeded\",\"startTime\":\"2019-10-13T22:11:49.9272126Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]}}" + "x-ms-request-id" : "eastus2:02a30e80-4e69-48e4-81e6-e0c2b5b3a8e4", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-29T06:19:59.8073636Z\",\"properties\":{\"events\":[]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:13:23 GMT", - "content-length" : "2731", + "date" : "Mon, 29 Mar 2021 06:21:36 GMT", + "content-length" : "1473", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11951", + "x-ms-ratelimit-remaining-subscription-reads" : "11995", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a135917b-5c79-4dc1-a26f-ab5e77162d91", + "x-ms-correlation-request-id" : "752fb573-d294-41fa-ba20-a2bd400d384d", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221324Z:a135917b-5c79-4dc1-a26f-ab5e77162d91", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062137Z:752fb573-d294-41fa-ba20-a2bd400d384d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:a4737744-22ad-4bca-a900-62e097725ba4", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:12:49Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:13:01Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:175a750e-024d-4242-a5fe-447a26cd7c75", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:18.549Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:19.516Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.Authorization/roleDefinitions?%24filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.Authorization/roleDefinitions?%24filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:13:23 GMT", - "content-length" : "832", + "date" : "Mon, 29 Mar 2021 06:21:36 GMT", + "content-length" : "984", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", - "x-ms-request-charge" : "1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11950", + "x-ms-ratelimit-remaining-subscription-reads" : "11994", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "77c9e07a-0f52-4fbf-969f-310ba3dc6598", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221324Z:77c9e07a-0f52-4fbf-969f-310ba3dc6598", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "16299431-2f75-49f1-b67d-a4de323e3a6c", - "Body" : "{\"value\":[{\"properties\":{\"roleName\":\"Contributor\",\"type\":\"BuiltInRole\",\"description\":\"Lets you manage everything except access to resources.\",\"assignableScopes\":[\"/\"],\"permissions\":[{\"actions\":[\"*\"],\"notActions\":[\"Microsoft.Authorization/*/Delete\",\"Microsoft.Authorization/*/Write\",\"Microsoft.Authorization/elevateAccess/Action\",\"Microsoft.Blueprint/blueprintAssignments/write\",\"Microsoft.Blueprint/blueprintAssignments/delete\"],\"dataActions\":[],\"notDataActions\":[]}],\"createdOn\":\"2015-02-02T21:55:09.8806423Z\",\"updatedOn\":\"2019-02-05T21:24:38.4580610Z\",\"createdBy\":null,\"updatedBy\":null},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\",\"type\":\"Microsoft.Authorization/roleDefinitions\",\"name\":\"b24988ac-6180-42a0-ab88-20f7382dd24c\"}]}" - } - }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.Authorization/roleAssignments/e500c108-4378-4266-9d97-5d9bd192403c?api-version=2018-01-01-preview", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (AuthorizationManagementClient)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Sun, 13 Oct 2019 22:13:24 GMT", - "content-length" : "163", - "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1179", - "retry-after" : "0", - "StatusCode" : "400", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "51e0f043-83bb-42b3-a4b0-b677fcea1d21", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221325Z:51e0f043-83bb-42b3-a4b0-b677fcea1d21", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "f6dfa5c5-e811-4bb5-af65-fb80dc499916", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal 2010ad666d1f4177816ead2b091f410f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" - } - }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.Authorization/roleAssignments/e500c108-4378-4266-9d97-5d9bd192403c?api-version=2018-01-01-preview", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (AuthorizationManagementClient)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Sun, 13 Oct 2019 22:13:26 GMT", - "content-length" : "163", - "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1178", - "retry-after" : "0", - "StatusCode" : "400", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "8be0e71c-02f6-4db9-89b8-833596a54ef2", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221327Z:8be0e71c-02f6-4db9-89b8-833596a54ef2", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "48117a5e-c24a-4ea2-af6e-4d90a6be812f", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal 2010ad666d1f4177816ead2b091f410f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" - } - }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.Authorization/roleAssignments/e500c108-4378-4266-9d97-5d9bd192403c?api-version=2018-01-01-preview", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (AuthorizationManagementClient)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Sun, 13 Oct 2019 22:13:31 GMT", - "content-length" : "163", - "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1177", - "retry-after" : "0", - "StatusCode" : "400", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "16d352ab-5cf5-4a8f-ac9b-a6daceecceed", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221332Z:16d352ab-5cf5-4a8f-ac9b-a6daceecceed", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "87f273b2-62b6-4282-a143-3743729e7140", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal 2010ad666d1f4177816ead2b091f410f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" - } - }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.Authorization/roleAssignments/e500c108-4378-4266-9d97-5d9bd192403c?api-version=2018-01-01-preview", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (AuthorizationManagementClient)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Sun, 13 Oct 2019 22:13:38 GMT", - "content-length" : "163", - "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1176", - "retry-after" : "0", - "StatusCode" : "400", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "eae6285f-5027-4ba3-95f1-0c31bafed268", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly", + "x-ms-correlation-request-id" : "a2e8490e-62ba-4aa6-a3cf-6292183c0778", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221338Z:eae6285f-5027-4ba3-95f1-0c31bafed268", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062137Z:a2e8490e-62ba-4aa6-a3cf-6292183c0778", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "afe00bb4-69c7-49a2-abb9-a4a7cebd967a", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal 2010ad666d1f4177816ead2b091f410f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + "x-ms-request-id" : "2809071e-af08-4f53-8a97-0712ff9f093b", + "Body" : "{\"value\":[{\"properties\":{\"roleName\":\"Contributor\",\"type\":\"BuiltInRole\",\"description\":\"Grants full access to manage all resources, but does not allow you to assign roles in Azure RBAC, manage assignments in Azure Blueprints, or share image galleries.\",\"assignableScopes\":[\"/\"],\"permissions\":[{\"actions\":[\"*\"],\"notActions\":[\"Microsoft.Authorization/*/Delete\",\"Microsoft.Authorization/*/Write\",\"Microsoft.Authorization/elevateAccess/Action\",\"Microsoft.Blueprint/blueprintAssignments/write\",\"Microsoft.Blueprint/blueprintAssignments/delete\",\"Microsoft.Compute/galleries/share/action\"],\"dataActions\":[],\"notDataActions\":[]}],\"createdOn\":\"2015-02-02T21:55:09.8806423Z\",\"updatedOn\":\"2020-12-04T00:34:54.8501087Z\",\"createdBy\":null,\"updatedBy\":null},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\",\"type\":\"Microsoft.Authorization/roleDefinitions\",\"name\":\"b24988ac-6180-42a0-ab88-20f7382dd24c\"}]}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.Authorization/roleAssignments/e500c108-4378-4266-9d97-5d9bd192403c?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.Authorization/roleAssignments/af427e05-dde4-4cb9-bd63-d928d0b42d17?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:13:46 GMT", - "content-length" : "163", + "date" : "Mon, 29 Mar 2021 06:21:38 GMT", + "content-length" : "775", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1175", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", "retry-after" : "0", - "StatusCode" : "400", + "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "965b30a4-b119-4427-9c49-b2d1f19abd14", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly", + "x-ms-correlation-request-id" : "6cbf75a6-3b48-472c-9d1c-f6ade340f7ae", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221346Z:965b30a4-b119-4427-9c49-b2d1f19abd14", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062139Z:6cbf75a6-3b48-472c-9d1c-f6ade340f7ae", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "78713f2b-cd85-49f4-8d0e-0094193c453f", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal 2010ad666d1f4177816ead2b091f410f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + "x-ms-request-id" : "c768c3a7-af65-410f-b276-4bae2fef4dbf", + "Body" : "{\"properties\":{\"roleDefinitionId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\",\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"principalType\":\"ServicePrincipal\",\"scope\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c\",\"createdOn\":\"2021-03-29T06:21:37.6774911Z\",\"updatedOn\":\"2021-03-29T06:21:37.9324948Z\",\"createdBy\":null,\"updatedBy\":\"00fb0876-b380-4333-a3c7-c6bdb9024a25\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.Authorization/roleAssignments/af427e05-dde4-4cb9-bd63-d928d0b42d17\",\"type\":\"Microsoft.Authorization/roleAssignments\",\"name\":\"af427e05-dde4-4cb9-bd63-d928d0b42d17\"}" } }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.Authorization/roleAssignments/e500c108-4378-4266-9d97-5d9bd192403c?api-version=2018-01-01-preview", + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:13:59 GMT", - "content-length" : "775", + "date" : "Mon, 29 Mar 2021 06:21:40 GMT", + "content-length" : "1473", "expires" : "-1", - "x-ms-request-charge" : "4", - "x-ms-ratelimit-remaining-subscription-writes" : "1174", + "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "StatusCode" : "201", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", + "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "2f2d2568-5232-4d97-81b9-26bc185f5525", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly", + "x-ms-correlation-request-id" : "c82a9d6b-bf34-4c00-8f6b-3ddc96b2b6d7", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221400Z:2f2d2568-5232-4d97-81b9-26bc185f5525", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062141Z:c82a9d6b-bf34-4c00-8f6b-3ddc96b2b6d7", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "9e00a5f5-16c4-40fa-9514-6ebb84e956a6", - "Body" : "{\"properties\":{\"roleDefinitionId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\",\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"principalType\":\"ServicePrincipal\",\"scope\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438\",\"createdOn\":\"2019-10-13T22:13:56.9494048Z\",\"updatedOn\":\"2019-10-13T22:13:56.9494048Z\",\"createdBy\":null,\"updatedBy\":\"e5083d2a-440d-48ff-a6c4-e42d84651643\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.Authorization/roleAssignments/e500c108-4378-4266-9d97-5d9bd192403c\",\"type\":\"Microsoft.Authorization/roleAssignments\",\"name\":\"e500c108-4378-4266-9d97-5d9bd192403c\"}" + "x-ms-request-id" : "eastus2:be38dc45-8053-47f3-aba6-1561a7be29a7", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:18.549Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:19.516Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:00 GMT", - "content-length" : "2731", + "date" : "Mon, 29 Mar 2021 06:21:41 GMT", + "content-length" : "1186", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11949", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d9c35baf-1941-4691-969f-c8d2a74ae20e", + "x-ms-correlation-request-id" : "acef34fd-3ace-40bc-bb6d-48157171cd21", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221400Z:d9c35baf-1941-4691-969f-c8d2a74ae20e", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062142Z:acef34fd-3ace-40bc-bb6d-48157171cd21", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:8e1a2fab-4ea2-4437-92ce-170f66a51472", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:12:49Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:13:01Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:3061fa8c-9806-48ae-8321-e25688fca0e3", + "Body" : "{\"value\":[{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}]},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}]}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:00 GMT", - "content-length" : "1150", + "date" : "Mon, 29 Mar 2021 06:21:43 GMT", + "content-length" : "1473", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11948", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "2c563c46-75e4-4a4a-8540-c12036902978", + "x-ms-correlation-request-id" : "c140d589-2049-46b3-833a-c18c1624e273", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221400Z:2c563c46-75e4-4a4a-8540-c12036902978", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062144Z:c140d589-2049-46b3-833a-c18c1624e273", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:686bf061-5d56-491a-b6c7-1ba3b1b7b927", - "Body" : "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}]},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}]}" + "x-ms-request-id" : "eastus2:09322f99-4b57-4a57-91f2-35e4006a39ae", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:18.549Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:19.516Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:00 GMT", - "content-length" : "2731", + "date" : "Mon, 29 Mar 2021 06:21:44 GMT", + "content-length" : "1473", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11947", + "x-ms-ratelimit-remaining-subscription-reads" : "11990", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ca3baf62-cf8b-4e9d-9211-325ddf53e36c", + "x-ms-correlation-request-id" : "b6d49c42-0cac-42f1-b5b7-14abe7ed805c", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221401Z:ca3baf62-cf8b-4e9d-9211-325ddf53e36c", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062145Z:b6d49c42-0cac-42f1-b5b7-14abe7ed805c", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:b31ee0c1-87a0-4f55-b345-31837280f4e1", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:12:49Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:13:01Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:0785f058-55ee-4f9c-a73d-2398a07726ad", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:18.549Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:19.516Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Uri" : "http://localhost:1234/providers/Microsoft.ContainerInstance/operations?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:01 GMT", - "content-length" : "2731", + "date" : "Mon, 29 Mar 2021 06:21:44 GMT", + "content-length" : "8976", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11946", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "c86e6bfb-1967-4651-8a50-97277fa7a695", + "x-ms-correlation-request-id" : "2a7dbd20-df3e-4a28-8fa6-d6b27597b63d", + "x-ms-ratelimit-remaining-tenant-reads" : "11999", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221401Z:c86e6bfb-1967-4651-8a50-97277fa7a695", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062145Z:2a7dbd20-df3e-4a28-8fa6-d6b27597b63d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:48d90c5b-0318-4a59-9555-f21db9235389", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:12:49Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:13:01Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "southeastasia:44b6f3bd-a97b-4c63-9ac8-f8366af51443", + "Body" : "{\"value\":[{\"name\":\"Microsoft.ContainerInstance/register/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Register Microsoft Container Instance\",\"description\":\"Registers the subscription for the container instance resource provider and enables the creation of container groups.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Groups\",\"description\":\"Get all container goups.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/write\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Create or update Container Group\",\"description\":\"Create or update a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/delete\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Delete Container Group\",\"description\":\"Delete the specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/restart/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Restart Container Group\",\"description\":\"Restarts a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/stop/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Stop Container Group\",\"description\":\"Stops a specific container group. Compute resources will be deallocated and billing will stop.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/start/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Start Container Group\",\"description\":\"Starts a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/detectors/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Container Group Detectors\",\"description\":\"List Container Group Detectors\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/logs/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Logs\",\"description\":\"Get logs for a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/buildlogs/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Build Logs\",\"description\":\"Get build logs for a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/exec/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Exec Into a Container\",\"description\":\"Exec into a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/attach/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Attach to a container\",\"description\":\"Attach to the output stream of a container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/operationResults/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Async operation result\",\"description\":\"Get async operation result\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/operationResults/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Async operation result\",\"description\":\"Get async operation result\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/cachedImages/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Cached Images\",\"operation\":\"Get cached images.\",\"description\":\"Gets the cached images for the subscription in a region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/capabilities/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Capabilities\",\"operation\":\"Get Capabilities\",\"description\":\"Get the capabilities for a region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/usages/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Usages\",\"operation\":\"Get Regional Usage\",\"description\":\"Get the usage for a specific region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/metricDefinitions/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Read container group metric definitions\",\"description\":\"Gets the available metrics for container group.\"},\"origin\":\"System\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"CpuUsage\",\"displayName\":\"CPU Usage\",\"displayDescription\":\"CPU usage on all cores in millicores.\",\"unit\":\"Count\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false,\"dimensions\":[{\"name\":\"containerName\",\"displayName\":\"Container Name\",\"toBeExportedForShoebox\":true}]},{\"name\":\"MemoryUsage\",\"displayName\":\"Memory Usage\",\"displayDescription\":\"Total memory usage in byte.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false,\"dimensions\":[{\"name\":\"containerName\",\"displayName\":\"Container Name\",\"toBeExportedForShoebox\":true}]},{\"name\":\"NetworkBytesReceivedPerSecond\",\"displayName\":\"Network Bytes Received Per Second\",\"displayDescription\":\"The network bytes received per second.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false},{\"name\":\"NetworkBytesTransmittedPerSecond\",\"displayName\":\"Network Bytes Transmitted Per Second\",\"displayDescription\":\"The network bytes transmitted per second.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false}]}}},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/diagnosticSettings/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Read Diagnostic Setting\",\"description\":\"Gets the diagnostic setting for the container group.\"},\"origin\":\"System\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/diagnosticSettings/write\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Write Diagnostic Setting\",\"description\":\"Creates or updates the diagnostic setting for the container group.\"},\"origin\":\"System\"},{\"name\":\"Microsoft.ContainerInstance/locations/deleteVirtualNetworkOrSubnets/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Delete virtual network or subnet notification\",\"operation\":\"Delete virtual network or subnet notification\",\"description\":\"Notifies Microsoft.ContainerInstance that virtual network or subnet is being deleted.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/operations/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Read operations.\",\"description\":\"List the operations for Azure Container Instance service.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/operations/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Read operations.\",\"description\":\"List the operations for Azure Container Instance service.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/serviceassociationlinks/delete\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Service Association Link.\",\"operation\":\"Delete Service Association Link.\",\"description\":\"Delete the service association link created by azure container instance resource provider on a subnet.\"},\"origin\":\"User\"}]}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/providers/Microsoft.ContainerInstance/operations?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/containerGroups?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:01 GMT", - "content-length" : "7905", + "date" : "Mon, 29 Mar 2021 06:21:46 GMT", + "content-length" : "1186", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e77197af-55f7-43f1-8993-2d574942b5dc", - "x-ms-ratelimit-remaining-tenant-reads" : "11999", + "x-ms-correlation-request-id" : "a5691225-b796-4753-ab3b-d79409ecf1ba", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221401Z:e77197af-55f7-43f1-8993-2d574942b5dc", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062147Z:a5691225-b796-4753-ab3b-d79409ecf1ba", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "southeastasia:0020128b-74bb-43d1-ac5d-056140dfebc0", - "Body" : "{\"value\":[{\"name\":\"Microsoft.ContainerInstance/register/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Register Microsoft Container Instance\",\"description\":\"Registers the subscription for the container instance resource provider and enables the creation of container groups.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Groups\",\"description\":\"Get all container goups.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/write\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Create or update Container Group\",\"description\":\"Create or update a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/delete\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Delete Container Group\",\"description\":\"Delete the specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/restart/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Restart Container Group\",\"description\":\"Restarts a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/stop/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Stop Container Group\",\"description\":\"Stops a specific container group. Compute resources will be deallocated and billing will stop.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/start/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Start Container Group\",\"description\":\"Starts a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/logs/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Logs\",\"description\":\"Get logs for a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/exec/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Exec Into a Container\",\"description\":\"Exec into a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/operationResults/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Async operation result\",\"description\":\"Get async operation result\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/cachedImages/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Cached Images\",\"operation\":\"Get cached images.\",\"description\":\"Gets the cached images for the subscription in a region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/capabilities/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Capabilities\",\"operation\":\"Get Capabilities\",\"description\":\"Get the capabilities for a region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/usages/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Usages\",\"operation\":\"Get Regional Usage\",\"description\":\"Get the usage for a specific region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/metricDefinitions/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Read container group metric definitions\",\"description\":\"Gets the available metrics for container group.\"},\"origin\":\"System\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"CpuUsage\",\"displayName\":\"CPU Usage\",\"displayDescription\":\"CPU usage on all cores in millicores.\",\"unit\":\"Count\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false,\"dimensions\":[{\"name\":\"containerName\",\"displayName\":\"Container Name\",\"toBeExportedForShoebox\":true}]},{\"name\":\"MemoryUsage\",\"displayName\":\"Memory Usage\",\"displayDescription\":\"Total memory usage in byte.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false,\"dimensions\":[{\"name\":\"containerName\",\"displayName\":\"Container Name\",\"toBeExportedForShoebox\":true}]},{\"name\":\"NetworkBytesReceivedPerSecond\",\"displayName\":\"Network Bytes Received Per Second\",\"displayDescription\":\"The network bytes received per second.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false},{\"name\":\"NetworkBytesTransmittedPerSecond\",\"displayName\":\"Network Bytes Transmitted Per Second\",\"displayDescription\":\"The network bytes transmitted per second.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false}]}}},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/diagnosticSettings/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Read Diagnostic Setting\",\"description\":\"Gets the diagnostic setting for the container group.\"},\"origin\":\"System\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/diagnosticSettings/write\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Write Diagnostic Setting\",\"description\":\"Creates or updates the diagnostic setting for the container group.\"},\"origin\":\"System\"},{\"name\":\"Microsoft.ContainerInstance/locations/deleteVirtualNetworkOrSubnets/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Delete virtual network or subnet notification\",\"operation\":\"Delete virtual network or subnet notification\",\"description\":\"Notifies Microsoft.ContainerInstance that virtual network or subnet is being deleted.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/operations/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Read operations.\",\"description\":\"List the operations for Azure Container Instance service.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/operations/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Read operations.\",\"description\":\"List the operations for Azure Container Instance service.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/serviceassociationlinks/delete\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Service Association Link.\",\"operation\":\"Delete Service Association Link.\",\"description\":\"Delete the service association link created by azure container instance resource provider on a subnet.\"},\"origin\":\"User\"}]}" + "x-ms-request-id" : "eastus2:cba48356-1954-48f1-82b4-d4480f87ece9", + "Body" : "{\"value\":[{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}]},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}]}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:01 GMT", - "content-length" : "2776", + "date" : "Mon, 29 Mar 2021 06:21:47 GMT", + "content-length" : "1473", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11945", + "x-ms-ratelimit-remaining-subscription-reads" : "11988", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "83d66373-a7c1-43f5-9708-71ac1fa48441", + "x-ms-correlation-request-id" : "579c397b-29a3-4f61-8975-83a288ab9658", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221402Z:83d66373-a7c1-43f5-9708-71ac1fa48441", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062148Z:579c397b-29a3-4f61-8975-83a288ab9658", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:8f35c9aa-48cd-4bb4-b518-63db38cebec7", - "Body" : "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}]},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.62.42\",\"type\":\"Public\",\"dnsNameLabel\":\"aci429937\",\"fqdn\":\"aci429937.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}]},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci13656/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id28773076\":{\"principalId\":\"448b2361-7f45-44b5-92a8-5c6e703aba4f\",\"clientId\":\"9d98ac10-cecd-48c0-add2-9dda30215f33\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci13656/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-ida6890225\":{\"principalId\":\"143af4bf-9b0c-4321-add6-7a1266374cc0\",\"clientId\":\"bf807aae-3331-4fcb-b1fb-ccc56cac1ae2\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci13656/providers/Microsoft.ContainerInstance/containerGroups/aci429937\",\"name\":\"aci429937\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}]}" + "x-ms-request-id" : "eastus2:826b6517-6fac-49ec-8a84-28d05bcc8ac6", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:18.549Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:19.516Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:02 GMT", - "content-length" : "2731", + "date" : "Mon, 29 Mar 2021 06:21:50 GMT", + "content-length" : "1473", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11944", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ef5e3b43-2660-4a79-b662-7a6c757edd83", + "x-ms-correlation-request-id" : "5deecb54-df3a-4800-b897-0c2a13935e73", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221402Z:ef5e3b43-2660-4a79-b662-7a6c757edd83", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062150Z:5deecb54-df3a-4800-b897-0c2a13935e73", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:6023c416-11f8-42e8-8d74-f68e5517a5d0", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:12:49Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:13:01Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:6b2be660-b8bd-4afe-9f35-1c494377c91d", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:18.549Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:19.516Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci13656/providers/Microsoft.ContainerInstance/containerGroups/aci429937?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:02 GMT", - "content-length" : "3218", + "date" : "Mon, 29 Mar 2021 06:21:52 GMT", + "content-length" : "1473", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11943", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "55521bb5-6bde-41a4-95da-31da07b7b0ed", + "x-ms-correlation-request-id" : "37daef79-f25a-46fc-bd2e-13bf85ae023d", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221403Z:55521bb5-6bde-41a4-95da-31da07b7b0ed", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062152Z:37daef79-f25a-46fc-bd2e-13bf85ae023d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:e67c4557-74e1-4d40-96df-e676e83adbc6", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T20:14:14Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:13:33Z\",\"lastTimestamp\":\"2019-10-13T20:13:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:13:55Z\",\"lastTimestamp\":\"2019-10-13T20:13:55Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:13Z\",\"lastTimestamp\":\"2019-10-13T20:14:13Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:14Z\",\"lastTimestamp\":\"2019-10-13T20:14:14Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T20:14:27Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:14Z\",\"lastTimestamp\":\"2019-10-13T20:14:14Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:21Z\",\"lastTimestamp\":\"2019-10-13T20:14:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:27Z\",\"lastTimestamp\":\"2019-10-13T20:14:27Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T20:14:28Z\",\"lastTimestamp\":\"2019-10-13T20:14:28Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.62.42\",\"type\":\"Public\",\"dnsNameLabel\":\"aci429937\",\"fqdn\":\"aci429937.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci13656/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id28773076\":{\"principalId\":\"448b2361-7f45-44b5-92a8-5c6e703aba4f\",\"clientId\":\"9d98ac10-cecd-48c0-add2-9dda30215f33\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci13656/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-ida6890225\":{\"principalId\":\"143af4bf-9b0c-4321-add6-7a1266374cc0\",\"clientId\":\"bf807aae-3331-4fcb-b1fb-ccc56cac1ae2\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci13656/providers/Microsoft.ContainerInstance/containerGroups/aci429937\",\"name\":\"aci429937\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:bca7c47d-87e8-477b-8780-71c991150c27", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:18.549Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:19.516Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Method" : "PATCH", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:02 GMT", - "content-length" : "2731", + "date" : "Mon, 29 Mar 2021 06:21:59 GMT", + "content-length" : "1473", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11942", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "6d396ae0-2365-4cb9-bdb9-875de4bda93e", + "x-ms-correlation-request-id" : "9827b555-2b7b-4680-a1c1-47aba71b8944", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221403Z:6d396ae0-2365-4cb9-bdb9-875de4bda93e", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062159Z:9827b555-2b7b-4680-a1c1-47aba71b8944", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:5919800f-2b90-4448-b370-96ba654ab093", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:12:49Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:13:01Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:ad425a3f-4590-4fb0-9c04-4080a61e9632", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:18.549Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T06:21:19.516Z\",\"detailStatus\":\"\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.252.28.132\",\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag2\":\"value2\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:03 GMT", - "content-length" : "2731", + "date" : "Mon, 29 Mar 2021 06:22:00 GMT", + "content-length" : "1498", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11941", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "4aeb5693-cc26-4ab3-9d2e-37a19d787a42", + "x-ms-correlation-request-id" : "fed31b62-a3de-4d9c-9fdc-cde819ca1cee", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221403Z:4aeb5693-cc26-4ab3-9d2e-37a19d787a42", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062200Z:fed31b62-a3de-4d9c-9fdc-cde819ca1cee", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:d8383c6f-6ec9-4292-b535-d116930d3a1b", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:12:49Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:13:01Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:9cc42814-983d-44d2-b1c2-05f8e95464e8", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Repairing\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"startTime\":\"2021-03-29T06:21:18.549Z\",\"detailStatus\":\"Infrastructure Error\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"startTime\":\"2021-03-29T06:21:19.516Z\",\"detailStatus\":\"Infrastructure Error\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Unknown\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag2\":\"value2\"}}" } }, { - "Method" : "PATCH", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c/restart?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:06 GMT", - "content-length" : "2731", + "date" : "Mon, 29 Mar 2021 06:22:20 GMT", + "content-length" : "216", "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding,Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1173", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", "retry-after" : "0", - "StatusCode" : "200", + "StatusCode" : "500", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "4f663f42-6e6d-4af3-9726-e02ae685b9f2", + "x-ms-correlation-request-id" : "6042bd12-6928-4014-8504-7007c18a269d", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221406Z:4f663f42-6e6d-4af3-9726-e02ae685b9f2", + "x-ms-failure-cause" : "service", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062220Z:6042bd12-6928-4014-8504-7007c18a269d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:fc0176ff-8d2b-4be8-88c4-096859c6482a", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:12:49Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:13:01Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag2\":\"value2\"}}" + "x-ms-request-id" : "eastus2:bd38772a-cb87-4e61-87ef-f207266d3d1b", + "Body" : "{\"error\":{\"code\":\"InternalServerError\",\"message\":\"Encountered an internal server error. The tracking activity id is 'bd38772a-cb87-4e61-87ef-f207266d3d1b', correlation id is '6042bd12-6928-4014-8504-7007c18a269d'.\"}}" } }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c/restart?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:06 GMT", - "content-length" : "2731", + "date" : "Mon, 29 Mar 2021 06:22:31 GMT", + "content-length" : "216", "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding,Accept-Encoding", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11940", - "StatusCode" : "200", + "StatusCode" : "500", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "8a5904d0-bae9-4fc3-a031-e950cb14a155", + "x-ms-correlation-request-id" : "b6b31f2a-edc7-40e8-9c0f-d7276d6b68d8", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221407Z:8a5904d0-bae9-4fc3-a031-e950cb14a155", + "x-ms-failure-cause" : "service", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062232Z:b6b31f2a-edc7-40e8-9c0f-d7276d6b68d8", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:1f294381-b140-4759-9da7-7778dfdde2d8", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:12:49Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:08Z\",\"lastTimestamp\":\"2019-10-13T22:12:08Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:32Z\",\"lastTimestamp\":\"2019-10-13T22:12:32Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2019-10-13T22:13:01Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:49Z\",\"lastTimestamp\":\"2019-10-13T22:12:49Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:12:57Z\",\"lastTimestamp\":\"2019-10-13T22:12:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2019-10-13T22:13:01Z\",\"lastTimestamp\":\"2019-10-13T22:13:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag2\":\"value2\"}}" + "x-ms-request-id" : "eastus2:f140723a-69b8-4275-b525-205a03884914", + "Body" : "{\"error\":{\"code\":\"InternalServerError\",\"message\":\"Encountered an internal server error. The tracking activity id is 'f140723a-69b8-4275-b525-205a03884914', correlation id is 'b6b31f2a-edc7-40e8-9c0f-d7276d6b68d8'.\"}}" } }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438/restart?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c/restart?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:07 GMT", + "date" : "Mon, 29 Mar 2021 06:22:39 GMT", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", "retry-after" : "0", "StatusCode" : "204", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ab006085-a946-4838-abc6-0f4c870d14b6", + "x-ms-correlation-request-id" : "7d6c18f9-c882-446d-acfd-6814d4f1b788", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221407Z:ab006085-a946-4838-abc6-0f4c870d14b6", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062239Z:7d6c18f9-c882-446d-acfd-6814d4f1b788", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:43c3c302-b695-40de-b209-9e19149d2ad7", + "x-ms-request-id" : "eastus2:55abf64c-90ff-45dd-8fdd-8af518c8bfac", "Body" : "", - "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/43c3c302-b695-40de-b209-9e19149d2ad7?api-version=2018-06-01" + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/55abf64c-90ff-45dd-8fdd-8af518c8bfac?api-version=2018-06-01" } }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438/stop?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c/stop?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:07 GMT", + "date" : "Mon, 29 Mar 2021 06:22:40 GMT", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", "retry-after" : "0", "StatusCode" : "204", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "3eaf5acb-00d6-484a-bf88-a839a7cd77c0", + "x-ms-correlation-request-id" : "88cd03ce-b290-4cc5-a377-315dc1e6328e", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221408Z:3eaf5acb-00d6-484a-bf88-a839a7cd77c0", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062241Z:88cd03ce-b290-4cc5-a377-315dc1e6328e", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:3104f806-2181-4fcf-8d6f-3a3533540497", + "x-ms-request-id" : "eastus2:97267bfd-b44b-49e2-ad0a-ff4d82ac1c35", "Body" : "" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:11 GMT", - "content-length" : "1184", + "date" : "Mon, 29 Mar 2021 06:22:46 GMT", + "content-length" : "1676", "expires" : "-1", - "transfer-encoding" : "chunked", - "x-ms-ratelimit-remaining-subscription-deletes" : "14990", + "x-ms-ratelimit-remaining-subscription-deletes" : "14999", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "458cbe07-f09b-4f84-bc10-097351cd9952", + "x-ms-correlation-request-id" : "346ed10e-1896-4daf-b28a-0fe281fa422f", "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h" : "299", "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m" : "99", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221411Z:458cbe07-f09b-4f84-bc10-097351cd9952", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062247Z:346ed10e-1896-4daf-b28a-0fe281fa422f", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:937b9da6-c6f4-415d-aff5-e7c7181ef70c", - "Body" : "{\"properties\":{\"provisioningState\":\"Updating\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"52.254.111.211\",\"type\":\"Public\",\"dnsNameLabel\":\"aci059438\",\"fqdn\":\"aci059438.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"identity\":{\"principalId\":\"2010ad66-6d1f-4177-816e-ad2b091f410f\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci059438/providers/Microsoft.ContainerInstance/containerGroups/aci059438\",\"name\":\"aci059438\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag2\":\"value2\"}}" + "x-ms-request-id" : "eastus2:f1d198ad-7e12-445b-b254-f0719f8deb74", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2021-03-29T06:22:42.1107622Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Waiting\",\"detailStatus\":\"Waiting to run\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2021-03-29T06:22:42.1107622Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Waiting\",\"detailStatus\":\"Waiting to run\"}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"type\":\"Public\",\"dnsNameLabel\":\"aci82769c\",\"fqdn\":\"aci82769c.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"identity\":{\"principalId\":\"b608eb4e-2704-48ec-b47d-7d16165a3f9a\",\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"SystemAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci82769c/providers/Microsoft.ContainerInstance/containerGroups/aci82769c\",\"name\":\"aci82769c\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag2\":\"value2\"}}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci059438?api-version=2020-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci82769c?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ResourceManagementClient, 2019-08-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ResourceManagementClient, 2020-06-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 13 Oct 2019 22:14:17 GMT", + "date" : "Mon, 29 Mar 2021 06:22:50 GMT", "content-length" : "0", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-deletes" : "14989", + "x-ms-ratelimit-remaining-subscription-deletes" : "14998", "retry-after" : "0", "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "c86f7e6d-6c80-4fae-96b9-36d81ade60ec", + "x-ms-correlation-request-id" : "a67be378-1113-4f1b-918c-aa4dc182606b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191013T221418Z:c86f7e6d-6c80-4fae-96b9-36d81ade60ec", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR0FDSTA1OTQzOC1FQVNUVVMyIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyIn0?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T062251Z:a67be378-1113-4f1b-918c-aa4dc182606b", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR0FDSTgyNzY5Qy1FQVNUVVMyIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyIn0?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "c86f7e6d-6c80-4fae-96b9-36d81ade60ec", + "x-ms-request-id" : "a67be378-1113-4f1b-918c-aa4dc182606b", "Body" : "" } } ], - "variables" : [ "059438", "952ed3e0-1c64-4312-8837-815404a5d7f4", "1d85fe62-beee-42bf-af68-1a482a907097", "9b11c4dc-fcd1-4c9d-a96c-94cafc1e0804", "f8fecb1d-7d43-44e3-87e5-18b9eb538b5c", "e500c108-4378-4266-9d97-5d9bd192403c", "2aa8f3a6-2fbd-43c7-85dc-42f8ae8d0213", "e5675e24-c290-4c49-bb1b-55c9cd4d16e4", "f9f26c17-b419-44a0-9270-8eb2e1e43cb8", "7871e199-1237-4ad4-9261-32870611dc10", "2700a993-f310-4eaa-952a-f80896f82327", "bdab46f0-9348-4909-9e51-c6202eb3653c", "cd50d651-dfd7-4528-87a4-1acee336416f" ] + "variables" : [ "82769c", "d4120d6a-06db-4bfe-8198-8c0b61e1f4e7", "ed4057da-924d-49e9-82e3-0f430cfd5425", "5d51a19f-f9b7-41b1-b444-baa8c30203e8", "af427e05-dde4-4cb9-bd63-d928d0b42d17", "ab0c0812-f5e6-490f-8097-2b15a3a4b12e", "d793e50f-c0eb-4376-a882-b1d8e792f19b", "6b687df6-bfab-46d1-8f84-51a9378916ae", "9474ba48-d6b7-41a3-bd22-b81feaa4b4ca", "91c87995-c1b9-44d3-800d-f29d63e9aa97", "7af2ea23-7b34-45bf-8bef-1f09c44c1234" ] } \ No newline at end of file diff --git a/azure/src/test/resources/session-records/testContainerInstanceWithPublicIpAddressWithUserAssignedMsi.json b/azure/src/test/resources/session-records/testContainerInstanceWithPublicIpAddressWithUserAssignedMsi.json index 9a0558960bb..74208c5079b 100644 --- a/azure/src/test/resources/session-records/testContainerInstanceWithPublicIpAddressWithUserAssignedMsi.json +++ b/azure/src/test/resources/session-records/testContainerInstanceWithPublicIpAddressWithUserAssignedMsi.json @@ -1,13 +1,13 @@ { "networkCallRecords" : [ { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552?api-version=2020-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ResourceManagementClient, 2019-08-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ResourceManagementClient, 2020-06-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:49:46 GMT", + "date" : "Mon, 29 Mar 2021 06:58:18 GMT", "content-length" : "301", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1199", @@ -15,77 +15,74 @@ "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ebc3e161-fb21-458e-8324-6835ba2019db", + "x-ms-correlation-request-id" : "447af95e-f202-4642-b876-6e9cec6677d5", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T204947Z:ebc3e161-fb21-458e-8324-6835ba2019db", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065818Z:447af95e-f202-4642-b876-6e9cec6677d5", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "ebc3e161-fb21-458e-8324-6835ba2019db", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552\",\"name\":\"rgaci57552\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"westus\",\"tags\":{\"date\":\"2020-02-02T20:49:43.177Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + "x-ms-request-id" : "447af95e-f202-4642-b876-6e9cec6677d5", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067\",\"name\":\"rgaci99067\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"westus\",\"tags\":{\"date\":\"2021-03-29T06:58:15.364Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id7c233516?api-version=2018-11-30", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id59d32244?api-version=2018-11-30", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ManagedServiceIdentityClient, 2018-11-30)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ManagedServiceIdentityClient, 2018-11-30)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:49:54 GMT", + "date" : "Mon, 29 Mar 2021 06:58:26 GMT", "content-length" : "440", - "server" : "Microsoft-HTTPAPI/2.0", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1198", "retry-after" : "0", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9de50660-d34e-4d15-b6b9-981dc639bcf8", + "x-ms-correlation-request-id" : "625a4f4f-f8c2-4def-99e9-fe9da1b7d990", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T204954Z:9de50660-d34e-4d15-b6b9-981dc639bcf8", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065827Z:625a4f4f-f8c2-4def-99e9-fe9da1b7d990", "content-type" : "application/json; charset=utf-8", - "location" : "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id7c233516", + "location" : "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id59d32244", "cache-control" : "no-cache", - "x-ms-request-id" : "9de50660-d34e-4d15-b6b9-981dc639bcf8", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id7c233516\",\"name\":\"msi-id7c233516\",\"type\":\"Microsoft.ManagedIdentity/userAssignedIdentities\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"principalId\":\"c0c666e1-91af-4afc-8da9-55a5da29b4f7\",\"clientId\":\"19c35dd7-f127-49ff-9ffb-5c7934c3f2b2\"}}" + "x-ms-request-id" : "625a4f4f-f8c2-4def-99e9-fe9da1b7d990", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id59d32244\",\"name\":\"msi-id59d32244\",\"type\":\"Microsoft.ManagedIdentity/userAssignedIdentities\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"principalId\":\"f2eebb4a-e53f-400e-b199-f3d51d677ce0\",\"clientId\":\"4e599533-0952-4869-a655-46f9e37327df\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleDefinitions?%24filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleDefinitions?%24filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:49:54 GMT", - "content-length" : "615", + "date" : "Mon, 29 Mar 2021 06:58:27 GMT", + "content-length" : "627", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", - "x-ms-request-charge" : "1", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11999", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a32679f7-acdb-405c-b49a-f3db89cf0aba", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly", + "x-ms-correlation-request-id" : "6bcc97be-260a-418b-962b-9b82ad2b9514", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T204954Z:a32679f7-acdb-405c-b49a-f3db89cf0aba", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065827Z:6bcc97be-260a-418b-962b-9b82ad2b9514", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "78941038-606d-48fa-bb28-99a9004888f2", - "Body" : "{\"value\":[{\"properties\":{\"roleName\":\"Reader\",\"type\":\"BuiltInRole\",\"description\":\"Lets you view everything, but not make any changes.\",\"assignableScopes\":[\"/\"],\"permissions\":[{\"actions\":[\"*/read\"],\"notActions\":[],\"dataActions\":[],\"notDataActions\":[]}],\"createdOn\":\"2015-02-02T21:55:09.8806423Z\",\"updatedOn\":\"2019-02-05T21:24:35.7424745Z\",\"createdBy\":null,\"updatedBy\":null},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7\",\"type\":\"Microsoft.Authorization/roleDefinitions\",\"name\":\"acdd72a7-3385-48ef-bd42-f606fba81ae7\"}]}" + "x-ms-request-id" : "f7289ef9-f28d-4fdb-906c-c23148732c8a", + "Body" : "{\"value\":[{\"properties\":{\"roleName\":\"Reader\",\"type\":\"BuiltInRole\",\"description\":\"View all resources, but does not allow you to make any changes.\",\"assignableScopes\":[\"/\"],\"permissions\":[{\"actions\":[\"*/read\"],\"notActions\":[],\"dataActions\":[],\"notDataActions\":[]}],\"createdOn\":\"2015-02-02T21:55:09.8806423Z\",\"updatedOn\":\"2020-08-14T20:16:04.3791205Z\",\"createdBy\":null,\"updatedBy\":null},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7\",\"type\":\"Microsoft.Authorization/roleDefinitions\",\"name\":\"acdd72a7-3385-48ef-bd42-f606fba81ae7\"}]}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/365dff13-feb2-4962-a8ec-149f0d850cfe?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/b2e1091f-9bfe-4a83-be7a-d1dfb33b88b5?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:49:55 GMT", + "date" : "Mon, 29 Mar 2021 06:58:27 GMT", "content-length" : "163", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1197", @@ -93,24 +90,24 @@ "StatusCode" : "400", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "7e6ecf07-f3b8-49cf-bb88-6c11ea2f03f8", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "11d7f240-19da-41a8-bb0f-a27f134272ee", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T204955Z:7e6ecf07-f3b8-49cf-bb88-6c11ea2f03f8", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065827Z:11d7f240-19da-41a8-bb0f-a27f134272ee", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "0704fb17-067f-4bc7-9246-3ec2df2cc126", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal c0c666e191af4afc8da955a5da29b4f7 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + "x-ms-request-id" : "1144b0fc-1e76-4d7d-9e87-4fdff8a291c1", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal f2eebb4ae53f400eb199f3d51d677ce0 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/365dff13-feb2-4962-a8ec-149f0d850cfe?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/b2e1091f-9bfe-4a83-be7a-d1dfb33b88b5?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:49:58 GMT", + "date" : "Mon, 29 Mar 2021 06:58:29 GMT", "content-length" : "163", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1196", @@ -118,24 +115,24 @@ "StatusCode" : "400", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "003e2480-600e-40f6-b188-8a62e9a66f16", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "2b6e8632-a8cd-41b2-8f10-f26fcefcabd1", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T204958Z:003e2480-600e-40f6-b188-8a62e9a66f16", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065830Z:2b6e8632-a8cd-41b2-8f10-f26fcefcabd1", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "170a7509-4c9d-4d23-94f4-5d1941e856d8", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal c0c666e191af4afc8da955a5da29b4f7 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + "x-ms-request-id" : "d721e577-80c2-4c7a-ac75-187ade20fade", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal f2eebb4ae53f400eb199f3d51d677ce0 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/365dff13-feb2-4962-a8ec-149f0d850cfe?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/b2e1091f-9bfe-4a83-be7a-d1dfb33b88b5?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:03 GMT", + "date" : "Mon, 29 Mar 2021 06:58:34 GMT", "content-length" : "163", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1195", @@ -143,503 +140,589 @@ "StatusCode" : "400", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "60df7258-77ab-4d71-bcf3-3d5315316483", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "4b1f97a1-b6b7-4696-8d88-ffcf65a02e4d", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205003Z:60df7258-77ab-4d71-bcf3-3d5315316483", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065834Z:4b1f97a1-b6b7-4696-8d88-ffcf65a02e4d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "9d30585a-6bdc-4c0d-9246-fd1477b4069a", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal c0c666e191af4afc8da955a5da29b4f7 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + "x-ms-request-id" : "19a80ebf-ee61-4f87-869f-829cef26fa85", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal f2eebb4ae53f400eb199f3d51d677ce0 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/365dff13-feb2-4962-a8ec-149f0d850cfe?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/b2e1091f-9bfe-4a83-be7a-d1dfb33b88b5?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:14 GMT", - "content-length" : "773", + "date" : "Mon, 29 Mar 2021 06:58:40 GMT", + "content-length" : "163", "expires" : "-1", - "x-ms-request-charge" : "5", "x-ms-ratelimit-remaining-subscription-writes" : "1194", "retry-after" : "0", + "StatusCode" : "400", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "39ba385e-2a7d-47e7-996e-fdb819a7de99", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065840Z:39ba385e-2a7d-47e7-996e-fdb819a7de99", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "57edfa6d-f5e3-49aa-80f7-d4eb1b3d2c50", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal f2eebb4ae53f400eb199f3d51d677ce0 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/b2e1091f-9bfe-4a83-be7a-d1dfb33b88b5?api-version=2018-01-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 29 Mar 2021 06:58:48 GMT", + "content-length" : "163", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "retry-after" : "0", + "StatusCode" : "400", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b3fe0b7a-a10e-45cc-a6cc-84f94db9c5c0", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065849Z:b3fe0b7a-a10e-45cc-a6cc-84f94db9c5c0", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "099c04d2-3d65-405b-bb14-342c08893648", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal f2eebb4ae53f400eb199f3d51d677ce0 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/b2e1091f-9bfe-4a83-be7a-d1dfb33b88b5?api-version=2018-01-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 29 Mar 2021 06:59:00 GMT", + "content-length" : "773", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1192", + "retry-after" : "0", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "cca1a9f1-fb5f-4fd9-a035-8a335f04d190", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "4ab7dacb-579a-481a-9fee-36a2e2a981d0", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205014Z:cca1a9f1-fb5f-4fd9-a035-8a335f04d190", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065901Z:4ab7dacb-579a-481a-9fee-36a2e2a981d0", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "163c93b4-b0cd-43fa-9bd1-32ea7754a0f1", - "Body" : "{\"properties\":{\"roleDefinitionId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7\",\"principalId\":\"c0c666e1-91af-4afc-8da9-55a5da29b4f7\",\"principalType\":\"ServicePrincipal\",\"scope\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552\",\"createdOn\":\"2020-02-02T20:50:10.2078383Z\",\"updatedOn\":\"2020-02-02T20:50:10.2078383Z\",\"createdBy\":null,\"updatedBy\":\"3d831914-9051-4c44-8463-c295f4e7a13e\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/365dff13-feb2-4962-a8ec-149f0d850cfe\",\"type\":\"Microsoft.Authorization/roleAssignments\",\"name\":\"365dff13-feb2-4962-a8ec-149f0d850cfe\"}" + "x-ms-request-id" : "629d42b5-9bd3-468f-bf52-746376c01606", + "Body" : "{\"properties\":{\"roleDefinitionId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7\",\"principalId\":\"f2eebb4a-e53f-400e-b199-f3d51d677ce0\",\"principalType\":\"ServicePrincipal\",\"scope\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067\",\"createdOn\":\"2021-03-29T06:58:59.4280847Z\",\"updatedOn\":\"2021-03-29T06:58:59.6780883Z\",\"createdBy\":null,\"updatedBy\":\"00fb0876-b380-4333-a3c7-c6bdb9024a25\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/b2e1091f-9bfe-4a83-be7a-d1dfb33b88b5\",\"type\":\"Microsoft.Authorization/roleAssignments\",\"name\":\"b2e1091f-9bfe-4a83-be7a-d1dfb33b88b5\"}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id70b46218?api-version=2018-11-30", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-iddd382016?api-version=2018-11-30", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ManagedServiceIdentityClient, 2018-11-30)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ManagedServiceIdentityClient, 2018-11-30)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:17 GMT", + "date" : "Mon, 29 Mar 2021 06:59:05 GMT", "content-length" : "440", - "server" : "Microsoft-HTTPAPI/2.0", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "x-ms-ratelimit-remaining-subscription-writes" : "1191", "retry-after" : "0", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a2daeb56-9e11-4f9c-95ad-d7792e899886", + "x-ms-correlation-request-id" : "32340648-3092-45f2-a330-28b44941c29b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205018Z:a2daeb56-9e11-4f9c-95ad-d7792e899886", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065906Z:32340648-3092-45f2-a330-28b44941c29b", "content-type" : "application/json; charset=utf-8", - "location" : "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id70b46218", + "location" : "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-iddd382016", "cache-control" : "no-cache", - "x-ms-request-id" : "a2daeb56-9e11-4f9c-95ad-d7792e899886", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id70b46218\",\"name\":\"msi-id70b46218\",\"type\":\"Microsoft.ManagedIdentity/userAssignedIdentities\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"principalId\":\"b1902d24-8c3d-4eda-a392-275512e5c391\",\"clientId\":\"81fc4859-c8a1-4f59-9bf4-1eed19671061\"}}" + "x-ms-request-id" : "32340648-3092-45f2-a330-28b44941c29b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-iddd382016\",\"name\":\"msi-iddd382016\",\"type\":\"Microsoft.ManagedIdentity/userAssignedIdentities\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"principalId\":\"caaaf721-ca94-4b3c-82a6-9856550f027f\",\"clientId\":\"ccca02ca-41f9-4c7b-9e8a-c0248440b6d6\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleDefinitions?%24filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleDefinitions?%24filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:18 GMT", - "content-length" : "832", + "date" : "Mon, 29 Mar 2021 06:59:06 GMT", + "content-length" : "984", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", - "x-ms-request-charge" : "1", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11998", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "1b454b16-607f-40e2-ac9c-3d534f211fff", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "eefb66ff-2087-402f-a4e1-45df02ea076c", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205018Z:1b454b16-607f-40e2-ac9c-3d534f211fff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065906Z:eefb66ff-2087-402f-a4e1-45df02ea076c", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "f83c5c2e-4fe8-44dc-935d-1dd183824732", - "Body" : "{\"value\":[{\"properties\":{\"roleName\":\"Contributor\",\"type\":\"BuiltInRole\",\"description\":\"Lets you manage everything except access to resources.\",\"assignableScopes\":[\"/\"],\"permissions\":[{\"actions\":[\"*\"],\"notActions\":[\"Microsoft.Authorization/*/Delete\",\"Microsoft.Authorization/*/Write\",\"Microsoft.Authorization/elevateAccess/Action\",\"Microsoft.Blueprint/blueprintAssignments/write\",\"Microsoft.Blueprint/blueprintAssignments/delete\"],\"dataActions\":[],\"notDataActions\":[]}],\"createdOn\":\"2015-02-02T21:55:09.8806423Z\",\"updatedOn\":\"2019-02-05T21:24:38.4580610Z\",\"createdBy\":null,\"updatedBy\":null},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\",\"type\":\"Microsoft.Authorization/roleDefinitions\",\"name\":\"b24988ac-6180-42a0-ab88-20f7382dd24c\"}]}" + "x-ms-request-id" : "ea69c551-3363-4de1-b086-e632dcdb535d", + "Body" : "{\"value\":[{\"properties\":{\"roleName\":\"Contributor\",\"type\":\"BuiltInRole\",\"description\":\"Grants full access to manage all resources, but does not allow you to assign roles in Azure RBAC, manage assignments in Azure Blueprints, or share image galleries.\",\"assignableScopes\":[\"/\"],\"permissions\":[{\"actions\":[\"*\"],\"notActions\":[\"Microsoft.Authorization/*/Delete\",\"Microsoft.Authorization/*/Write\",\"Microsoft.Authorization/elevateAccess/Action\",\"Microsoft.Blueprint/blueprintAssignments/write\",\"Microsoft.Blueprint/blueprintAssignments/delete\",\"Microsoft.Compute/galleries/share/action\"],\"dataActions\":[],\"notDataActions\":[]}],\"createdOn\":\"2015-02-02T21:55:09.8806423Z\",\"updatedOn\":\"2020-12-04T00:34:54.8501087Z\",\"createdBy\":null,\"updatedBy\":null},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\",\"type\":\"Microsoft.Authorization/roleDefinitions\",\"name\":\"b24988ac-6180-42a0-ab88-20f7382dd24c\"}]}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/82a9d40b-ef04-4024-b79c-3e57cefc03b4?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/1de204ba-562e-4a04-b46e-a50a2216f2e8?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:18 GMT", + "date" : "Mon, 29 Mar 2021 06:59:06 GMT", "content-length" : "163", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1192", + "x-ms-ratelimit-remaining-subscription-writes" : "1190", "retry-after" : "0", "StatusCode" : "400", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "1f9ccd88-2850-490a-8fbd-4988accc888c", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "7ce3e630-35b4-4385-9a25-abf444598a91", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205019Z:1f9ccd88-2850-490a-8fbd-4988accc888c", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065906Z:7ce3e630-35b4-4385-9a25-abf444598a91", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "ab6fccbc-cb5c-40ca-b7e1-cfc26b59a733", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal b1902d248c3d4edaa392275512e5c391 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + "x-ms-request-id" : "daaa9967-1b7a-45c9-a368-c6b541d94738", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal caaaf721ca944b3c82a69856550f027f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/82a9d40b-ef04-4024-b79c-3e57cefc03b4?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/1de204ba-562e-4a04-b46e-a50a2216f2e8?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:21 GMT", + "date" : "Mon, 29 Mar 2021 06:59:08 GMT", "content-length" : "163", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1191", + "x-ms-ratelimit-remaining-subscription-writes" : "1189", "retry-after" : "0", "StatusCode" : "400", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "46134a45-aa7f-4930-95c7-3cb7857a059a", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "b673a1e4-a549-4ea2-a975-cd9d18a425a8", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205021Z:46134a45-aa7f-4930-95c7-3cb7857a059a", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065909Z:b673a1e4-a549-4ea2-a975-cd9d18a425a8", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "f0264257-3f3d-4e0a-b163-a585dfe19be5", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal b1902d248c3d4edaa392275512e5c391 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + "x-ms-request-id" : "62aafcb9-50b6-49b7-88ed-8d18a3a75801", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal caaaf721ca944b3c82a69856550f027f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/82a9d40b-ef04-4024-b79c-3e57cefc03b4?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/1de204ba-562e-4a04-b46e-a50a2216f2e8?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:25 GMT", + "date" : "Mon, 29 Mar 2021 06:59:12 GMT", "content-length" : "163", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1190", + "x-ms-ratelimit-remaining-subscription-writes" : "1188", "retry-after" : "0", "StatusCode" : "400", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e7e0735a-8ef5-485e-b0c7-baba77d9860b", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "325775fd-a8aa-4acd-9fb7-d985602d43df", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205026Z:e7e0735a-8ef5-485e-b0c7-baba77d9860b", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065913Z:325775fd-a8aa-4acd-9fb7-d985602d43df", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "fd35b719-4128-47e3-9a3d-3e0798258331", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal b1902d248c3d4edaa392275512e5c391 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + "x-ms-request-id" : "28f115fc-d3a9-4c54-a8fc-cd042c1db1a1", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal caaaf721ca944b3c82a69856550f027f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/82a9d40b-ef04-4024-b79c-3e57cefc03b4?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/1de204ba-562e-4a04-b46e-a50a2216f2e8?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:31 GMT", + "date" : "Mon, 29 Mar 2021 06:59:19 GMT", "content-length" : "163", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1189", + "x-ms-ratelimit-remaining-subscription-writes" : "1187", "retry-after" : "0", "StatusCode" : "400", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ecb54f0c-546a-4a49-9736-117dd39189d7", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "03db5a59-d0fb-4216-9cf4-c9f98c1927f8", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205032Z:ecb54f0c-546a-4a49-9736-117dd39189d7", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065920Z:03db5a59-d0fb-4216-9cf4-c9f98c1927f8", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "1f972543-7d1c-421e-afc4-2ad48517aa77", - "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal b1902d248c3d4edaa392275512e5c391 does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + "x-ms-request-id" : "d770b677-a283-4790-b23d-9d8acdded816", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal caaaf721ca944b3c82a69856550f027f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/82a9d40b-ef04-4024-b79c-3e57cefc03b4?api-version=2018-01-01-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/1de204ba-562e-4a04-b46e-a50a2216f2e8?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (AuthorizationManagementClient)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:42 GMT", - "content-length" : "773", + "date" : "Mon, 29 Mar 2021 06:59:27 GMT", + "content-length" : "163", "expires" : "-1", - "x-ms-request-charge" : "2", - "x-ms-ratelimit-remaining-subscription-writes" : "1188", + "x-ms-ratelimit-remaining-subscription-writes" : "1186", "retry-after" : "0", - "StatusCode" : "201", + "StatusCode" : "400", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "dcc58daf-3732-4256-a6a6-3c78a12f6d09", - "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None", + "x-ms-correlation-request-id" : "d8c034da-ed99-4ba0-bc9a-0ae90ca1d4d2", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205042Z:dcc58daf-3732-4256-a6a6-3c78a12f6d09", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065928Z:d8c034da-ed99-4ba0-bc9a-0ae90ca1d4d2", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "51fc3f90-2c80-425c-93d4-f022f2423823", - "Body" : "{\"properties\":{\"roleDefinitionId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\",\"principalId\":\"b1902d24-8c3d-4eda-a392-275512e5c391\",\"principalType\":\"ServicePrincipal\",\"scope\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552\",\"createdOn\":\"2020-02-02T20:50:41.0519754Z\",\"updatedOn\":\"2020-02-02T20:50:41.0519754Z\",\"createdBy\":null,\"updatedBy\":\"3d831914-9051-4c44-8463-c295f4e7a13e\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.Authorization/roleAssignments/82a9d40b-ef04-4024-b79c-3e57cefc03b4\",\"type\":\"Microsoft.Authorization/roleAssignments\",\"name\":\"82a9d40b-ef04-4024-b79c-3e57cefc03b4\"}" + "x-ms-request-id" : "e78d842a-f71d-4aac-a22c-921b247ef0db", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal caaaf721ca944b3c82a69856550f027f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/1de204ba-562e-4a04-b46e-a50a2216f2e8?api-version=2018-01-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:51 GMT", - "content-length" : "1670", + "date" : "Mon, 29 Mar 2021 06:59:37 GMT", + "content-length" : "163", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1187", + "x-ms-ratelimit-remaining-subscription-writes" : "1185", + "retry-after" : "0", + "StatusCode" : "400", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ab7907fb-8609-42ff-8c97-4465f060ece2", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065938Z:ab7907fb-8609-42ff-8c97-4465f060ece2", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "e79bd723-4852-4e2e-8157-cdeb0726fe26", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal caaaf721ca944b3c82a69856550f027f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/1de204ba-562e-4a04-b46e-a50a2216f2e8?api-version=2018-01-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 29 Mar 2021 06:59:51 GMT", + "content-length" : "163", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1184", + "retry-after" : "0", + "StatusCode" : "400", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "9b1b7971-d54e-4764-8291-b1d59c82c06e", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T065951Z:9b1b7971-d54e-4764-8291-b1d59c82c06e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d9e3de83-246f-42c7-a6d6-bda406d7a323", + "Body" : "{\"error\":{\"code\":\"PrincipalNotFound\",\"message\":\"Principal caaaf721ca944b3c82a69856550f027f does not exist in the directory 00000000-0000-0000-0000-000000000000.\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/1de204ba-562e-4a04-b46e-a50a2216f2e8?api-version=2018-01-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (AuthorizationManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 29 Mar 2021 07:00:06 GMT", + "content-length" : "773", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1183", "retry-after" : "0", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "f7db07e3-8372-4493-b343-fc71ccf6f0ce", - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h" : "299", - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m" : "99", + "x-ms-correlation-request-id" : "e0414f90-048b-48aa-b50e-9b93b2065360", + "set-cookie" : "x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205051Z:f7db07e3-8372-4493-b343-fc71ccf6f0ce", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070006Z:e0414f90-048b-48aa-b50e-9b93b2065360", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:c1de5225-65a4-4cf5-85b7-ba707ec83618", - "Body" : "{\"properties\":{\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.70.156.39\",\"type\":\"Public\",\"dnsNameLabel\":\"aci94823f\",\"fqdn\":\"aci94823f.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id7c233516\":{\"principalId\":\"c0c666e1-91af-4afc-8da9-55a5da29b4f7\",\"clientId\":\"19c35dd7-f127-49ff-9ffb-5c7934c3f2b2\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id70b46218\":{\"principalId\":\"b1902d24-8c3d-4eda-a392-275512e5c391\",\"clientId\":\"81fc4859-c8a1-4f59-9bf4-1eed19671061\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"name\":\"aci94823f\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}", - "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/c1de5225-65a4-4cf5-85b7-ba707ec83618?api-version=2018-06-01" + "x-ms-request-id" : "82742fb4-a806-4ec7-bdd6-21dbe5c68de9", + "Body" : "{\"properties\":{\"roleDefinitionId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\",\"principalId\":\"caaaf721-ca94-4b3c-82a6-9856550f027f\",\"principalType\":\"ServicePrincipal\",\"scope\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067\",\"createdOn\":\"2021-03-29T07:00:05.3609430Z\",\"updatedOn\":\"2021-03-29T07:00:05.6159529Z\",\"createdBy\":null,\"updatedBy\":\"00fb0876-b380-4333-a3c7-c6bdb9024a25\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.Authorization/roleAssignments/1de204ba-562e-4a04-b46e-a50a2216f2e8\",\"type\":\"Microsoft.Authorization/roleAssignments\",\"name\":\"1de204ba-562e-4a04-b46e-a50a2216f2e8\"}" } }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/c1de5225-65a4-4cf5-85b7-ba707ec83618?api-version=2018-06-01", + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", + "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:50:51 GMT", - "content-length" : "239", + "date" : "Mon, 29 Mar 2021 07:00:18 GMT", + "content-length" : "1687", "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding,Accept-Encoding", + "x-ms-ratelimit-remaining-subscription-writes" : "1182", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11997", - "StatusCode" : "200", + "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b6c7784b-0a0a-417f-8dd7-9d3da95a23c8", + "x-ms-correlation-request-id" : "bfb03336-a528-4742-9f8a-ef8ba0d7b137", + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h" : "299", + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m" : "99", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205052Z:b6c7784b-0a0a-417f-8dd7-9d3da95a23c8", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070018Z:bfb03336-a528-4742-9f8a-ef8ba0d7b137", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:b948f56c-e986-4f36-a76d-f433db1dedf2", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"status\":\"Pending\",\"startTime\":\"2020-02-02T20:50:50.4713589Z\",\"properties\":{\"events\":[]}}" + "x-ms-request-id" : "eastus2:895c1194-85d8-434e-9172-907750ae159b", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"type\":\"Public\",\"dnsNameLabel\":\"aci249351\",\"fqdn\":\"aci249351.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id59d32244\":{\"principalId\":\"f2eebb4a-e53f-400e-b199-f3d51d677ce0\",\"clientId\":\"4e599533-0952-4869-a655-46f9e37327df\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-iddd382016\":{\"principalId\":\"caaaf721-ca94-4b3c-82a6-9856550f027f\",\"clientId\":\"ccca02ca-41f9-4c7b-9e8a-c0248440b6d6\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351\",\"name\":\"aci249351\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/895c1194-85d8-434e-9172-907750ae159b?api-version=2018-06-01" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/c1de5225-65a4-4cf5-85b7-ba707ec83618?api-version=2018-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/895c1194-85d8-434e-9172-907750ae159b?api-version=2018-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:51:21 GMT", + "date" : "Mon, 29 Mar 2021 07:00:50 GMT", "content-length" : "239", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11996", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b649bd82-3656-4140-bb09-04628efc103b", + "x-ms-correlation-request-id" : "7a9a4920-60b4-4201-bc89-a141ad5ef4ed", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205122Z:b649bd82-3656-4140-bb09-04628efc103b", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070050Z:7a9a4920-60b4-4201-bc89-a141ad5ef4ed", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:a3a18851-54c6-457e-8578-4843bf614a1f", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"status\":\"Pending\",\"startTime\":\"2020-02-02T20:50:50.4713589Z\",\"properties\":{\"events\":[]}}" + "x-ms-request-id" : "eastus2:7593c3c2-3ffe-4796-837e-f3dbc8fb6a0b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351\",\"status\":\"Pending\",\"startTime\":\"2021-03-29T07:00:16.9740326Z\",\"properties\":{\"events\":[]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/c1de5225-65a4-4cf5-85b7-ba707ec83618?api-version=2018-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/895c1194-85d8-434e-9172-907750ae159b?api-version=2018-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:51:52 GMT", - "content-length" : "572", + "date" : "Mon, 29 Mar 2021 07:01:21 GMT", + "content-length" : "240", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11995", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d7eb5a6a-5361-4efc-ac5c-8ca8e9077c2e", + "x-ms-correlation-request-id" : "3c1fb497-32d3-443b-898e-41410aaf9631", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205153Z:d7eb5a6a-5361-4efc-ac5c-8ca8e9077c2e", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070122Z:3c1fb497-32d3-443b-898e-41410aaf9631", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:db2381b1-577e-4d2c-a51d-9ba0399f5796", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"status\":\"Creating\",\"startTime\":\"2020-02-02T20:50:50.4713589Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:50:55Z\",\"lastTimestamp\":\"2020-02-02T20:50:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:12Z\",\"lastTimestamp\":\"2020-02-02T20:51:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"}]}}" + "x-ms-request-id" : "eastus2:e157c2cf-b47f-42d6-b6c0-26668d28c116", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351\",\"status\":\"Creating\",\"startTime\":\"2021-03-29T07:00:16.9740326Z\",\"properties\":{\"events\":[]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/c1de5225-65a4-4cf5-85b7-ba707ec83618?api-version=2018-06-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/eastus2/operations/895c1194-85d8-434e-9172-907750ae159b?api-version=2018-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:52:24 GMT", - "content-length" : "1520", + "date" : "Mon, 29 Mar 2021 07:01:53 GMT", + "content-length" : "1500", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11994", + "x-ms-ratelimit-remaining-subscription-reads" : "11995", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9e0f0cb9-c856-42df-b19b-363b30719844", + "x-ms-correlation-request-id" : "cbd97384-7dc9-4873-a7d4-f35081cfa066", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205224Z:9e0f0cb9-c856-42df-b19b-363b30719844", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070153Z:cbd97384-7dc9-4873-a7d4-f35081cfa066", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:e460b6a6-fd7c-4314-bb11-e052ba4096fa", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"status\":\"Succeeded\",\"startTime\":\"2020-02-02T20:50:50.4713589Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:50:55Z\",\"lastTimestamp\":\"2020-02-02T20:50:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:12Z\",\"lastTimestamp\":\"2020-02-02T20:51:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:40Z\",\"lastTimestamp\":\"2020-02-02T20:51:40Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:46Z\",\"lastTimestamp\":\"2020-02-02T20:51:46Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]}}" + "x-ms-request-id" : "eastus2:1a94f340-d2a9-47d0-bc7a-70d31b6e5447", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-29T07:00:16.9740326Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:29Z\",\"lastTimestamp\":\"2021-03-29T07:01:29Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:30Z\",\"lastTimestamp\":\"2021-03-29T07:01:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:52:24 GMT", - "content-length" : "3218", + "date" : "Mon, 29 Mar 2021 07:01:54 GMT", + "content-length" : "3244", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11993", + "x-ms-ratelimit-remaining-subscription-reads" : "11994", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "2b908b18-f423-4d39-aed3-c54d249df45f", + "x-ms-correlation-request-id" : "47c15730-853f-4981-a03e-3839d8445417", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205225Z:2b908b18-f423-4d39-aed3-c54d249df45f", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070155Z:47c15730-853f-4981-a03e-3839d8445417", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:6508a32b-2980-4fd3-8b16-6920ff4ab00a", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-02-02T20:51:41Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:50:55Z\",\"lastTimestamp\":\"2020-02-02T20:50:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:12Z\",\"lastTimestamp\":\"2020-02-02T20:51:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:40Z\",\"lastTimestamp\":\"2020-02-02T20:51:40Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-02-02T20:51:55Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:46Z\",\"lastTimestamp\":\"2020-02-02T20:51:46Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.70.156.39\",\"type\":\"Public\",\"dnsNameLabel\":\"aci94823f\",\"fqdn\":\"aci94823f.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id7c233516\":{\"principalId\":\"c0c666e1-91af-4afc-8da9-55a5da29b4f7\",\"clientId\":\"19c35dd7-f127-49ff-9ffb-5c7934c3f2b2\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id70b46218\":{\"principalId\":\"b1902d24-8c3d-4eda-a392-275512e5c391\",\"clientId\":\"81fc4859-c8a1-4f59-9bf4-1eed19671061\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"name\":\"aci94823f\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:682162fd-708a-462c-bbbd-8e7d631d2d76", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T07:01:29.406Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:29Z\",\"lastTimestamp\":\"2021-03-29T07:01:29Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T07:01:30.972Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:30Z\",\"lastTimestamp\":\"2021-03-29T07:01:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.67.157.203\",\"type\":\"Public\",\"dnsNameLabel\":\"aci249351\",\"fqdn\":\"aci249351.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id59d32244\":{\"principalId\":\"f2eebb4a-e53f-400e-b199-f3d51d677ce0\",\"clientId\":\"4e599533-0952-4869-a655-46f9e37327df\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-iddd382016\":{\"principalId\":\"caaaf721-ca94-4b3c-82a6-9856550f027f\",\"clientId\":\"ccca02ca-41f9-4c7b-9e8a-c0248440b6d6\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351\",\"name\":\"aci249351\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:52:24 GMT", - "content-length" : "3218", + "date" : "Mon, 29 Mar 2021 07:01:56 GMT", + "content-length" : "3244", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11992", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b738eca2-bd6d-4abf-ac7e-4cad6a7a380b", + "x-ms-correlation-request-id" : "833a937e-f7ce-4350-b64f-ff1dcdc11984", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205225Z:b738eca2-bd6d-4abf-ac7e-4cad6a7a380b", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070156Z:833a937e-f7ce-4350-b64f-ff1dcdc11984", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:2be4ada9-a66b-442b-9b73-c2f02a0a047b", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-02-02T20:51:41Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:50:55Z\",\"lastTimestamp\":\"2020-02-02T20:50:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:12Z\",\"lastTimestamp\":\"2020-02-02T20:51:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:40Z\",\"lastTimestamp\":\"2020-02-02T20:51:40Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-02-02T20:51:55Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:46Z\",\"lastTimestamp\":\"2020-02-02T20:51:46Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.70.156.39\",\"type\":\"Public\",\"dnsNameLabel\":\"aci94823f\",\"fqdn\":\"aci94823f.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id7c233516\":{\"principalId\":\"c0c666e1-91af-4afc-8da9-55a5da29b4f7\",\"clientId\":\"19c35dd7-f127-49ff-9ffb-5c7934c3f2b2\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id70b46218\":{\"principalId\":\"b1902d24-8c3d-4eda-a392-275512e5c391\",\"clientId\":\"81fc4859-c8a1-4f59-9bf4-1eed19671061\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"name\":\"aci94823f\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:eb353394-630e-4334-9f40-55953cfa3d54", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T07:01:29.406Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:29Z\",\"lastTimestamp\":\"2021-03-29T07:01:29Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T07:01:30.972Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:30Z\",\"lastTimestamp\":\"2021-03-29T07:01:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.67.157.203\",\"type\":\"Public\",\"dnsNameLabel\":\"aci249351\",\"fqdn\":\"aci249351.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id59d32244\":{\"principalId\":\"f2eebb4a-e53f-400e-b199-f3d51d677ce0\",\"clientId\":\"4e599533-0952-4869-a655-46f9e37327df\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-iddd382016\":{\"principalId\":\"caaaf721-ca94-4b3c-82a6-9856550f027f\",\"clientId\":\"ccca02ca-41f9-4c7b-9e8a-c0248440b6d6\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351\",\"name\":\"aci249351\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:52:25 GMT", - "content-length" : "1637", + "date" : "Mon, 29 Mar 2021 07:01:57 GMT", + "content-length" : "1675", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11991", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ba2f5b1c-1b03-4c82-9f6c-ac6e74303a17", + "x-ms-correlation-request-id" : "c0158212-7225-42f5-afad-584a55ea335c", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205225Z:ba2f5b1c-1b03-4c82-9f6c-ac6e74303a17", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070158Z:c0158212-7225-42f5-afad-584a55ea335c", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:180211d0-bbb6-4f06-9474-80b0ba3bad8a", - "Body" : "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.70.156.39\",\"type\":\"Public\",\"dnsNameLabel\":\"aci94823f\",\"fqdn\":\"aci94823f.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}]},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id7c233516\":{\"principalId\":\"c0c666e1-91af-4afc-8da9-55a5da29b4f7\",\"clientId\":\"19c35dd7-f127-49ff-9ffb-5c7934c3f2b2\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id70b46218\":{\"principalId\":\"b1902d24-8c3d-4eda-a392-275512e5c391\",\"clientId\":\"81fc4859-c8a1-4f59-9bf4-1eed19671061\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"name\":\"aci94823f\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}]}" + "x-ms-request-id" : "eastus2:b33189ab-46c0-407a-83a7-359a40a5a059", + "Body" : "{\"value\":[{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.67.157.203\",\"type\":\"Public\",\"dnsNameLabel\":\"aci249351\",\"fqdn\":\"aci249351.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}]},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id59d32244\":{\"principalId\":\"f2eebb4a-e53f-400e-b199-f3d51d677ce0\",\"clientId\":\"4e599533-0952-4869-a655-46f9e37327df\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-iddd382016\":{\"principalId\":\"caaaf721-ca94-4b3c-82a6-9856550f027f\",\"clientId\":\"ccca02ca-41f9-4c7b-9e8a-c0248440b6d6\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351\",\"name\":\"aci249351\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}]}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:52:25 GMT", - "content-length" : "3218", + "date" : "Mon, 29 Mar 2021 07:01:59 GMT", + "content-length" : "3244", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11990", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "137db28e-02d6-4dfa-a698-a76e2921eee6", + "x-ms-correlation-request-id" : "d74ac53d-d1e9-4281-a53b-97d95cc5740d", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205226Z:137db28e-02d6-4dfa-a698-a76e2921eee6", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070159Z:d74ac53d-d1e9-4281-a53b-97d95cc5740d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:f2d46654-16e6-4cc9-8326-0a8acb8e6bc5", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-02-02T20:51:41Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:50:55Z\",\"lastTimestamp\":\"2020-02-02T20:50:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:12Z\",\"lastTimestamp\":\"2020-02-02T20:51:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:40Z\",\"lastTimestamp\":\"2020-02-02T20:51:40Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-02-02T20:51:55Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:46Z\",\"lastTimestamp\":\"2020-02-02T20:51:46Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.70.156.39\",\"type\":\"Public\",\"dnsNameLabel\":\"aci94823f\",\"fqdn\":\"aci94823f.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id7c233516\":{\"principalId\":\"c0c666e1-91af-4afc-8da9-55a5da29b4f7\",\"clientId\":\"19c35dd7-f127-49ff-9ffb-5c7934c3f2b2\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id70b46218\":{\"principalId\":\"b1902d24-8c3d-4eda-a392-275512e5c391\",\"clientId\":\"81fc4859-c8a1-4f59-9bf4-1eed19671061\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"name\":\"aci94823f\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:2215481a-8807-4c3a-b6b5-918cd3ba3798", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T07:01:29.406Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:29Z\",\"lastTimestamp\":\"2021-03-29T07:01:29Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T07:01:30.972Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:30Z\",\"lastTimestamp\":\"2021-03-29T07:01:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.67.157.203\",\"type\":\"Public\",\"dnsNameLabel\":\"aci249351\",\"fqdn\":\"aci249351.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id59d32244\":{\"principalId\":\"f2eebb4a-e53f-400e-b199-f3d51d677ce0\",\"clientId\":\"4e599533-0952-4869-a655-46f9e37327df\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-iddd382016\":{\"principalId\":\"caaaf721-ca94-4b3c-82a6-9856550f027f\",\"clientId\":\"ccca02ca-41f9-4c7b-9e8a-c0248440b6d6\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351\",\"name\":\"aci249351\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f?api-version=2018-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:52:26 GMT", - "content-length" : "3218", + "date" : "Mon, 29 Mar 2021 07:02:01 GMT", + "content-length" : "3244", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11989", + "x-ms-ratelimit-remaining-subscription-reads" : "11990", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "657cc78f-d443-4e6f-bd6d-172e25d1c07b", + "x-ms-correlation-request-id" : "94aa66af-8d74-42c1-847f-af7bbc6b6810", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205226Z:657cc78f-d443-4e6f-bd6d-172e25d1c07b", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070201Z:94aa66af-8d74-42c1-847f-af7bbc6b6810", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eastus2:8e081b45-2b05-4587-be7b-b7a58acf63d9", - "Body" : "{\"properties\":{\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-02-02T20:51:41Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:50:55Z\",\"lastTimestamp\":\"2020-02-02T20:50:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:12Z\",\"lastTimestamp\":\"2020-02-02T20:51:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:40Z\",\"lastTimestamp\":\"2020-02-02T20:51:40Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2020-02-02T20:51:55Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:41Z\",\"lastTimestamp\":\"2020-02-02T20:51:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:46Z\",\"lastTimestamp\":\"2020-02-02T20:51:46Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Created\",\"message\":\"Created container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2020-02-02T20:51:55Z\",\"lastTimestamp\":\"2020-02-02T20:51:55Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.70.156.39\",\"type\":\"Public\",\"dnsNameLabel\":\"aci94823f\",\"fqdn\":\"aci94823f.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id7c233516\":{\"principalId\":\"c0c666e1-91af-4afc-8da9-55a5da29b4f7\",\"clientId\":\"19c35dd7-f127-49ff-9ffb-5c7934c3f2b2\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci57552/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id70b46218\":{\"principalId\":\"b1902d24-8c3d-4eda-a392-275512e5c391\",\"clientId\":\"81fc4859-c8a1-4f59-9bf4-1eed19671061\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci57552/providers/Microsoft.ContainerInstance/containerGroups/aci94823f\",\"name\":\"aci94823f\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" + "x-ms-request-id" : "eastus2:2151c139-edac-47c9-963f-92aa4adb1bb2", + "Body" : "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"tomcat\",\"properties\":{\"image\":\"tomcat\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8080}],\"environmentVariables\":[{\"name\":\"ENV1\",\"value\":\"value1\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T07:01:29.406Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"tomcat@sha256:3560058d70f9343d1d446c982d01bb824066de11ea82ff4688fa50555bf84f1b\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:29Z\",\"lastTimestamp\":\"2021-03-29T07:01:29Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}},{\"name\":\"nginx\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[{\"name\":\"ENV2\"}],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2021-03-29T07:01:30.972Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:00:36Z\",\"lastTimestamp\":\"2021-03-29T07:00:36Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:19Z\",\"lastTimestamp\":\"2021-03-29T07:01:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:9bfb4f5453fefe7819d7bcc795d6d09bbb4e3a9a93e60521d8e954090608a422\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2021-03-29T07:01:30Z\",\"lastTimestamp\":\"2021-03-29T07:01:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8080},{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"40.67.157.203\",\"type\":\"Public\",\"dnsNameLabel\":\"aci249351\",\"fqdn\":\"aci249351.eastus2.azurecontainer.io\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"emptydir1\",\"emptyDir\":{}}],\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"identity\":{\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-id59d32244\":{\"principalId\":\"f2eebb4a-e53f-400e-b199-f3d51d677ce0\",\"clientId\":\"4e599533-0952-4869-a655-46f9e37327df\"},\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgaci99067/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi-iddd382016\":{\"principalId\":\"caaaf721-ca94-4b3c-82a6-9856550f027f\",\"clientId\":\"ccca02ca-41f9-4c7b-9e8a-c0248440b6d6\"}},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"UserAssigned\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci99067/providers/Microsoft.ContainerInstance/containerGroups/aci249351\",\"name\":\"aci249351\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus2\",\"tags\":{\"tag1\":\"value1\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/providers/Microsoft.ContainerInstance/operations?api-version=2018-10-01", + "Uri" : "http://localhost:1234/providers/Microsoft.ContainerInstance/operations?api-version=2021-03-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d916ff2a485200f321d6cba23dc3377b781cd392a6e37bf910c332cb391ba0cc Java:1.8.0_202 (ContainerInstanceManagementClient, 2018-10-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:16d667ba85a69c1ee0ed809f30ffb817b9aa9960347395fa339605f5be4092c1 Java:15.0.1 (ContainerInstanceManagementClient, 2021-03-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Sun, 02 Feb 2020 20:52:26 GMT", - "content-length" : "8181", + "date" : "Mon, 29 Mar 2021 07:02:01 GMT", + "content-length" : "8976", "expires" : "-1", - "transfer-encoding" : "chunked", "vary" : "Accept-Encoding,Accept-Encoding", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9ba88343-401e-4810-ba8c-6d6fa3317d9c", + "x-ms-correlation-request-id" : "2620d467-a1fa-4acd-8b27-c237ac1f9ce6", "x-ms-ratelimit-remaining-tenant-reads" : "11999", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "EASTASIA:20200202T205227Z:9ba88343-401e-4810-ba8c-6d6fa3317d9c", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210329T070201Z:2620d467-a1fa-4acd-8b27-c237ac1f9ce6", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "southeastasia:ee8a3aee-7188-4edf-8121-521276f3cddf", - "Body" : "{\"value\":[{\"name\":\"Microsoft.ContainerInstance/register/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Register Microsoft Container Instance\",\"description\":\"Registers the subscription for the container instance resource provider and enables the creation of container groups.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Groups\",\"description\":\"Get all container goups.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/write\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Create or update Container Group\",\"description\":\"Create or update a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/delete\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Delete Container Group\",\"description\":\"Delete the specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/restart/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Restart Container Group\",\"description\":\"Restarts a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/stop/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Stop Container Group\",\"description\":\"Stops a specific container group. Compute resources will be deallocated and billing will stop.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/start/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Start Container Group\",\"description\":\"Starts a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/logs/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Logs\",\"description\":\"Get logs for a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/buildlogs/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Build Logs\",\"description\":\"Get build logs for a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/exec/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Exec Into a Container\",\"description\":\"Exec into a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/operationResults/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Async operation result\",\"description\":\"Get async operation result\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/cachedImages/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Cached Images\",\"operation\":\"Get cached images.\",\"description\":\"Gets the cached images for the subscription in a region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/capabilities/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Capabilities\",\"operation\":\"Get Capabilities\",\"description\":\"Get the capabilities for a region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/usages/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Usages\",\"operation\":\"Get Regional Usage\",\"description\":\"Get the usage for a specific region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/metricDefinitions/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Read container group metric definitions\",\"description\":\"Gets the available metrics for container group.\"},\"origin\":\"System\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"CpuUsage\",\"displayName\":\"CPU Usage\",\"displayDescription\":\"CPU usage on all cores in millicores.\",\"unit\":\"Count\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false,\"dimensions\":[{\"name\":\"containerName\",\"displayName\":\"Container Name\",\"toBeExportedForShoebox\":true}]},{\"name\":\"MemoryUsage\",\"displayName\":\"Memory Usage\",\"displayDescription\":\"Total memory usage in byte.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false,\"dimensions\":[{\"name\":\"containerName\",\"displayName\":\"Container Name\",\"toBeExportedForShoebox\":true}]},{\"name\":\"NetworkBytesReceivedPerSecond\",\"displayName\":\"Network Bytes Received Per Second\",\"displayDescription\":\"The network bytes received per second.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false},{\"name\":\"NetworkBytesTransmittedPerSecond\",\"displayName\":\"Network Bytes Transmitted Per Second\",\"displayDescription\":\"The network bytes transmitted per second.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false}]}}},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/diagnosticSettings/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Read Diagnostic Setting\",\"description\":\"Gets the diagnostic setting for the container group.\"},\"origin\":\"System\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/diagnosticSettings/write\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Write Diagnostic Setting\",\"description\":\"Creates or updates the diagnostic setting for the container group.\"},\"origin\":\"System\"},{\"name\":\"Microsoft.ContainerInstance/locations/deleteVirtualNetworkOrSubnets/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Delete virtual network or subnet notification\",\"operation\":\"Delete virtual network or subnet notification\",\"description\":\"Notifies Microsoft.ContainerInstance that virtual network or subnet is being deleted.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/operations/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Read operations.\",\"description\":\"List the operations for Azure Container Instance service.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/operations/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Read operations.\",\"description\":\"List the operations for Azure Container Instance service.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/serviceassociationlinks/delete\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Service Association Link.\",\"operation\":\"Delete Service Association Link.\",\"description\":\"Delete the service association link created by azure container instance resource provider on a subnet.\"},\"origin\":\"User\"}]}" + "x-ms-request-id" : "southeastasia:b2d31225-00e1-4bad-98f3-f2e46ffe8f60", + "Body" : "{\"value\":[{\"name\":\"Microsoft.ContainerInstance/register/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Register Microsoft Container Instance\",\"description\":\"Registers the subscription for the container instance resource provider and enables the creation of container groups.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Groups\",\"description\":\"Get all container goups.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/write\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Create or update Container Group\",\"description\":\"Create or update a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/delete\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Delete Container Group\",\"description\":\"Delete the specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/restart/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Restart Container Group\",\"description\":\"Restarts a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/stop/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Stop Container Group\",\"description\":\"Stops a specific container group. Compute resources will be deallocated and billing will stop.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/start/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Start Container Group\",\"description\":\"Starts a specific container group.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/detectors/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Container Group Detectors\",\"description\":\"List Container Group Detectors\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/logs/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Logs\",\"description\":\"Get logs for a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/buildlogs/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Get Container Build Logs\",\"description\":\"Get build logs for a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/exec/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Exec Into a Container\",\"description\":\"Exec into a specific container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/containers/attach/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Attach to a container\",\"description\":\"Attach to the output stream of a container.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/operationResults/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Async operation result\",\"description\":\"Get async operation result\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/operationResults/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Async operation result\",\"description\":\"Get async operation result\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/cachedImages/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Cached Images\",\"operation\":\"Get cached images.\",\"description\":\"Gets the cached images for the subscription in a region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/capabilities/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Capabilities\",\"operation\":\"Get Capabilities\",\"description\":\"Get the capabilities for a region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/usages/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Usages\",\"operation\":\"Get Regional Usage\",\"description\":\"Get the usage for a specific region.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/metricDefinitions/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Read container group metric definitions\",\"description\":\"Gets the available metrics for container group.\"},\"origin\":\"System\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"CpuUsage\",\"displayName\":\"CPU Usage\",\"displayDescription\":\"CPU usage on all cores in millicores.\",\"unit\":\"Count\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false,\"dimensions\":[{\"name\":\"containerName\",\"displayName\":\"Container Name\",\"toBeExportedForShoebox\":true}]},{\"name\":\"MemoryUsage\",\"displayName\":\"Memory Usage\",\"displayDescription\":\"Total memory usage in byte.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false,\"dimensions\":[{\"name\":\"containerName\",\"displayName\":\"Container Name\",\"toBeExportedForShoebox\":true}]},{\"name\":\"NetworkBytesReceivedPerSecond\",\"displayName\":\"Network Bytes Received Per Second\",\"displayDescription\":\"The network bytes received per second.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false},{\"name\":\"NetworkBytesTransmittedPerSecond\",\"displayName\":\"Network Bytes Transmitted Per Second\",\"displayDescription\":\"The network bytes transmitted per second.\",\"unit\":\"Bytes\",\"aggregationType\":\"Average\",\"supportedAggregationTypes\":[\"Maximum\",\"Minimum\",\"Average\"],\"supportedTimeGrainTypes\":[\"PT1M\",\"PT5M\",\"PT15M\",\"PT30M\",\"PT1H\",\"PT6H\",\"PT12H\",\"PT1D\"],\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"MicrosoftContainerInstanceShoebox\",\"sourceMdmNamespace\":\"AzureMonitoringMetrics\",\"fillGapWithZero\":false}]}}},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/diagnosticSettings/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Read Diagnostic Setting\",\"description\":\"Gets the diagnostic setting for the container group.\"},\"origin\":\"System\"},{\"name\":\"Microsoft.ContainerInstance/containerGroups/providers/Microsoft.Insights/diagnosticSettings/write\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Container Group\",\"operation\":\"Write Diagnostic Setting\",\"description\":\"Creates or updates the diagnostic setting for the container group.\"},\"origin\":\"System\"},{\"name\":\"Microsoft.ContainerInstance/locations/deleteVirtualNetworkOrSubnets/action\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Delete virtual network or subnet notification\",\"operation\":\"Delete virtual network or subnet notification\",\"description\":\"Notifies Microsoft.ContainerInstance that virtual network or subnet is being deleted.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/locations/operations/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Read operations.\",\"description\":\"List the operations for Azure Container Instance service.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/operations/read\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Resource provider operations.\",\"operation\":\"Read operations.\",\"description\":\"List the operations for Azure Container Instance service.\"},\"origin\":\"User\"},{\"name\":\"Microsoft.ContainerInstance/serviceassociationlinks/delete\",\"display\":{\"provider\":\"Microsoft Container Instance\",\"resource\":\"Service Association Link.\",\"operation\":\"Delete Service Association Link.\",\"description\":\"Delete the service association link created by azure container instance resource provider on a subnet.\"},\"origin\":\"User\"}]}" } } ], - "variables" : [ "aci94823f", "rgaci57552", "msi-id7c233516", "msi-id70b46218", "cec93c19-d7f3-41af-bc6d-70c47e44921b", "eaf9a029-edd2-44b8-9433-b9e064b62558", "052e513d-11e5-436d-9793-4e7f68dad700", "365dff13-feb2-4962-a8ec-149f0d850cfe", "f6315174-f412-410c-acd5-2fc1508c74bc", "aedace66-3b50-4648-96fb-57406fbbd656", "d9a90706-fd27-4d3b-b448-96fa8dd5cf28", "3e9a6e8c-8b20-4eef-980c-d756bcadab57", "82a9d40b-ef04-4024-b79c-3e57cefc03b4", "2ccc026c-ebc4-49f9-9104-227167c94cbd", "f96f3191-51a5-47c0-9602-afe1aba0b7ba", "f98d14e3-ee85-4624-9fc6-f91bc722f871" ] + "variables" : [ "aci249351", "rgaci99067", "msi-id59d32244", "msi-iddd382016", "1013fe17-9db3-4d00-b8e7-9953b6558c27", "1915bdc1-7728-476b-9b87-aa3bfab61a66", "6d3ef29c-85dc-4aa4-aa41-0ef12fd9460a", "b2e1091f-9bfe-4a83-be7a-d1dfb33b88b5", "b24e6963-1315-4644-a106-86f09e0460de", "f054de1d-92fc-4134-a597-85f0fcd2bd89", "ff1c080d-46e3-4cf9-ba96-fbda0550a4d3", "4c0f1c1f-233f-4215-b61c-5da1715cbddf", "1de204ba-562e-4a04-b46e-a50a2216f2e8", "8fae89ea-f347-4ef7-9429-3613df0ec405", "3d40f346-3e66-4d2b-8c6a-6c031c6bb539", "03775da8-f4bc-4414-b77b-cf3eb8b2d274" ] } \ No newline at end of file