From df64aca585a20b75514417f52abdfb0ec4370a13 Mon Sep 17 00:00:00 2001 From: joseph-porter <69636506+joseph-porter@users.noreply.github.com> Date: Tue, 22 Jun 2021 18:04:42 -0400 Subject: [PATCH 01/18] Adds base for updating Microsoft.ContainerInstance from version stable/2021-03-01 to version 2021-07-01 --- .../stable/2021-07-01/containerInstance.json | 2156 +++++++++++++++++ .../2021-07-01/examples/CachedImagesList.json | 27 + .../2021-07-01/examples/CapabilitiesList.json | 39 + .../2021-07-01/examples/ContainerAttach.json | 17 + .../2021-07-01/examples/ContainerExec.json | 24 + .../examples/ContainerGroupUsage.json | 24 + .../ContainerGroupsCreateOrUpdate.json | 302 +++ .../examples/ContainerGroupsDelete.json | 78 + .../examples/ContainerGroupsGet_Failed.json | 115 + .../ContainerGroupsGet_Succeeded.json | 76 + .../examples/ContainerGroupsList.json | 87 + .../ContainerGroupsListByResourceGroup.json | 79 + .../examples/ContainerGroupsRestart.json | 11 + .../examples/ContainerGroupsStart.json | 11 + .../examples/ContainerGroupsStop.json | 11 + .../examples/ContainerGroupsUpdate.json | 100 + .../examples/ContainerListLogs.json | 17 + .../2021-07-01/examples/OperationsList.json | 23 + 18 files changed, 3197 insertions(+) create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CachedImagesList.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CapabilitiesList.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerAttach.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerExec.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupUsage.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsDelete.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Failed.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Succeeded.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsList.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsListByResourceGroup.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsRestart.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStart.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStop.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsUpdate.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerListLogs.json create mode 100644 specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/OperationsList.json diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json new file mode 100644 index 000000000000..2cbac9c49984 --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -0,0 +1,2156 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-03-01", + "title": "ContainerInstanceManagementClient" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups": { + "get": { + "operationId": "ContainerGroups_List", + "x-ms-examples": { + "ContainerGroupsList": { + "$ref": "./examples/ContainerGroupsList.json" + } + }, + "summary": "Get a list of container groups in the specified subscription.", + "description": "Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerGroupListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups": { + "get": { + "operationId": "ContainerGroups_ListByResourceGroup", + "x-ms-examples": { + "ContainerGroupsListByResourceGroup": { + "$ref": "./examples/ContainerGroupsListByResourceGroup.json" + } + }, + "summary": "Get a list of container groups in the specified subscription and resource group.", + "description": "Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerGroupListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}": { + "get": { + "operationId": "ContainerGroups_Get", + "x-ms-examples": { + "ContainerGroupsGet_Succeeded": { + "$ref": "./examples/ContainerGroupsGet_Succeeded.json" + }, + "ContainerGroupsGet_Failed": { + "$ref": "./examples/ContainerGroupsGet_Failed.json" + } + }, + "summary": "Get the properties of the specified container group.", + "description": "Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "ContainerGroups_CreateOrUpdate", + "x-ms-examples": { + "ContainerGroupsCreateOrUpdate": { + "$ref": "./examples/ContainerGroupsCreateOrUpdate.json" + } + }, + "summary": "Create or update container groups.", + "description": "Create or update container groups with specified configurations.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + }, + { + "name": "containerGroup", + "description": "The properties of the container group to be created or updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/ContainerGroup" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerGroup" + } + }, + "201": { + "description": "Created - the container group is created.", + "schema": { + "$ref": "#/definitions/ContainerGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "ContainerGroups_Update", + "x-ms-examples": { + "ContainerGroupsUpdate": { + "$ref": "./examples/ContainerGroupsUpdate.json" + } + }, + "summary": "Update container groups.", + "description": "Updates container group tags with specified values.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + }, + { + "name": "Resource", + "description": "The container group resource with just the tags to be updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/Resource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "operationId": "ContainerGroups_Delete", + "x-ms-examples": { + "ContainerGroupsDelete": { + "$ref": "./examples/ContainerGroupsDelete.json" + } + }, + "summary": "Delete the specified container group.", + "description": "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.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerGroup" + } + }, + "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 + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart": { + "post": { + "operationId": "ContainerGroups_Restart", + "x-ms-examples": { + "ContainerRestart": { + "$ref": "./examples/ContainerGroupsRestart.json" + } + }, + "summary": "Restarts all containers in a container group.", + "description": "Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop": { + "post": { + "operationId": "ContainerGroups_Stop", + "x-ms-examples": { + "ContainerStop": { + "$ref": "./examples/ContainerGroupsStop.json" + } + }, + "summary": "Stops all containers in a container group.", + "description": "Stops all containers in a container group. Compute resources will be deallocated and billing will stop.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start": { + "post": { + "operationId": "ContainerGroups_Start", + "x-ms-examples": { + "ContainerStart": { + "$ref": "./examples/ContainerGroupsStart.json" + } + }, + "summary": "Starts all containers in a container group.", + "description": "Starts all containers in a container group. Compute resources will be allocated and billing will start.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + } + ], + "responses": { + "202": { + "description": "Started - the container group is starting." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.ContainerInstance/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "OperationsList": { + "$ref": "./examples/OperationsList.json" + } + }, + "description": "List the operations for Azure Container Instance service.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages": { + "get": { + "operationId": "Location_ListUsage", + "x-ms-examples": { + "ContainerUsage": { + "$ref": "./examples/ContainerGroupUsage.json" + } + }, + "description": "Get the usage for a subscription", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UsageListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs": { + "get": { + "operationId": "Containers_ListLogs", + "x-ms-examples": { + "ContainerListLogs": { + "$ref": "./examples/ContainerListLogs.json" + } + }, + "summary": "Get the logs for a specified container instance.", + "description": "Get the logs for a specified container instance in a specified resource group and container group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + }, + { + "name": "containerName", + "in": "path", + "description": "The name of the container instance.", + "required": true, + "type": "string" + }, + { + "name": "tail", + "in": "query", + "description": "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.", + "type": "integer" + }, + { + "name": "timestamps", + "in": "query", + "description": "If true, adds a timestamp at the beginning of every line of log output. If not provided, defaults to false.", + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Logs" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec": { + "post": { + "operationId": "Containers_ExecuteCommand", + "x-ms-examples": { + "ContainerExec": { + "$ref": "./examples/ContainerExec.json" + } + }, + "summary": "Executes a command in a specific container instance.", + "description": "Executes a command for a specific container instance in a specified resource group and container group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + }, + { + "name": "containerName", + "in": "path", + "description": "The name of the container instance.", + "required": true, + "type": "string" + }, + { + "name": "containerExecRequest", + "in": "body", + "description": "The request for the exec command.", + "required": true, + "schema": { + "$ref": "#/definitions/ContainerExecRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerExecResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach": { + "post": { + "operationId": "Containers_Attach", + "x-ms-examples": { + "ContainerAttach": { + "$ref": "./examples/ContainerAttach.json" + } + }, + "summary": "Attach to the output of a specific container instance.", + "description": "Attach to the output stream of a specific container instance in a specified resource group and container group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + }, + { + "name": "containerName", + "in": "path", + "description": "The name of the container instance.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerAttachResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages": { + "get": { + "operationId": "Location_ListCachedImages", + "x-ms-examples": { + "CachedImages": { + "$ref": "./examples/CachedImagesList.json" + } + }, + "summary": "Get the list of cached images.", + "description": "Get the list of cached images on specific OS type for a subscription in a region.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CachedImagesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities": { + "get": { + "operationId": "Location_ListCapabilities", + "x-ms-examples": { + "GetCapabilities": { + "$ref": "./examples/CapabilitiesList.json" + } + }, + "summary": "Get the list of capabilities of the location.", + "description": "Get the list of CPU/memory/GPU capabilities of a region.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CapabilitiesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "Container": { + "description": "A container instance.", + "type": "object", + "required": [ + "properties", + "name" + ], + "properties": { + "name": { + "description": "The user-provided name of the container instance.", + "type": "string" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of the container instance.", + "$ref": "#/definitions/ContainerProperties" + } + } + }, + "ContainerProperties": { + "description": "The container instance properties.", + "type": "object", + "required": [ + "image", + "resources" + ], + "properties": { + "image": { + "description": "The name of the image used to create the container instance.", + "type": "string" + }, + "command": { + "description": "The commands to execute within the container instance in exec form.", + "type": "array", + "items": { + "type": "string" + } + }, + "ports": { + "description": "The exposed ports on the container instance.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerPort" + } + }, + "environmentVariables": { + "description": "The environment variables to set in the container instance.", + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentVariable" + } + }, + "instanceView": { + "description": "The instance view of the container instance. Only valid in response.", + "readOnly": true, + "type": "object", + "properties": { + "restartCount": { + "readOnly": true, + "type": "integer", + "description": "The number of times that the container instance has been restarted." + }, + "currentState": { + "readOnly": true, + "description": "Current container instance state.", + "$ref": "#/definitions/ContainerState" + }, + "previousState": { + "readOnly": true, + "description": "Previous container instance state.", + "$ref": "#/definitions/ContainerState" + }, + "events": { + "readOnly": true, + "description": "The events of the container instance.", + "type": "array", + "items": { + "$ref": "#/definitions/Event" + } + } + } + }, + "resources": { + "description": "The resource requirements of the container instance.", + "$ref": "#/definitions/ResourceRequirements" + }, + "volumeMounts": { + "description": "The volume mounts available to the container instance.", + "type": "array", + "items": { + "$ref": "#/definitions/VolumeMount" + } + }, + "livenessProbe": { + "description": "The liveness probe.", + "$ref": "#/definitions/ContainerProbe" + }, + "readinessProbe": { + "description": "The readiness probe.", + "$ref": "#/definitions/ContainerProbe" + } + } + }, + "ContainerState": { + "description": "The container instance state.", + "type": "object", + "readOnly": true, + "properties": { + "state": { + "type": "string", + "readOnly": true, + "description": "The state of the container instance." + }, + "startTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The date-time when the container instance state started." + }, + "exitCode": { + "type": "integer", + "readOnly": true, + "description": "The container instance exit codes correspond to those from the `docker run` command." + }, + "finishTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The date-time when the container instance state finished." + }, + "detailStatus": { + "type": "string", + "readOnly": true, + "description": "The human-readable status of the container instance state." + } + } + }, + "Event": { + "description": "A container group or container instance event.", + "type": "object", + "readOnly": true, + "properties": { + "count": { + "type": "integer", + "readOnly": true, + "description": "The count of the event." + }, + "firstTimestamp": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The date-time of the earliest logged event." + }, + "lastTimestamp": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The date-time of the latest logged event." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The event name." + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The event message." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The event type." + } + } + }, + "ResourceRequirements": { + "description": "The resource requirements.", + "type": "object", + "required": [ + "requests" + ], + "properties": { + "requests": { + "description": "The resource requests of this container instance.", + "$ref": "#/definitions/ResourceRequests" + }, + "limits": { + "description": "The resource limits of this container instance.", + "$ref": "#/definitions/ResourceLimits" + } + } + }, + "ResourceRequests": { + "description": "The resource requests.", + "type": "object", + "required": [ + "memoryInGB", + "cpu" + ], + "properties": { + "memoryInGB": { + "description": "The memory request in GB of this container instance.", + "type": "number", + "format": "double" + }, + "cpu": { + "description": "The CPU request of this container instance.", + "type": "number", + "format": "double" + }, + "gpu": { + "description": "The GPU request of this container instance.", + "$ref": "#/definitions/GpuResource" + } + } + }, + "ResourceLimits": { + "description": "The resource limits.", + "type": "object", + "properties": { + "memoryInGB": { + "description": "The memory limit in GB of this container instance.", + "type": "number", + "format": "double" + }, + "cpu": { + "description": "The CPU limit of this container instance.", + "type": "number", + "format": "double" + }, + "gpu": { + "description": "The GPU limit of this container instance.", + "$ref": "#/definitions/GpuResource" + } + } + }, + "GpuResource": { + "description": "The GPU resource.", + "type": "object", + "required": [ + "count", + "sku" + ], + "properties": { + "count": { + "description": "The count of the GPU resource.", + "type": "integer", + "format": "int32" + }, + "sku": { + "type": "string", + "description": "The SKU of the GPU resource.", + "enum": [ + "K80", + "P100", + "V100" + ], + "x-ms-enum": { + "name": "GpuSku", + "modelAsString": true + } + } + } + }, + "AzureFileVolume": { + "description": "The properties of the Azure File volume. Azure File shares are mounted as volumes.", + "type": "object", + "required": [ + "shareName", + "storageAccountName" + ], + "properties": { + "shareName": { + "description": "The name of the Azure File share to be mounted as a volume.", + "type": "string" + }, + "readOnly": { + "description": "The flag indicating whether the Azure File shared mounted as a volume is read-only.", + "type": "boolean" + }, + "storageAccountName": { + "description": "The name of the storage account that contains the Azure File share.", + "type": "string" + }, + "storageAccountKey": { + "description": "The storage account access key used to access the Azure File share.", + "type": "string" + } + } + }, + "EmptyDirVolume": { + "description": "The empty directory volume.", + "type": "object", + "properties": {} + }, + "SecretVolume": { + "description": "The secret volume.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "GitRepoVolume": { + "description": "Represents a volume that is populated with the contents of a git repository", + "required": [ + "repository" + ], + "properties": { + "directory": { + "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": "string" + }, + "repository": { + "description": "Repository URL", + "type": "string" + }, + "revision": { + "description": "Commit hash for the specified revision.", + "type": "string" + } + } + }, + "Volume": { + "description": "The properties of the volume.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "The name of the volume.", + "type": "string" + }, + "azureFile": { + "description": "The Azure File volume.", + "$ref": "#/definitions/AzureFileVolume" + }, + "emptyDir": { + "description": "The empty directory volume.", + "$ref": "#/definitions/EmptyDirVolume" + }, + "secret": { + "description": "The secret volume.", + "$ref": "#/definitions/SecretVolume" + }, + "gitRepo": { + "description": "The git repo volume.", + "$ref": "#/definitions/GitRepoVolume" + } + } + }, + "VolumeMount": { + "description": "The properties of the volume mount.", + "type": "object", + "required": [ + "name", + "mountPath" + ], + "properties": { + "name": { + "description": "The name of the volume mount.", + "type": "string" + }, + "mountPath": { + "description": "The path within the container where the volume should be mounted. Must not contain colon (:).", + "type": "string" + }, + "readOnly": { + "description": "The flag indicating whether the volume mount is read-only.", + "type": "boolean" + } + } + }, + "ContainerExec": { + "type": "object", + "description": "The container execution command, for liveness or readiness probe", + "properties": { + "command": { + "description": "The commands to execute within the container.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ContainerHttpGet": { + "type": "object", + "description": "The container Http Get settings, for liveness or readiness probe", + "properties": { + "path": { + "description": "The path to probe.", + "type": "string" + }, + "port": { + "type": "integer", + "description": "The port number to probe.", + "format": "int32" + }, + "scheme": { + "description": "The scheme.", + "type": "string", + "enum": [ + "http", + "https" + ], + "x-ms-enum": { + "name": "Scheme", + "modelAsString": true + } + }, + "httpHeaders": { + "description": "The HTTP headers.", + "$ref": "#/definitions/HttpHeaders" + } + }, + "required": [ + "port" + ] + }, + "ContainerProbe": { + "type": "object", + "description": "The container probe, for liveness or readiness", + "properties": { + "exec": { + "description": "The execution command to probe", + "$ref": "#/definitions/ContainerExec" + }, + "httpGet": { + "description": "The Http Get settings to probe", + "$ref": "#/definitions/ContainerHttpGet" + }, + "initialDelaySeconds": { + "description": "The initial delay seconds.", + "type": "integer", + "format": "int32" + }, + "periodSeconds": { + "description": "The period seconds.", + "type": "integer", + "format": "int32" + }, + "failureThreshold": { + "description": "The failure threshold.", + "type": "integer", + "format": "int32" + }, + "successThreshold": { + "description": "The success threshold.", + "type": "integer", + "format": "int32" + }, + "timeoutSeconds": { + "description": "The timeout seconds.", + "type": "integer", + "format": "int32" + } + } + }, + "ContainerGroup": { + "description": "A container group.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + }, + { + "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", + "description": "The container group properties", + "properties": { + "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" + } + }, + "imageRegistryCredentials": { + "type": "array", + "description": "The image registry credentials by which the container group is created from.", + "items": { + "$ref": "#/definitions/ImageRegistryCredential" + } + }, + "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" + } + }, + "instanceView": { + "description": "The instance view of the container group. Only valid in response.", + "readOnly": true, + "type": "object", + "properties": { + "events": { + "description": "The events of this container group.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Event" + } + }, + "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" + }, + "networkProfile": { + "description": "The network profile information for a container group.", + "$ref": "#/definitions/ContainerGroupNetworkProfile" + }, + "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" + ] + } + } + } + ] + }, + "ContainerGroupIdentity": { + "description": "Identity for the container group.", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of the container group identity. This property will only be provided for a system assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id associated with the container group. This property will only be provided for a system assigned identity." + }, + "type": { + "type": "string", + "description": "The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the container group.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "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}'.", + "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." + } + } + } + } + } + }, + "ImageRegistryCredential": { + "description": "Image registry credential.", + "type": "object", + "properties": { + "server": { + "type": "string", + "description": "The Docker image registry server without a protocol such as \"http\" and \"https\"." + }, + "username": { + "type": "string", + "description": "The username for the private registry." + }, + "password": { + "type": "string", + "description": "The password for the private registry." + } + }, + "required": [ + "server", + "username" + ] + }, + "ContainerGroupDiagnostics": { + "description": "Container group diagnostic information.", + "type": "object", + "properties": { + "logAnalytics": { + "description": "Container group log analytics information.", + "$ref": "#/definitions/LogAnalytics" + } + } + }, + "LogAnalytics": { + "description": "Container group log analytics information.", + "type": "object", + "properties": { + "workspaceId": { + "description": "The workspace id for log analytics", + "type": "string" + }, + "workspaceKey": { + "description": "The workspace key for log analytics", + "type": "string" + }, + "logType": { + "type": "string", + "description": "The log type to be used.", + "enum": [ + "ContainerInsights", + "ContainerInstanceLogs" + ], + "x-ms-enum": { + "name": "LogAnalyticsLogType", + "modelAsString": true + } + }, + "metadata": { + "type": "object", + "description": "Metadata for log analytics.", + "additionalProperties": { + "type": "string" + } + }, + "workspaceResourceId": { + "type": "object", + "description": "The workspace resource id for log analytics", + "additionalProperties": { + "type": "string" + } + } + }, + "required": [ + "workspaceId", + "workspaceKey" + ] + }, + "ContainerGroupNetworkProfile": { + "description": "Container group network profile information.", + "type": "object", + "properties": { + "id": { + "description": "The identifier for a network profile.", + "type": "string" + } + }, + "required": [ + "id" + ] + }, + "IpAddress": { + "description": "IP address for the container group.", + "type": "object", + "properties": { + "ports": { + "type": "array", + "description": "The list of ports exposed on the container group.", + "items": { + "$ref": "#/definitions/Port" + } + }, + "type": { + "type": "string", + "description": "Specifies if the IP is exposed to the public internet or private VNET.", + "enum": [ + "Public", + "Private" + ], + "x-ms-enum": { + "name": "ContainerGroupIpAddressType", + "modelAsString": true + } + }, + "ip": { + "type": "string", + "description": "The IP exposed to the public internet." + }, + "dnsNameLabel": { + "type": "string", + "description": "The Dns name label for the IP." + }, + "fqdn": { + "readOnly": true, + "type": "string", + "description": "The FQDN for the IP." + } + }, + "required": [ + "ports", + "type" + ] + }, + "Port": { + "description": "The port exposed on the container group.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "description": "The protocol associated with the port.", + "enum": [ + "TCP", + "UDP" + ], + "x-ms-enum": { + "name": "ContainerGroupNetworkProtocol", + "modelAsString": true + } + }, + "port": { + "type": "integer", + "description": "The port number.", + "format": "int32" + } + }, + "required": [ + "port" + ] + }, + "ContainerPort": { + "description": "The port exposed on the container instance.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "description": "The protocol associated with the port.", + "enum": [ + "TCP", + "UDP" + ], + "x-ms-enum": { + "name": "ContainerNetworkProtocol", + "modelAsString": true + } + }, + "port": { + "type": "integer", + "format": "int32", + "description": "The port number exposed within the container group." + } + }, + "required": [ + "port" + ] + }, + "EnvironmentVariable": { + "description": "The environment variable to set within the container instance.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the environment variable." + }, + "value": { + "type": "string", + "description": "The value of the environment variable." + }, + "secureValue": { + "type": "string", + "description": "The value of the secure environment variable." + } + }, + "required": [ + "name" + ] + }, + "OperationListResult": { + "description": "The operation list response that contains all operations for Azure Container Instance service.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "The list of operations." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of operations." + } + } + }, + "Operation": { + "description": "An operation for Azure Container Instance service.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the operation." + }, + "display": { + "description": "The display information of the operation.", + "type": "object", + "properties": { + "provider": { + "description": "The name of the provider of the operation.", + "type": "string" + }, + "resource": { + "type": "string", + "description": "The name of the resource type of the operation." + }, + "operation": { + "description": "The friendly name of the operation.", + "type": "string" + }, + "description": { + "description": "The description of the operation.", + "type": "string" + } + } + }, + "properties": { + "type": "object", + "description": "The additional properties.", + "x-ms-client-flatten": true + }, + "origin": { + "type": "string", + "description": "The intended executor of the operation.", + "enum": [ + "User", + "System" + ], + "x-ms-enum": { + "name": "ContainerInstanceOperationsOrigin", + "modelAsString": true + } + } + }, + "required": [ + "name", + "display" + ] + }, + "UsageListResult": { + "description": "The response containing the usage data", + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "description": "The usage data.", + "items": { + "$ref": "#/definitions/Usage" + } + } + } + }, + "Usage": { + "description": "A single usage result", + "type": "object", + "properties": { + "unit": { + "readOnly": true, + "type": "string", + "description": "Unit of the usage result" + }, + "currentValue": { + "readOnly": true, + "type": "integer", + "description": "The current usage of the resource" + }, + "limit": { + "readOnly": true, + "type": "integer", + "description": "The maximum permitted usage of the resource." + }, + "name": { + "readOnly": true, + "type": "object", + "description": "The name object of the resource", + "properties": { + "value": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "localizedValue": { + "readOnly": true, + "type": "string", + "description": "The localized name of the resource" + } + } + } + } + }, + "ContainerGroupListResult": { + "description": "The container group list response that contains the container group properties.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ContainerGroup" + }, + "description": "The list of container groups." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of container groups." + } + } + }, + "Logs": { + "description": "The logs.", + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The content of the log." + } + } + }, + "ContainerExecRequest": { + "description": "The container exec request.", + "type": "object", + "properties": { + "command": { + "type": "string", + "description": "The command to be executed." + }, + "terminalSize": { + "type": "object", + "description": "The size of the terminal.", + "properties": { + "rows": { + "type": "integer", + "description": "The row size of the terminal" + }, + "cols": { + "type": "integer", + "description": "The column size of the terminal" + } + } + } + } + }, + "ContainerExecResponse": { + "description": "The information for the container exec command.", + "type": "object", + "properties": { + "webSocketUri": { + "type": "string", + "description": "The uri for the exec websocket." + }, + "password": { + "type": "string", + "description": "The password to start the exec command." + } + } + }, + "ContainerAttachResponse": { + "description": "The information for the output stream from container attach.", + "type": "object", + "properties": { + "webSocketUri": { + "type": "string", + "description": "The uri for the output stream from the attach." + }, + "password": { + "type": "string", + "description": "The password to the output stream from the attach. Send as an Authorization header value when connecting to the websocketUri." + } + } + }, + "HttpHeaders": { + "description": "The HTTP headers.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The header name." + }, + "value": { + "type": "string", + "description": "The header value." + } + } + }, + "DnsConfiguration": { + "description": "DNS configuration for the container group.", + "type": "object", + "required": [ + "nameServers" + ], + "properties": { + "nameServers": { + "description": "The DNS servers for the container group.", + "type": "array", + "items": { + "type": "string" + } + }, + "searchDomains": { + "description": "The DNS search domains for hostname lookup in the container group.", + "type": "string" + }, + "options": { + "description": "The DNS options for the container group.", + "type": "string" + } + } + }, + "Resource": { + "type": "object", + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The resource id." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The resource type." + }, + "location": { + "type": "string", + "description": "The resource location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The resource tags." + } + }, + "x-ms-azure-resource": true + }, + "CachedImagesListResult": { + "description": "The response containing cached images.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/cachedImages" + }, + "description": "The list of cached images." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of cached images." + } + } + }, + "cachedImages": { + "description": "The cached image and OS type.", + "type": "object", + "required": [ + "osType", + "image" + ], + "properties": { + "osType": { + "type": "string", + "description": "The OS type of the cached image." + }, + "image": { + "type": "string", + "description": "The cached image name." + } + } + }, + "CapabilitiesListResult": { + "description": "The response containing list of capabilities.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Capabilities" + }, + "description": "The list of capabilities." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of capabilities." + } + } + }, + "Capabilities": { + "description": "The regional capabilities.", + "type": "object", + "properties": { + "resourceType": { + "type": "string", + "readOnly": true, + "description": "The resource type that this capability describes." + }, + "osType": { + "type": "string", + "readOnly": true, + "description": "The OS type that this capability describes." + }, + "location": { + "type": "string", + "readOnly": true, + "description": "The resource location." + }, + "ipAddressType": { + "type": "string", + "readOnly": true, + "description": "The ip address type that this capability describes." + }, + "gpu": { + "type": "string", + "readOnly": true, + "description": "The GPU sku that this capability describes." + }, + "capabilities": { + "type": "object", + "readOnly": true, + "description": "The supported capabilities.", + "properties": { + "maxMemoryInGB": { + "type": "number", + "readOnly": true, + "description": "The maximum allowed memory request in GB." + }, + "maxCpu": { + "type": "number", + "readOnly": true, + "description": "The maximum allowed CPU request in cores." + }, + "maxGpuCount": { + "type": "number", + "readOnly": true, + "description": "The maximum allowed GPU count." + } + } + } + } + }, + "ContainerGroupSku": { + "description": "The container group SKU.", + "type": "string", + "enum": [ + "Standard", + "Dedicated" + ], + "x-ms-enum": { + "name": "ContainerGroupSku", + "modelAsString": true + } + }, + "EncryptionProperties": { + "description": "The container group encryption properties.", + "type": "object", + "properties": { + "vaultBaseUrl": { + "description": "The keyvault base url.", + "type": "string" + }, + "keyName": { + "description": "The encryption key name.", + "type": "string" + }, + "keyVersion": { + "description": "The encryption key version.", + "type": "string" + } + }, + "required": [ + "vaultBaseUrl", + "keyName", + "keyVersion" + ] + }, + "InitContainerDefinition": { + "description": "The init container definition.", + "type": "object", + "properties": { + "name": { + "description": "The name for the init container.", + "type": "string" + }, + "properties": { + "description": "The properties for the init container.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/InitContainerPropertiesDefinition" + } + }, + "required": [ + "name", + "properties" + ] + }, + "InitContainerPropertiesDefinition": { + "description": "The init container definition properties.", + "type": "object", + "properties": { + "image": { + "description": "The image of the init container.", + "type": "string" + }, + "command": { + "description": "The command to execute within the init container in exec form.", + "type": "array", + "items": { + "type": "string" + } + }, + "environmentVariables": { + "description": "The environment variables to set in the init container.", + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentVariable" + } + }, + "instanceView": { + "description": "The instance view of the init container. Only valid in response.", + "readOnly": true, + "type": "object", + "properties": { + "restartCount": { + "readOnly": true, + "type": "integer", + "description": "The number of times that the init container has been restarted." + }, + "currentState": { + "readOnly": true, + "description": "The current state of the init container.", + "$ref": "#/definitions/ContainerState" + }, + "previousState": { + "readOnly": true, + "description": "The previous state of the init container.", + "$ref": "#/definitions/ContainerState" + }, + "events": { + "readOnly": true, + "description": "The events of the init container.", + "type": "array", + "items": { + "$ref": "#/definitions/Event" + } + } + } + }, + "volumeMounts": { + "description": "The volume mounts available to the init container.", + "type": "array", + "items": { + "$ref": "#/definitions/VolumeMount" + } + } + } + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody" + } + }, + "description": "An error response from the Container Instance service." + }, + "CloudErrorBody": { + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the Container Instance service." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "x-ms-parameter-location": "client" + }, + "LocationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The identifier for the physical azure location.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version", + "x-ms-parameter-location": "client" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ContainerGroupNameParameter": { + "name": "containerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the container group.", + "x-ms-parameter-location": "method" + }, + "OperationIdParameter": { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The operation Id.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CachedImagesList.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CachedImagesList.json new file mode 100644 index 000000000000..aed818553fae --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CachedImagesList.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "westcentralus", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "osType": "Linux", + "image": "ubuntu:16.04" + }, + { + "osType": "Linux", + "image": "alpine:3.6" + }, + { + "osType": "Windows", + "image": "microsoft/nanoserver:10.0.14393.2485" + } + ] + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CapabilitiesList.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CapabilitiesList.json new file mode 100644 index 000000000000..2cb6b7315b7c --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CapabilitiesList.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "westus", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "containerGroups", + "osType": "Linux", + "location": "West US", + "ipAddressType": "Public", + "gpu": "K80", + "capabilities": { + "maxMemoryInGB": 14, + "maxCpu": 4, + "maxGpuCount": 4 + } + }, + { + "resourceType": "containerGroups", + "osType": "Windows", + "location": "West US", + "ipAddressType": "Public", + "gpu": "None", + "capabilities": { + "maxMemoryInGB": 14, + "maxCpu": 4, + "maxGpuCount": 0 + } + } + ] + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerAttach.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerAttach.json new file mode 100644 index 000000000000..9060508508a6 --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerAttach.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerName": "container1" + }, + "responses": { + "200": { + "body": { + "webSocketUri": "wss://web-socket-uri", + "password": "password" + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerExec.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerExec.json new file mode 100644 index 000000000000..c55d49b573bb --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerExec.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerName": "container1", + "containerExecRequest": { + "command": "/bin/bash", + "terminalSize": { + "rows": 12, + "cols": 12 + } + } + }, + "responses": { + "200": { + "body": { + "webSocketUri": "wss://web-socket-uri", + "password": "password" + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupUsage.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupUsage.json new file mode 100644 index 000000000000..ed23da5a1f3d --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupUsage.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "westcentralus", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Count", + "currentValue": 1, + "limit": 2000, + "name": { + "value": "ContainerGroups", + "localizedValue": "Container Groups" + } + } + ] + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json new file mode 100644 index 000000000000..373929ed537e --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json @@ -0,0 +1,302 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerGroup": { + "location": "west us", + "identity": { + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {} + } + }, + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5, + "gpu": { + "count": 1, + "sku": "K80" + } + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "workspaceid", + "workspaceKey": "workspaceKey", + "logType": "ContainerInsights", + "metadata": { + "test-key": "test-metadata-value" + } + } + }, + "networkProfile": { + "id": "test-network-profile-id" + }, + "dnsConfig": { + "nameServers": [ + "1.1.1.1" + ], + "searchDomains": "cluster.local svc.cluster.local", + "options": "ndots:2" + }, + "imageRegistryCredentials": [], + "ipAddress": { + "ports": [ + { + "protocol": "TCP", + "port": 80 + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1" + }, + "osType": "Linux", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName", + "storageAccountKey": "accountKey" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": { + "secretKey1": "SecretValue1InBase64", + "secretKey2": "SecretValue2InBase64" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5, + "gpu": { + "count": 1, + "sku": "K80" + } + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "workspaceid", + "workspaceKey": "" + } + }, + "dnsConfig": { + "nameServers": [ + "1.1.1.1" + ], + "searchDomains": "cluster.local svc.cluster.local", + "options": "ndots:2" + }, + "imageRegistryCredentials": [], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1", + "fqdn": "dnsnamelabel1.azure-container.io" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": {} + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5, + "gpu": { + "count": 1, + "sku": "K80" + } + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "dnsConfig": { + "nameServers": [ + "1.1.1.1" + ] + }, + "imageRegistryCredentials": [], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1", + "fqdn": "dnsnamelabel1.azure-container.io" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": {} + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsDelete.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsDelete.json new file mode 100644 index 000000000000..ebbc7a429393 --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsDelete.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + }, + "202": {}, + "204": {} + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Failed.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Failed.json new file mode 100644 index 000000000000..31577530202b --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Failed.json @@ -0,0 +1,115 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "instanceView": { + "restartCount": 0, + "currentState": { + "state": "Waiting", + "startTime": "2017-08-08T00:09:10Z", + "detailStatus": "" + }, + "events": [ + { + "count": 1, + "firstTimestamp": "2017-08-08T00:09:01Z", + "lastTimestamp": "2017-08-08T00:09:01Z", + "message": "pulling image \"nginx\"", + "name": "Pulling", + "type": "Normal" + }, + { + "count": 1, + "firstTimestamp": "2017-08-08T00:09:10Z", + "lastTimestamp": "2017-08-08T00:09:10Z", + "message": "Successfully pulled image \"nginx\"", + "name": "Pulled", + "type": "Normal" + } + ] + }, + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "instanceView": { + "events": [ + { + "count": 1, + "firstTimestamp": "2017-10-08T00:19:10Z", + "lastTimestamp": "2017-10-08T00:19:10Z", + "message": "Output: mount error(2): Permission denied", + "name": "FailedMount", + "type": "Normal" + } + ], + "state": "Pending" + }, + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Failed", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Succeeded.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Succeeded.json new file mode 100644 index 000000000000..de9a3d74705e --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Succeeded.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsList.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsList.json new file mode 100644 index 000000000000..f2fa9821db54 --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsList.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "instanceView": { + "restartCount": 0, + "currentState": { + "state": "Running", + "startTime": "2017-10-17T17:27:21Z", + "detailStatus": "" + }, + "events": [] + }, + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + ] + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsListByResourceGroup.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsListByResourceGroup.json new file mode 100644 index 000000000000..121c01624662 --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsListByResourceGroup.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "demo", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + ] + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsRestart.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsRestart.json new file mode 100644 index 000000000000..495848e19c8a --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsRestart.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "204": {} + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStart.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStart.json new file mode 100644 index 000000000000..2a461b724f68 --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStart.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "202": {} + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStop.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStop.json new file mode 100644 index 000000000000..495848e19c8a --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStop.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "204": {} + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsUpdate.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsUpdate.json new file mode 100644 index 000000000000..8b7cc58d9a17 --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsUpdate.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01", + "resourceGroupName": "demoResource", + "containerGroupName": "demo1", + "Resource": { + "tags": { + "tag1key": "tag1Value", + "tag2key": "tag2Value" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demoResource/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "type": "Microsoft.ContainerInstance/containerGroups", + "tags": { + "tag1key": "tag1Value", + "tag2key": "tag2Value" + }, + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "imageRegistryCredentials": [], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1", + "fqdn": "dnsnamelabel1.azure-container.io" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": {} + } + ] + } + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerListLogs.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerListLogs.json new file mode 100644 index 000000000000..f46193dc8082 --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerListLogs.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-03-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerName": "container1", + "tail": 10 + }, + "responses": { + "200": { + "body": { + "content": "log content" + } + } + } +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/OperationsList.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/OperationsList.json new file mode 100644 index 000000000000..da1564c790ec --- /dev/null +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/OperationsList.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerInstance/containerGroups/read", + "display": { + "provider": "Microsoft Container Instance", + "resource": "Container Group", + "operation": "Get Container Groups", + "description": "Get all container goups." + }, + "origin": "User" + } + ] + } + } + } +} From 2c37170a786b7079c69662358507ee90fd851dbb Mon Sep 17 00:00:00 2001 From: joseph-porter <69636506+joseph-porter@users.noreply.github.com> Date: Tue, 22 Jun 2021 18:05:03 -0400 Subject: [PATCH 02/18] Updates readme --- .../containerinstance/resource-manager/readme.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/specification/containerinstance/resource-manager/readme.md b/specification/containerinstance/resource-manager/readme.md index f722746ae620..605caa337456 100644 --- a/specification/containerinstance/resource-manager/readme.md +++ b/specification/containerinstance/resource-manager/readme.md @@ -26,18 +26,27 @@ These are the global settings for the ContainerInstance API. ``` yaml openapi-type: arm -tag: package-2021-03 +tag: package-2021-07 ``` +### Tag: package-2021-07 + +These settings apply only when `--tag=package-2021-07` is specified on the command line. + +```yaml $(tag) == 'package-2021-07' +input-file: + - Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +``` ### Tag: package-2021-03 These settings apply only when `--tag=package-2021-03` is specified on the command line. -```yaml $(tag) == 'package-2021-03' +``` yaml $(tag) == 'package-2021-03' input-file: - Microsoft.ContainerInstance/stable/2021-03-01/containerInstance.json ``` + ### Tag: package-2020-11 These settings apply only when `--tag=package-2020-11` is specified on the command line. @@ -188,5 +197,3 @@ See configuration in [readme.ruby.md](./readme.ruby.md) ## TypeScript See configuration in [readme.typescript.md](./readme.typescript.md) - - From 2f2f440d41d7527dee62cf090eed89db77adaf28 Mon Sep 17 00:00:00 2001 From: joseph-porter <69636506+joseph-porter@users.noreply.github.com> Date: Tue, 22 Jun 2021 18:05:04 -0400 Subject: [PATCH 03/18] Updates API version in new specs and examples --- .../stable/2021-07-01/containerInstance.json | 2 +- .../stable/2021-07-01/examples/CachedImagesList.json | 2 +- .../stable/2021-07-01/examples/CapabilitiesList.json | 2 +- .../stable/2021-07-01/examples/ContainerAttach.json | 2 +- .../stable/2021-07-01/examples/ContainerExec.json | 2 +- .../stable/2021-07-01/examples/ContainerGroupUsage.json | 2 +- .../2021-07-01/examples/ContainerGroupsCreateOrUpdate.json | 2 +- .../stable/2021-07-01/examples/ContainerGroupsDelete.json | 2 +- .../stable/2021-07-01/examples/ContainerGroupsGet_Failed.json | 2 +- .../2021-07-01/examples/ContainerGroupsGet_Succeeded.json | 2 +- .../stable/2021-07-01/examples/ContainerGroupsList.json | 2 +- .../2021-07-01/examples/ContainerGroupsListByResourceGroup.json | 2 +- .../stable/2021-07-01/examples/ContainerGroupsRestart.json | 2 +- .../stable/2021-07-01/examples/ContainerGroupsStart.json | 2 +- .../stable/2021-07-01/examples/ContainerGroupsStop.json | 2 +- .../stable/2021-07-01/examples/ContainerGroupsUpdate.json | 2 +- .../stable/2021-07-01/examples/ContainerListLogs.json | 2 +- .../stable/2021-07-01/examples/OperationsList.json | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index 2cbac9c49984..4833e3337621 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-03-01", + "version": "2021-07-01", "title": "ContainerInstanceManagementClient" }, "host": "management.azure.com", diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CachedImagesList.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CachedImagesList.json index aed818553fae..2dd5d10ca2b2 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CachedImagesList.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CachedImagesList.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subid", "location": "westcentralus", - "api-version": "2021-03-01" + "api-version": "2021-07-01" }, "responses": { "200": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CapabilitiesList.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CapabilitiesList.json index 2cb6b7315b7c..718291c919fb 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CapabilitiesList.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/CapabilitiesList.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subid", "location": "westus", - "api-version": "2021-03-01" + "api-version": "2021-07-01" }, "responses": { "200": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerAttach.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerAttach.json index 9060508508a6..a9d7ec260368 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerAttach.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerAttach.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01", + "api-version": "2021-07-01", "resourceGroupName": "demo", "containerGroupName": "demo1", "containerName": "container1" diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerExec.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerExec.json index c55d49b573bb..7b4e9b2981f3 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerExec.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerExec.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01", + "api-version": "2021-07-01", "resourceGroupName": "demo", "containerGroupName": "demo1", "containerName": "container1", diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupUsage.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupUsage.json index ed23da5a1f3d..902c816a742c 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupUsage.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupUsage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subid", "location": "westcentralus", - "api-version": "2021-03-01" + "api-version": "2021-07-01" }, "responses": { "200": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json index 373929ed537e..b8f70c77db24 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01", + "api-version": "2021-07-01", "resourceGroupName": "demo", "containerGroupName": "demo1", "containerGroup": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsDelete.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsDelete.json index ebbc7a429393..45a2a4edaa54 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsDelete.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsDelete.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01", + "api-version": "2021-07-01", "resourceGroupName": "demo", "containerGroupName": "demo1" }, diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Failed.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Failed.json index 31577530202b..83270baba887 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Failed.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Failed.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "demo", "containerGroupName": "demo1", - "api-version": "2021-03-01" + "api-version": "2021-07-01" }, "responses": { "200": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Succeeded.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Succeeded.json index de9a3d74705e..88bf609e67c0 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Succeeded.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsGet_Succeeded.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "demo", "containerGroupName": "demo1", - "api-version": "2021-03-01" + "api-version": "2021-07-01" }, "responses": { "200": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsList.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsList.json index f2fa9821db54..e07010275557 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsList.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsList.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01" + "api-version": "2021-07-01" }, "responses": { "200": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsListByResourceGroup.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsListByResourceGroup.json index 121c01624662..9751b049175d 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsListByResourceGroup.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsListByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subid", "resourceGroupName": "demo", - "api-version": "2021-03-01" + "api-version": "2021-07-01" }, "responses": { "200": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsRestart.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsRestart.json index 495848e19c8a..b45999615417 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsRestart.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsRestart.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01", + "api-version": "2021-07-01", "resourceGroupName": "demo", "containerGroupName": "demo1" }, diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStart.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStart.json index 2a461b724f68..306c626deb60 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStart.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStart.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01", + "api-version": "2021-07-01", "resourceGroupName": "demo", "containerGroupName": "demo1" }, diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStop.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStop.json index 495848e19c8a..b45999615417 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStop.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsStop.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01", + "api-version": "2021-07-01", "resourceGroupName": "demo", "containerGroupName": "demo1" }, diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsUpdate.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsUpdate.json index 8b7cc58d9a17..d70dc1d62dbf 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsUpdate.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsUpdate.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01", + "api-version": "2021-07-01", "resourceGroupName": "demoResource", "containerGroupName": "demo1", "Resource": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerListLogs.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerListLogs.json index f46193dc8082..4891d2adec94 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerListLogs.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerListLogs.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2021-03-01", + "api-version": "2021-07-01", "resourceGroupName": "demo", "containerGroupName": "demo1", "containerName": "container1", diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/OperationsList.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/OperationsList.json index da1564c790ec..8e489a0a39b6 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/OperationsList.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/OperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01" + "api-version": "2021-07-01" }, "responses": { "200": { From c9c01c821a902782ef3405c62c09f45cc01692cb Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Tue, 22 Jun 2021 15:18:49 -0700 Subject: [PATCH 04/18] Adding subnet IDs --- .../stable/2021-07-01/containerInstance.json | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index 4833e3337621..ba4b99ff23c5 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -1295,6 +1295,13 @@ "description": "The network profile information for a container group.", "$ref": "#/definitions/ContainerGroupNetworkProfile" }, + "subnetIds": { + "type": "array", + "description": "The subnet resource IDs for a container group.", + "items" : { + "$ref": "#/definitions/VirtualNetworkSubnetId" + } + }, "dnsConfig": { "description": "The DNS config information for a container group.", "$ref": "#/definitions/DnsConfiguration" @@ -1461,6 +1468,23 @@ "id" ] }, + "VirtualNetworkSubnetId": { + "description": "Virtual network and subnet resource identifier.", + "type": "object", + "properties": { + "id": { + "description": "Resource ID of virtual network and subnet.", + "type": "string" + }, + "name": { + "description": "Friendly name for the subnet.", + "type": "string" + } + }, + "required": [ + "id" + ] + }, "IpAddress": { "description": "IP address for the container group.", "type": "object", From 00dfb235a1c14c11cf10ecd8f7e372bda2fd6a52 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Tue, 22 Jun 2021 15:23:18 -0700 Subject: [PATCH 05/18] Adding fixes from pending 03-01 update --- .../stable/2021-07-01/containerInstance.json | 16 ++++++++-------- .../examples/ContainerGroupsCreateOrUpdate.json | 3 ++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index ba4b99ff23c5..616fc2762b56 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -602,7 +602,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach": { "post": { "operationId": "Containers_Attach", "x-ms-examples": { @@ -1145,7 +1145,10 @@ }, "httpHeaders": { "description": "The HTTP headers.", - "$ref": "#/definitions/HttpHeaders" + "type": "array", + "items": { + "$ref": "#/definitions/HttpHeader" + } } }, "required": [ @@ -1443,11 +1446,8 @@ } }, "workspaceResourceId": { - "type": "object", "description": "The workspace resource id for log analytics", - "additionalProperties": { - "type": "string" - } + "type": "string" } }, "required": [ @@ -1801,8 +1801,8 @@ } } }, - "HttpHeaders": { - "description": "The HTTP headers.", + "HttpHeader": { + "description": "The HTTP header.", "type": "object", "properties": { "name": { diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json index b8f70c77db24..b78ece8ce93a 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json @@ -62,7 +62,8 @@ "logType": "ContainerInsights", "metadata": { "test-key": "test-metadata-value" - } + }, + "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace" } }, "networkProfile": { From 846ae04ba37060c69991cce9544129499858a261 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Tue, 22 Jun 2021 16:04:01 -0700 Subject: [PATCH 06/18] Changing definition name to match convention --- .../stable/2021-07-01/containerInstance.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index 616fc2762b56..9c0ebc4048a7 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -1302,7 +1302,7 @@ "type": "array", "description": "The subnet resource IDs for a container group.", "items" : { - "$ref": "#/definitions/VirtualNetworkSubnetId" + "$ref": "#/definitions/ContainerGroupSubnetId" } }, "dnsConfig": { @@ -1468,8 +1468,8 @@ "id" ] }, - "VirtualNetworkSubnetId": { - "description": "Virtual network and subnet resource identifier.", + "ContainerGroupSubnetId": { + "description": "Container group subnet information.", "type": "object", "properties": { "id": { From a877c9db3becee484ccc11331f207d3b3f875e78 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Fri, 30 Jul 2021 15:42:25 -0700 Subject: [PATCH 07/18] Adding network dependencies API --- .../stable/2021-07-01/containerInstance.json | 50 ++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index 9c0ebc4048a7..dfd7cb7d7c25 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -728,7 +728,43 @@ "nextLinkName": "nextLink" } } - } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints": { + "get": { + "operationId": "ContainerGroups_GetOutboundNetworkDependenciesEndpoints", + "x-ms-examples": { + }, + "summary": "Get all network dependencies for container group.", + "description": "Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ContainerGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NetworkDependenciesResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } }, "definitions": { "Container": { @@ -2125,7 +2161,17 @@ } }, "description": "An error response from the Container Instance service." - } + }, + "NetworkDependenciesResponse": { + "description": "Response for network dependencies, always empty list..", + "type": "object", + "properties": { + "type": "array", + "items": { + "type": "string" + } + }, + }, }, "parameters": { "SubscriptionIdParameter": { From c983edfe80532ed9291951141c0c313d5f6588a3 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 10:49:24 -0700 Subject: [PATCH 08/18] Adding MSI+ACR properties --- .../stable/2021-07-01/containerInstance.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index dfd7cb7d7c25..ff04ab04bdcb 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -1433,6 +1433,14 @@ "password": { "type": "string", "description": "The password for the private registry." + }, + "identity": { + "type": "string", + "description": "The identity for the private registry." + }, + "identityUrl": { + "type": "string", + "description": "The identity URL for the private registry." } }, "required": [ From 7dddd8f81aa25aa6dfd2c991100c4d7e40307103 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 10:50:36 -0700 Subject: [PATCH 09/18] Removing network profile --- .../stable/2021-07-01/containerInstance.json | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index ff04ab04bdcb..fe5d5c779060 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -1330,10 +1330,6 @@ "description": "The diagnostic information for a container group.", "$ref": "#/definitions/ContainerGroupDiagnostics" }, - "networkProfile": { - "description": "The network profile information for a container group.", - "$ref": "#/definitions/ContainerGroupNetworkProfile" - }, "subnetIds": { "type": "array", "description": "The subnet resource IDs for a container group.", @@ -1499,19 +1495,6 @@ "workspaceKey" ] }, - "ContainerGroupNetworkProfile": { - "description": "Container group network profile information.", - "type": "object", - "properties": { - "id": { - "description": "The identifier for a network profile.", - "type": "string" - } - }, - "required": [ - "id" - ] - }, "ContainerGroupSubnetId": { "description": "Container group subnet information.", "type": "object", From 3d6d6abe78a54df1ad3ccc0b6c5a8a1e4a138783 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 10:51:00 -0700 Subject: [PATCH 10/18] Updating example --- .../examples/ContainerGroupsCreateOrUpdate.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json index b78ece8ce93a..319570f5e996 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json @@ -66,9 +66,11 @@ "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace" } }, - "networkProfile": { - "id": "test-network-profile-id" - }, + "subnetIDs": [ + { + "subnetId": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]" + } + ], "dnsConfig": { "nameServers": [ "1.1.1.1" From e5252e7b82380b22ce75ca4692b35cf189889dbe Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 11:41:11 -0700 Subject: [PATCH 11/18] Fixing JSON error --- .../stable/2021-07-01/containerInstance.json | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index fe5d5c779060..72328262b46d 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -765,6 +765,7 @@ } } } + } }, "definitions": { "Container": { @@ -1330,6 +1331,10 @@ "description": "The diagnostic information for a container group.", "$ref": "#/definitions/ContainerGroupDiagnostics" }, + "networkProfile": { + "description": "The network profile information for a container group.", + "$ref": "#/definitions/ContainerGroupNetworkProfile" + }, "subnetIds": { "type": "array", "description": "The subnet resource IDs for a container group.", @@ -2154,15 +2159,12 @@ "description": "An error response from the Container Instance service." }, "NetworkDependenciesResponse": { - "description": "Response for network dependencies, always empty list..", - "type": "object", - "properties": { - "type": "array", - "items": { - "type": "string" - } - }, - }, + "description": "Response for network dependencies, always empty list.", + "type": "array", + "items": { + "type": "string" + } + } }, "parameters": { "SubscriptionIdParameter": { From 54093e6a147d575cb89d4ee06d2517c004c18952 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 11:54:43 -0700 Subject: [PATCH 12/18] Removing network profile reference --- .../stable/2021-07-01/containerInstance.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index 72328262b46d..263d84119962 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -1331,10 +1331,6 @@ "description": "The diagnostic information for a container group.", "$ref": "#/definitions/ContainerGroupDiagnostics" }, - "networkProfile": { - "description": "The network profile information for a container group.", - "$ref": "#/definitions/ContainerGroupNetworkProfile" - }, "subnetIds": { "type": "array", "description": "The subnet resource IDs for a container group.", From aa077a961edaa9b3b3b8a19b1c6b409db166d281 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 13:58:33 -0700 Subject: [PATCH 13/18] Adding Integer format where missing --- .../stable/2021-07-01/containerInstance.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index 263d84119962..73d11abc6d99 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -521,7 +521,8 @@ "name": "tail", "in": "query", "description": "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.", - "type": "integer" + "type": "integer", + "format": "int32", }, { "name": "timestamps", @@ -828,6 +829,7 @@ "restartCount": { "readOnly": true, "type": "integer", + "format": "int32", "description": "The number of times that the container instance has been restarted." }, "currentState": { @@ -889,6 +891,7 @@ }, "exitCode": { "type": "integer", + "format": "int32", "readOnly": true, "description": "The container instance exit codes correspond to those from the `docker run` command." }, @@ -912,6 +915,7 @@ "properties": { "count": { "type": "integer", + "format": "int32", "readOnly": true, "description": "The count of the event." }, @@ -1724,11 +1728,13 @@ "currentValue": { "readOnly": true, "type": "integer", + "format": "int32", "description": "The current usage of the resource" }, "limit": { "readOnly": true, "type": "integer", + "format": "int32", "description": "The maximum permitted usage of the resource." }, "name": { @@ -1791,10 +1797,12 @@ "properties": { "rows": { "type": "integer", + "format": "int32", "description": "The row size of the terminal" }, "cols": { "type": "integer", + "format": "int32", "description": "The column size of the terminal" } } @@ -2089,6 +2097,7 @@ "restartCount": { "readOnly": true, "type": "integer", + "format": "int32", "description": "The number of times that the init container has been restarted." }, "currentState": { From a179b631a564150560f5b6163995e5a32fb49a63 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 14:02:22 -0700 Subject: [PATCH 14/18] Removing comma --- .../stable/2021-07-01/containerInstance.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index 73d11abc6d99..245de737a3b7 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -522,7 +522,7 @@ "in": "query", "description": "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.", "type": "integer", - "format": "int32", + "format": "int32" }, { "name": "timestamps", From 73fe7223094e7d7e0ae708e65a42b10e5ce4b915 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 14:07:41 -0700 Subject: [PATCH 15/18] Fixing example --- .../2021-07-01/examples/ContainerGroupsCreateOrUpdate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json index 319570f5e996..d414252ebdf1 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json @@ -66,7 +66,7 @@ "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace" } }, - "subnetIDs": [ + "subnetIds": [ { "subnetId": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]" } From 0bdb44bc6b6d86c3ebfcd7884cff33b5d305d12c Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 14:08:18 -0700 Subject: [PATCH 16/18] Fixing example --- .../2021-07-01/examples/ContainerGroupsCreateOrUpdate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json index d414252ebdf1..b08535188eb7 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/examples/ContainerGroupsCreateOrUpdate.json @@ -68,7 +68,7 @@ }, "subnetIds": [ { - "subnetId": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]" + "id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]" } ], "dnsConfig": { From edd482a9fdeeb93885b9d7bae0dde88806f187a0 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Thu, 19 Aug 2021 15:30:36 -0700 Subject: [PATCH 17/18] Ran Prettier to resolve check failure --- .../stable/2021-07-01/containerInstance.json | 188 ++++-------------- 1 file changed, 41 insertions(+), 147 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index 245de737a3b7..b9c2a53663c5 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -5,20 +5,12 @@ "title": "ContainerInstanceManagementClient" }, "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "schemes": ["https"], + "consumes": ["application/json"], + "produces": ["application/json"], "security": [ { - "azure_auth": [ - "user_impersonation" - ] + "azure_auth": ["user_impersonation"] } ], "securityDefinitions": { @@ -414,9 +406,7 @@ }, "/providers/Microsoft.ContainerInstance/operations": { "get": { - "tags": [ - "Operations" - ], + "tags": ["Operations"], "operationId": "Operations_List", "x-ms-examples": { "OperationsList": { @@ -733,8 +723,7 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints": { "get": { "operationId": "ContainerGroups_GetOutboundNetworkDependenciesEndpoints", - "x-ms-examples": { - }, + "x-ms-examples": {}, "summary": "Get all network dependencies for container group.", "description": "Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.", "parameters": [ @@ -772,10 +761,7 @@ "Container": { "description": "A container instance.", "type": "object", - "required": [ - "properties", - "name" - ], + "required": ["properties", "name"], "properties": { "name": { "description": "The user-provided name of the container instance.", @@ -791,10 +777,7 @@ "ContainerProperties": { "description": "The container instance properties.", "type": "object", - "required": [ - "image", - "resources" - ], + "required": ["image", "resources"], "properties": { "image": { "description": "The name of the image used to create the container instance.", @@ -951,9 +934,7 @@ "ResourceRequirements": { "description": "The resource requirements.", "type": "object", - "required": [ - "requests" - ], + "required": ["requests"], "properties": { "requests": { "description": "The resource requests of this container instance.", @@ -968,10 +949,7 @@ "ResourceRequests": { "description": "The resource requests.", "type": "object", - "required": [ - "memoryInGB", - "cpu" - ], + "required": ["memoryInGB", "cpu"], "properties": { "memoryInGB": { "description": "The memory request in GB of this container instance.", @@ -1012,10 +990,7 @@ "GpuResource": { "description": "The GPU resource.", "type": "object", - "required": [ - "count", - "sku" - ], + "required": ["count", "sku"], "properties": { "count": { "description": "The count of the GPU resource.", @@ -1025,11 +1000,7 @@ "sku": { "type": "string", "description": "The SKU of the GPU resource.", - "enum": [ - "K80", - "P100", - "V100" - ], + "enum": ["K80", "P100", "V100"], "x-ms-enum": { "name": "GpuSku", "modelAsString": true @@ -1040,10 +1011,7 @@ "AzureFileVolume": { "description": "The properties of the Azure File volume. Azure File shares are mounted as volumes.", "type": "object", - "required": [ - "shareName", - "storageAccountName" - ], + "required": ["shareName", "storageAccountName"], "properties": { "shareName": { "description": "The name of the Azure File share to be mounted as a volume.", @@ -1077,9 +1045,7 @@ }, "GitRepoVolume": { "description": "Represents a volume that is populated with the contents of a git repository", - "required": [ - "repository" - ], + "required": ["repository"], "properties": { "directory": { "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", @@ -1098,9 +1064,7 @@ "Volume": { "description": "The properties of the volume.", "type": "object", - "required": [ - "name" - ], + "required": ["name"], "properties": { "name": { "description": "The name of the volume.", @@ -1127,10 +1091,7 @@ "VolumeMount": { "description": "The properties of the volume mount.", "type": "object", - "required": [ - "name", - "mountPath" - ], + "required": ["name", "mountPath"], "properties": { "name": { "description": "The name of the volume mount.", @@ -1175,10 +1136,7 @@ "scheme": { "description": "The scheme.", "type": "string", - "enum": [ - "http", - "https" - ], + "enum": ["http", "https"], "x-ms-enum": { "name": "Scheme", "modelAsString": true @@ -1192,9 +1150,7 @@ } } }, - "required": [ - "port" - ] + "required": ["port"] }, "ContainerProbe": { "type": "object", @@ -1243,9 +1199,7 @@ }, { "type": "object", - "required": [ - "properties" - ], + "required": ["properties"], "properties": { "identity": { "$ref": "#/definitions/ContainerGroupIdentity", @@ -1278,11 +1232,7 @@ "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" - ], + "enum": ["Always", "OnFailure", "Never"], "x-ms-enum": { "name": "ContainerGroupRestartPolicy", "modelAsString": true @@ -1295,10 +1245,7 @@ "osType": { "type": "string", "description": "The operating system type required by the containers in the container group.", - "enum": [ - "Windows", - "Linux" - ], + "enum": ["Windows", "Linux"], "x-ms-enum": { "name": "OperatingSystemTypes", "modelAsString": true @@ -1338,7 +1285,7 @@ "subnetIds": { "type": "array", "description": "The subnet resource IDs for a container group.", - "items" : { + "items": { "$ref": "#/definitions/ContainerGroupSubnetId" } }, @@ -1362,10 +1309,7 @@ } } }, - "required": [ - "containers", - "osType" - ] + "required": ["containers", "osType"] } } } @@ -1444,10 +1388,7 @@ "description": "The identity URL for the private registry." } }, - "required": [ - "server", - "username" - ] + "required": ["server", "username"] }, "ContainerGroupDiagnostics": { "description": "Container group diagnostic information.", @@ -1474,10 +1415,7 @@ "logType": { "type": "string", "description": "The log type to be used.", - "enum": [ - "ContainerInsights", - "ContainerInstanceLogs" - ], + "enum": ["ContainerInsights", "ContainerInstanceLogs"], "x-ms-enum": { "name": "LogAnalyticsLogType", "modelAsString": true @@ -1495,10 +1433,7 @@ "type": "string" } }, - "required": [ - "workspaceId", - "workspaceKey" - ] + "required": ["workspaceId", "workspaceKey"] }, "ContainerGroupSubnetId": { "description": "Container group subnet information.", @@ -1513,9 +1448,7 @@ "type": "string" } }, - "required": [ - "id" - ] + "required": ["id"] }, "IpAddress": { "description": "IP address for the container group.", @@ -1531,10 +1464,7 @@ "type": { "type": "string", "description": "Specifies if the IP is exposed to the public internet or private VNET.", - "enum": [ - "Public", - "Private" - ], + "enum": ["Public", "Private"], "x-ms-enum": { "name": "ContainerGroupIpAddressType", "modelAsString": true @@ -1554,10 +1484,7 @@ "description": "The FQDN for the IP." } }, - "required": [ - "ports", - "type" - ] + "required": ["ports", "type"] }, "Port": { "description": "The port exposed on the container group.", @@ -1566,10 +1493,7 @@ "protocol": { "type": "string", "description": "The protocol associated with the port.", - "enum": [ - "TCP", - "UDP" - ], + "enum": ["TCP", "UDP"], "x-ms-enum": { "name": "ContainerGroupNetworkProtocol", "modelAsString": true @@ -1581,9 +1505,7 @@ "format": "int32" } }, - "required": [ - "port" - ] + "required": ["port"] }, "ContainerPort": { "description": "The port exposed on the container instance.", @@ -1592,10 +1514,7 @@ "protocol": { "type": "string", "description": "The protocol associated with the port.", - "enum": [ - "TCP", - "UDP" - ], + "enum": ["TCP", "UDP"], "x-ms-enum": { "name": "ContainerNetworkProtocol", "modelAsString": true @@ -1607,9 +1526,7 @@ "description": "The port number exposed within the container group." } }, - "required": [ - "port" - ] + "required": ["port"] }, "EnvironmentVariable": { "description": "The environment variable to set within the container instance.", @@ -1628,9 +1545,7 @@ "description": "The value of the secure environment variable." } }, - "required": [ - "name" - ] + "required": ["name"] }, "OperationListResult": { "description": "The operation list response that contains all operations for Azure Container Instance service.", @@ -1687,20 +1602,14 @@ "origin": { "type": "string", "description": "The intended executor of the operation.", - "enum": [ - "User", - "System" - ], + "enum": ["User", "System"], "x-ms-enum": { "name": "ContainerInstanceOperationsOrigin", "modelAsString": true } } }, - "required": [ - "name", - "display" - ] + "required": ["name", "display"] }, "UsageListResult": { "description": "The response containing the usage data", @@ -1854,9 +1763,7 @@ "DnsConfiguration": { "description": "DNS configuration for the container group.", "type": "object", - "required": [ - "nameServers" - ], + "required": ["nameServers"], "properties": { "nameServers": { "description": "The DNS servers for the container group.", @@ -1928,10 +1835,7 @@ "cachedImages": { "description": "The cached image and OS type.", "type": "object", - "required": [ - "osType", - "image" - ], + "required": ["osType", "image"], "properties": { "osType": { "type": "string", @@ -2016,10 +1920,7 @@ "ContainerGroupSku": { "description": "The container group SKU.", "type": "string", - "enum": [ - "Standard", - "Dedicated" - ], + "enum": ["Standard", "Dedicated"], "x-ms-enum": { "name": "ContainerGroupSku", "modelAsString": true @@ -2042,11 +1943,7 @@ "type": "string" } }, - "required": [ - "vaultBaseUrl", - "keyName", - "keyVersion" - ] + "required": ["vaultBaseUrl", "keyName", "keyVersion"] }, "InitContainerDefinition": { "description": "The init container definition.", @@ -2062,10 +1959,7 @@ "$ref": "#/definitions/InitContainerPropertiesDefinition" } }, - "required": [ - "name", - "properties" - ] + "required": ["name", "properties"] }, "InitContainerPropertiesDefinition": { "description": "The init container definition properties.", From 254854d6850ae9ddd2369c57df7ed2aae64f3005 Mon Sep 17 00:00:00 2001 From: Joseph Porter Date: Tue, 7 Sep 2021 14:00:06 -0700 Subject: [PATCH 18/18] Running prettier again for format --- .../stable/2021-07-01/containerInstance.json | 183 ++++++++++++++---- 1 file changed, 144 insertions(+), 39 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json index b9c2a53663c5..8ea4d96d9b00 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-07-01/containerInstance.json @@ -5,12 +5,20 @@ "title": "ContainerInstanceManagementClient" }, "host": "management.azure.com", - "schemes": ["https"], - "consumes": ["application/json"], - "produces": ["application/json"], + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "security": [ { - "azure_auth": ["user_impersonation"] + "azure_auth": [ + "user_impersonation" + ] } ], "securityDefinitions": { @@ -406,7 +414,9 @@ }, "/providers/Microsoft.ContainerInstance/operations": { "get": { - "tags": ["Operations"], + "tags": [ + "Operations" + ], "operationId": "Operations_List", "x-ms-examples": { "OperationsList": { @@ -761,7 +771,10 @@ "Container": { "description": "A container instance.", "type": "object", - "required": ["properties", "name"], + "required": [ + "properties", + "name" + ], "properties": { "name": { "description": "The user-provided name of the container instance.", @@ -777,7 +790,10 @@ "ContainerProperties": { "description": "The container instance properties.", "type": "object", - "required": ["image", "resources"], + "required": [ + "image", + "resources" + ], "properties": { "image": { "description": "The name of the image used to create the container instance.", @@ -934,7 +950,9 @@ "ResourceRequirements": { "description": "The resource requirements.", "type": "object", - "required": ["requests"], + "required": [ + "requests" + ], "properties": { "requests": { "description": "The resource requests of this container instance.", @@ -949,7 +967,10 @@ "ResourceRequests": { "description": "The resource requests.", "type": "object", - "required": ["memoryInGB", "cpu"], + "required": [ + "memoryInGB", + "cpu" + ], "properties": { "memoryInGB": { "description": "The memory request in GB of this container instance.", @@ -990,7 +1011,10 @@ "GpuResource": { "description": "The GPU resource.", "type": "object", - "required": ["count", "sku"], + "required": [ + "count", + "sku" + ], "properties": { "count": { "description": "The count of the GPU resource.", @@ -1000,7 +1024,11 @@ "sku": { "type": "string", "description": "The SKU of the GPU resource.", - "enum": ["K80", "P100", "V100"], + "enum": [ + "K80", + "P100", + "V100" + ], "x-ms-enum": { "name": "GpuSku", "modelAsString": true @@ -1011,7 +1039,10 @@ "AzureFileVolume": { "description": "The properties of the Azure File volume. Azure File shares are mounted as volumes.", "type": "object", - "required": ["shareName", "storageAccountName"], + "required": [ + "shareName", + "storageAccountName" + ], "properties": { "shareName": { "description": "The name of the Azure File share to be mounted as a volume.", @@ -1045,7 +1076,9 @@ }, "GitRepoVolume": { "description": "Represents a volume that is populated with the contents of a git repository", - "required": ["repository"], + "required": [ + "repository" + ], "properties": { "directory": { "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", @@ -1064,7 +1097,9 @@ "Volume": { "description": "The properties of the volume.", "type": "object", - "required": ["name"], + "required": [ + "name" + ], "properties": { "name": { "description": "The name of the volume.", @@ -1091,7 +1126,10 @@ "VolumeMount": { "description": "The properties of the volume mount.", "type": "object", - "required": ["name", "mountPath"], + "required": [ + "name", + "mountPath" + ], "properties": { "name": { "description": "The name of the volume mount.", @@ -1136,7 +1174,10 @@ "scheme": { "description": "The scheme.", "type": "string", - "enum": ["http", "https"], + "enum": [ + "http", + "https" + ], "x-ms-enum": { "name": "Scheme", "modelAsString": true @@ -1150,7 +1191,9 @@ } } }, - "required": ["port"] + "required": [ + "port" + ] }, "ContainerProbe": { "type": "object", @@ -1199,7 +1242,9 @@ }, { "type": "object", - "required": ["properties"], + "required": [ + "properties" + ], "properties": { "identity": { "$ref": "#/definitions/ContainerGroupIdentity", @@ -1232,7 +1277,11 @@ "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"], + "enum": [ + "Always", + "OnFailure", + "Never" + ], "x-ms-enum": { "name": "ContainerGroupRestartPolicy", "modelAsString": true @@ -1245,7 +1294,10 @@ "osType": { "type": "string", "description": "The operating system type required by the containers in the container group.", - "enum": ["Windows", "Linux"], + "enum": [ + "Windows", + "Linux" + ], "x-ms-enum": { "name": "OperatingSystemTypes", "modelAsString": true @@ -1309,7 +1361,10 @@ } } }, - "required": ["containers", "osType"] + "required": [ + "containers", + "osType" + ] } } } @@ -1388,7 +1443,10 @@ "description": "The identity URL for the private registry." } }, - "required": ["server", "username"] + "required": [ + "server", + "username" + ] }, "ContainerGroupDiagnostics": { "description": "Container group diagnostic information.", @@ -1415,7 +1473,10 @@ "logType": { "type": "string", "description": "The log type to be used.", - "enum": ["ContainerInsights", "ContainerInstanceLogs"], + "enum": [ + "ContainerInsights", + "ContainerInstanceLogs" + ], "x-ms-enum": { "name": "LogAnalyticsLogType", "modelAsString": true @@ -1433,7 +1494,10 @@ "type": "string" } }, - "required": ["workspaceId", "workspaceKey"] + "required": [ + "workspaceId", + "workspaceKey" + ] }, "ContainerGroupSubnetId": { "description": "Container group subnet information.", @@ -1448,7 +1512,9 @@ "type": "string" } }, - "required": ["id"] + "required": [ + "id" + ] }, "IpAddress": { "description": "IP address for the container group.", @@ -1464,7 +1530,10 @@ "type": { "type": "string", "description": "Specifies if the IP is exposed to the public internet or private VNET.", - "enum": ["Public", "Private"], + "enum": [ + "Public", + "Private" + ], "x-ms-enum": { "name": "ContainerGroupIpAddressType", "modelAsString": true @@ -1484,7 +1553,10 @@ "description": "The FQDN for the IP." } }, - "required": ["ports", "type"] + "required": [ + "ports", + "type" + ] }, "Port": { "description": "The port exposed on the container group.", @@ -1493,7 +1565,10 @@ "protocol": { "type": "string", "description": "The protocol associated with the port.", - "enum": ["TCP", "UDP"], + "enum": [ + "TCP", + "UDP" + ], "x-ms-enum": { "name": "ContainerGroupNetworkProtocol", "modelAsString": true @@ -1505,7 +1580,9 @@ "format": "int32" } }, - "required": ["port"] + "required": [ + "port" + ] }, "ContainerPort": { "description": "The port exposed on the container instance.", @@ -1514,7 +1591,10 @@ "protocol": { "type": "string", "description": "The protocol associated with the port.", - "enum": ["TCP", "UDP"], + "enum": [ + "TCP", + "UDP" + ], "x-ms-enum": { "name": "ContainerNetworkProtocol", "modelAsString": true @@ -1526,7 +1606,9 @@ "description": "The port number exposed within the container group." } }, - "required": ["port"] + "required": [ + "port" + ] }, "EnvironmentVariable": { "description": "The environment variable to set within the container instance.", @@ -1545,7 +1627,9 @@ "description": "The value of the secure environment variable." } }, - "required": ["name"] + "required": [ + "name" + ] }, "OperationListResult": { "description": "The operation list response that contains all operations for Azure Container Instance service.", @@ -1602,14 +1686,20 @@ "origin": { "type": "string", "description": "The intended executor of the operation.", - "enum": ["User", "System"], + "enum": [ + "User", + "System" + ], "x-ms-enum": { "name": "ContainerInstanceOperationsOrigin", "modelAsString": true } } }, - "required": ["name", "display"] + "required": [ + "name", + "display" + ] }, "UsageListResult": { "description": "The response containing the usage data", @@ -1763,7 +1853,9 @@ "DnsConfiguration": { "description": "DNS configuration for the container group.", "type": "object", - "required": ["nameServers"], + "required": [ + "nameServers" + ], "properties": { "nameServers": { "description": "The DNS servers for the container group.", @@ -1835,7 +1927,10 @@ "cachedImages": { "description": "The cached image and OS type.", "type": "object", - "required": ["osType", "image"], + "required": [ + "osType", + "image" + ], "properties": { "osType": { "type": "string", @@ -1920,7 +2015,10 @@ "ContainerGroupSku": { "description": "The container group SKU.", "type": "string", - "enum": ["Standard", "Dedicated"], + "enum": [ + "Standard", + "Dedicated" + ], "x-ms-enum": { "name": "ContainerGroupSku", "modelAsString": true @@ -1943,7 +2041,11 @@ "type": "string" } }, - "required": ["vaultBaseUrl", "keyName", "keyVersion"] + "required": [ + "vaultBaseUrl", + "keyName", + "keyVersion" + ] }, "InitContainerDefinition": { "description": "The init container definition.", @@ -1959,7 +2061,10 @@ "$ref": "#/definitions/InitContainerPropertiesDefinition" } }, - "required": ["name", "properties"] + "required": [ + "name", + "properties" + ] }, "InitContainerPropertiesDefinition": { "description": "The init container definition properties.",