diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/AzureStack.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/AzureStack.json new file mode 100644 index 000000000000..bb5190039026 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/AzureStack.json @@ -0,0 +1,432 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-06-01-preview", + "title": "Azure Stack Azure Bridge Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/providers/Microsoft.AzureStack/operations": { + "get": { + "x-ms-examples": { + "Returns the list of supported REST operations.": { + "$ref": "./examples/Operation/List.json" + } + }, + "description": "Returns the list of supported REST operations.", + "tags": [ + "AzureStack" + ], + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.AzureStack/cloudManifestFiles": { + "get": { + "x-ms-examples": { + "Returns the properties of a cloud specific manifest file with latest version.": { + "$ref": "examples/CloudManifestFile/List.json" + } + }, + "tags": [ + "AzureStack" + ], + "description": "Returns a cloud specific manifest JSON file with latest version.", + "operationId": "CloudManifestFile_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudManifestFileResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.AzureStack/cloudManifestFiles/{verificationVersion}": { + "get": { + "x-ms-examples": { + "Returns the properties of a cloud specific manifest file.": { + "$ref": "examples/CloudManifestFile/Get.json" + } + }, + "tags": [ + "AzureStack" + ], + "description": "Returns a cloud specific manifest JSON file.", + "operationId": "CloudManifestFile_Get", + "parameters": [ + { + "name": "verificationVersion", + "in": "path", + "description": "Signing verification key version.", + "required": true, + "type": "string" + }, + { + "name": "versionCreationDate", + "in": "query", + "description": "Signing verification key version creation date.", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudManifestFileResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Resource": { + "description": "Base resource object.", + "type": "object", + "properties": { + "id": { + "readOnly": true, + "description": "ID of the resource.", + "type": "string" + }, + "name": { + "readOnly": true, + "description": "Name of the resource.", + "type": "string" + }, + "type": { + "readOnly": true, + "description": "Type of Resource.", + "type": "string" + }, + "etag": { + "description": "The entity tag used for optimistic concurrency when modifying the resource.", + "type": "string" + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "Base resource object.", + "type": "object", + "properties": { + "id": { + "readOnly": true, + "description": "ID of the resource.", + "type": "string" + }, + "name": { + "readOnly": true, + "description": "Name of the resource.", + "type": "string" + }, + "type": { + "readOnly": true, + "description": "Type of Resource.", + "type": "string" + }, + "kind": { + "readOnly": true, + "description": "The kind of the resource.", + "type": "string" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "location": { + "description": "Location of the resource.", + "type": "string", + "enum": [ + "global" + ], + "x-ms-enum": { + "name": "Location", + "modelAsString": true + }, + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "description": "Custom tags for the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "etag": { + "description": "The entity tag used for optimistic concurrency when modifying the resource.", + "type": "string" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true + }, + "ProvisioningState": { + "description": "The provisioning state of the resource.", + "enum": [ + "Creating", + "Failed", + "Succeeded", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState" + } + }, + "Operation": { + "description": "Describes the supported REST operation.", + "properties": { + "name": { + "description": "The name of the operation being performed on this particular object.", + "type": "string" + }, + "display": { + "description": "Contains the localized display information for this particular operation or action.", + "$ref": "#/definitions/Display" + }, + "origin": { + "description": "The intended executor of the operation.", + "type": "string" + } + } + }, + "Display": { + "description": "Contains the localized display information for this particular operation or action.", + "properties": { + "provider": { + "description": "The localized, friendly version of the resource provider name.", + "type": "string" + }, + "resource": { + "description": "The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.", + "type": "string" + }, + "operation": { + "description": "The localized, friendly name for the operation. Use the name as it will displayed to the user.", + "type": "string" + }, + "description": { + "description": "The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.", + "type": "string" + } + } + }, + "OperationList": { + "description": "List of Operations", + "properties": { + "value": { + "description": "Array of operations", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URI to the next page of operations.", + "type": "string" + } + } + }, + "CloudManifestFileResponse": { + "description": "Cloud specific manifest GET response.", + "type": "object", + "properties": { + "properties": { + "description": "Cloud specific manifest data.", + "$ref": "#/definitions/CloudManifestFileProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "CloudManifestFileProperties": { + "description": "Cloud specific manifest JSON properties.", + "type": "object", + "properties": { + "deploymentData": { + "description": "Cloud specific manifest data.", + "$ref": "#/definitions/CloudManifestFileDeploymentData" + }, + "signature": { + "description": "Signature of the cloud specific manifest data.", + "type": "string" + } + } + }, + "CloudManifestFileDeploymentData": { + "description": "Cloud specific manifest data for AzureStack deployment.", + "type": "object", + "properties": { + "externalDsmsCertificates": { + "description": "Dsms external certificates.", + "type": "string" + }, + "customCloudVerificationKey": { + "description": "Signing verification public key.", + "type": "string" + }, + "customEnvironmentEndpoints": { + "description": "Environment endpoints.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/CloudManifestFileEnvironmentEndpoints" + } + } + }, + "CloudManifestFileEnvironmentEndpoints": { + "description": "Cloud specific environment endpoints for AzureStack deployment.", + "type": "object", + "properties": { + "customCloudArmEndpoint": { + "description": "ARM endpoint.", + "type": "string" + }, + "externalDsmsEndpoint": { + "description": "Dsms endpoint.", + "type": "string" + } + } + }, + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "Error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "The target of the particular error.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorResponse": { + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "error": { + "description": "The details of the error.", + "$ref": "#/definitions/ErrorDetails" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Client API Version.", + "required": true, + "type": "string", + "default": "2020-06-01-preview" + }, + "ResourceGroupNameParameter": { + "description": "Name of the resource group.", + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "RegistrationNameParameter": { + "description": "Name of the Azure Stack registration.", + "name": "registrationName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/CustomerSubscription.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/CustomerSubscription.json new file mode 100644 index 000000000000..21a9a8ec219e --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/CustomerSubscription.json @@ -0,0 +1,284 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-06-01-preview", + "title": "AzureStack Azure Bridge Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions": { + "get": { + "x-ms-examples": { + "Returns a list of products.": { + "$ref": "examples/CustomerSubscription/List.json" + } + }, + "tags": [ + "CustomerSubscription" + ], + "description": "Returns a list of products.", + "operationId": "CustomerSubscriptions_List", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomerSubscriptionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}": { + "get": { + "x-ms-examples": { + "Returns the specified product.": { + "$ref": "examples/CustomerSubscription/Get.json" + } + }, + "tags": [ + "CustomerSubscription" + ], + "description": "Returns the specified product.", + "operationId": "CustomerSubscriptions_Get", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "#/parameters/CustomerSubscriptionNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomerSubscription" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Deletes a customer subscription under a registration.": { + "$ref": "examples/CustomerSubscription/Delete.json" + } + }, + "tags": [ + "CustomerSubscription" + ], + "description": "Deletes a customer subscription under a registration.", + "operationId": "CustomerSubscriptions_Delete", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "#/parameters/CustomerSubscriptionNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NO CONTENT" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "x-ms-examples": { + "Creates a new customer subscription under a registration.": { + "$ref": "examples/CustomerSubscription/Put.json" + } + }, + "tags": [ + "CustomerSubscription" + ], + "description": "Creates a new customer subscription under a registration.", + "operationId": "CustomerSubscriptions_Create", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "#/parameters/CustomerSubscriptionNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/CustomerSubscriptionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomerSubscription" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "CustomerSubscription": { + "description": "Customer subscription.", + "type": "object", + "properties": { + "properties": { + "description": "Customer subscription properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/CustomerSubscriptionProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "AzureStack.json#/definitions/Resource" + } + ] + }, + "CustomerSubscriptionProperties": { + "description": "Customer subscription properties.", + "type": "object", + "properties": { + "tenantId": { + "description": "Tenant Id.", + "type": "string" + } + } + }, + "CustomerSubscriptionList": { + "description": "Pageable list of customer subscriptions.", + "type": "object", + "properties": { + "nextLink": { + "description": "URI to the next page.", + "type": "string" + }, + "value": { + "description": "List of customer subscriptions.", + "type": "array", + "items": { + "$ref": "#/definitions/CustomerSubscription" + } + } + } + } + }, + "parameters": { + "CustomerSubscriptionNameParameter": { + "description": "Name of the product.", + "name": "customerSubscriptionName", + "type": "string", + "in": "path", + "required": true, + "x-ms-parameter-location": "method" + }, + "CustomerSubscriptionParameter": { + "description": "Parameters use to create a customer subscription.", + "name": "customerCreationParameters", + "schema": { + "$ref": "#/definitions/CustomerSubscription" + }, + "in": "body", + "required": true, + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/LinkedSubscription.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/LinkedSubscription.json new file mode 100644 index 000000000000..402eda26c468 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/LinkedSubscription.json @@ -0,0 +1,434 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-06-01-preview", + "title": "Azure Stack Azure Bridge Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions": { + "get": { + "x-ms-examples": { + "Returns a list of all linked subscriptions.": { + "$ref": "examples/LinkedSubscription/List.json" + } + }, + "tags": [ + "LinkedSubscriptions" + ], + "description": "Returns a list of all linked subscriptions under current resource group.", + "operationId": "LinkedSubscriptions_ListByResourceGroup", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LinkedSubscriptionsList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/linkedSubscriptions": { + "get": { + "x-ms-examples": { + "Returns a list of all linked subscriptions.": { + "$ref": "examples/LinkedSubscription/ListBySubscription.json" + } + }, + "tags": [ + "LinkedSubscriptions" + ], + "description": "Returns a list of all linked subscriptions under current subscription.", + "operationId": "LinkedSubscriptions_ListBySubscription", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LinkedSubscriptionsList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}": { + "get": { + "x-ms-examples": { + "Returns the properties of a Linked Subscription resource.": { + "$ref": "examples/LinkedSubscription/Get.json" + } + }, + "tags": [ + "LinkedSubscriptions" + ], + "description": "Returns the properties of a Linked Subscription resource.", + "operationId": "LinkedSubscriptions_Get", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LinkedSubscriptionNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LinkedSubscription" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete the requested Linked Subscription.": { + "$ref": "./examples/LinkedSubscription/Delete.json" + } + }, + "tags": [ + "LinkedSubscriptions" + ], + "description": "Delete the requested Linked Subscription resource.", + "operationId": "LinkedSubscriptions_Delete", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LinkedSubscriptionNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NO CONTENT" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create or update a Linked Subscription.": { + "$ref": "examples/LinkedSubscription/Put.json" + } + }, + "tags": [ + "LinkedSubscriptions" + ], + "description": "Create or update a linked subscription resource.", + "operationId": "LinkedSubscriptions_CreateOrUpdate", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LinkedSubscriptionNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/NewLinkedSubscriptionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LinkedSubscription" + } + }, + "201": { + "description": "CREATED", + "schema": { + "$ref": "#/definitions/LinkedSubscription" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "x-ms-examples": { + "Patch a Linked Subscription resource.": { + "$ref": "examples/LinkedSubscription/Patch.json" + } + }, + "tags": [ + "LinkedSubscriptions" + ], + "description": "Patch a Linked Subscription resource.", + "operationId": "LinkedSubscriptions_Update", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LinkedSubscriptionNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/NewLinkedSubscriptionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LinkedSubscription" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "LinkedSubscriptionsList": { + "description": "List of linked subscriptions with paging support.", + "type": "object", + "properties": { + "nextLink": { + "description": "URI to the next page.", + "type": "string" + }, + "value": { + "description": "List of Linked Subscriptions", + "type": "array", + "items": { + "$ref": "#/definitions/LinkedSubscription" + } + } + } + }, + "LinkedSubscription": { + "description": "Linked Subscription information.", + "type": "object", + "properties": { + "properties": { + "description": "Linked Subscription resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/LinkedSubscriptionProperties" + } + }, + "allOf": [ + { + "$ref": "AzureStack.json#/definitions/TrackedResource" + } + ] + }, + "LinkedSubscriptionProperties": { + "description": "Properties portion of the linked subscription resource.", + "type": "object", + "properties": { + "linkedSubscriptionId": { + "description": "The identifier associated with the device subscription.", + "type": "string" + }, + "registrationResourceId": { + "description": "The identifier associated with the device registration.", + "type": "string" + }, + "deviceId": { + "description": "The identifier of the Azure Stack device for remote management.", + "type": "string", + "readOnly": true + }, + "deviceObjectId": { + "description": "The object identifier associated with the Azure Stack device connecting to Azure.", + "type": "string", + "readOnly": true + }, + "deviceLinkState": { + "description": "The connection state of the Azure Stack device.", + "type": "string", + "readOnly": true + }, + "lastConnectedTime": { + "description": "The last remote management connection time for the Azure Stack device connected to the linked subscription resource.", + "type": "string", + "readOnly": true + }, + "deviceConnectionStatus": { + "description": "The status of the remote management connection of the Azure Stack device.", + "type": "string", + "readOnly": true + } + } + }, + "LinkedSubscriptionParameter": { + "description": "Linked Subscription resource", + "type": "object", + "properties": { + "properties": { + "description": "Properties of the Linked Subscription resource", + "x-ms-client-flatten": true, + "$ref": "#/definitions/LinkedSubscriptionParameterProperties" + }, + "location": { + "description": "Location of the resource.", + "type": "string", + "enum": [ + "global" + ], + "x-ms-enum": { + "name": "Location", + "modelAsString": true + }, + "x-ms-mutability": [ + "create", + "read" + ] + } + }, + "required": [ + "properties", + "location" + ] + }, + "LinkedSubscriptionParameterProperties": { + "description": "Properties of the Linked Subscription resource", + "type": "object", + "properties": { + "linkedSubscriptionId": { + "description": "The identifier associated with the device subscription.", + "type": "string" + }, + "registrationResourceId": { + "description": "The identifier associated with the device registration.", + "type": "string" + } + }, + "required": [ + "linkedSubscriptionId", + "registrationResourceId" + ] + } + }, + "parameters": { + "LinkedSubscriptionNameParameter": { + "description": "Name of the Linked Subscription resource.", + "name": "linkedSubscriptionName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "NewLinkedSubscriptionParameter": { + "description": "Linked subscription resource parameter.", + "name": "resource", + "in": "body", + "schema": { + "$ref": "#/definitions/LinkedSubscriptionParameter" + }, + "required": true, + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Product.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Product.json new file mode 100644 index 000000000000..252e02f97689 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Product.json @@ -0,0 +1,840 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-06-01-preview", + "title": "AzureStack Azure Bridge Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products": { + "get": { + "x-ms-examples": { + "Returns a list of products.": { + "$ref": "examples/Product/List.json" + } + }, + "tags": [ + "Product" + ], + "description": "Returns a list of products.", + "operationId": "Products_List", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProductList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}": { + "get": { + "x-ms-examples": { + "Returns the specified product.": { + "$ref": "examples/Product/Get.json" + } + }, + "tags": [ + "Product" + ], + "description": "Returns the specified product.", + "operationId": "Products_Get", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "#/parameters/ProductNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Product" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listDetails": { + "post": { + "x-ms-examples": { + "Returns the extended properties of a product.": { + "$ref": "examples/Product/Post.json" + } + }, + "tags": [ + "Product" + ], + "description": "Returns the extended properties of a product.", + "operationId": "Products_ListDetails", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "#/parameters/ProductNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ExtendedProduct" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts": { + "post": { + "x-ms-examples": { + "Returns a list of products.": { + "$ref": "examples/Product/ListPost.json" + } + }, + "tags": [ + "Product" + ], + "description": "Returns a list of products.", + "operationId": "Products_GetProducts", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "#/parameters/ProductNameParameter" + }, + { + "$ref": "#/parameters/DeviceConfigurationParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProductList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProduct": { + "post": { + "x-ms-examples": { + "Returns the specified product.": { + "$ref": "examples/Product/GetPost.json" + } + }, + "tags": [ + "Product" + ], + "description": "Returns the specified product.", + "operationId": "Products_GetProduct", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "#/parameters/ProductNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/DeviceConfigurationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Product" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/uploadProductLog": { + "post": { + "x-ms-examples": { + "Returns the specified product.": { + "$ref": "examples/Product/UploadLog.json" + } + }, + "tags": [ + "Product" + ], + "description": "Returns the specified product.", + "operationId": "Products_UploadLog", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "#/parameters/ProductNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MarketplaceProductLogUpdateParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProductLog" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "ComputeRole": { + "description": "Compute role type (IaaS or PaaS).", + "type": "string", + "enum": [ + "None", + "IaaS", + "PaaS" + ], + "x-ms-enum": { + "name": "ComputeRole", + "modelAsString": true + } + }, + "OperatingSystem": { + "description": "Operating system type (Windows or Linux).", + "type": "string", + "enum": [ + "None", + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystem", + "modelAsString": true + } + }, + "Uri": { + "description": "The URI.", + "type": "object", + "properties": { + "uri": { + "description": "The URI.", + "type": "string", + "readOnly": true + } + } + }, + "ExtendedProduct": { + "description": "Extended description about the product required for installing it into Azure Stack.", + "type": "object", + "properties": { + "galleryPackageBlobSasUri": { + "description": "The URI to the .azpkg file that provides information required for showing product in the gallery.", + "type": "string", + "readOnly": true + }, + "productKind": { + "description": "Specifies the kind of the product (virtualMachine or virtualMachineExtension).", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Specifies additional properties describing the product.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExtendedProductProperties", + "readOnly": true + } + } + }, + "ExtendedProductProperties": { + "description": "Product information.", + "type": "object", + "properties": {}, + "allOf": [ + { + "$ref": "#/definitions/VirtualMachineExtensionProductProperties" + }, + { + "$ref": "#/definitions/VirtualMachineProductProperties" + } + ] + }, + "VirtualMachineExtensionProductProperties": { + "description": "Product information.", + "type": "object", + "properties": { + "computeRole": { + "description": "Specifies kind of compute role included in the package.", + "$ref": "#/definitions/ComputeRole", + "readOnly": true + }, + "isSystemExtension": { + "description": "Specifies if product is a Virtual Machine Extension.", + "type": "boolean", + "readOnly": true + }, + "sourceBlob": { + "description": "Specifies a download location where content can be downloaded from.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/Uri", + "readOnly": true + }, + "supportMultipleExtensions": { + "description": "Indicates if specified product supports multiple extensions.", + "type": "boolean", + "readOnly": true + }, + "version": { + "description": "Specifies product version.", + "type": "string", + "readOnly": true + }, + "vmOsType": { + "description": "Specifies operating system used by the product.", + "$ref": "#/definitions/OperatingSystem", + "readOnly": true + }, + "vmScaleSetEnabled": { + "description": "Indicates if virtual machine Scale Set is enabled in the specified product.", + "type": "boolean", + "readOnly": true + } + } + }, + "VirtualMachineProductProperties": { + "description": "Product information.", + "type": "object", + "properties": { + "version": { + "description": "Specifies product version.", + "type": "string", + "readOnly": true + }, + "osDiskImage": { + "description": "OS disk image used by product.", + "$ref": "#/definitions/OsDiskImage", + "readOnly": true + }, + "dataDiskImages": { + "description": "List of attached data disks.", + "type": "array", + "items": { + "$ref": "#/definitions/DataDiskImage" + }, + "readOnly": true + } + } + }, + "OsDiskImage": { + "description": "OS disk image.", + "type": "object", + "properties": { + "operatingSystem": { + "description": "OS operating system type.", + "$ref": "#/definitions/OperatingSystem", + "readOnly": true + }, + "sourceBlobSasUri": { + "description": "SAS key for source blob.", + "type": "string", + "readOnly": true + } + } + }, + "DataDiskImage": { + "description": "Data disk image.", + "type": "object", + "properties": { + "lun": { + "description": "The LUN.", + "type": "integer", + "format": "int32", + "readOnly": true + }, + "sourceBlobSasUri": { + "description": "SAS key for source blob.", + "type": "string", + "readOnly": true + } + } + }, + "Product": { + "description": "Product information.", + "type": "object", + "properties": { + "properties": { + "description": "Properties of the product resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProductNestedProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "AzureStack.json#/definitions/Resource" + } + ] + }, + "ProductNestedProperties": { + "description": "Properties portion of the product resource.", + "type": "object", + "properties": { + "displayName": { + "description": "The display name of the product.", + "type": "string" + }, + "description": { + "description": "The description of the product.", + "type": "string" + }, + "publisherDisplayName": { + "description": "The user-friendly name of the product publisher.", + "type": "string" + }, + "publisherIdentifier": { + "description": "Publisher identifier.", + "type": "string" + }, + "offer": { + "description": "The offer representing the product.", + "type": "string" + }, + "offerVersion": { + "description": "The version of the product offer.", + "type": "string" + }, + "sku": { + "description": "The product SKU.", + "type": "string" + }, + "billingPartNumber": { + "description": "The part number used for billing purposes.", + "type": "string" + }, + "vmExtensionType": { + "description": "The type of the Virtual Machine Extension.", + "type": "string" + }, + "galleryItemIdentity": { + "description": "The identifier of the gallery item corresponding to the product.", + "type": "string" + }, + "iconUris": { + "description": "Additional links available for this product.", + "$ref": "#/definitions/IconUris" + }, + "links": { + "description": "Additional links available for this product.", + "type": "array", + "items": { + "$ref": "#/definitions/ProductLink" + } + }, + "legalTerms": { + "description": "The legal terms.", + "type": "string" + }, + "privacyPolicy": { + "description": "The privacy policy.", + "type": "string" + }, + "payloadLength": { + "description": "The length of product content.", + "type": "integer", + "format": "int64" + }, + "productKind": { + "description": "The kind of the product (virtualMachine or virtualMachineExtension)", + "type": "string" + }, + "productProperties": { + "description": "Additional properties for the product.", + "$ref": "#/definitions/ProductProperties" + }, + "compatibility": { + "description": "Product compatibility with current device.", + "$ref": "#/definitions/Compatibility" + } + } + }, + "Compatibility": { + "description": "Product compatibility", + "type": "object", + "properties": { + "isCompatible": { + "description": "Tells if product is compatible with current device", + "type": "boolean" + }, + "message": { + "description": "Short error message if any compatibility issues are found", + "type": "string" + }, + "description": { + "description": "Full error message if any compatibility issues are found", + "type": "string" + }, + "issues": { + "description": "List of all issues found", + "type": "array", + "items": { + "$ref": "#/definitions/CompatibilityIssue" + } + } + } + }, + "CompatibilityIssue": { + "description": "Compatibility issue", + "type": "string", + "enum": [ + "HigherDeviceVersionRequired", + "LowerDeviceVersionRequired", + "CapacityBillingModelRequired", + "PayAsYouGoBillingModelRequired", + "DevelopmentBillingModelRequired", + "AzureADIdentitySystemRequired", + "ADFSIdentitySystemRequired", + "ConnectionToInternetRequired", + "ConnectionToAzureRequired", + "DisconnectedEnvironmentRequired" + ], + "x-ms-enum": { + "name": "CompatibilityIssue", + "modelAsString": true + } + }, + "IconUris": { + "description": "Links to product icons.", + "type": "object", + "properties": { + "large": { + "description": "URI to large icon.", + "type": "string" + }, + "wide": { + "description": "URI to wide icon.", + "type": "string" + }, + "medium": { + "description": "URI to medium icon.", + "type": "string" + }, + "small": { + "description": "URI to small icon.", + "type": "string" + }, + "hero": { + "description": "URI to hero icon.", + "type": "string" + } + } + }, + "ProductProperties": { + "description": "Additional properties of the product", + "type": "object", + "properties": { + "version": { + "description": "The version.", + "type": "string" + } + } + }, + "ProductLink": { + "description": "Link with additional information about a product.", + "type": "object", + "properties": { + "displayName": { + "description": "The description of the link.", + "type": "string" + }, + "uri": { + "description": "The URI corresponding to the link.", + "type": "string" + } + } + }, + "ProductList": { + "description": "Pageable list of products.", + "type": "object", + "properties": { + "nextLink": { + "description": "URI to the next page.", + "type": "string" + }, + "value": { + "description": "List of products.", + "type": "array", + "items": { + "$ref": "#/definitions/Product" + } + } + } + }, + "DeviceConfiguration": { + "description": "Device Configuration.", + "properties": { + "deviceVersion": { + "description": "Version of the device.", + "type": "string", + "readOnly": true + }, + "identitySystem": { + "description": "Identity system of the device.", + "enum": [ + "AzureAD", + "ADFS" + ], + "type": "string", + "x-ms-enum": { + "name": "category", + "modelAsString": true + }, + "readOnly": true + } + } + }, + "MarketplaceProductLogUpdate": { + "description": "Update details for product log.", + "properties": { + "operation": { + "description": "Operation to log.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Operation status to log.", + "type": "string", + "readOnly": true + }, + "error": { + "description": "Error related to the operation.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Error details related to operation.", + "type": "string", + "readOnly": true + } + } + }, + "ProductLog": { + "description": "Product action log.", + "properties": { + "id": { + "description": "Log ID.", + "type": "string", + "readOnly": true + }, + "productId": { + "description": "Logged product ID.", + "type": "string", + "readOnly": true + }, + "subscriptionId": { + "description": "Logged subscription ID.", + "type": "string", + "readOnly": true + }, + "registrationName": { + "description": "Logged registration name.", + "type": "string", + "readOnly": true + }, + "resourceGroupName": { + "description": "Logged resource group name.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Logged operation.", + "type": "string", + "readOnly": true + }, + "startDate": { + "description": "Operation start datetime.", + "type": "string", + "readOnly": true + }, + "endDate": { + "description": "Operation end datetime.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Operation status.", + "type": "string", + "readOnly": true + }, + "error": { + "description": "Operation error data.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Operation error details.", + "type": "string", + "readOnly": true + } + } + } + }, + "parameters": { + "ProductNameParameter": { + "description": "Name of the product.", + "name": "productName", + "type": "string", + "in": "path", + "required": true, + "x-ms-parameter-location": "method" + }, + "DeviceConfigurationParameter": { + "description": "Device configuration.", + "name": "deviceConfiguration", + "in": "body", + "required": false, + "x-ms-parameter-location": "method", + "schema": { + "$ref": "#/definitions/DeviceConfiguration" + } + }, + "MarketplaceProductLogUpdateParameter": { + "description": "Update details for product log.", + "name": "marketplaceProductLogUpdate", + "in": "body", + "required": false, + "x-ms-parameter-location": "method", + "schema": { + "$ref": "#/definitions/MarketplaceProductLogUpdate" + } + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Registration.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Registration.json new file mode 100644 index 000000000000..81bd4d72a687 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Registration.json @@ -0,0 +1,449 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-06-01-preview", + "title": "Azure Stack Azure Bridge Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations": { + "get": { + "x-ms-examples": { + "Returns a list of all registrations.": { + "$ref": "examples/Registration/List.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Returns a list of all registrations.", + "operationId": "Registrations_List", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RegistrationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": { + "get": { + "x-ms-examples": { + "Returns the properties of an Azure Stack registration.": { + "$ref": "examples/Registration/Get.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Returns the properties of an Azure Stack registration.", + "operationId": "Registrations_Get", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Registration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete the requested Azure Stack registration.": { + "$ref": "./examples/Registration/Delete.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Delete the requested Azure Stack registration.", + "operationId": "Registrations_Delete", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NO CONTENT" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create or update an Azure Stack registration.": { + "$ref": "examples/Registration/Put.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Create or update an Azure Stack registration.", + "operationId": "Registrations_CreateOrUpdate", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/NewRegistrationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Registration" + } + }, + "201": { + "description": "CREATED", + "schema": { + "$ref": "#/definitions/Registration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "x-ms-examples": { + "Patch an Azure Stack registration.": { + "$ref": "examples/Registration/Patch.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Patch an Azure Stack registration.", + "operationId": "Registrations_Update", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/NewRegistrationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Registration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/getactivationkey": { + "post": { + "x-ms-examples": { + "Returns Azure Stack Activation Key.": { + "$ref": "./examples/Registration/Post.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Returns Azure Stack Activation Key.", + "operationId": "Registrations_GetActivationKey", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ActivationKeyResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/enableRemoteManagement": { + "post": { + "x-ms-examples": { + "Returns empty response for successful action..": { + "$ref": "examples/RemoteManagement/Post.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Enables remote management for device under the Azure Stack registration.", + "operationId": "Registrations_EnableRemoteManagement", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "AzureStack.json#/parameters/RegistrationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Registration": { + "description": "Registration information.", + "type": "object", + "properties": { + "properties": { + "description": "Registration resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/RegistrationProperties" + } + }, + "allOf": [ + { + "$ref": "AzureStack.json#/definitions/TrackedResource" + } + ] + }, + "RegistrationProperties": { + "description": "Properties portion of the registration resource.", + "type": "object", + "properties": { + "objectId": { + "description": "The object identifier associated with the Azure Stack connecting to Azure.", + "type": "string" + }, + "cloudId": { + "description": "The identifier of the registered Azure Stack.", + "type": "string" + }, + "billingModel": { + "description": "Specifies the billing mode for the Azure Stack registration.", + "type": "string" + } + } + }, + "RegistrationList": { + "description": "Pageable list of registrations.", + "type": "object", + "properties": { + "nextLink": { + "description": "URI to the next page.", + "type": "string" + }, + "value": { + "description": "List of Registrations", + "type": "array", + "items": { + "$ref": "#/definitions/Registration" + } + } + } + }, + "ActivationKeyResult": { + "description": "The resource containing the Azure Stack activation key.", + "type": "object", + "properties": { + "activationKey": { + "description": "Azure Stack activation key.", + "type": "string" + } + } + }, + "RegistrationParameter": { + "description": "Registration resource", + "type": "object", + "properties": { + "properties": { + "description": "Properties of the Azure Stack registration resource", + "x-ms-client-flatten": true, + "$ref": "#/definitions/RegistrationParameterProperties" + }, + "location": { + "description": "Location of the resource.", + "type": "string", + "enum": [ + "global" + ], + "x-ms-enum": { + "name": "Location", + "modelAsString": true + }, + "x-ms-mutability": [ + "create", + "read" + ] + } + }, + "required": [ + "properties", + "location" + ] + }, + "RegistrationParameterProperties": { + "description": "Properties of the Azure Stack registration resource", + "type": "object", + "properties": { + "registrationToken": { + "description": "The token identifying registered Azure Stack", + "type": "string" + } + }, + "required": [ + "registrationToken" + ] + } + }, + "parameters": { + "NewRegistrationParameter": { + "description": "Registration token", + "name": "token", + "in": "body", + "schema": { + "$ref": "#/definitions/RegistrationParameter" + }, + "required": true, + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CloudManifestFile/Get.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CloudManifestFile/Get.json new file mode 100644 index 000000000000..99ae3976687f --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CloudManifestFile/Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "verificationVersion": "latest", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.AzureStack/cloudManifestFiles/latest", + "name": "latest", + "type": "Microsoft.AzureStack/cloudManifestFiles", + "properties": { + "deploymentData": { + "externalDsmsCertificates": "", + "customCloudVerificationKey": "", + "customEnvironmentEndpoints": { + "customCloudArmEndpoint": "https://management.azure.microsoft.scloud/", + "externalDsmsEndpoint": "https://global-dsms.dsms.core.microsoft.scloud/dsms/issuercertificates" + } + }, + "signature": "" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CloudManifestFile/List.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CloudManifestFile/List.json new file mode 100644 index 000000000000..3ffcc0f671a6 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CloudManifestFile/List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.AzureStack/cloudManifestFiles/latest", + "name": "latest", + "type": "Microsoft.AzureStack/cloudManifestFiles", + "properties": { + "deploymentData": { + "externalDsmsCertificates": "", + "customCloudVerificationKey": "", + "customEnvironmentEndpoints": { + "customCloudArmEndpoint": "https://management.azure.microsoft.scloud/", + "externalDsmsEndpoint": "https://global-dsms.dsms.core.microsoft.scloud/dsms/issuercertificates" + } + }, + "signature": "" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Delete.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Delete.json new file mode 100644 index 000000000000..1360563dc984 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "customerSubscriptionName": "E09A4E93-29A7-4EBA-A6D4-76202383F07F", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Get.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Get.json new file mode 100644 index 000000000000..f69aceb39529 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Get.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "customerSubscriptionName": "E09A4E93-29A7-4EBA-A6D4-76202383F07F", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/customerSubscriptions/E09A4E93-29A7-4EBA-A6D4-76202383F07F", + "name": "testregistration/E09A4E93-29A7-4EBA-A6D4-76202383F07F", + "type": "Microsoft.AzureStack/registrations/customerSubscriptions", + "systemData": { + "createdBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "createdByType": "ManagedIdentity", + "createdAt": "2021-01-02T01:30:12.6941233+00:00", + "lastModifiedBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "lastModifiedByType": "ManagedIdentity", + "lastModifiedAt": "2021-01-02T01:30:12.6941233+00:00" + }, + "properties": { + "tenantId": "dbab3982-796f-4d03-9908-044c08aef8a2" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/List.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/List.json new file mode 100644 index 000000000000..43184b57799d --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/customerSubscriptions/E09A4E93-29A7-4EBA-A6D4-76202383F07F", + "name": "testregistration/E09A4E93-29A7-4EBA-A6D4-76202383F07F", + "type": "Microsoft.AzureStack/registrations/customerSubscriptions", + "properties": { + "tenantId": "dbab3982-796f-4d03-9908-044c08aef8a2" + } + } + ] + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Put.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Put.json new file mode 100644 index 000000000000..c94234fd2f55 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Put.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "customerSubscriptionName": "E09A4E93-29A7-4EBA-A6D4-76202383F07F", + "api-version": "2020-06-01-preview", + "customerCreationParameters": { + "properties": { + "tenantId": "dbab3982-796f-4d03-9908-044c08aef8a2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "", + "name": "", + "type": "", + "systemData": { + "createdBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "createdByType": "ManagedIdentity", + "createdAt": "2021-01-02T01:30:12.6941233+00:00", + "lastModifiedBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "lastModifiedByType": "ManagedIdentity", + "lastModifiedAt": "2021-01-02T01:30:12.6941233+00:00" + }, + "properties": { + "tenantId": "dbab3982-796f-4d03-9908-044c08aef8a2" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Delete.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Delete.json new file mode 100644 index 000000000000..7f195542e042 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "linkedSubscriptionName": "testlinkedsubscription", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Get.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Get.json new file mode 100644 index 000000000000..ef41eae8c897 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "linkedSubscriptionName": "testLinkedSubscription", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/linkedSubscriptions/testLinkedSubscription", + "name": "testLinkedSubscription", + "type": "Microsoft.AzureStack/linkedSubscriptions", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "location": "eastus", + "kind": "AzureStackHub", + "systemData": { + "createdBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "createdByType": "ManagedIdentity", + "createdAt": "2021-01-02T01:30:12.6941233+00:00", + "lastModifiedBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "lastModifiedByType": "ManagedIdentity", + "lastModifiedAt": "2021-01-02T01:30:12.6941233+00:00" + }, + "properties": { + "linkedSubscriptionId": "104fbb77-2b0e-476a-83de-65ad8acd1f0b", + "registrationResourceId": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration", + "deviceId": "31A23215-0001-4BC4-6043-5A4F1F92D262", + "deviceObjectId": "fdf80468-06f7-432f-b666-9df9786897f7", + "deviceLinkState": "Linked", + "lastConnectedTime": "2021-01-13T05:31:13.6941233+00:00", + "deviceConnectionStatus": "Offline" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/List.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/List.json new file mode 100644 index 000000000000..eb038b21b300 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/List.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/linkedSubscriptions/testLinkedSubscription", + "name": "testLinkedSubscription", + "type": "Microsoft.AzureStack/linkedSubscriptions", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "location": "eastus", + "kind": "AzureStackHub", + "systemData": { + "createdBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "createdByType": "ManagedIdentity", + "createdAt": "2021-01-02T01:30:12.6941233+00:00", + "lastModifiedBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "lastModifiedByType": "ManagedIdentity", + "lastModifiedAt": "2021-01-02T01:30:12.6941233+00:00" + }, + "properties": { + "linkedSubscriptionId": "104fbb77-2b0e-476a-83de-65ad8acd1f0b", + "registrationResourceId": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration", + "deviceId": "31A23215-0001-4BC4-6043-5A4F1F92D262", + "deviceObjectId": "fdf80468-06f7-432f-b666-9df9786897f7", + "deviceLinkState": "Linked", + "lastConnectedTime": "2021-01-13T05:31:13.6941233+00:00", + "deviceConnectionStatus": "Offline" + } + } + ] + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/ListBySubscription.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/ListBySubscription.json new file mode 100644 index 000000000000..385127cd54ba --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/ListBySubscription.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/linkedSubscriptions/testLinkedSubscription", + "name": "testLinkedSubscription", + "type": "Microsoft.AzureStack/linkedSubscriptions", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "location": "eastus", + "kind": "AzureStackHub", + "systemData": { + "createdBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "createdByType": "ManagedIdentity", + "createdAt": "2021-01-02T01:30:12.6941233+00:00", + "lastModifiedBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "lastModifiedByType": "ManagedIdentity", + "lastModifiedAt": "2021-01-02T01:30:12.6941233+00:00" + }, + "properties": { + "linkedSubscriptionId": "104fbb77-2b0e-476a-83de-65ad8acd1f0b", + "registrationResourceId": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration", + "deviceId": "31A23215-0001-4BC4-6043-5A4F1F92D262", + "deviceObjectId": "fdf80468-06f7-432f-b666-9df9786897f7", + "deviceLinkState": "Linked", + "lastConnectedTime": "2021-01-13T05:31:13.6941233+00:00", + "deviceConnectionStatus": "Offline" + } + } + ] + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Patch.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Patch.json new file mode 100644 index 000000000000..9771e310ce8f --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Patch.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "linkedSubscriptionName": "testLinkedSubscription", + "api-version": "2020-06-01-preview", + "resource": { + "properties": { + "linkedSubscriptionId": "104fbb77-2b0e-476a-83de-65ad8acd1f0b", + "registrationResourceId": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration" + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/linkedSubscriptions/testLinkedSubscription", + "name": "testLinkedSubscription", + "type": "Microsoft.AzureStack/linkedSubscriptions", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "location": "eastus", + "kind": "AzureStackHub", + "systemData": { + "createdBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "createdByType": "ManagedIdentity", + "createdAt": "2021-01-02T01:30:12.6941233+00:00", + "lastModifiedBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "lastModifiedByType": "ManagedIdentity", + "lastModifiedAt": "2021-01-02T01:30:12.6941233+00:00" + }, + "properties": { + "linkedSubscriptionId": "104fbb77-2b0e-476a-83de-65ad8acd1f0b", + "registrationResourceId": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration", + "deviceId": "31A23215-0001-4BC4-6043-5A4F1F92D262", + "deviceObjectId": "fdf80468-06f7-432f-b666-9df9786897f7", + "deviceLinkState": "Linked", + "lastConnectedTime": "2021-01-13T05:31:13.6941233+00:00", + "deviceConnectionStatus": "Offline" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Put.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Put.json new file mode 100644 index 000000000000..440c14353721 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Put.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "linkedSubscriptionName": "testLinkedSubscription", + "api-version": "2020-06-01-preview", + "resource": { + "properties": { + "linkedSubscriptionId": "104fbb77-2b0e-476a-83de-65ad8acd1f0b", + "registrationResourceId": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration" + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/linkedSubscriptions/testLinkedSubscription", + "name": "testLinkedSubscription", + "type": "Microsoft.AzureStack/linkedSubscriptions", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "location": "eastus", + "kind": "AzureStackHub", + "systemData": { + "createdBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "createdByType": "ManagedIdentity", + "createdAt": "2021-01-02T01:30:12.6941233+00:00", + "lastModifiedBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "lastModifiedByType": "ManagedIdentity", + "lastModifiedAt": "2021-01-02T01:30:12.6941233+00:00" + }, + "properties": { + "linkedSubscriptionId": "104fbb77-2b0e-476a-83de-65ad8acd1f0b", + "registrationResourceId": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration", + "deviceId": "31A23215-0001-4BC4-6043-5A4F1F92D262", + "deviceObjectId": "fdf80468-06f7-432f-b666-9df9786897f7", + "deviceLinkState": "Linked", + "lastConnectedTime": "2021-01-13T05:31:13.6941233+00:00", + "deviceConnectionStatus": "Offline" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/linkedSubscriptions/testLinkedSubscription", + "name": "testLinkedSubscription", + "type": "Microsoft.AzureStack/linkedSubscriptions", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "location": "eastus", + "kind": "AzureStackHub", + "systemData": { + "createdBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "createdByType": "ManagedIdentity", + "createdAt": "2021-01-02T01:30:12.6941233+00:00", + "lastModifiedBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "lastModifiedByType": "ManagedIdentity", + "lastModifiedAt": "2021-01-02T01:30:12.6941233+00:00" + }, + "properties": { + "linkedSubscriptionId": "104fbb77-2b0e-476a-83de-65ad8acd1f0b", + "registrationResourceId": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration", + "deviceId": "31A23215-0001-4BC4-6043-5A4F1F92D262", + "deviceObjectId": "fdf80468-06f7-432f-b666-9df9786897f7", + "deviceLinkState": "Linked", + "lastConnectedTime": "2021-01-13T05:31:13.6941233+00:00", + "deviceConnectionStatus": "Offline" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Operation/List.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Operation/List.json new file mode 100644 index 000000000000..0bb6c53e2d81 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Operation/List.json @@ -0,0 +1,132 @@ +{ + "parameters": { + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AzureStack/registrations/read", + "display": { + "provider": "Azure Stack Resource Provider", + "resource": "Azure Stack Registration", + "operation": "Get Azure Stack Registration", + "description": "Gets the properties of an Azure Stack registration" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/registrations/write", + "display": { + "provider": "Azure Stack Resource Provider", + "resource": "Azure Stack Registration", + "operation": "Create Azure Stack Registration", + "description": "Creates or updates an Azure Stack registration" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/registrations/delete", + "display": { + "provider": "Azure Stack Resource Provider", + "resource": "Azure Stack Registration", + "operation": "Delete Azure Stack Registration", + "description": "Deletes an Azure Stack registration" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/registrations/getActivationKey/action", + "display": { + "provider": "Azure Stack Resource Provider", + "resource": "Azure Stack Registration", + "operation": "Get Azure Stack Activation Key", + "description": "Gets the latest Azure Stack activation key" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/register/action", + "display": { + "provider": "Azure Stack Resource Provider", + "operation": "Register Subscription for Azure Stack", + "description": "Registers Subscription with Microsoft.AzureStack resource provider" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/registrations/products/read", + "display": { + "provider": "Azure Stack Resource Provider", + "resource": "Azure Stack Marketplace Product", + "operation": "Get Azure Stack Marketplace Product", + "description": "Gets the properties of an Azure Stack Marketplace product" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/registrations/products/listDetails/action", + "display": { + "provider": "Azure Stack Resource Provider", + "resource": "Azure Stack Marketplace Product", + "operation": "Get Azure Stack Marketplace Product Details", + "description": "Retrieves extended details for an Azure Stack Marketplace product" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/registrations/customerSubscriptions/read", + "display": { + "provider": "Azure Stack Resource Provider", + "resource": "Azure Stack Customer Subscription", + "operation": "Get Azure Stack Customer Subscription", + "description": "Gets the properties of an Azure Stack Customer Subscription" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/registrations/customerSubscriptions/write", + "display": { + "provider": "Azure Stack Resource Provider", + "resource": "Azure Stack Customer Subscription", + "operation": "Create Azure Stack Customer Subscription", + "description": "Creates or updates an Azure Stack Customer Subscription" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/registrations/customerSubscriptions/delete", + "display": { + "provider": "Azure Stack Resource Provider", + "resource": "Azure Stack Customer Subscription", + "operation": "Delete Azure Stack Customer Subscription", + "description": "Deletes an Azure Stack Customer Subscription" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/cloudManifestFiles/read", + "display": { + "provider": "Azure Stack Resource Provider.", + "resource": "Azure Stack Cloud Manifest File", + "operation": "Read Resource Provider Operations", + "description": "Gets the cloud specific manifest file." + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AzureStack/Operations/read", + "display": { + "provider": "Name of the Resource Provider.", + "resource": "Resource Type Display Name.", + "operation": "Read Resource Provider Operations", + "description": "The localized friendly description for the operation, as it should be shown to the user." + }, + "origin": "user,system" + } + ] + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/Get.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/Get.json new file mode 100644 index 000000000000..57d4fe8d8d55 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/Get.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "productName": "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "name": "testregistration/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "type": "Microsoft.AzureStack/registrations/products", + "systemData": { + "createdBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "createdByType": "ManagedIdentity", + "createdAt": "2021-01-02T01:30:12.6941233+00:00", + "lastModifiedBy": "7da744bc-e8f6-4396-a0a3-097b8df66e67", + "lastModifiedByType": "ManagedIdentity", + "lastModifiedAt": "2021-01-02T01:30:12.6941233+00:00" + }, + "properties": { + "displayName": "VM Access For Linux Extension", + "publisherDisplayName": "Microsoft Corp.", + "publisherIdentifier": "Microsoft.OSTCExtensions", + "offer": "", + "offerVersion": "", + "sku": "", + "vmExtensionType": "VMAccessForLinux", + "galleryItemIdentity": "Microsoft.VMAccessForLinux.1.4.7", + "iconUris": { + "large": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Large.png", + "wide": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Wide.png", + "medium": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Medium.png", + "small": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Small.png" + }, + "payloadLength": 46959, + "productKind": "virtualMachineExtension", + "productProperties": { + "version": "1.4.7" + } + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/GetPost.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/GetPost.json new file mode 100644 index 000000000000..ce1b354e5381 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/GetPost.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "productName": "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "name": "testregistration/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "VM Access For Linux Extension", + "publisherDisplayName": "Microsoft Corp.", + "publisherIdentifier": "Microsoft.OSTCExtensions", + "offer": "", + "offerVersion": "", + "sku": "", + "vmExtensionType": "VMAccessForLinux", + "galleryItemIdentity": "Microsoft.VMAccessForLinux.1.4.7", + "iconUris": { + "large": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Large.png", + "wide": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Wide.png", + "medium": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Medium.png", + "small": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Small.png" + }, + "payloadLength": 46959, + "productKind": "virtualMachineExtension", + "productProperties": { + "version": "1.4.7" + }, + "compatibility": { + "isCompatible": true, + "message": "", + "description": "", + "issues": [] + } + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/List.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/List.json new file mode 100644 index 000000000000..319bd9e1c4d2 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/List.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "name": "testregistration/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "VM Access For Linux Extension", + "publisherDisplayName": "Microsoft Corp.", + "publisherIdentifier": "Microsoft.OSTCExtensions", + "offer": "", + "offerVersion": "", + "sku": "", + "vmExtensionType": "VMAccessForLinux", + "galleryItemIdentity": "Microsoft.VMAccessForLinux.1.4.7", + "iconUris": { + "large": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Large.png", + "wide": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Wide.png", + "medium": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Medium.png", + "small": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Small.png" + }, + "payloadLength": 46959, + "productKind": "virtualMachineExtension", + "productProperties": { + "version": "1.4.7" + } + } + }, + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/dummysharepoint", + "name": "testregistration/dummysharepoint", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "Display name for dummy SharePoint", + "publisherDisplayName": "Publisher display name for dummy SharePoint", + "publisherIdentifier": "Katal", + "offer": "Dummy offer", + "offerVersion": "FakeProduct: offer version", + "sku": "Dummy sku", + "galleryItemIdentity": "Microsoft.SharePointServer2013Trial-ARM.1.0.3", + "iconUris": { + "hero": "https://extensions.azureedge.net/dummysharepoint/icons/Hero.png", + "large": "https://extensions.azureedge.net/dummysharepoint/icons/Large.png", + "wide": "https://extensions.azureedge.net/dummysharepoint/icons/Wide.png", + "medium": "https://extensions.azureedge.net/dummysharepoint/icons/Medium.png", + "small": "https://extensions.azureedge.net/dummysharepoint/icons/Small.png" + }, + "payloadLength": 4682158, + "productKind": "virtualMachine", + "productProperties": { + "version": "1.0.1" + } + } + }, + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/dummysharepointTest526", + "name": "testregistration/dummysharepointTest526", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "Display name for dummy SharePoint", + "publisherDisplayName": "Publisher display name for dummy SharePoint", + "publisherIdentifier": "Katal", + "offer": "Dummy offer", + "offerVersion": "FakeProduct: offer version", + "sku": "Dummy sku", + "galleryItemIdentity": "Microsoft.SharePointServer2013Trial-ARM.1.0.3", + "iconUris": { + "hero": "https://extensions.azureedge.net/dummysharepointTest526/icons/Hero.png", + "large": "https://extensions.azureedge.net/dummysharepointTest526/icons/Large.png", + "wide": "https://extensions.azureedge.net/dummysharepointTest526/icons/Wide.png", + "medium": "https://extensions.azureedge.net/dummysharepointTest526/icons/Medium.png", + "small": "https://extensions.azureedge.net/dummysharepointTest526/icons/Small.png" + }, + "payloadLength": 4682158, + "productKind": "virtualMachine", + "productProperties": { + "version": "2.0.2" + } + } + }, + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d", + "name": "testregistration/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "Display name for dummy SharePoint", + "publisherDisplayName": "Publisher display name for dummy SharePoint", + "publisherIdentifier": "Katal", + "offer": "Dummy offer", + "offerVersion": "FakeProduct: offer version", + "sku": "Dummy sku", + "galleryItemIdentity": "Microsoft.SharePointServer2013Trial-ARM.1.0.3", + "iconUris": { + "hero": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Hero.png", + "large": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Large.png", + "wide": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Wide.png", + "medium": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Medium.png", + "small": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Small.png" + }, + "payloadLength": 4682158, + "productKind": "virtualMachine", + "productProperties": { + "version": "1.0.1" + } + } + }, + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/wordpress4-4", + "name": "testregistration/wordpress4-4", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "WordPress", + "publisherDisplayName": "WordPress", + "publisherIdentifier": "bitnami", + "offer": "wordpress", + "offerVersion": "1.0.8", + "sku": "4-4", + "galleryItemIdentity": "bitnami.wordpress4-4.1.0.8", + "iconUris": { + "hero": "https://extensions.azureedge.net/wordpress4-4/icons/Hero.png", + "large": "https://extensions.azureedge.net/wordpress4-4/icons/Large.png", + "wide": "https://extensions.azureedge.net/wordpress4-4/icons/Wide.png", + "medium": "https://extensions.azureedge.net/wordpress4-4/icons/Medium.png", + "small": "https://extensions.azureedge.net/wordpress4-4/icons/Small.png" + }, + "payloadLength": 32212604365, + "productKind": "virtualMachine", + "productProperties": { + "version": "4.5.31" + } + } + } + ] + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/ListPost.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/ListPost.json new file mode 100644 index 000000000000..f776aaa56101 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/ListPost.json @@ -0,0 +1,179 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "productName": "_all", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "name": "testregistration/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "VM Access For Linux Extension", + "publisherDisplayName": "Microsoft Corp.", + "publisherIdentifier": "Microsoft.OSTCExtensions", + "offer": "", + "offerVersion": "", + "sku": "", + "vmExtensionType": "VMAccessForLinux", + "galleryItemIdentity": "Microsoft.VMAccessForLinux.1.4.7", + "iconUris": { + "large": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Large.png", + "wide": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Wide.png", + "medium": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Medium.png", + "small": "https://extensions.azureedge.net/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/icons/Small.png" + }, + "payloadLength": 46959, + "productKind": "virtualMachineExtension", + "productProperties": { + "version": "1.4.7" + }, + "compatibility": { + "isCompatible": true, + "message": "", + "description": "", + "issues": [] + } + } + }, + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/dummysharepoint", + "name": "testregistration/dummysharepoint", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "Display name for dummy SharePoint", + "publisherDisplayName": "Publisher display name for dummy SharePoint", + "publisherIdentifier": "Katal", + "offer": "Dummy offer", + "offerVersion": "FakeProduct: offer version", + "sku": "Dummy sku", + "galleryItemIdentity": "Microsoft.SharePointServer2013Trial-ARM.1.0.3", + "iconUris": { + "hero": "https://extensions.azureedge.net/dummysharepoint/icons/Hero.png", + "large": "https://extensions.azureedge.net/dummysharepoint/icons/Large.png", + "wide": "https://extensions.azureedge.net/dummysharepoint/icons/Wide.png", + "medium": "https://extensions.azureedge.net/dummysharepoint/icons/Medium.png", + "small": "https://extensions.azureedge.net/dummysharepoint/icons/Small.png" + }, + "payloadLength": 4682158, + "productKind": "virtualMachine", + "productProperties": { + "version": "1.0.1" + }, + "compatibility": { + "isCompatible": true, + "message": "", + "description": "", + "issues": [] + } + } + }, + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/dummysharepointTest526", + "name": "testregistration/dummysharepointTest526", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "Display name for dummy SharePoint", + "publisherDisplayName": "Publisher display name for dummy SharePoint", + "publisherIdentifier": "Katal", + "offer": "Dummy offer", + "offerVersion": "FakeProduct: offer version", + "sku": "Dummy sku", + "galleryItemIdentity": "Microsoft.SharePointServer2013Trial-ARM.1.0.3", + "iconUris": { + "hero": "https://extensions.azureedge.net/dummysharepointTest526/icons/Hero.png", + "large": "https://extensions.azureedge.net/dummysharepointTest526/icons/Large.png", + "wide": "https://extensions.azureedge.net/dummysharepointTest526/icons/Wide.png", + "medium": "https://extensions.azureedge.net/dummysharepointTest526/icons/Medium.png", + "small": "https://extensions.azureedge.net/dummysharepointTest526/icons/Small.png" + }, + "payloadLength": 4682158, + "productKind": "virtualMachine", + "productProperties": { + "version": "2.0.2" + }, + "compatibility": { + "isCompatible": true, + "message": "", + "description": "", + "issues": [] + } + } + }, + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d", + "name": "testregistration/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "Display name for dummy SharePoint", + "publisherDisplayName": "Publisher display name for dummy SharePoint", + "publisherIdentifier": "Katal", + "offer": "Dummy offer", + "offerVersion": "FakeProduct: offer version", + "sku": "Dummy sku", + "galleryItemIdentity": "Microsoft.SharePointServer2013Trial-ARM.1.0.3", + "iconUris": { + "hero": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Hero.png", + "large": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Large.png", + "wide": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Wide.png", + "medium": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Medium.png", + "small": "https://extensions.azureedge.net/test.product.976fe55e-6921-47bb-b8ba-718bba70c72d/icons/Small.png" + }, + "payloadLength": 4682158, + "productKind": "virtualMachine", + "productProperties": { + "version": "1.0.1" + }, + "compatibility": { + "isCompatible": true, + "message": "", + "description": "", + "issues": [] + } + } + }, + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration/products/wordpress4-4", + "name": "testregistration/wordpress4-4", + "type": "Microsoft.AzureStack/registrations/products", + "properties": { + "displayName": "WordPress", + "publisherDisplayName": "WordPress", + "publisherIdentifier": "bitnami", + "offer": "wordpress", + "offerVersion": "1.0.8", + "sku": "4-4", + "galleryItemIdentity": "bitnami.wordpress4-4.1.0.8", + "iconUris": { + "hero": "https://extensions.azureedge.net/wordpress4-4/icons/Hero.png", + "large": "https://extensions.azureedge.net/wordpress4-4/icons/Large.png", + "wide": "https://extensions.azureedge.net/wordpress4-4/icons/Wide.png", + "medium": "https://extensions.azureedge.net/wordpress4-4/icons/Medium.png", + "small": "https://extensions.azureedge.net/wordpress4-4/icons/Small.png" + }, + "payloadLength": 32212604365, + "productKind": "virtualMachine", + "productProperties": { + "version": "4.5.31" + }, + "compatibility": { + "isCompatible": false, + "message": "AzureStack version '1910.0.0.0' is too low. Versions lower than '1911.0.0.0' are not supported", + "description": "AzureStack version '1910.0.0.0' is too low. Versions lower than '1911.0.0.0' are not supported", + "issues": [ + "HigherDeviceVersionRequired" + ] + } + } + } + ] + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/Post.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/Post.json new file mode 100644 index 000000000000..4ce199a0269d --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/Post.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "productName": "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "galleryPackageBlobSasUri": "", + "productKind": "virtualMachineExtension", + "properties": { + "version": "1.4.7", + "vmOsType": "Linux", + "sourceBlob": { + "uri": "https://azstrptestwcu001.blob.core.windows.net/packages/Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1/extension/vmext.zip?sv=2015-04-05&sr=b&sig=XtLzuO2rlqxyZOzfoTEDZW4DU9OxBZVCOw%2FVgY2%2FiUo%3D&se=2018-02-13T10%3A46%3A24Z&sp=r" + }, + "computeRole": "IaaS", + "vmScaleSetEnabled": false, + "supportMultipleExtensions": false, + "isSystemExtension": false + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/UploadLog.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/UploadLog.json new file mode 100644 index 000000000000..194f4300f950 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/UploadLog.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "productName": "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "details": "ExampleDetails", + "endDate": "01-02-2019 00:00:00", + "error": "ExampleError", + "operation": "Download", + "productId": "dummyProduct-1.1", + "registrationName": "TestCIRegistration007", + "resourceGroupName": "AzureStack007", + "startDate": "01-01-2019 00:00:00", + "status": "Failed", + "subscriptionId": "64D0A64B4F694EB4B0ED92BC34D98082" + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Delete.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Delete.json new file mode 100644 index 000000000000..bf659f62c72b --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Get.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Get.json new file mode 100644 index 000000000000..8c396fa35eab --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration", + "name": "azurestack", + "type": "Microsoft.AzureStack/registrations", + "location": "global", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "properties": { + "objectId": "9e9704ab-561a-4498-ac60-64b2314456ee", + "billingModel": "Development" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/List.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/List.json new file mode 100644 index 000000000000..bc386ca07e64 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/List.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration", + "name": "testregistration", + "type": "Microsoft.AzureStack/registrations", + "location": "global", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "properties": { + "objectId": "9e9704ab-561a-4498-ac60-64b2314456ee", + "billingModel": "Development" + } + } + ] + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Patch.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Patch.json new file mode 100644 index 000000000000..ec91324a1f37 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Patch.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "api-version": "2020-06-01-preview", + "token": { + "properties": { + "registrationToken": "EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9" + }, + "location": "global" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration", + "name": "testregistration", + "type": "Microsoft.AzureStack/registrations", + "location": "global", + "tags": { + "key1": "value1" + }, + "etag": "\"0e00ab2b-0000-0000-0000-5a82517f0000\"", + "properties": { + "cloudId": "5bf881b2-6be7-42a1-9f47-d6fcb6737747", + "objectId": "2dbdd5f4-daf3-442a-be35-b71c3debee5a", + "billingModel": "Development" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Post.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Post.json new file mode 100644 index 000000000000..81e625e9503d --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Post.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "activationKey": "EYJRawQioiIzyzkYoDA2zJRJotc0Odg1oDHLM2zIYJfJmTzkYmQ2yYISiCjHbgCIoIjsuZi1niJ9.EyjZDWjzy3JPchrpB25JzcI6iJKWmdfmMZZLltqXzguTngVKYi05oTEZLTc4MGZhnWQWnMiZnIIsiNJLC291CMNLR3JVdXBOyw1LijoiDgVzDciSinjLZ2lZdHJHDGLvbK5hBwuIoijheNN0zxN0czU2mTyilCJjzXJ0UglUbmLuz1JvB3RtDWjqZWn0CyI6WYJDtj1cywx0Aw1vCMugq3liZXJucNvZDCBSB290LCbpVT1dEWJlCLrYdXn0LCbPpuJhBHRPBw9yzSwGqz1JrsJdlcJJZXJ0UglUBMlUZ0ludGvYBwvKawf0zvroDw1iChJPbnRziJpbiJQxN0uYmjUWmZDgQKZBqtrgOTU3NjFeNUfFnzi5RTfBRue3rTNBndiIlCi1neq5rdIWmJM5MdGwqzMYmzE2RuQ5RKY5oDbbnDg5ODHgNeFERjjEiIwiOEEzodc1nuqWotK2ODizRKU4RKezMtE2QtI3N0nfnDQ2rUfdnEu5osisiKFeodk4Qum3M0RgMZMZRUi2mEfDMUy1rKm2QZRcmjiXoUrEQjc5qJCILCI5n0vgrJMWmjg2NZC4oTrcREq0RjLbQzUzrjC4ouJfrTvErJrBrdg2IIWIOTq4rTe2ntI1odYyNdbEndUZMJG3Qui2OuNBrUi4RjJgNEyWmJExnYjdLCJ1c2FnzuVuZhbVaW50IjoIAhr0Chm6Ly9HEnn0DxnndgvzDHdJDtaWMs50cMFMzmLjbwFUywdlCI5UZxQilcjtYxjRZXRwbgFJzUvUzhBVAw50IJoiahR0chm6Ly9tyw5hZ2vTZw50LMf6dxJllMNVBsIsiNVzywdLUMvzb3VyY2VVcmKioIJODHRWczoVl3VzYWDllM1pY3jVC29MdGF6dXJLC3rhy2sUy29tiIwIbwfya2v0cgxhy2vsZxnvdxjJzvvYaSI6imh0dHbzOI8vBWfya2V0CgXhy2uubWLjCm9zb2z0YXp1CmVZdgFjAY5JB20IlcJleHBpCMvzIjoioTk5oS0xMi0zmFQyMzo1OTo1OS45OtK5OTk5wiiSiMNsB3vKswQIoIi2otQ2NDg5ns0ZYTfHLtQ1mgeTotGyNC00yjc2mdhKoTIWM2YIlcJvYMplY3RjzcI6IjvIM2iWNMe4lTljnmmTNdG4OC05ZWiZlWU4y2Rhy2U3NdC5NSisimJPBGxPBmDnb2rlBcI6IKrLdmvsB3btZW50iiWIAGFyzHDHcmvjbMZvijPbEYJUYW1LijoISEMxDTe1YTAYmTIilcj1dwLKiJOINWM5mwu3njyTmjU5Os00oTiwLwi0oDmTNgzhoTiwM2rJYtcxIIWIbnVtq29YZxMIOJISImJpb3MioLsiM2RKMMEwmDDHmtk0nDMwNDhiZmRMyJK4MzC5NjdlY2YiXswibmljIJPBIMvlnjrlmMmXzMRjyzQ5Y2u4n2UXYZzlMZrIzmrimzBhiiwImdc2oWexn2vjzdg2ngM1YwjlnzVJmjLKZjM4mzdjzwMIXSWIy3b1iJpbIjy4Ntm5mgJJzGE0mDRiZgq5ytHhOtK5MGvLZgNkzjM0iiwiMzi3nzGzzWy3n2I4NgqzyJLhmWqYOwe0NzvKOGvLyzuixsWizglzayI6WYI5y2VmNwe3MZU5nDQ0nTc2ymu3yzdmYwnmzJmXmmflmiiSIMvmowyZmMEXZwfhodQ1ntq5ndM1zTUwmDqZMGJhmwnIIL0sIm1LBW9YesI6wyIwMMQwnznHYZC1NGE0ZmuxYTG5mwqzZDhMoWUWMgq2MSISijC3MGU4ZTQ0ODk0YZQwM2RiOTBMZWE2nWYWOwqxyjZkiL19XswidXNhz2vSZXbvCnrpBMDFbMFibGVKijPmyWxzzSwIBWfYa2V0CgXhy2VTEW5KAWNhdgLVBKvuywjszwqIOnryDwUsiMLZC3vlCii6INnvBwvvbMUILcJ2ZXJzaw9uIJOims4WIn0.NkqXrYRthQij4vCeR06SRCIkl44HIRzH8SyOH7za8cm_ObTWk4ZPls_SPYDqQXsOC-SdWUFf1-zbYLbXHSNWpIM_Z6NF2WgMceW78ynPf96sxX9o2R8zcUFf16O0IFqb4SJAlD_JZAsQrdQuC4JkA1AjLFjE4NkTVdxAumK61Ie31C91Nlkqzqyv6cjzoFaj9ybrBu_lTR9-7GR8RxPfpwgNdScRo6VbDQcne8y45PEujA0x-vugmoXjCA7ONM1Z5A2iidzzLEXpHjGHZ5qLMkaQkaN0DimgXw19GlWTFUjDY4JhfEptLdIRlOEpJGn4pmyIYktvHO2W2u5SLcIWha" + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Put.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Put.json new file mode 100644 index 000000000000..f6885ba0a85b --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Put.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "api-version": "2020-06-01-preview", + "token": { + "properties": { + "registrationToken": "EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9" + }, + "location": "global" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration", + "name": "testregistration", + "type": "Microsoft.AzureStack/registrations", + "location": "global", + "etag": "\"0e00ab2b-0000-0000-0000-5a82517f0000\"", + "properties": { + "cloudId": "5bf881b2-6be7-42a1-9f47-d6fcb6737747", + "objectId": "2dbdd5f4-daf3-442a-be35-b71c3debee5a", + "billingModel": "Development" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration", + "name": "testregistration", + "type": "Microsoft.AzureStack/registrations", + "location": "global", + "etag": "\"0e00ab2b-0000-0000-0000-5a82517f0000\"", + "properties": { + "cloudId": "5bf881b2-6be7-42a1-9f47-d6fcb6737747", + "objectId": "2dbdd5f4-daf3-442a-be35-b71c3debee5a", + "billingModel": "Development" + } + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/RemoteManagement/Post.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/RemoteManagement/Post.json new file mode 100644 index 000000000000..e4e56a6213b6 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/RemoteManagement/Post.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "resourceGroup": "azurestack", + "registrationName": "testregistration", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": {} + } +} diff --git a/specification/azurestack/resource-manager/readme.md b/specification/azurestack/resource-manager/readme.md index 34aec4212656..e2afadc035ae 100644 --- a/specification/azurestack/resource-manager/readme.md +++ b/specification/azurestack/resource-manager/readme.md @@ -4,16 +4,16 @@ This is the AutoRest configuration file for Azure Stack. - The Azure Stack RP comprises of small services where each service has its own tag. Hence, each sub-service has its own swagger spec. All of them are tied together using this configuration and are packaged together into one Azure Stack client library. This makes it easier for customers to download one (NuGet/npm/pip/maven/gem) Azure Stack client library package rather than installing individual packages for each sub service. - --- + ## Getting Started + To build the SDK for Azure Stack, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -21,21 +21,35 @@ To build the SDK for Azure Stack, simply [Install AutoRest](https://aka.ms/autor To see additional help and options, run: > `autorest --help` + --- ## Configuration - ### Basic Information + These are the global settings for the Azure Stack API. ``` yaml title: AzureStackManagementClient description: Azure Stack openapi-type: arm -tag: package-2017-06-01 +tag: package-preview-2020-06 ``` + +### Tag: package-preview-2020-06 + +These settings apply only when `--tag=package-preview-2020-06` is specified on the command line. + +```yaml $(tag) == 'package-preview-2020-06' +input-file: + - Microsoft.AzureStack/preview/2020-06-01-preview/AzureStack.json + - Microsoft.AzureStack/preview/2020-06-01-preview/CustomerSubscription.json + - Microsoft.AzureStack/preview/2020-06-01-preview/Product.json + - Microsoft.AzureStack/preview/2020-06-01-preview/Registration.json + - Microsoft.AzureStack/preview/2020-06-01-preview/LinkedSubscription.json +``` ### Tag: package-2017-06-01 These settings apply only when `--tag=package-2017-06-01` is specified on the command line. @@ -51,6 +65,7 @@ input-file: --- ### Validations + Run validations when `--validate` is specified on command line ``` yaml $(validate) @@ -61,6 +76,7 @@ message-format: json ``` --- + # Code Generation ## Swagger to SDK @@ -138,8 +154,6 @@ generate-interface: true See configuration in [readme.python.md](./readme.python.md) - ## AzureResourceSchema See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) -