diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/containerInstance.json index c38c0a7c94ea..42b4aac93aec 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/containerInstance.json @@ -402,6 +402,9 @@ "202": { "description": "Started - the container group is starting." }, + "204": { + "description": "Started - the container group is already running or starting." + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -765,6 +768,53 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default": { + "delete": { + "operationId": "SubnetServiceAssociationLink_Delete", + "x-ms-examples": { + "SubnetServiceAssociationLinkDelete": { + "$ref": "./examples/SubnetServiceAssociationLinkDelete.json" + } + }, + "summary": "Delete container group virtual network association links.", + "description": "Delete container group virtual network association links. The operation does not delete other resources provided by the user.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/VirtualNetworkNameParameter" + }, + { + "$ref": "#/parameters/SubnetNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Delete started." + }, + "204": { + "description": "No Content - the specified container group was not found." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } } }, "definitions": { @@ -1257,150 +1307,154 @@ "$ref": "#/definitions/Resource" }, { + "$ref": "#/definitions/ContainerGroupProperties" + } + ] + }, + "ContainerGroupProperties": { + "description": "The container group properties", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "identity": { + "$ref": "#/definitions/ContainerGroupIdentity", + "description": "The identity of the container group, if configured." + }, + "properties": { + "x-ms-client-flatten": true, "type": "object", - "required": [ - "properties" - ], + "description": "The container group properties", "properties": { - "identity": { - "$ref": "#/definitions/ContainerGroupIdentity", - "description": "The identity of the container group, if configured." + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the container group. This only appears in the response." + }, + "containers": { + "type": "array", + "description": "The containers within the container group.", + "items": { + "$ref": "#/definitions/Container" + }, + "x-ms-identifiers": [ + "name" + ] }, - "properties": { - "x-ms-client-flatten": true, + "imageRegistryCredentials": { + "type": "array", + "description": "The image registry credentials by which the container group is created from.", + "items": { + "$ref": "#/definitions/ImageRegistryCredential" + }, + "x-ms-identifiers": [ + "username" + ] + }, + "restartPolicy": { + "type": "string", + "description": "Restart policy for all containers within the container group. \n- `Always` Always restart\n- `OnFailure` Restart on failure\n- `Never` Never restart\n", + "enum": [ + "Always", + "OnFailure", + "Never" + ], + "x-ms-enum": { + "name": "ContainerGroupRestartPolicy", + "modelAsString": true + } + }, + "ipAddress": { + "description": "The IP address type of the container group.", + "$ref": "#/definitions/IpAddress" + }, + "osType": { + "type": "string", + "description": "The operating system type required by the containers in the container group.", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": true + } + }, + "volumes": { + "type": "array", + "description": "The list of volumes that can be mounted by containers in this container group.", + "items": { + "$ref": "#/definitions/Volume" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "instanceView": { + "description": "The instance view of the container group. Only valid in response.", + "readOnly": true, "type": "object", - "description": "The container group properties", "properties": { - "provisioningState": { + "events": { + "description": "The events of this container group.", "readOnly": true, - "type": "string", - "description": "The provisioning state of the container group. This only appears in the response." - }, - "containers": { "type": "array", - "description": "The containers within the container group.", "items": { - "$ref": "#/definitions/Container" + "$ref": "#/definitions/Event" }, "x-ms-identifiers": [ - "name" + "name", + "type" ] }, - "imageRegistryCredentials": { - "type": "array", - "description": "The image registry credentials by which the container group is created from.", - "items": { - "$ref": "#/definitions/ImageRegistryCredential" - }, - "x-ms-identifiers": [ - "username" - ] - }, - "restartPolicy": { - "type": "string", - "description": "Restart policy for all containers within the container group. \n- `Always` Always restart\n- `OnFailure` Restart on failure\n- `Never` Never restart\n", - "enum": [ - "Always", - "OnFailure", - "Never" - ], - "x-ms-enum": { - "name": "ContainerGroupRestartPolicy", - "modelAsString": true - } - }, - "ipAddress": { - "description": "The IP address type of the container group.", - "$ref": "#/definitions/IpAddress" - }, - "osType": { - "type": "string", - "description": "The operating system type required by the containers in the container group.", - "enum": [ - "Windows", - "Linux" - ], - "x-ms-enum": { - "name": "OperatingSystemTypes", - "modelAsString": true - } - }, - "volumes": { - "type": "array", - "description": "The list of volumes that can be mounted by containers in this container group.", - "items": { - "$ref": "#/definitions/Volume" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "instanceView": { - "description": "The instance view of the container group. Only valid in response.", + "state": { "readOnly": true, - "type": "object", - "properties": { - "events": { - "description": "The events of this container group.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Event" - }, - "x-ms-identifiers": [ - "name", - "type" - ] - }, - "state": { - "readOnly": true, - "type": "string", - "description": "The state of the container group. Only valid in response." - } - } - }, - "diagnostics": { - "description": "The diagnostic information for a container group.", - "$ref": "#/definitions/ContainerGroupDiagnostics" - }, - "subnetIds": { - "type": "array", - "description": "The subnet resource IDs for a container group.", - "items": { - "$ref": "#/definitions/ContainerGroupSubnetId" - } - }, - "dnsConfig": { - "description": "The DNS config information for a container group.", - "$ref": "#/definitions/DnsConfiguration" - }, - "sku": { - "description": "The SKU for a container group.", - "$ref": "#/definitions/ContainerGroupSku" - }, - "encryptionProperties": { - "description": "The encryption properties for a container group.", - "$ref": "#/definitions/EncryptionProperties" - }, - "initContainers": { - "type": "array", - "description": "The init containers for a container group.", - "items": { - "$ref": "#/definitions/InitContainerDefinition" - }, - "x-ms-identifiers": [ - "name" - ] + "type": "string", + "description": "The state of the container group. Only valid in response." } + } + }, + "diagnostics": { + "description": "The diagnostic information for a container group.", + "$ref": "#/definitions/ContainerGroupDiagnostics" + }, + "subnetIds": { + "type": "array", + "description": "The subnet resource IDs for a container group.", + "items": { + "$ref": "#/definitions/ContainerGroupSubnetId" + } + }, + "dnsConfig": { + "description": "The DNS config information for a container group.", + "$ref": "#/definitions/DnsConfiguration" + }, + "sku": { + "description": "The SKU for a container group.", + "$ref": "#/definitions/ContainerGroupSku" + }, + "encryptionProperties": { + "description": "The encryption properties for a container group.", + "$ref": "#/definitions/EncryptionProperties" + }, + "initContainers": { + "type": "array", + "description": "The init containers for a container group.", + "items": { + "$ref": "#/definitions/InitContainerDefinition" }, - "required": [ - "containers", - "osType" + "x-ms-identifiers": [ + "name" ] } - } + }, + "required": [ + "containers", + "osType" + ] } - ] + } }, "ContainerGroupIdentity": { "description": "Identity for the container group.", @@ -1431,25 +1485,30 @@ }, "userAssignedIdentities": { "type": "object", - "description": "The list of user identities associated with the container group. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "description": "The list of user identities associated with the container group.", "additionalProperties": { - "type": "object", - "properties": { - "principalId": { - "readOnly": true, - "type": "string", - "description": "The principal id of user assigned identity." - }, - "clientId": { - "readOnly": true, - "type": "string", - "description": "The client id of user assigned identity." - } - } + "description": "The list of user identities associated with the container group. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "$ref": "#/definitions/UserAssignedIdentities" } } } }, + "UserAssignedIdentities": { + "type": "object", + "description": "The list of user identities associated with the container group. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, "ImageRegistryCredential": { "description": "Image registry credential.", "type": "object", @@ -1476,8 +1535,7 @@ } }, "required": [ - "server", - "username" + "server" ] }, "ContainerGroupDiagnostics": { @@ -1500,7 +1558,8 @@ }, "workspaceKey": { "description": "The workspace key for log analytics", - "type": "string" + "type": "string", + "x-ms-secret": true }, "logType": { "type": "string", @@ -1523,7 +1582,8 @@ }, "workspaceResourceId": { "description": "The workspace resource id for log analytics", - "type": "string" + "type": "string", + "x-ms-secret": true } }, "required": [ @@ -1582,7 +1642,7 @@ "type": "string", "description": "The Dns name label for the IP." }, - "dnsNameLabelReusePolicy": { + "autoGeneratedDomainNameLabelScope": { "type": "string", "description": "The value representing the security enum.", "enum": [ @@ -1592,8 +1652,9 @@ "ResourceGroupReuse", "Noreuse" ], + "default": "Unsecure", "x-ms-enum": { - "name": "AutoGeneratedDomainNameLabelScope", + "name": "dnsNameLabelReusePolicy", "modelAsString": true } }, @@ -1674,7 +1735,8 @@ }, "secureValue": { "type": "string", - "description": "The value of the secure environment variable." + "description": "The value of the secure environment variable.", + "x-ms-secret": true } }, "required": [ @@ -1775,6 +1837,11 @@ "description": "A single usage result", "type": "object", "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Id of the usage result" + }, "unit": { "readOnly": true, "type": "string", @@ -2295,6 +2362,22 @@ "description": "The name of the container group.", "x-ms-parameter-location": "method" }, + "VirtualNetworkNameParameter": { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network.", + "x-ms-parameter-location": "method" + }, + "SubnetNameParameter": { + "name": "subnetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet.", + "x-ms-parameter-location": "method" + }, "OperationIdParameter": { "name": "operationId", "in": "path", diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/ContainerGroupsCreateOrUpdate.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/ContainerGroupsCreateOrUpdate.json index 34740ff58db0..3bfd34a4823a 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/ContainerGroupsCreateOrUpdate.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/ContainerGroupsCreateOrUpdate.json @@ -91,7 +91,7 @@ ], "type": "Public", "dnsNameLabel": "dnsnamelabel1", - "dnsNameLabelReusePolicy": "Unsecure" + "autoGeneratedDomainNameLabelScope": "Unsecure" }, "osType": "Linux", "volumes": [ @@ -172,8 +172,7 @@ ], "diagnostics": { "logAnalytics": { - "workspaceId": "workspaceid", - "workspaceKey": "" + "workspaceId": "workspaceid" } }, "dnsConfig": { @@ -194,7 +193,7 @@ ], "type": "Public", "dnsNameLabel": "dnsnamelabel1", - "dnsNameLabelReusePolicy": "Unsecure", + "autoGeneratedDomainNameLabelScope": "Unsecure", "fqdn": "dnsnamelabel1.azure-container.io" }, "osType": "Linux", @@ -287,7 +286,7 @@ ], "type": "Public", "dnsNameLabel": "dnsnamelabel1", - "dnsNameLabelReusePolicy": "Unsecure", + "autoGeneratedDomainNameLabelScope": "Unsecure", "fqdn": "dnsnamelabel1.azure-container.io" }, "osType": "Linux", diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/ContainerGroupsStart.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/ContainerGroupsStart.json index 090130571b4c..9689e0e3f6fd 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/ContainerGroupsStart.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/ContainerGroupsStart.json @@ -6,6 +6,7 @@ "containerGroupName": "demo1" }, "responses": { - "202": {} + "202": {}, + "204": {} } } diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/SubnetServiceAssociationLinkDelete.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/SubnetServiceAssociationLinkDelete.json new file mode 100644 index 000000000000..d848978dfdf4 --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-10-01/examples/SubnetServiceAssociationLinkDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-10-01", + "resourceGroupName": "demo", + "virtualNetworkName": "demo2", + "subnetName": "demo3" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +}