From 5f186bf8e1ee41ca0145716b931f61620308e8ab Mon Sep 17 00:00:00 2001 From: "Jocelyn Berrendonner [MSFT]" Date: Fri, 4 Mar 2022 16:52:31 -0800 Subject: [PATCH 01/43] Adds base for updating Microsoft.AzureStackHCI from version preview/2021-01-01-preview to version 2021-07-01-preview --- .../2021-07-01-preview/arcSettings.json | 379 ++++++++++++ .../preview/2021-07-01-preview/clusters.json | 557 ++++++++++++++++++ .../examples/CreateCluster.json | 46 ++ .../examples/DeleteArcSetting.json | 14 + .../examples/DeleteCluster.json | 12 + .../examples/DeleteExtension.json | 15 + .../examples/GetArcSetting.json | 42 ++ .../examples/GetCluster.json | 81 +++ .../examples/GetExtension.json | 52 ++ .../examples/ListArcSettingsByCluster.json | 45 ++ .../examples/ListClustersByResourceGroup.json | 110 ++++ .../examples/ListClustersBySubscription.json | 109 ++++ .../examples/ListExtensionsByArcSetting.json | 93 +++ .../examples/PatchExtension.json | 64 ++ .../examples/PutArcSetting.json | 43 ++ .../examples/PutExtension.json | 107 ++++ .../examples/UpdateCluster.json | 90 +++ .../2021-07-01-preview/extensions.json | 500 ++++++++++++++++ .../2021-07-01-preview/operations.json | 68 +++ 19 files changed, 2427 insertions(+) create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json new file mode 100644 index 000000000000..6b01d85d5b2b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json @@ -0,0 +1,379 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-01-01-preview", + "title": "AzureStackHCI", + "description": "Azure Stack HCI management service" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings": { + "get": { + "operationId": "ArcSettings_ListByCluster", + "description": "Get ArcSetting resources of HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArcSettingList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List ArcSetting resources by HCI Cluster": { + "$ref": "./examples/ListArcSettingsByCluster.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}": { + "get": { + "operationId": "ArcSettings_Get", + "description": "Get ArcSetting resource details of HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArcSetting" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get ArcSetting": { + "$ref": "./examples/GetArcSetting.json" + } + } + }, + "put": { + "operationId": "ArcSettings_Create", + "description": "Create ArcSetting for HCI cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "name": "arcSetting", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ArcSetting" + }, + "description": "Parameters supplied to the Create ArcSetting resource for this HCI cluster." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArcSetting" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create ArcSetting": { + "$ref": "./examples/PutArcSetting.json" + } + } + }, + "delete": { + "operationId": "ArcSettings_Delete", + "description": "Delete ArcSetting resource details of HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "OK" + }, + "204": { + "description": "No content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Delete ArcSetting": { + "$ref": "./examples/DeleteArcSetting.json" + } + } + } + } + }, + "definitions": { + "ArcSettingList": { + "description": "List of ArcSetting proxy resources for the HCI cluster.", + "type": "object", + "properties": { + "value": { + "description": "List of ArcSetting proxy resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ArcSetting" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "ArcSetting": { + "description": "ArcSetting details.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "systemData": { + "description": "System data of ArcSetting resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "x-ms-client-flatten": true, + "readOnly": true + }, + "properties": { + "description": "ArcSetting properties.", + "$ref": "#/definitions/ArcSettingProperties", + "x-ms-client-flatten": true + } + } + }, + "ArcSettingProperties": { + "description": "ArcSetting properties.", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the ArcSetting proxy resource.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "readOnly": true + }, + "arcInstanceResourceGroup": { + "description": "The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.", + "type": "string", + "readOnly": true + }, + "aggregateState": { + "description": "Aggregate state of Arc agent across the nodes in this HCI cluster.", + "type": "string", + "enum": [ + "NotSpecified", + "Error", + "Succeeded", + "Canceled", + "Failed", + "Connected", + "Disconnected", + "Deleted", + "Creating", + "Updating", + "Deleting", + "Moving", + "PartiallySucceeded", + "PartiallyConnected", + "InProgress" + ], + "x-ms-enum": { + "name": "ArcSettingAggregateState", + "modelAsString": true + }, + "readOnly": true + }, + "perNodeDetails": { + "description": "State of Arc agent in each of the nodes.", + "type": "array", + "items": { + "$ref": "#/definitions/PerNodeState" + }, + "readOnly": true + } + } + }, + "PerNodeState": { + "description": "Status of Arc agent for a particular node in HCI Cluster.", + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "Name of the Node in HCI Cluster" + }, + "arcInstance": { + "description": "Fully qualified resource ID for the Arc agent of this node.", + "type": "string", + "readOnly": true + }, + "state": { + "description": "State of Arc agent in this node.", + "type": "string", + "enum": [ + "NotSpecified", + "Error", + "Succeeded", + "Canceled", + "Failed", + "Connected", + "Disconnected", + "Deleted", + "Creating", + "Updating", + "Deleting", + "Moving" + ], + "x-ms-enum": { + "name": "NodeArcState", + "modelAsString": true + }, + "readOnly": true + } + } + } + }, + "parameters": { + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cluster.", + "x-ms-parameter-location": "method" + }, + "ArcSettingNameParameter": { + "name": "arcSettingName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the proxy resource holding details of HCI ArcSetting information.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json new file mode 100644 index 000000000000..bcfe0418f8e6 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json @@ -0,0 +1,557 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-01-01-preview", + "title": "AzureStackHCI", + "description": "Azure Stack HCI management service" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/clusters": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_ListBySubscription", + "x-ms-examples": { + "List clusters in a given subscription": { + "$ref": "./examples/ListClustersBySubscription.json" + } + }, + "description": "List all HCI clusters in a subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_ListByResourceGroup", + "x-ms-examples": { + "List clusters in a given resource group": { + "$ref": "./examples/ListClustersByResourceGroup.json" + } + }, + "description": "List all HCI clusters in a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Get", + "x-ms-examples": { + "Get cluster": { + "$ref": "./examples/GetCluster.json" + } + }, + "description": "Get HCI cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Create", + "x-ms-examples": { + "Create cluster": { + "$ref": "./examples/CreateCluster.json" + } + }, + "description": "Create an HCI cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "cluster", + "in": "body", + "description": "Details of the HCI cluster.", + "required": true, + "schema": { + "$ref": "#/definitions/Cluster" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Update", + "x-ms-examples": { + "Update cluster": { + "$ref": "./examples/UpdateCluster.json" + } + }, + "description": "Update an HCI cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "cluster", + "in": "body", + "description": "Details of the HCI cluster.", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterPatch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Delete", + "x-ms-examples": { + "Delete cluster": { + "$ref": "./examples/DeleteCluster.json" + } + }, + "description": "Delete an HCI cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "ClusterList": { + "description": "List of clusters.", + "type": "object", + "properties": { + "value": { + "description": "List of clusters.", + "type": "array", + "items": { + "$ref": "#/definitions/Cluster" + } + }, + "nextLink": { + "description": "Link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "Cluster": { + "description": "Cluster details.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "systemData": { + "description": "System data of Cluster resource", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "x-ms-client-flatten": true, + "readOnly": true + }, + "properties": { + "description": "Cluster properties.", + "$ref": "#/definitions/ClusterProperties", + "x-ms-client-flatten": true + } + } + }, + "ClusterPatch": { + "description": "Cluster details to update.", + "type": "object", + "properties": { + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "Cluster properties.", + "$ref": "#/definitions/ClusterPatchProperties", + "x-ms-client-flatten": true + } + } + }, + "ClusterProperties": { + "description": "Cluster properties.", + "type": "object", + "required": [ + "aadClientId", + "aadTenantId" + ], + "properties": { + "provisioningState": { + "description": "Provisioning state.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "readOnly": true + }, + "status": { + "description": "Status of the cluster agent.", + "type": "string", + "enum": [ + "NotYetRegistered", + "ConnectedRecently", + "NotConnectedRecently", + "Disconnected", + "Error" + ], + "x-ms-enum": { + "name": "Status", + "modelAsString": true + }, + "readOnly": true + }, + "cloudId": { + "description": "Unique, immutable resource id.", + "type": "string", + "readOnly": true + }, + "cloudManagementEndpoint": { + "type": "string", + "description": "Endpoint configured for management from the Azure portal" + }, + "aadClientId": { + "description": "App id of cluster AAD identity.", + "type": "string" + }, + "aadTenantId": { + "description": "Tenant id of cluster AAD identity.", + "type": "string" + }, + "reportedProperties": { + "description": "Properties reported by cluster agent.", + "$ref": "#/definitions/ClusterReportedProperties", + "readOnly": true + }, + "trialDaysRemaining": { + "description": "Number of days remaining in the trial period.", + "type": "number", + "readOnly": true + }, + "billingModel": { + "description": "Type of billing applied to the resource.", + "type": "string", + "readOnly": true + }, + "registrationTimestamp": { + "description": "First cluster sync timestamp.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "lastSyncTimestamp": { + "description": "Most recent cluster sync timestamp.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "lastBillingTimestamp": { + "description": "Most recent billing meter timestamp.", + "type": "string", + "format": "date-time", + "readOnly": true + } + } + }, + "ClusterPatchProperties": { + "description": "Cluster properties.", + "type": "object", + "properties": { + "cloudManagementEndpoint": { + "type": "string", + "description": "Endpoint configured for management from the Azure portal" + } + } + }, + "ClusterReportedProperties": { + "description": "Properties reported by cluster agent.", + "type": "object", + "properties": { + "clusterName": { + "description": "Name of the on-prem cluster connected to this resource.", + "type": "string", + "readOnly": true + }, + "clusterId": { + "description": "Unique id generated by the on-prem cluster.", + "type": "string", + "readOnly": true + }, + "clusterVersion": { + "description": "Version of the cluster software.", + "type": "string", + "readOnly": true + }, + "nodes": { + "description": "List of nodes reported by the cluster.", + "type": "array", + "items": { + "$ref": "#/definitions/ClusterNode" + }, + "readOnly": true + }, + "lastUpdated": { + "description": "Last time the cluster reported the data.", + "type": "string", + "format": "date-time", + "readOnly": true + } + } + }, + "ClusterNode": { + "description": "Cluster node details.", + "type": "object", + "properties": { + "name": { + "description": "Name of the cluster node.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Id of the node in the cluster.", + "type": "number", + "readOnly": true + }, + "manufacturer": { + "description": "Manufacturer of the cluster node hardware.", + "type": "string", + "readOnly": true + }, + "model": { + "description": "Model name of the cluster node hardware.", + "type": "string", + "readOnly": true + }, + "osName": { + "description": "Operating system running on the cluster node.", + "type": "string", + "readOnly": true + }, + "osVersion": { + "description": "Version of the operating system running on the cluster node.", + "type": "string", + "readOnly": true + }, + "serialNumber": { + "description": "Immutable id of the cluster node.", + "type": "string", + "readOnly": true + }, + "coreCount": { + "description": "Number of physical cores on the cluster node.", + "type": "number", + "readOnly": true + }, + "memoryInGiB": { + "description": "Total available memory on the cluster node (in GiB).", + "type": "number", + "readOnly": true + } + } + } + }, + "parameters": { + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cluster.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json new file mode 100644 index 000000000000..edb831c4487c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-01-01-preview", + "cluster": { + "location": "East US", + "properties": { + "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", + "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", + "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster", + "name": "myCluster", + "type": "Microsoft.AzureStackHCI/clusters", + "location": "East US", + "tags": {}, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "a3c0468f-e38e-4dda-ac48-817f620536f0", + "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", + "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", + "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", + "reportedProperties": {}, + "trialDaysRemaining": 30, + "billingModel": "Trial" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json new file mode 100644 index 000000000000..33dea5921c34 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json new file mode 100644 index 000000000000..38424d9081e8 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json new file mode 100644 index 000000000000..c8e6f345ed2c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "extensionName": "MicrosoftMonitoringAgent", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json new file mode 100644 index 000000000000..9e69a057c1a4 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default", + "type": "Microsoft.AzureStackHCI/clusters/arcSettings", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "ArcInstance-rg", + "aggregateState": "PartiallyConnected", + "perNodeDetails": [ + { + "name": "Node-1", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1", + "state": "Connected" + }, + { + "name": "Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2", + "state": "Disconnected" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json new file mode 100644 index 000000000000..693b2636ba04 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster", + "name": "myCluster", + "type": "Microsoft.AzureStackHCI/clusters", + "location": "East US", + "tags": {}, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "ConnectedRecently", + "cloudId": "a3c0468f-e38e-4dda-ac48-817f620536f0", + "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", + "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", + "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", + "reportedProperties": { + "clusterName": "cluster1", + "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", + "clusterVersion": "10.0.17777", + "nodes": [ + { + "name": "Node1", + "id": 1, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q45CZC3", + "coreCount": 8, + "memoryInGiB": 128 + }, + { + "name": "Node2", + "id": 2, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q44BSC3", + "coreCount": 8, + "memoryInGiB": 128 + }, + { + "name": "Node3", + "id": 3, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q44RFC3", + "coreCount": 16, + "memoryInGiB": 256 + } + ], + "lastUpdated": "2020-03-11T19:24:42.1946017Z" + }, + "trialDaysRemaining": 30, + "billingModel": "Trial", + "registrationTimestamp": "2020-03-11T20:44:32.5625121Z", + "lastSyncTimestamp": "2020-03-11T20:44:32.5625121Z", + "lastBillingTimestamp": "2020-03-12T08:12:55.2312022Z" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json new file mode 100644 index 000000000000..56d8fe6308dc --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "extensionName": "MicrosoftMonitoringAgent", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "extensionParameters": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "xx" + } + }, + "aggregateState": "PartiallySucceeded", + "perNodeExtensionDetails": [ + { + "name": "Node-1", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Succeeded" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "state": "Failed" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json new file mode 100644 index 000000000000..f16546b83095 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default", + "type": "Microsoft.AzureStackHCI/clusters/arcSettings", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "ArcInstance-rg", + "aggregateState": "PartiallyConnected", + "perNodeDetails": [ + { + "name": "Node-1", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1", + "state": "Connected" + }, + { + "name": "Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2", + "state": "Disconnected" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json new file mode 100644 index 000000000000..c0c5fc6ac4c6 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster1", + "name": "myCluster1", + "type": "Microsoft.AzureStackHCI/clusters", + "location": "East US", + "tags": {}, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "91c2b355-4826-4e96-9164-e3f26dcf1cdd", + "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", + "aadClientId": "515da1c2-379e-49b4-9975-09e3e40c86be", + "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", + "reportedProperties": {}, + "trialDaysRemaining": 29, + "billingModel": "Trial" + } + }, + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster2", + "name": "myCluster2", + "type": "Microsoft.AzureStackHCI/clusters", + "location": "East US", + "tags": {}, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "ConnectedRecently", + "cloudId": "a3c0468f-e38e-4dda-ac48-817f620536f0", + "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", + "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", + "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", + "reportedProperties": { + "clusterName": "cluster1", + "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", + "clusterVersion": "10.0.17777", + "nodes": [ + { + "name": "Node1", + "id": 0, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q45CZC3", + "coreCount": 8, + "memoryInGiB": 128 + }, + { + "name": "Node2", + "id": 1, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q44BSC3", + "coreCount": 8, + "memoryInGiB": 128 + }, + { + "name": "Node3", + "id": 2, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q44RFC3", + "coreCount": 16, + "memoryInGiB": 256 + } + ], + "lastUpdated": "2020-03-11T19:24:42.1946017Z" + }, + "trialDaysRemaining": 30, + "billingModel": "Trial", + "registrationTimestamp": "2020-03-11T20:44:32.5625121Z", + "lastSyncTimestamp": "2020-03-11T20:44:32.5625121Z", + "lastBillingTimestamp": "2020-03-12T08:12:55.2312022Z" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json new file mode 100644 index 000000000000..de736bc9c1de --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg1/providers/Microsoft.AzureStackHCI/clusters/myCluster1", + "name": "myCluster1", + "type": "Microsoft.AzureStackHCI/clusters", + "location": "East US", + "tags": {}, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "91c2b355-4826-4e96-9164-e3f26dcf1cdd", + "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", + "aadClientId": "515da1c2-379e-49b4-9975-09e3e40c86be", + "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", + "reportedProperties": {}, + "trialDaysRemaining": 29, + "billingModel": "Trial" + } + }, + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg2/providers/Microsoft.AzureStackHCI/clusters/myCluster2", + "name": "myCluster2", + "type": "Microsoft.AzureStackHCI/clusters", + "location": "West US", + "tags": {}, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "ConnectedRecently", + "cloudId": "a3c0468f-e38e-4dda-ac48-817f620536f0", + "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", + "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", + "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", + "reportedProperties": { + "clusterName": "cluster1", + "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", + "clusterVersion": "10.0.17777", + "nodes": [ + { + "name": "Node1", + "id": 0, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q45CZC3", + "coreCount": 8, + "memoryInGiB": 128 + }, + { + "name": "Node2", + "id": 1, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q44BSC3", + "coreCount": 8, + "memoryInGiB": 128 + }, + { + "name": "Node3", + "id": 2, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q44RFC3", + "coreCount": 16, + "memoryInGiB": 256 + } + ], + "lastUpdated": "2020-03-11T19:24:42.1946017Z" + }, + "trialDaysRemaining": 30, + "billingModel": "Trial", + "registrationTimestamp": "2020-03-11T20:44:32.5625121Z", + "lastSyncTimestamp": "2020-03-11T20:44:32.5625121Z", + "lastBillingTimestamp": "2020-03-12T08:12:55.2312022Z" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json new file mode 100644 index 000000000000..d648cc7d3c22 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "extensionParameters": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "xx" + } + }, + "aggregateState": "PartiallyConnected", + "perNodeExtensionDetails": [ + { + "name": "Node-1", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Connected" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "state": "Disconnected" + } + ] + } + }, + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/Extensions/SecurityExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "extensionParameters": { + "publisher": "Microsoft.CustomScriptExtension", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "scriptLocation": "xx" + } + }, + "aggregateState": "PartiallySucceeded", + "perNodeExtensionDetails": [ + { + "name": "Node-1", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/SecurityExtension", + "state": "Succeeded" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/SecurityExtension", + "state": "Failed" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json new file mode 100644 index 000000000000..659e0f8271cf --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "extensionName": "MicrosoftMonitoringAgent", + "extension": { + "properties": { + "extensionParameters": { + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "type": "MicrosoftMonitoringAgent", + "settings": { + "workspaceId": "xx" + } + } + } + }, + "api-version": "2021-01-01-preview" + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "extensionParameters": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "xx" + } + }, + "aggregateState": "PartiallyConnected", + "perNodeExtensionDetails": [ + { + "name": "Node-1", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Connected" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "state": "Disconnected" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json new file mode 100644 index 000000000000..0da113834792 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "arcSetting": {}, + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default", + "type": "Microsoft.AzureStackHCI/clusters/arcSettings", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "ArcInstance-rg", + "aggregateState": "Creating", + "perNodeDetails": [ + { + "name": "Node-1", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1", + "state": "Creating" + }, + { + "name": "Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2", + "state": "Creating" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json new file mode 100644 index 000000000000..10c96ddf224e --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "extensionName": "MicrosoftMonitoringAgent", + "extension": { + "properties": { + "extensionParameters": { + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "type": "MicrosoftMonitoringAgent", + "settings": { + "workspaceId": "xx" + }, + "protectedSettings": { + "workspaceKey": "xx" + } + } + } + }, + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "extensionParameters": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "xx" + } + }, + "aggregateState": "PartiallySucceeded", + "perNodeExtensionDetails": [ + { + "name": "Node-1", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Succeeded" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "state": "Failed" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "extensionParameters": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "xx" + } + }, + "aggregateState": "PartiallySucceeded", + "perNodeExtensionDetails": [ + { + "name": "Node-1", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Succeeded" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "state": "Failed" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json new file mode 100644 index 000000000000..4a4a6d11f3dd --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-01-01-preview", + "cluster": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster", + "name": "myCluster", + "type": "Microsoft.AzureStackHCI/clusters", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "ConnectedRecently", + "cloudId": "91c2b355-4826-4e96-9164-e3f26dcf1cdd", + "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", + "aadClientId": "515da1c2-379e-49b4-9975-09e3e40c86be", + "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", + "reportedProperties": { + "clusterName": "cluster1", + "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", + "clusterVersion": "10.0.17777", + "nodes": [ + { + "name": "Node1", + "id": 1, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q45CZC3", + "coreCount": 8, + "memoryInGiB": 128 + }, + { + "name": "Node2", + "id": 2, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q44BSC3", + "coreCount": 8, + "memoryInGiB": 128 + }, + { + "name": "Node3", + "id": 3, + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q44RFC3", + "coreCount": 16, + "memoryInGiB": 256 + } + ], + "lastUpdated": "2020-03-11T19:24:42.1946017Z" + }, + "trialDaysRemaining": 30, + "billingModel": "Trial", + "registrationTimestamp": "2020-03-11T20:44:32.5625121Z", + "lastSyncTimestamp": "2020-03-11T20:44:32.5625121Z", + "lastBillingTimestamp": "2020-03-12T08:12:55.2312022Z" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json new file mode 100644 index 000000000000..6140987c9459 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json @@ -0,0 +1,500 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-01-01-preview", + "title": "AzureStackHCI", + "description": "Azure Stack HCI management service" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions": { + "get": { + "operationId": "Extensions_ListByArcSetting", + "description": "List all Extensions under ArcSetting resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ExtensionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Extensions under ArcSetting resource": { + "$ref": "./examples/ListExtensionsByArcSetting.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}": { + "get": { + "operationId": "Extensions_Get", + "description": "Get particular Arc Extension of HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "#/parameters/ExtensionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Extension" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get ArcSettings Extension": { + "$ref": "./examples/GetExtension.json" + } + } + }, + "put": { + "operationId": "Extensions_Create", + "description": "Create Extension for HCI cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "#/parameters/ExtensionNameParameter" + }, + { + "name": "extension", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Extension" + }, + "description": "Details of the Machine Extension to be created." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Succeeded", + "schema": { + "$ref": "#/definitions/Extension" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Extension" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create Arc Extension": { + "$ref": "./examples/PutExtension.json" + } + } + }, + "patch": { + "operationId": "Extensions_Update", + "description": "Update Extension for HCI cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "#/parameters/ExtensionNameParameter" + }, + { + "name": "extension", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Extension" + }, + "description": "Details of the Machine Extension to be created." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Extension" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "original-uri" + }, + "x-ms-examples": { + "Update Arc Extension": { + "$ref": "./examples/PatchExtension.json" + } + } + }, + "delete": { + "operationId": "Extensions_Delete", + "description": "Delete particular Arc Extension of HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "#/parameters/ExtensionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "OK" + }, + "204": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Delete Arc Extension": { + "$ref": "./examples/DeleteExtension.json" + } + } + } + } + }, + "definitions": { + "Extension": { + "description": "Details of a particular extension in HCI Cluster.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "systemData": { + "description": "System data of Extension resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "x-ms-client-flatten": true, + "readOnly": true + }, + "properties": { + "description": "Describes Machine Extension Properties.", + "$ref": "#/definitions/ExtensionProperties", + "x-ms-client-flatten": true + } + } + }, + "ExtensionProperties": { + "description": "Status of Arc Extension for a particular node in HCI Cluster.", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the Extension proxy resource.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "readOnly": true + }, + "extensionParameters": { + "description": "Parameters specific to this extension type.", + "$ref": "#/definitions/ExtensionParameters", + "x-ms-client-flatten": true + }, + "aggregateState": { + "description": "Aggregate state of Arc Extensions across the nodes in this HCI cluster.", + "type": "string", + "enum": [ + "NotSpecified", + "Error", + "Succeeded", + "Canceled", + "Failed", + "Connected", + "Disconnected", + "Deleted", + "Creating", + "Updating", + "Deleting", + "Moving", + "PartiallySucceeded", + "PartiallyConnected", + "InProgress" + ], + "x-ms-enum": { + "name": "ExtensionAggregateState", + "modelAsString": true + }, + "readOnly": true + }, + "perNodeExtensionDetails": { + "description": "State of Arc Extension in each of the nodes.", + "type": "array", + "items": { + "$ref": "#/definitions/PerNodeExtensionState" + }, + "readOnly": true + } + } + }, + "PerNodeExtensionState": { + "description": "Status of Arc Extension for a particular node in HCI Cluster.", + "type": "object", + "properties": { + "name": { + "description": "Name of the node in HCI Cluster.", + "type": "string", + "readOnly": true + }, + "extension": { + "description": "Fully qualified resource ID for the particular Arc Extension on this node.", + "type": "string", + "readOnly": true + }, + "state": { + "description": "State of Arc Extension in this node.", + "type": "string", + "enum": [ + "NotSpecified", + "Error", + "Succeeded", + "Canceled", + "Failed", + "Connected", + "Disconnected", + "Deleted", + "Creating", + "Updating", + "Deleting", + "Moving" + ], + "x-ms-enum": { + "name": "NodeExtensionState", + "modelAsString": true + }, + "readOnly": true + } + } + }, + "ExtensionList": { + "description": "List of Extensions in HCI cluster.", + "type": "object", + "properties": { + "value": { + "description": "List of Extensions in HCI cluster.", + "type": "array", + "items": { + "$ref": "#/definitions/Extension" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "ExtensionParameters": { + "description": "Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute.", + "type": "object", + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "Protected settings (may contain secrets).", + "x-ms-secret": true + } + } + } + }, + "parameters": { + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cluster.", + "x-ms-parameter-location": "method" + }, + "ArcSettingNameParameter": { + "name": "arcSettingName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the proxy resource holding details of HCI ArcSetting information.", + "x-ms-parameter-location": "method" + }, + "ExtensionNameParameter": { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json new file mode 100644 index 000000000000..d1c136c85e5a --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json @@ -0,0 +1,68 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-01-01-preview", + "title": "AzureStackHCI", + "description": "Azure Stack HCI management service" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.AzureStackHCI/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "List all available Microsoft.AzureStackHCI provider operations", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": {}, + "parameters": {} +} From abaf2adaf70365b78795d1692254c697919e8d1b Mon Sep 17 00:00:00 2001 From: "Jocelyn Berrendonner [MSFT]" Date: Fri, 4 Mar 2022 16:52:33 -0800 Subject: [PATCH 02/43] Updates readme --- .../azurestackhci/resource-manager/readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/specification/azurestackhci/resource-manager/readme.md b/specification/azurestackhci/resource-manager/readme.md index 30db78820609..5d9eb350b0d2 100644 --- a/specification/azurestackhci/resource-manager/readme.md +++ b/specification/azurestackhci/resource-manager/readme.md @@ -105,6 +105,17 @@ input-file: - Microsoft.AzureStackHCI/stable/2022-03-01/operations.json ``` +### Tag: package-preview-2021-07 + +These settings apply only when `--tag=package-preview-2021-07` is specified on the command line. + +```yaml $(tag) == 'package-preview-2021-07' +input-file: + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json +``` ### Tag: package-2022-01 These settings apply only when `--tag=package-2022-01` is specified on the command line. From b3de21ed9a7c5ffcdcbc13c26ff1ae8fa9288973 Mon Sep 17 00:00:00 2001 From: "Jocelyn Berrendonner [MSFT]" Date: Fri, 4 Mar 2022 16:52:35 -0800 Subject: [PATCH 03/43] Updates API version in new specs and examples --- .../preview/2021-07-01-preview/arcSettings.json | 2 +- .../preview/2021-07-01-preview/clusters.json | 2 +- .../preview/2021-07-01-preview/examples/CreateCluster.json | 2 +- .../preview/2021-07-01-preview/examples/DeleteArcSetting.json | 2 +- .../preview/2021-07-01-preview/examples/DeleteCluster.json | 2 +- .../preview/2021-07-01-preview/examples/DeleteExtension.json | 2 +- .../preview/2021-07-01-preview/examples/GetArcSetting.json | 2 +- .../preview/2021-07-01-preview/examples/GetCluster.json | 2 +- .../preview/2021-07-01-preview/examples/GetExtension.json | 2 +- .../2021-07-01-preview/examples/ListArcSettingsByCluster.json | 2 +- .../examples/ListClustersByResourceGroup.json | 2 +- .../2021-07-01-preview/examples/ListClustersBySubscription.json | 2 +- .../2021-07-01-preview/examples/ListExtensionsByArcSetting.json | 2 +- .../preview/2021-07-01-preview/examples/PatchExtension.json | 2 +- .../preview/2021-07-01-preview/examples/PutArcSetting.json | 2 +- .../preview/2021-07-01-preview/examples/PutExtension.json | 2 +- .../preview/2021-07-01-preview/examples/UpdateCluster.json | 2 +- .../preview/2021-07-01-preview/extensions.json | 2 +- .../preview/2021-07-01-preview/operations.json | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json index 6b01d85d5b2b..17331c6a983f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-01-01-preview", + "version": "2021-07-01-preview", "title": "AzureStackHCI", "description": "Azure Stack HCI management service" }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json index bcfe0418f8e6..8daf6bc8a0a9 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-01-01-preview", + "version": "2021-07-01-preview", "title": "AzureStackHCI", "description": "Azure Stack HCI management service" }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json index edb831c4487c..910e693f8c7e 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-01-01-preview", + "api-version": "2021-07-01-preview", "cluster": { "location": "East US", "properties": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json index 33dea5921c34..f905c59bf68d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "clusterName": "myCluster", "arcSettingName": "default", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json index 38424d9081e8..3d028e6a158b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json index c8e6f345ed2c..19f275b7e1aa 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json @@ -5,7 +5,7 @@ "clusterName": "myCluster", "arcSettingName": "default", "extensionName": "MicrosoftMonitoringAgent", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json index 9e69a057c1a4..112a1d5baff3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "clusterName": "myCluster", "arcSettingName": "default", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json index 693b2636ba04..fb3ed2f77079 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json index 56d8fe6308dc..3bbf39839611 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json @@ -5,7 +5,7 @@ "clusterName": "myCluster", "arcSettingName": "default", "extensionName": "MicrosoftMonitoringAgent", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json index f16546b83095..872fc47f9408 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json index c0c5fc6ac4c6..335b4039cfad 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json index de736bc9c1de..35ca87295bf4 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json index d648cc7d3c22..f1d1ca8759db 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "clusterName": "myCluster", "arcSettingName": "default", - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json index 659e0f8271cf..b4d1e73035e0 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json @@ -17,7 +17,7 @@ } } }, - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "201": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json index 0da113834792..b04aae957ae9 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json @@ -5,7 +5,7 @@ "clusterName": "myCluster", "arcSettingName": "default", "arcSetting": {}, - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json index 10c96ddf224e..e48d6024786a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json @@ -20,7 +20,7 @@ } } }, - "api-version": "2021-01-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json index 4a4a6d11f3dd..4ffeae0174cf 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-01-01-preview", + "api-version": "2021-07-01-preview", "cluster": { "tags": { "tag1": "value1", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json index 6140987c9459..4bc626b928d3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-01-01-preview", + "version": "2021-07-01-preview", "title": "AzureStackHCI", "description": "Azure Stack HCI management service" }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json index d1c136c85e5a..483ce41a0876 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-01-01-preview", + "version": "2021-07-01-preview", "title": "AzureStackHCI", "description": "Azure Stack HCI management service" }, From 5e1d29ef08bea1942a01993b9b1880f6865aa3db Mon Sep 17 00:00:00 2001 From: JocelynBerrendonner Date: Fri, 4 Mar 2022 17:25:09 -0800 Subject: [PATCH 04/43] Publishing the 2021-07-01-preview API for self-service VM on HCI --- .../2021-07-01-preview/arcSettings.json | 379 --------- .../preview/2021-07-01-preview/clusters.json | 557 ------------ .../examples/CreateCluster.json | 46 - ...rcSetting.json => DeleteGalleryImage.json} | 4 +- ...nsion.json => DeleteNetworkInterface.json} | 5 +- .../examples/DeleteStorageContainer.json | 12 + .../examples/DeleteVirtualHardDisk.json | 12 + ...Cluster.json => DeleteVirtualMachine.json} | 2 +- .../examples/DeleteVirtualNetwork.json | 12 + .../examples/GetArcSetting.json | 42 - .../examples/GetCluster.json | 81 -- .../examples/GetExtension.json | 52 -- .../examples/GetGalleryImage.json | 27 + .../examples/GetNetworkInterface.json | 35 + .../examples/GetStorageContainer.json | 26 + .../examples/GetVirtualHardDisk.json | 26 + .../examples/GetVirtualMachine.json | 44 + .../examples/GetVirtualNetwork.json | 26 + .../examples/ListArcSettingsByCluster.json | 45 - .../examples/ListClustersByResourceGroup.json | 110 --- .../examples/ListClustersBySubscription.json | 109 --- .../examples/ListExtensionsByArcSetting.json | 93 -- .../ListGalleryImageByResourceGroup.json | 30 + .../ListGalleryImageBySubscription.json | 29 + .../ListNetworkInterfaceByResourceGroup.json | 39 + .../ListNetworkInterfaceBySubscription.json | 39 + .../ListStorageContainerByResourceGroup.json | 29 + .../ListStorageContainerBySubscription.json | 28 + .../ListVirtualHardDiskByResourceGroup.json | 29 + .../ListVirtualHardDiskBySubscription.json | 28 + .../ListVirtualMachineByResourceGroup.json | 47 ++ .../ListVirtualMachineBySubscription.json | 46 + .../ListVirtualNetworkByResourceGroup.json | 29 + .../ListVirtualNetworkBySubscription.json | 28 + .../examples/PatchExtension.json | 64 -- .../examples/PutArcSetting.json | 43 - .../examples/PutExtension.json | 107 --- .../examples/PutGalleryImage.json | 55 ++ .../examples/PutNetworkInterface.json | 79 ++ .../examples/PutStorageContainer.json | 52 ++ .../examples/PutVirtualHardDisk.json | 52 ++ .../examples/PutVirtualMachine.json | 101 +++ .../examples/PutVirtualNetwork.json | 52 ++ .../examples/RestartVirtualMachine.json | 12 + .../examples/StartVirtualMachine.json | 12 + .../examples/StopVirtualMachine.json | 12 + .../examples/UpdateCluster.json | 90 -- .../examples/UpdateGalleryImage.json | 55 ++ .../examples/UpdateNetworkInterface.json | 65 ++ .../examples/UpdateStorageContainer.json | 53 ++ .../examples/UpdateVirtualHardDisk.json | 53 ++ .../examples/UpdateVirtualMachine.json | 89 ++ .../examples/UpdateVirtualNetwork.json | 53 ++ .../2021-07-01-preview/extensions.json | 500 ----------- .../2021-07-01-preview/galleryImages.json | 426 ++++++++++ .../2021-07-01-preview/networkInterfaces.json | 478 +++++++++++ .../2021-07-01-preview/storageContainers.json | 410 +++++++++ .../2021-07-01-preview/virtualHardDisks.json | 427 ++++++++++ .../2021-07-01-preview/virtualMachines.json | 792 ++++++++++++++++++ .../2021-07-01-preview/virtualNetworks.json | 570 +++++++++++++ 60 files changed, 4522 insertions(+), 2326 deletions(-) delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json rename specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/{DeleteArcSetting.json => DeleteGalleryImage.json} (72%) rename specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/{DeleteExtension.json => DeleteNetworkInterface.json} (62%) create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteStorageContainer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualHardDisk.json rename specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/{DeleteCluster.json => DeleteVirtualMachine.json} (84%) create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualNetwork.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetNetworkInterface.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetStorageContainer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualHardDisk.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualNetwork.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkBySubscription.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutNetworkInterface.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutStorageContainer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualHardDisk.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualNetwork.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateStorageContainer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json deleted file mode 100644 index 17331c6a983f..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2021-07-01-preview", - "title": "AzureStackHCI", - "description": "Azure Stack HCI management service" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings": { - "get": { - "operationId": "ArcSettings_ListByCluster", - "description": "Get ArcSetting resources of HCI Cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ArcSettingList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "List ArcSetting resources by HCI Cluster": { - "$ref": "./examples/ListArcSettingsByCluster.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}": { - "get": { - "operationId": "ArcSettings_Get", - "description": "Get ArcSetting resource details of HCI Cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ArcSettingNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ArcSetting" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get ArcSetting": { - "$ref": "./examples/GetArcSetting.json" - } - } - }, - "put": { - "operationId": "ArcSettings_Create", - "description": "Create ArcSetting for HCI cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ArcSettingNameParameter" - }, - { - "name": "arcSetting", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ArcSetting" - }, - "description": "Parameters supplied to the Create ArcSetting resource for this HCI cluster." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ArcSetting" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Create ArcSetting": { - "$ref": "./examples/PutArcSetting.json" - } - } - }, - "delete": { - "operationId": "ArcSettings_Delete", - "description": "Delete ArcSetting resource details of HCI Cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ArcSettingNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "OK" - }, - "204": { - "description": "No content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "Delete ArcSetting": { - "$ref": "./examples/DeleteArcSetting.json" - } - } - } - } - }, - "definitions": { - "ArcSettingList": { - "description": "List of ArcSetting proxy resources for the HCI cluster.", - "type": "object", - "properties": { - "value": { - "description": "List of ArcSetting proxy resources.", - "type": "array", - "items": { - "$ref": "#/definitions/ArcSetting" - }, - "readOnly": true - }, - "nextLink": { - "description": "Link to the next set of results.", - "type": "string", - "readOnly": true - } - } - }, - "ArcSetting": { - "description": "ArcSetting details.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "systemData": { - "description": "System data of ArcSetting resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "x-ms-client-flatten": true, - "readOnly": true - }, - "properties": { - "description": "ArcSetting properties.", - "$ref": "#/definitions/ArcSettingProperties", - "x-ms-client-flatten": true - } - } - }, - "ArcSettingProperties": { - "description": "ArcSetting properties.", - "type": "object", - "properties": { - "provisioningState": { - "description": "Provisioning state of the ArcSetting proxy resource.", - "type": "string", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Accepted", - "Provisioning" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - }, - "readOnly": true - }, - "arcInstanceResourceGroup": { - "description": "The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.", - "type": "string", - "readOnly": true - }, - "aggregateState": { - "description": "Aggregate state of Arc agent across the nodes in this HCI cluster.", - "type": "string", - "enum": [ - "NotSpecified", - "Error", - "Succeeded", - "Canceled", - "Failed", - "Connected", - "Disconnected", - "Deleted", - "Creating", - "Updating", - "Deleting", - "Moving", - "PartiallySucceeded", - "PartiallyConnected", - "InProgress" - ], - "x-ms-enum": { - "name": "ArcSettingAggregateState", - "modelAsString": true - }, - "readOnly": true - }, - "perNodeDetails": { - "description": "State of Arc agent in each of the nodes.", - "type": "array", - "items": { - "$ref": "#/definitions/PerNodeState" - }, - "readOnly": true - } - } - }, - "PerNodeState": { - "description": "Status of Arc agent for a particular node in HCI Cluster.", - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "Name of the Node in HCI Cluster" - }, - "arcInstance": { - "description": "Fully qualified resource ID for the Arc agent of this node.", - "type": "string", - "readOnly": true - }, - "state": { - "description": "State of Arc agent in this node.", - "type": "string", - "enum": [ - "NotSpecified", - "Error", - "Succeeded", - "Canceled", - "Failed", - "Connected", - "Disconnected", - "Deleted", - "Creating", - "Updating", - "Deleting", - "Moving" - ], - "x-ms-enum": { - "name": "NodeArcState", - "modelAsString": true - }, - "readOnly": true - } - } - } - }, - "parameters": { - "ClusterNameParameter": { - "name": "clusterName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the cluster.", - "x-ms-parameter-location": "method" - }, - "ArcSettingNameParameter": { - "name": "arcSettingName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the proxy resource holding details of HCI ArcSetting information.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json deleted file mode 100644 index 8daf6bc8a0a9..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json +++ /dev/null @@ -1,557 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2021-07-01-preview", - "title": "AzureStackHCI", - "description": "Azure Stack HCI management service" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/clusters": { - "get": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_ListBySubscription", - "x-ms-examples": { - "List clusters in a given subscription": { - "$ref": "./examples/ListClustersBySubscription.json" - } - }, - "description": "List all HCI clusters in a subscription.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ClusterList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters": { - "get": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_ListByResourceGroup", - "x-ms-examples": { - "List clusters in a given resource group": { - "$ref": "./examples/ListClustersByResourceGroup.json" - } - }, - "description": "List all HCI clusters in a resource group.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ClusterList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}": { - "get": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_Get", - "x-ms-examples": { - "Get cluster": { - "$ref": "./examples/GetCluster.json" - } - }, - "description": "Get HCI cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_Create", - "x-ms-examples": { - "Create cluster": { - "$ref": "./examples/CreateCluster.json" - } - }, - "description": "Create an HCI cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "cluster", - "in": "body", - "description": "Details of the HCI cluster.", - "required": true, - "schema": { - "$ref": "#/definitions/Cluster" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_Update", - "x-ms-examples": { - "Update cluster": { - "$ref": "./examples/UpdateCluster.json" - } - }, - "description": "Update an HCI cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "cluster", - "in": "body", - "description": "Details of the HCI cluster.", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterPatch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_Delete", - "x-ms-examples": { - "Delete cluster": { - "$ref": "./examples/DeleteCluster.json" - } - }, - "description": "Delete an HCI cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "ClusterList": { - "description": "List of clusters.", - "type": "object", - "properties": { - "value": { - "description": "List of clusters.", - "type": "array", - "items": { - "$ref": "#/definitions/Cluster" - } - }, - "nextLink": { - "description": "Link to the next set of results.", - "type": "string", - "readOnly": true - } - } - }, - "Cluster": { - "description": "Cluster details.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "systemData": { - "description": "System data of Cluster resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "x-ms-client-flatten": true, - "readOnly": true - }, - "properties": { - "description": "Cluster properties.", - "$ref": "#/definitions/ClusterProperties", - "x-ms-client-flatten": true - } - } - }, - "ClusterPatch": { - "description": "Cluster details to update.", - "type": "object", - "properties": { - "tags": { - "description": "Resource tags.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "properties": { - "description": "Cluster properties.", - "$ref": "#/definitions/ClusterPatchProperties", - "x-ms-client-flatten": true - } - } - }, - "ClusterProperties": { - "description": "Cluster properties.", - "type": "object", - "required": [ - "aadClientId", - "aadTenantId" - ], - "properties": { - "provisioningState": { - "description": "Provisioning state.", - "type": "string", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Accepted", - "Provisioning" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - }, - "readOnly": true - }, - "status": { - "description": "Status of the cluster agent.", - "type": "string", - "enum": [ - "NotYetRegistered", - "ConnectedRecently", - "NotConnectedRecently", - "Disconnected", - "Error" - ], - "x-ms-enum": { - "name": "Status", - "modelAsString": true - }, - "readOnly": true - }, - "cloudId": { - "description": "Unique, immutable resource id.", - "type": "string", - "readOnly": true - }, - "cloudManagementEndpoint": { - "type": "string", - "description": "Endpoint configured for management from the Azure portal" - }, - "aadClientId": { - "description": "App id of cluster AAD identity.", - "type": "string" - }, - "aadTenantId": { - "description": "Tenant id of cluster AAD identity.", - "type": "string" - }, - "reportedProperties": { - "description": "Properties reported by cluster agent.", - "$ref": "#/definitions/ClusterReportedProperties", - "readOnly": true - }, - "trialDaysRemaining": { - "description": "Number of days remaining in the trial period.", - "type": "number", - "readOnly": true - }, - "billingModel": { - "description": "Type of billing applied to the resource.", - "type": "string", - "readOnly": true - }, - "registrationTimestamp": { - "description": "First cluster sync timestamp.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "lastSyncTimestamp": { - "description": "Most recent cluster sync timestamp.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "lastBillingTimestamp": { - "description": "Most recent billing meter timestamp.", - "type": "string", - "format": "date-time", - "readOnly": true - } - } - }, - "ClusterPatchProperties": { - "description": "Cluster properties.", - "type": "object", - "properties": { - "cloudManagementEndpoint": { - "type": "string", - "description": "Endpoint configured for management from the Azure portal" - } - } - }, - "ClusterReportedProperties": { - "description": "Properties reported by cluster agent.", - "type": "object", - "properties": { - "clusterName": { - "description": "Name of the on-prem cluster connected to this resource.", - "type": "string", - "readOnly": true - }, - "clusterId": { - "description": "Unique id generated by the on-prem cluster.", - "type": "string", - "readOnly": true - }, - "clusterVersion": { - "description": "Version of the cluster software.", - "type": "string", - "readOnly": true - }, - "nodes": { - "description": "List of nodes reported by the cluster.", - "type": "array", - "items": { - "$ref": "#/definitions/ClusterNode" - }, - "readOnly": true - }, - "lastUpdated": { - "description": "Last time the cluster reported the data.", - "type": "string", - "format": "date-time", - "readOnly": true - } - } - }, - "ClusterNode": { - "description": "Cluster node details.", - "type": "object", - "properties": { - "name": { - "description": "Name of the cluster node.", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id of the node in the cluster.", - "type": "number", - "readOnly": true - }, - "manufacturer": { - "description": "Manufacturer of the cluster node hardware.", - "type": "string", - "readOnly": true - }, - "model": { - "description": "Model name of the cluster node hardware.", - "type": "string", - "readOnly": true - }, - "osName": { - "description": "Operating system running on the cluster node.", - "type": "string", - "readOnly": true - }, - "osVersion": { - "description": "Version of the operating system running on the cluster node.", - "type": "string", - "readOnly": true - }, - "serialNumber": { - "description": "Immutable id of the cluster node.", - "type": "string", - "readOnly": true - }, - "coreCount": { - "description": "Number of physical cores on the cluster node.", - "type": "number", - "readOnly": true - }, - "memoryInGiB": { - "description": "Total available memory on the cluster node (in GiB).", - "type": "number", - "readOnly": true - } - } - } - }, - "parameters": { - "ClusterNameParameter": { - "name": "clusterName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the cluster.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json deleted file mode 100644 index 910e693f8c7e..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/CreateCluster.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "api-version": "2021-07-01-preview", - "cluster": { - "location": "East US", - "properties": { - "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", - "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", - "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster", - "name": "myCluster", - "type": "Microsoft.AzureStackHCI/clusters", - "location": "East US", - "tags": {}, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "status": "NotYetRegistered", - "cloudId": "a3c0468f-e38e-4dda-ac48-817f620536f0", - "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", - "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", - "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", - "reportedProperties": {}, - "trialDaysRemaining": 30, - "billingModel": "Trial" - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteGalleryImage.json similarity index 72% rename from specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json rename to specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteGalleryImage.json index f905c59bf68d..6fa43b53091b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteGalleryImage.json @@ -2,13 +2,11 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "arcSettingName": "default", + "galleryimagesName": "test-gallery-image", "api-version": "2021-07-01-preview" }, "responses": { "200": {}, - "202": {}, "204": {} } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteNetworkInterface.json similarity index 62% rename from specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json rename to specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteNetworkInterface.json index 19f275b7e1aa..0f143273b3b4 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteNetworkInterface.json @@ -2,14 +2,11 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "arcSettingName": "default", - "extensionName": "MicrosoftMonitoringAgent", + "networkinterfacesName": "test-nic", "api-version": "2021-07-01-preview" }, "responses": { "200": {}, - "202": {}, "204": {} } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteStorageContainer.json new file mode 100644 index 000000000000..54ab592d5db5 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteStorageContainer.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "storagecontainersName": "Default_Container", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualHardDisk.json new file mode 100644 index 000000000000..52ac04785902 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualHardDisk.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualharddisksName": "test-vhd", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualMachine.json similarity index 84% rename from specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json rename to specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualMachine.json index 3d028e6a158b..67aa509f7b31 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualMachine.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "clusterName": "myCluster", + "virtualmachinesName": "test-vm", "api-version": "2021-07-01-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualNetwork.json new file mode 100644 index 000000000000..dc0b557ea415 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualNetwork.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualnetworksName": "test-vnet", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json deleted file mode 100644 index 112a1d5baff3..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetArcSetting.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "arcSettingName": "default", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default", - "type": "Microsoft.AzureStackHCI/clusters/arcSettings", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "arcInstanceResourceGroup": "ArcInstance-rg", - "aggregateState": "PartiallyConnected", - "perNodeDetails": [ - { - "name": "Node-1", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1", - "state": "Connected" - }, - { - "name": "Node-2", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2", - "state": "Disconnected" - } - ] - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json deleted file mode 100644 index fb3ed2f77079..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetCluster.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster", - "name": "myCluster", - "type": "Microsoft.AzureStackHCI/clusters", - "location": "East US", - "tags": {}, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "status": "ConnectedRecently", - "cloudId": "a3c0468f-e38e-4dda-ac48-817f620536f0", - "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", - "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", - "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", - "reportedProperties": { - "clusterName": "cluster1", - "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", - "clusterVersion": "10.0.17777", - "nodes": [ - { - "name": "Node1", - "id": 1, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q45CZC3", - "coreCount": 8, - "memoryInGiB": 128 - }, - { - "name": "Node2", - "id": 2, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q44BSC3", - "coreCount": 8, - "memoryInGiB": 128 - }, - { - "name": "Node3", - "id": 3, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q44RFC3", - "coreCount": 16, - "memoryInGiB": 256 - } - ], - "lastUpdated": "2020-03-11T19:24:42.1946017Z" - }, - "trialDaysRemaining": 30, - "billingModel": "Trial", - "registrationTimestamp": "2020-03-11T20:44:32.5625121Z", - "lastSyncTimestamp": "2020-03-11T20:44:32.5625121Z", - "lastBillingTimestamp": "2020-03-12T08:12:55.2312022Z" - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json deleted file mode 100644 index 3bbf39839611..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetExtension.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "arcSettingName": "default", - "extensionName": "MicrosoftMonitoringAgent", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", - "name": "MicrosoftMonitoringAgent", - "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "extensionParameters": { - "publisher": "Microsoft.Compute", - "type": "string", - "typeHandlerVersion": "1.10.3", - "autoUpgradeMinorVersion": false, - "settings": { - "workspaceId": "xx" - } - }, - "aggregateState": "PartiallySucceeded", - "perNodeExtensionDetails": [ - { - "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", - "state": "Succeeded" - }, - { - "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", - "state": "Failed" - } - ] - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetGalleryImage.json new file mode 100644 index 000000000000..7f2a16f26d9f --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetGalleryImage.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "galleryimagesName": "test-gallery-image", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image", + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "imagePath": "C:\\test.vhdx", + "containerName": "Default_Container" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetNetworkInterface.json new file mode 100644 index 000000000000..1b00f139df70 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetNetworkInterface.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/networkinterfaces", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "external" + } + } + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetStorageContainer.json new file mode 100644 index 000000000000..badf3091cb00 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetStorageContainer.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "storagecontainersName": "Default_Container", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/Default_Container", + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storagecontainers", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "path": "C:\\container_storage" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualHardDisk.json new file mode 100644 index 000000000000..e83c302800a6 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualHardDisk.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualharddisksName": "test-vhd", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualharddisks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "diskSizeBytes": 32, + "provisioningState": "Accepted" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualMachine.json new file mode 100644 index 000000000000..7a79825dbafe --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualMachine.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "name": "test-vm", + "type": "Microsoft.AzureStackHCI/virtualmachines", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "storageProfile": { + "imageReference": { + "name": "test-gallery-image" + } + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualNetwork.json new file mode 100644 index 000000000000..44ee8d02f755 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualNetwork.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualnetworksName": "test-vnet", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/virtualnetworks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "networkType": "Transparent" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json deleted file mode 100644 index 872fc47f9408..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListArcSettingsByCluster.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default", - "type": "Microsoft.AzureStackHCI/clusters/arcSettings", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "arcInstanceResourceGroup": "ArcInstance-rg", - "aggregateState": "PartiallyConnected", - "perNodeDetails": [ - { - "name": "Node-1", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1", - "state": "Connected" - }, - { - "name": "Node-2", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2", - "state": "Disconnected" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json deleted file mode 100644 index 335b4039cfad..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersByResourceGroup.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster1", - "name": "myCluster1", - "type": "Microsoft.AzureStackHCI/clusters", - "location": "East US", - "tags": {}, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "status": "NotYetRegistered", - "cloudId": "91c2b355-4826-4e96-9164-e3f26dcf1cdd", - "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", - "aadClientId": "515da1c2-379e-49b4-9975-09e3e40c86be", - "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", - "reportedProperties": {}, - "trialDaysRemaining": 29, - "billingModel": "Trial" - } - }, - { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster2", - "name": "myCluster2", - "type": "Microsoft.AzureStackHCI/clusters", - "location": "East US", - "tags": {}, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "status": "ConnectedRecently", - "cloudId": "a3c0468f-e38e-4dda-ac48-817f620536f0", - "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", - "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", - "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", - "reportedProperties": { - "clusterName": "cluster1", - "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", - "clusterVersion": "10.0.17777", - "nodes": [ - { - "name": "Node1", - "id": 0, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q45CZC3", - "coreCount": 8, - "memoryInGiB": 128 - }, - { - "name": "Node2", - "id": 1, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q44BSC3", - "coreCount": 8, - "memoryInGiB": 128 - }, - { - "name": "Node3", - "id": 2, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q44RFC3", - "coreCount": 16, - "memoryInGiB": 256 - } - ], - "lastUpdated": "2020-03-11T19:24:42.1946017Z" - }, - "trialDaysRemaining": 30, - "billingModel": "Trial", - "registrationTimestamp": "2020-03-11T20:44:32.5625121Z", - "lastSyncTimestamp": "2020-03-11T20:44:32.5625121Z", - "lastBillingTimestamp": "2020-03-12T08:12:55.2312022Z" - } - } - ] - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json deleted file mode 100644 index 35ca87295bf4..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListClustersBySubscription.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg1/providers/Microsoft.AzureStackHCI/clusters/myCluster1", - "name": "myCluster1", - "type": "Microsoft.AzureStackHCI/clusters", - "location": "East US", - "tags": {}, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "status": "NotYetRegistered", - "cloudId": "91c2b355-4826-4e96-9164-e3f26dcf1cdd", - "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", - "aadClientId": "515da1c2-379e-49b4-9975-09e3e40c86be", - "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", - "reportedProperties": {}, - "trialDaysRemaining": 29, - "billingModel": "Trial" - } - }, - { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg2/providers/Microsoft.AzureStackHCI/clusters/myCluster2", - "name": "myCluster2", - "type": "Microsoft.AzureStackHCI/clusters", - "location": "West US", - "tags": {}, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "status": "ConnectedRecently", - "cloudId": "a3c0468f-e38e-4dda-ac48-817f620536f0", - "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", - "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", - "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", - "reportedProperties": { - "clusterName": "cluster1", - "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", - "clusterVersion": "10.0.17777", - "nodes": [ - { - "name": "Node1", - "id": 0, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q45CZC3", - "coreCount": 8, - "memoryInGiB": 128 - }, - { - "name": "Node2", - "id": 1, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q44BSC3", - "coreCount": 8, - "memoryInGiB": 128 - }, - { - "name": "Node3", - "id": 2, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q44RFC3", - "coreCount": 16, - "memoryInGiB": 256 - } - ], - "lastUpdated": "2020-03-11T19:24:42.1946017Z" - }, - "trialDaysRemaining": 30, - "billingModel": "Trial", - "registrationTimestamp": "2020-03-11T20:44:32.5625121Z", - "lastSyncTimestamp": "2020-03-11T20:44:32.5625121Z", - "lastBillingTimestamp": "2020-03-12T08:12:55.2312022Z" - } - } - ] - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json deleted file mode 100644 index f1d1ca8759db..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListExtensionsByArcSetting.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "arcSettingName": "default", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", - "name": "MicrosoftMonitoringAgent", - "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "extensionParameters": { - "publisher": "Microsoft.Compute", - "type": "string", - "typeHandlerVersion": "1.10.3", - "autoUpgradeMinorVersion": false, - "settings": { - "workspaceId": "xx" - } - }, - "aggregateState": "PartiallyConnected", - "perNodeExtensionDetails": [ - { - "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", - "state": "Connected" - }, - { - "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", - "state": "Disconnected" - } - ] - } - }, - { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/Extensions/SecurityExtension", - "name": "CustomScriptExtension", - "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "extensionParameters": { - "publisher": "Microsoft.CustomScriptExtension", - "type": "string", - "typeHandlerVersion": "1.10.3", - "autoUpgradeMinorVersion": false, - "settings": { - "scriptLocation": "xx" - } - }, - "aggregateState": "PartiallySucceeded", - "perNodeExtensionDetails": [ - { - "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/SecurityExtension", - "state": "Succeeded" - }, - { - "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/SecurityExtension", - "state": "Failed" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageByResourceGroup.json new file mode 100644 index 000000000000..5d3954d56d3c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image", + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "imagePath": "C:\\test.vhdx", + "containerName": "Default_Container" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageBySubscription.json new file mode 100644 index 000000000000..c6a451f57776 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageBySubscription.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image", + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "imagePath": "C:\\test.vhdx", + "containerName": "Default_Container" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceByResourceGroup.json new file mode 100644 index 000000000000..540cd2c069ef --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/networkinterfaces", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "external" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceBySubscription.json new file mode 100644 index 000000000000..540cd2c069ef --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceBySubscription.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/networkinterfaces", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "external" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerByResourceGroup.json new file mode 100644 index 000000000000..44fb7ec5c5a6 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerByResourceGroup.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/Default_Container", + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storagecontainers", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "path": "C:\\container_storage" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerBySubscription.json new file mode 100644 index 000000000000..dfabfd15e1cf --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerBySubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/Default_Container", + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storagecontainers", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "path": "C:\\container_storage" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskByResourceGroup.json new file mode 100644 index 000000000000..b7b8443dc390 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskByResourceGroup.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualharddisks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "diskSizeBytes": 32, + "provisioningState": "Accepted" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskBySubscription.json new file mode 100644 index 000000000000..1a01a047f5ed --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskBySubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualharddisks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "diskSizeBytes": 32, + "provisioningState": "Accepted" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineByResourceGroup.json new file mode 100644 index 000000000000..b3940c7f7e85 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineByResourceGroup.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "name": "test-vm", + "type": "Microsoft.AzureStackHCI/virtualmachines", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "storageProfile": { + "imageReference": { + "name": "test-gallery-image" + } + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineBySubscription.json new file mode 100644 index 000000000000..5fdebe9e5920 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineBySubscription.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "name": "test-vm", + "type": "Microsoft.AzureStackHCI/virtualmachines", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "storageProfile": { + "imageReference": { + "name": "test-gallery-image" + } + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkByResourceGroup.json new file mode 100644 index 000000000000..8135a2d2e518 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkByResourceGroup.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/virtualnetworks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "networkType": "Transparent" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkBySubscription.json new file mode 100644 index 000000000000..8485a41c47e2 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkBySubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/virtualnetworks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "networkType": "Transparent" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json deleted file mode 100644 index b4d1e73035e0..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PatchExtension.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "arcSettingName": "default", - "extensionName": "MicrosoftMonitoringAgent", - "extension": { - "properties": { - "extensionParameters": { - "publisher": "Microsoft.Compute", - "typeHandlerVersion": "1.10", - "type": "MicrosoftMonitoringAgent", - "settings": { - "workspaceId": "xx" - } - } - } - }, - "api-version": "2021-07-01-preview" - }, - "responses": { - "201": { - "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", - "name": "MicrosoftMonitoringAgent", - "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "extensionParameters": { - "publisher": "Microsoft.Compute", - "type": "string", - "typeHandlerVersion": "1.10.3", - "autoUpgradeMinorVersion": false, - "settings": { - "workspaceId": "xx" - } - }, - "aggregateState": "PartiallyConnected", - "perNodeExtensionDetails": [ - { - "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", - "state": "Connected" - }, - { - "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", - "state": "Disconnected" - } - ] - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json deleted file mode 100644 index b04aae957ae9..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutArcSetting.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "arcSettingName": "default", - "arcSetting": {}, - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default", - "type": "Microsoft.AzureStackHCI/clusters/arcSettings", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "arcInstanceResourceGroup": "ArcInstance-rg", - "aggregateState": "Creating", - "perNodeDetails": [ - { - "name": "Node-1", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1", - "state": "Creating" - }, - { - "name": "Node-2", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2", - "state": "Creating" - } - ] - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json deleted file mode 100644 index e48d6024786a..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutExtension.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "arcSettingName": "default", - "extensionName": "MicrosoftMonitoringAgent", - "extension": { - "properties": { - "extensionParameters": { - "publisher": "Microsoft.Compute", - "typeHandlerVersion": "1.10", - "type": "MicrosoftMonitoringAgent", - "settings": { - "workspaceId": "xx" - }, - "protectedSettings": { - "workspaceKey": "xx" - } - } - } - }, - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", - "name": "MicrosoftMonitoringAgent", - "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "extensionParameters": { - "publisher": "Microsoft.Compute", - "type": "string", - "typeHandlerVersion": "1.10.3", - "autoUpgradeMinorVersion": false, - "settings": { - "workspaceId": "xx" - } - }, - "aggregateState": "PartiallySucceeded", - "perNodeExtensionDetails": [ - { - "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", - "state": "Succeeded" - }, - { - "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", - "state": "Failed" - } - ] - } - } - }, - "201": { - "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", - "name": "MicrosoftMonitoringAgent", - "type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "extensionParameters": { - "publisher": "Microsoft.Compute", - "type": "string", - "typeHandlerVersion": "1.10.3", - "autoUpgradeMinorVersion": false, - "settings": { - "workspaceId": "xx" - } - }, - "aggregateState": "PartiallySucceeded", - "perNodeExtensionDetails": [ - { - "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-1/Extensions/MicrosoftMonitoringAgent", - "state": "Succeeded" - }, - { - "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machine/Node-2/Extensions/MicrosoftMonitoringAgent", - "state": "Failed" - } - ] - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutGalleryImage.json new file mode 100644 index 000000000000..3fc94333ab8a --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutGalleryImage.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "galleryimagesName": "test-gallery-image", + "api-version": "2021-07-01-preview", + "galleryimages": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "imagePath": "C:\\test.vhdx", + "containerName": "Default_Container" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image", + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "imagePath": "C:\\test.vhdx", + "containerName": "Default_Container" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-galimg3325", + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Created", + "imagePath": "C:\\test.vhdx", + "containerName": "Default_Container" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutNetworkInterface.json new file mode 100644 index 000000000000..4f7398e8b2a1 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutNetworkInterface.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-07-01-preview", + "networkinterfaces": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "test-vnet" + } + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkinterfaces", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "test-vnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkinterfaces", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "test-vnet" + } + } + } + ], + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutStorageContainer.json new file mode 100644 index 000000000000..210502c58d6a --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutStorageContainer.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "storagecontainersName": "Default_Container", + "api-version": "2021-07-01-preview", + "storagecontainers": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "path": "C:\\container_storage" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storagecontainers", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "path": "C:\\container_storage" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storagecontainers", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Created", + "path": "C:\\container_storage" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualHardDisk.json new file mode 100644 index 000000000000..bdbd1d080d46 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualHardDisk.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualharddisksName": "test-vhd", + "api-version": "2021-07-01-preview", + "virtualharddisks": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "diskSizeBytes": 32 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualharddisks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "diskSizeBytes": 32, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualharddisks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "diskSizeBytes": 32, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json new file mode 100644 index 000000000000..f4cb332b89b5 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-07-01-preview", + "virtualmachines": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "imageReference": { + "name": "test-gallery-image" + } + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin", + "adminPassword": "password" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "imageReference": { + "name": "test-galimg" + } + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "imageReference": { + "name": "test-galimg" + } + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "provisioningState": "created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualNetwork.json new file mode 100644 index 000000000000..c5876d83d439 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualNetwork.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualnetworksName": "test-vnet", + "api-version": "2021-07-01-preview", + "virtualnetworks": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "networkType": "Transparent" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/virtualnetworks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "networkType": "Transparent", + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/virtualnetworks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "networkType": "Transparent", + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json new file mode 100644 index 000000000000..fed94427d3c0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2020-11-01-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json new file mode 100644 index 000000000000..fed94427d3c0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2020-11-01-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json new file mode 100644 index 000000000000..fed94427d3c0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2020-11-01-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json deleted file mode 100644 index 4ffeae0174cf..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateCluster.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "api-version": "2021-07-01-preview", - "cluster": { - "tags": { - "tag1": "value1", - "tag2": "value2" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster", - "name": "myCluster", - "type": "Microsoft.AzureStackHCI/clusters", - "location": "East US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - }, - "properties": { - "provisioningState": "Succeeded", - "status": "ConnectedRecently", - "cloudId": "91c2b355-4826-4e96-9164-e3f26dcf1cdd", - "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", - "aadClientId": "515da1c2-379e-49b4-9975-09e3e40c86be", - "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", - "reportedProperties": { - "clusterName": "cluster1", - "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", - "clusterVersion": "10.0.17777", - "nodes": [ - { - "name": "Node1", - "id": 1, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q45CZC3", - "coreCount": 8, - "memoryInGiB": 128 - }, - { - "name": "Node2", - "id": 2, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q44BSC3", - "coreCount": 8, - "memoryInGiB": 128 - }, - { - "name": "Node3", - "id": 3, - "manufacturer": "Dell Inc.", - "model": "EMC AX740", - "osName": "Azure Stack HCI", - "osVersion": "10.0.17777.1061", - "serialNumber": "Q44RFC3", - "coreCount": 16, - "memoryInGiB": 256 - } - ], - "lastUpdated": "2020-03-11T19:24:42.1946017Z" - }, - "trialDaysRemaining": 30, - "billingModel": "Trial", - "registrationTimestamp": "2020-03-11T20:44:32.5625121Z", - "lastSyncTimestamp": "2020-03-11T20:44:32.5625121Z", - "lastBillingTimestamp": "2020-03-12T08:12:55.2312022Z" - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json new file mode 100644 index 000000000000..a2cf34d994f7 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "galleryimagesName": "test-gallery-image", + "api-version": "2021-07-01-preview", + "galleryimages": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-galimg3325", + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "provisioningState": "Accepted", + "imagePath": "C:\\test.vhdx", + "containerName": "Default_Container" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-galimg3325", + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "provisioningState": "Accepted", + "imagePath": "C:\\test.vhdx", + "containerName": "Default_Container" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json new file mode 100644 index 000000000000..265e55eeae68 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-07-01-preview", + "networkinterfaces": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkinterfaces", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "test-vnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkinterfaces", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "test-vnet" + } + } + } + ], + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateStorageContainer.json new file mode 100644 index 000000000000..f38a8e45d262 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateStorageContainer.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "storagecontainersName": "Default_Container", + "api-version": "2021-07-01-preview", + "storagecontainers": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storagecontainers", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "provisioningState": "Accepted", + "path": "C:\\container_storage" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storagecontainers", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "provisioningState": "Accepted", + "path": "C:\\container_storage" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json new file mode 100644 index 000000000000..ce5c771dbd36 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualharddisksName": "test-vhd", + "api-version": "2021-07-01-preview", + "virtualharddisks": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualharddisks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "diskSizeBytes": 32, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualharddisks", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "diskSizeBytes": 32, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json new file mode 100644 index 000000000000..25cea4530ae7 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-07-01-preview", + "virtualmachines": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "name": "test-vm", + "type": "Microsoft.AzureStackHCI/virtualmachines", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "provisioningState": "Accepted", + "storageProfile": { + "imageReference": { + "name": "test-gallery-image" + } + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "name": "test-vm", + "type": "Microsoft.AzureStackHCI/virtualmachines", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "provisioningState": "Accepted", + "storageProfile": { + "imageReference": { + "name": "test-gallery-image" + } + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json new file mode 100644 index 000000000000..6c71684e506b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualnetworksName": "test-vnet", + "api-version": "2021-07-01-preview", + "virtualnetworks": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/virtualnetworks", + "location": "West US2", + "tags": { + "additionalProperties": "sample" + }, + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "networkType": "Transparent", + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet", + "name": "test-vnet", + "type": "Microsoft.AzureStackHCI/virtualnetworks", + "location": "West US2", + "tags": { + "additionalProperties": "sample" + }, + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "networkType": "Transparent", + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json deleted file mode 100644 index 4bc626b928d3..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json +++ /dev/null @@ -1,500 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2021-07-01-preview", - "title": "AzureStackHCI", - "description": "Azure Stack HCI management service" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions": { - "get": { - "operationId": "Extensions_ListByArcSetting", - "description": "List all Extensions under ArcSetting resource.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ArcSettingNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ExtensionList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "List Extensions under ArcSetting resource": { - "$ref": "./examples/ListExtensionsByArcSetting.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}": { - "get": { - "operationId": "Extensions_Get", - "description": "Get particular Arc Extension of HCI Cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ArcSettingNameParameter" - }, - { - "$ref": "#/parameters/ExtensionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Extension" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get ArcSettings Extension": { - "$ref": "./examples/GetExtension.json" - } - } - }, - "put": { - "operationId": "Extensions_Create", - "description": "Create Extension for HCI cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ArcSettingNameParameter" - }, - { - "$ref": "#/parameters/ExtensionNameParameter" - }, - { - "name": "extension", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Extension" - }, - "description": "Details of the Machine Extension to be created." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Succeeded", - "schema": { - "$ref": "#/definitions/Extension" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Extension" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "Create Arc Extension": { - "$ref": "./examples/PutExtension.json" - } - } - }, - "patch": { - "operationId": "Extensions_Update", - "description": "Update Extension for HCI cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ArcSettingNameParameter" - }, - { - "$ref": "#/parameters/ExtensionNameParameter" - }, - { - "name": "extension", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Extension" - }, - "description": "Details of the Machine Extension to be created." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "201": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Extension" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "original-uri" - }, - "x-ms-examples": { - "Update Arc Extension": { - "$ref": "./examples/PatchExtension.json" - } - } - }, - "delete": { - "operationId": "Extensions_Delete", - "description": "Delete particular Arc Extension of HCI Cluster.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ArcSettingNameParameter" - }, - { - "$ref": "#/parameters/ExtensionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "OK" - }, - "204": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "Delete Arc Extension": { - "$ref": "./examples/DeleteExtension.json" - } - } - } - } - }, - "definitions": { - "Extension": { - "description": "Details of a particular extension in HCI Cluster.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "systemData": { - "description": "System data of Extension resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "x-ms-client-flatten": true, - "readOnly": true - }, - "properties": { - "description": "Describes Machine Extension Properties.", - "$ref": "#/definitions/ExtensionProperties", - "x-ms-client-flatten": true - } - } - }, - "ExtensionProperties": { - "description": "Status of Arc Extension for a particular node in HCI Cluster.", - "type": "object", - "properties": { - "provisioningState": { - "description": "Provisioning state of the Extension proxy resource.", - "type": "string", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Accepted", - "Provisioning" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - }, - "readOnly": true - }, - "extensionParameters": { - "description": "Parameters specific to this extension type.", - "$ref": "#/definitions/ExtensionParameters", - "x-ms-client-flatten": true - }, - "aggregateState": { - "description": "Aggregate state of Arc Extensions across the nodes in this HCI cluster.", - "type": "string", - "enum": [ - "NotSpecified", - "Error", - "Succeeded", - "Canceled", - "Failed", - "Connected", - "Disconnected", - "Deleted", - "Creating", - "Updating", - "Deleting", - "Moving", - "PartiallySucceeded", - "PartiallyConnected", - "InProgress" - ], - "x-ms-enum": { - "name": "ExtensionAggregateState", - "modelAsString": true - }, - "readOnly": true - }, - "perNodeExtensionDetails": { - "description": "State of Arc Extension in each of the nodes.", - "type": "array", - "items": { - "$ref": "#/definitions/PerNodeExtensionState" - }, - "readOnly": true - } - } - }, - "PerNodeExtensionState": { - "description": "Status of Arc Extension for a particular node in HCI Cluster.", - "type": "object", - "properties": { - "name": { - "description": "Name of the node in HCI Cluster.", - "type": "string", - "readOnly": true - }, - "extension": { - "description": "Fully qualified resource ID for the particular Arc Extension on this node.", - "type": "string", - "readOnly": true - }, - "state": { - "description": "State of Arc Extension in this node.", - "type": "string", - "enum": [ - "NotSpecified", - "Error", - "Succeeded", - "Canceled", - "Failed", - "Connected", - "Disconnected", - "Deleted", - "Creating", - "Updating", - "Deleting", - "Moving" - ], - "x-ms-enum": { - "name": "NodeExtensionState", - "modelAsString": true - }, - "readOnly": true - } - } - }, - "ExtensionList": { - "description": "List of Extensions in HCI cluster.", - "type": "object", - "properties": { - "value": { - "description": "List of Extensions in HCI cluster.", - "type": "array", - "items": { - "$ref": "#/definitions/Extension" - }, - "readOnly": true - }, - "nextLink": { - "description": "Link to the next set of results.", - "type": "string", - "readOnly": true - } - } - }, - "ExtensionParameters": { - "description": "Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute.", - "type": "object", - "properties": { - "forceUpdateTag": { - "type": "string", - "description": "How the extension handler should be forced to update even if the extension configuration has not changed." - }, - "publisher": { - "type": "string", - "description": "The name of the extension handler publisher." - }, - "type": { - "type": "string", - "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." - }, - "typeHandlerVersion": { - "type": "string", - "description": "Specifies the version of the script handler." - }, - "autoUpgradeMinorVersion": { - "type": "boolean", - "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." - }, - "settings": { - "type": "object", - "description": "Json formatted public settings for the extension." - }, - "protectedSettings": { - "type": "object", - "description": "Protected settings (may contain secrets).", - "x-ms-secret": true - } - } - } - }, - "parameters": { - "ClusterNameParameter": { - "name": "clusterName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the cluster.", - "x-ms-parameter-location": "method" - }, - "ArcSettingNameParameter": { - "name": "arcSettingName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the proxy resource holding details of HCI ArcSetting information.", - "x-ms-parameter-location": "method" - }, - "ExtensionNameParameter": { - "name": "extensionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine extension.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json new file mode 100644 index 000000000000..363ef926342f --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -0,0 +1,426 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-07-01-preview", + "x-ms-code-generation-settings": { + "name": "AzureStackHCIClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryimages/{galleryimagesName}": { + "get": { + "operationId": "galleryimages_Retrieve", + "x-ms-examples": { + "GetGalleryImage": { + "$ref": "./examples/GetGalleryImage.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/galleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Retrieves the galleryimages resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + } + } + }, + "put": { + "operationId": "galleryimages_CreateOrUpdate", + "x-ms-examples": { + "PutGalleryImage": { + "$ref": "./examples/PutGalleryImage.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/galleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "galleryimages", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/galleryimages" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the galleryimages resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + }, + "201": { + "description": "Creates the galleryimages resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + } + } + }, + "delete": { + "operationId": "galleryimages_Delete", + "x-ms-examples": { + "DeleteGalleryImage": { + "$ref": "./examples/DeleteGalleryImage.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/galleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Deletes the galleryimages resource." + }, + "204": { + "description": "No content" + } + } + }, + "patch": { + "operationId": "galleryimages_Update", + "x-ms-examples": { + "UpdateGalleryImage": { + "$ref": "./examples/UpdateGalleryImage.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/galleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "galleryimages", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/galleryimagesPatch" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the galleryimages resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + }, + "201": { + "description": "Updates the galleryimages resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryimages": { + "get": { + "operationId": "galleryimages_ListByResourceGroup", + "x-ms-examples": { + "ListGalleryImageByResourceGroup": { + "$ref": "./examples/ListGalleryImageByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all galleryimages under the resource group.", + "schema": { + "$ref": "#/definitions/galleryimagesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryimages": { + "get": { + "operationId": "galleryimages_ListBySubscription", + "x-ms-examples": { + "ListGalleryImageByResourceGroup": { + "$ref": "./examples/ListGalleryImageBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all galleryimages under the subscription.", + "schema": { + "$ref": "#/definitions/galleryimagesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "galleryimagesProperties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "containerName": { + "type": "string", + "description": "Container Name for storage container" + }, + "imagePath": { + "type": "string", + "description": "location of the image the gallery image should be created from" + }, + "osType": { + "type": "string", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + }, + "description": "operating system type that the gallery image uses. Expected to be linux or windows" + }, + "provisioningState": { + "type": "string" + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "type": "object", + "description": "MOCGalleryImageStatus defines the observed state of MOCGalleryImage" + } + } + }, + "galleryimages": { + "type": "object", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/galleryimagesProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "type": "string", + "description": "The resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "extendedLocation": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The extended location type." + }, + "name": { + "type": "string", + "description": "The extended location name." + } + } + } + }, + "required": [ + "location" + ], + "description": "The galleryimages resource definition." + }, + "galleryimagesPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The galleryimages resource patch definition." + }, + "galleryimagesListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/galleryimages" + } + }, + "nextLink": { + "type": "string" + } + } + } + }, + "parameters": { + "galleryimagesNameParameter": { + "name": "galleryimagesName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "maxLength": 64, + "minLength": 3 + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json new file mode 100644 index 000000000000..8036c1beec18 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -0,0 +1,478 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-07-01-preview", + "x-ms-code-generation-settings": { + "name": "AzureStackHCIClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkinterfaces/{networkinterfacesName}": { + "get": { + "operationId": "networkinterfaces_Retrieve", + "x-ms-examples": { + "GetNetworkInterface": { + "$ref": "./examples/GetNetworkInterface.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/networkinterfacesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Retrieves the networkinterfaces resource.", + "schema": { + "$ref": "#/definitions/networkinterfaces" + } + } + } + }, + "put": { + "operationId": "networkinterfaces_CreateOrUpdate", + "x-ms-examples": { + "PutNetworkInterface": { + "$ref": "./examples/PutNetworkInterface.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/networkinterfacesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "networkinterfaces", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/networkinterfaces" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the networkinterfaces resource.", + "schema": { + "$ref": "#/definitions/networkinterfaces" + } + }, + "201": { + "description": "Creates the networkinterfaces resource.", + "schema": { + "$ref": "#/definitions/networkinterfaces" + } + } + } + }, + "delete": { + "operationId": "networkinterfaces_Delete", + "x-ms-examples": { + "DeleteNetworkInterface": { + "$ref": "./examples/DeleteNetworkInterface.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/networkinterfacesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Deletes the networkinterfaces resource." + }, + "204": { + "description": "No content" + } + } + }, + "patch": { + "operationId": "networkinterfaces_Update", + "x-ms-examples": { + "UpdateNetworkInterface": { + "$ref": "./examples/UpdateNetworkInterface.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/networkinterfacesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "networkinterfaces", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/networkinterfacesPatch" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the networkinterfaces resource.", + "schema": { + "$ref": "#/definitions/networkinterfaces" + } + }, + "201": { + "description": "Updates the networkinterfaces resource.", + "schema": { + "$ref": "#/definitions/networkinterfaces" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkinterfaces": { + "get": { + "operationId": "networkinterfaces_ListByResourceGroup", + "x-ms-examples": { + "ListNetworkInterfaceByResourceGroup": { + "$ref": "./examples/ListNetworkInterfaceByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all networkinterfaces under the resource group.", + "schema": { + "$ref": "#/definitions/networkinterfacesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/networkinterfaces": { + "get": { + "operationId": "networkinterfaces_ListBySubscription", + "x-ms-examples": { + "ListNetworkInterfaceBySubscription": { + "$ref": "./examples/ListNetworkInterfaceBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all networkinterfaces under the subscription.", + "schema": { + "$ref": "#/definitions/networkinterfacesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "InterfaceDNSSettings": { + "type": "object", + "properties": { + "dnsServers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of DNS server IP Addresses for the interface" + } + } + }, + "networkinterfacesProperties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ipConfiguration" + }, + "description": "IPConfigurations - A list of IPConfigurations of the network interface." + }, + "macAddress": { + "type": "string", + "description": "MacAddress - The MAC address of the network interface." + }, + "dnsSettings": { + "$ref": "#/definitions/InterfaceDNSSettings", + "description": "DNS Settings for the interface" + }, + "provisioningState": { + "type": "string" + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "type": "object", + "description": "MOCNetworkInterfaceStatus defines the observed state of MOCNetworkInterface" + } + }, + "description": "MOCNetworkInterfaceSpec defines the desired state of MOCNetworkInterface" + }, + "ipConfiguration": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "name": { + "type": "string", + "description": "Name - The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "properties": { + "type": "object", + "properties": { + "gateway": { + "x-ms-client-flatten": true, + "type": "string", + "description": "Gateway for network interface" + }, + "prefixLength": { + "type": "string", + "description": "prefixLength for network interface" + }, + "privateIPAddress": { + "type": "string", + "description": "PrivateIPAddress - Private IP address of the IP configuration." + }, + "privateIPAllocationMethod": { + "type": "string", + "description": "PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic'" + }, + "subnet": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "ID - The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/..." + } + }, + "description": "Subnet - Name of Subnet bound to the IP configuration." + } + }, + "description": "InterfaceIPConfigurationPropertiesFormat properties of IP configuration." + } + }, + "description": "InterfaceIPConfiguration iPConfiguration in a network interface." + }, + "networkinterfaces": { + "type": "object", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/networkinterfacesProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "type": "string", + "description": "The resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "extendedLocation": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The extended location type." + }, + "name": { + "type": "string", + "description": "The extended location name." + } + } + } + }, + "required": [ + "location" + ], + "description": "The networkinterfaces resource definition." + }, + "networkinterfacesPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The networkinterfaces resource patch definition." + }, + "networkinterfacesListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/networkinterfaces" + } + }, + "nextLink": { + "type": "string" + } + } + } + }, + "parameters": { + "networkinterfacesNameParameter": { + "name": "networkinterfacesName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "maxLength": 64, + "minLength": 3 + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json new file mode 100644 index 000000000000..7efa6e9cefe6 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json @@ -0,0 +1,410 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-07-01-preview", + "x-ms-code-generation-settings": { + "name": "AzureStackHCIClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storagecontainers/{storagecontainersName}": { + "get": { + "operationId": "storagecontainers_Retrieve", + "x-ms-examples": { + "GetStorageContainer": { + "$ref": "./examples/GetStorageContainer.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/storagecontainersNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Retrieves the storagecontainers resource.", + "schema": { + "$ref": "#/definitions/storagecontainers" + } + } + } + }, + "put": { + "operationId": "storagecontainers_CreateOrUpdate", + "x-ms-examples": { + "PutStorageContainer": { + "$ref": "./examples/PutStorageContainer.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/storagecontainersNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "storagecontainers", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/storagecontainers" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the storagecontainers resource.", + "schema": { + "$ref": "#/definitions/storagecontainers" + } + }, + "201": { + "description": "Creates the storagecontainers resource.", + "schema": { + "$ref": "#/definitions/storagecontainers" + } + } + } + }, + "delete": { + "operationId": "storagecontainers_Delete", + "x-ms-examples": { + "DeleteStorageContainer": { + "$ref": "./examples/DeleteStorageContainer.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/storagecontainersNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Deletes the storagecontainers resource." + }, + "204": { + "description": "No content" + } + } + }, + "patch": { + "operationId": "storagecontainers_Update", + "x-ms-examples": { + "UpdateStorageContainer": { + "$ref": "./examples/UpdateStorageContainer.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/storagecontainersNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "storagecontainers", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/storagecontainersPatch" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the storagecontainers resource.", + "schema": { + "$ref": "#/definitions/storagecontainers" + } + }, + "201": { + "description": "Updates the storagecontainers resource.", + "schema": { + "$ref": "#/definitions/storagecontainers" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storagecontainers": { + "get": { + "operationId": "storagecontainers_ListByResourceGroup", + "x-ms-examples": { + "ListStorageContainerByResourceGroup": { + "$ref": "./examples/ListStorageContainerByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all storagecontainers under the resource group.", + "schema": { + "$ref": "#/definitions/storagecontainersListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/storagecontainers": { + "get": { + "operationId": "storagecontainers_ListBySubscription", + "x-ms-examples": { + "ListStorageContainerByResourceGroup": { + "$ref": "./examples/ListStorageContainerBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all storagecontainers under the subscription.", + "schema": { + "$ref": "#/definitions/storagecontainersListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "storagecontainersProperties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "path": { + "type": "string", + "description": "location of the image the gallery image should be created from" + }, + "provisioningState": { + "type": "string" + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "type": "object", + "description": "MOCStorageContainerStatus defines the observed state of MOCStorageContainer" + } + } + }, + "storagecontainers": { + "type": "object", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/storagecontainersProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "type": "string", + "description": "The resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "extendedLocation": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The extended location type." + }, + "name": { + "type": "string", + "description": "The extended location name." + } + } + } + }, + "required": [ + "location" + ], + "description": "The storagecontainers resource definition." + }, + "storagecontainersPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The storagecontainers resource patch definition." + }, + "storagecontainersListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/storagecontainers" + } + }, + "nextLink": { + "type": "string" + } + } + } + }, + "parameters": { + "storagecontainersNameParameter": { + "name": "storagecontainersName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "maxLength": 64, + "minLength": 3 + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json new file mode 100644 index 000000000000..b992cd677501 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -0,0 +1,427 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-07-01-preview", + "x-ms-code-generation-settings": { + "name": "AzureStackHCIClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualharddisks/{virtualharddisksName}": { + "get": { + "operationId": "virtualharddisks_Retrieve", + "x-ms-examples": { + "GetVirtualHardDisk": { + "$ref": "./examples/GetVirtualHardDisk.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualharddisksNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Retrieves the virtualharddisks resource.", + "schema": { + "$ref": "#/definitions/virtualharddisks" + } + } + } + }, + "put": { + "operationId": "virtualharddisks_CreateOrUpdate", + "x-ms-examples": { + "PutVirtualHardDisk": { + "$ref": "./examples/PutVirtualHardDisk.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualharddisksNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "virtualharddisks", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/virtualharddisks" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the virtualharddisks resource.", + "schema": { + "$ref": "#/definitions/virtualharddisks" + } + }, + "201": { + "description": "Creates the virtualharddisks resource.", + "schema": { + "$ref": "#/definitions/virtualharddisks" + } + } + } + }, + "delete": { + "operationId": "virtualharddisks_Delete", + "x-ms-examples": { + "DeleteVirtualHardDisk": { + "$ref": "./examples/DeleteVirtualHardDisk.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualharddisksNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Deletes the virtualharddisks resource." + }, + "204": { + "description": "No content" + } + } + }, + "patch": { + "operationId": "virtualharddisks_Update", + "x-ms-examples": { + "UpdateVirtualHardDisk": { + "$ref": "./examples/UpdateVirtualHardDisk.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualharddisksNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "virtualharddisks", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/virtualharddisksPatch" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the virtualharddisks resource.", + "schema": { + "$ref": "#/definitions/virtualharddisks" + } + }, + "201": { + "description": "Updates the virtualharddisks resource.", + "schema": { + "$ref": "#/definitions/virtualharddisks" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualharddisks": { + "get": { + "operationId": "virtualharddisks_ListByResourceGroup", + "x-ms-examples": { + "ListVirtualHardDiskByResourceGroup": { + "$ref": "./examples/ListVirtualHardDiskByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all virtualharddisks under the resource group.", + "schema": { + "$ref": "#/definitions/virtualharddisksListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualharddisks": { + "get": { + "operationId": "virtualharddisks_ListBySubscription", + "x-ms-examples": { + "ListVirtualHardDiskByResourceGroup": { + "$ref": "./examples/ListVirtualHardDiskBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all virtualharddisks under the subscription.", + "schema": { + "$ref": "#/definitions/virtualharddisksListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "virtualharddisksProperties": { + "type": "object", + "properties": { + "blockSizeBytes": { + "type": "integer", + "format": "int32" + }, + "diskSizeBytes": { + "type": "integer", + "format": "int64", + "description": "diskSizeBytes - size of the disk in GB" + }, + "dynamic": { + "type": "boolean", + "description": "Boolean for enabling dynamic sizing on the virtual hard disk" + }, + "logicalSectorBytes": { + "type": "integer", + "format": "int32" + }, + "physicalSectorBytes": { + "type": "integer", + "format": "int32" + }, + "provisioningState": { + "type": "string" + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "type": "object", + "description": "MOCVirtualHardDiskStatus defines the observed state of MOCVirtualHardDisk" + } + }, + "description": "MOCVirtualHardDiskSpec defines the desired state of MOCVirtualHardDisk" + }, + "virtualharddisks": { + "type": "object", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/virtualharddisksProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "type": "string", + "description": "The resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "extendedLocation": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The extended location type." + }, + "name": { + "type": "string", + "description": "The extended location name." + } + } + } + }, + "required": [ + "location" + ], + "description": "The virtualharddisks resource definition." + }, + "virtualharddisksPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The virtualharddisks resource patch definition." + }, + "virtualharddisksListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/virtualharddisks" + } + }, + "nextLink": { + "type": "string" + } + } + } + }, + "parameters": { + "virtualharddisksNameParameter": { + "name": "virtualharddisksName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "maxLength": 64, + "minLength": 3 + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json new file mode 100644 index 000000000000..bcaee3c372ef --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -0,0 +1,792 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-07-01-preview", + "x-ms-code-generation-settings": { + "name": "AzureStackHCIClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}": { + "get": { + "operationId": "virtualmachines_Retrieve", + "x-ms-examples": { + "GetVirtualMachine": { + "$ref": "./examples/GetVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualmachinesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Retrieves the virtualmachines resource.", + "schema": { + "$ref": "#/definitions/virtualmachines" + } + } + } + }, + "put": { + "operationId": "virtualmachines_CreateOrUpdate", + "x-ms-examples": { + "PutVirtualMachine": { + "$ref": "./examples/PutVirtualMachine.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualmachinesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "virtualmachines", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/virtualmachines" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the virtualmachines resource.", + "schema": { + "$ref": "#/definitions/virtualmachines" + } + }, + "201": { + "description": "Creates the virtualmachines resource.", + "schema": { + "$ref": "#/definitions/virtualmachines" + } + } + } + }, + "delete": { + "operationId": "virtualmachines_Delete", + "x-ms-examples": { + "DeleteVirtualMachine": { + "$ref": "./examples/DeleteVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualmachinesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Deletes the virtualmachines resource." + }, + "204": { + "description": "No content" + } + } + }, + "patch": { + "operationId": "virtualmachines_Update", + "x-ms-examples": { + "UpdateVirtualMachine": { + "$ref": "./examples/UpdateVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualmachinesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "virtualmachines", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/virtualmachinesPatch" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the virtualmachines resource.", + "schema": { + "$ref": "#/definitions/virtualmachines" + } + }, + "201": { + "description": "Updates the virtualmachines resource.", + "schema": { + "$ref": "#/definitions/virtualmachines" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}/start": { + "post": { + "operationId": "virtualmachines_Start", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "StartVirtualMachine": { + "$ref": "./examples/StartVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualmachinesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Ok." + }, + "202": { + "description": "Accepted." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}/stop": { + "post": { + "operationId": "virtualmachines_Stop", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "StopVirtualMachine": { + "$ref": "./examples/StopVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualmachinesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Ok." + }, + "202": { + "description": "Accepted." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}/restart": { + "post": { + "operationId": "virtualmachines_Restart", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "RestartVirtualMachine": { + "$ref": "./examples/RestartVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualmachinesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Ok." + }, + "202": { + "description": "Accepted." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines": { + "get": { + "operationId": "virtualmachines_ListByResourceGroup", + "x-ms-examples": { + "ListVirtualMachineByResourceGroup": { + "$ref": "./examples/ListVirtualMachineByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all virtualmachines under the resource group.", + "schema": { + "$ref": "#/definitions/virtualmachinesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualmachines": { + "get": { + "operationId": "virtualmachines_ListBySubscription", + "x-ms-examples": { + "ListVirtualMachineBySubscription": { + "$ref": "./examples/ListVirtualMachineBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all virtualmachines under the subscription.", + "schema": { + "$ref": "#/definitions/virtualmachinesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "virtualmachinesProperties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "hardwareProfile": { + "type": "object", + "properties": { + "vmSize": { + "type": "string" + }, + "processors": { + "type": "integer", + "format": "int32", + "description": "number of processors for the virtual machine" + }, + "memoryGB": { + "type": "integer", + "format": "int32", + "description": "RAM in gb for the virtual machine" + }, + "dynamicMemoryConfig": { + "type": "object", + "properties": { + "maximumMemoryGB": { + "type": "integer", + "format": "int64" + }, + "minimumMemoryGB": { + "type": "integer", + "format": "int64" + }, + "targetMemoryBuffer": { + "type": "integer", + "format": "int32" + } + } + } + }, + "description": "HardwareProfile - Specifies the hardware settings for the virtual machine." + }, + "networkProfile": { + "type": "object", + "properties": { + "networkInterfaces": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "ID - Resource Id" + } + } + }, + "description": "NetworkInterfaces - list of network interfaces to be attached to the virtual machine" + } + }, + "description": "NetworkProfile - describes the network configuration the virtual machine" + }, + "osProfile": { + "type": "object", + "properties": { + "adminPassword": { + "type": "string", + "x-ms-secret": true, + "description": "AdminPassword - admin password" + }, + "adminUsername": { + "type": "string", + "description": "AdminUsername - admin username" + }, + "computerName": { + "type": "string", + "description": "ComputerName - name of the compute" + }, + "linuxConfiguration": { + "type": "object", + "properties": { + "disablePasswordAuthentication": { + "type": "boolean", + "description": "DisablePasswordAuthentication - whether password authentication should be disabled" + }, + "ssh": { + "type": "object", + "properties": { + "publicKeys": { + "type": "array", + "items": { + "type": "object", + "properties": { + "keyData": { + "type": "string", + "description": "KeyData - SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Li nux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)." + }, + "path": { + "type": "string", + "description": "Path - Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys" + } + } + }, + "description": "PublicKeys - The list of SSH public keys used to authenticate with linux based VMs." + } + }, + "description": "SSH - contains settings related to ssh configuration" + } + }, + "description": "LinuxConfiguration - linux specific configuration values for the virtual machine" + }, + "osType": { + "type": "string", + "description": "OsType - string specifying whether the OS is Linux or Windows" + }, + "windowsConfiguration": { + "type": "object", + "properties": { + "enableAutomaticUpdates": { + "type": "boolean", + "description": "Whether to EnableAutomaticUpdates on the machine" + }, + "ssh": { + "type": "object", + "properties": { + "publicKeys": { + "type": "array", + "items": { + "type": "object", + "properties": { + "keyData": { + "type": "string", + "x-ms-secret": true, + "description": "KeyData - SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Li nux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)." + }, + "path": { + "type": "string", + "description": "Path - Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys" + } + } + }, + "description": "PublicKeys - The list of SSH public keys used to authenticate with linux based VMs." + } + }, + "description": "AdditionalUnattendContent AdditionalUnattendContent *[]AdditionalUnattendContent `json:\"additionalUnattendContent,omitempty\"` SSH" + }, + "timeZone": { + "type": "string", + "description": "TimeZone for the virtual machine" + } + }, + "description": "Windows Configuration for the virtual machine " + } + }, + "description": "OsProfile - describes the configuration of the operating system and sets login data" + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "securityProfile": { + "type": "object", + "properties": { + "enableTPM": { + "type": "boolean" + } + }, + "description": "SecurityProfile - Specifies the security settings for the virtual machine." + }, + "storageProfile": { + "type": "object", + "properties": { + "dataDisks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "description": "adds data disks to the virtual machine" + }, + "imageReference": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name - Name of the image" + } + }, + "description": "Which Image to use for the virtual machine" + } + }, + "description": "StorageProfile - contains information about the disks and storage information for the virtual machine" + }, + "provisioningState": { + "type": "string" + }, + "status": { + "type": "object", + "description": "MOCVirtualMachineStatus defines the observed state of MOCVirtualMachine" + } + }, + "description": "MOCVirtualMachineSpec defines the desired state of MOCVirtualMachine" + }, + "virtualmachines": { + "type": "object", + "x-ms-client-flatten": true, + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/virtualmachinesProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "type": "string", + "description": "The resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "extendedLocation": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The extended location type." + }, + "name": { + "type": "string", + "description": "The extended location name." + } + } + } + }, + "required": [ + "location" + ], + "description": "The virtualmachines resource definition." + }, + "hardwareProfileUpdate": { + "type": "object", + "properties": { + "vmSize": { + "type": "string" + }, + "processors": { + "type": "integer", + "format": "int32", + "description": "number of processors for the virtual machine" + }, + "memoryGB": { + "type": "integer", + "format": "int32", + "description": "RAM in gb for the virtual machine" + } + }, + "description": "HardwareProfile - Specifies the hardware settings for the virtual machine." + }, + "networkProfileUpdate": { + "type": "object", + "properties": { + "networkInterfaces": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "ID - Resource Id" + } + } + }, + "description": "NetworkInterfaces - list of network interfaces to be attached to the virtual machine" + } + }, + "description": "NetworkProfile - describes the network update configuration the virtual machine" + }, + "storageProfileUpdate": { + "type": "object", + "properties": { + "dataDisks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "description": "adds data disks to the virtual machine for the update call" + } + } + }, + "virtualMachineUpdateProperties": { + "description": "Defines the resource properties for the update.", + "type": "object", + "properties": { + "hardwareProfile": { + "$ref": "#/definitions/hardwareProfileUpdate" + }, + "storageProfile": { + "$ref": "#/definitions/storageProfileUpdate" + }, + "networkProfile": { + "$ref": "#/definitions/networkProfileUpdate" + } + } + }, + "virtualmachinesPatch": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/virtualMachineUpdateProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The virtualmachines resource patch definition." + }, + "virtualmachinesListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/virtualmachines" + } + }, + "nextLink": { + "type": "string" + } + } + } + }, + "parameters": { + "virtualmachinesNameParameter": { + "name": "virtualmachinesName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "maxLength": 64, + "minLength": 3 + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json new file mode 100644 index 000000000000..ea5ba3f17184 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -0,0 +1,570 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-07-01-preview", + "x-ms-code-generation-settings": { + "name": "AzureStackHCIClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualnetworks/{virtualnetworksName}": { + "get": { + "operationId": "virtualnetworks_Retrieve", + "x-ms-examples": { + "GetVirtualNetwork": { + "$ref": "./examples/GetVirtualNetwork.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualnetworksNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Retrieves the virtualnetworks resource.", + "schema": { + "$ref": "#/definitions/virtualnetworks" + } + } + } + }, + "put": { + "operationId": "virtualnetworks_CreateOrUpdate", + "x-ms-examples": { + "PutVirtualNetwork": { + "$ref": "./examples/PutVirtualNetwork.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualnetworksNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "virtualnetworks", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/virtualnetworks" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the virtualnetworks resource.", + "schema": { + "$ref": "#/definitions/virtualnetworks" + } + }, + "201": { + "description": "Creates the virtualnetworks resource.", + "schema": { + "$ref": "#/definitions/virtualnetworks" + } + } + } + }, + "delete": { + "operationId": "virtualnetworks_Delete", + "x-ms-examples": { + "DeleteVirtualNetwork": { + "$ref": "./examples/DeleteVirtualNetwork.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualnetworksNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Deletes the virtualnetworks resource." + }, + "204": { + "description": "No content" + } + } + }, + "patch": { + "operationId": "virtualnetworks_Update", + "x-ms-examples": { + "UpdateVirtualNetwork": { + "$ref": "./examples/UpdateVirtualNetwork.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/virtualnetworksNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "virtualnetworks", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/virtualnetworksPatch" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the virtualnetworks resource.", + "schema": { + "$ref": "#/definitions/virtualnetworks" + } + }, + "201": { + "description": "Updates the virtualnetworks resource.", + "schema": { + "$ref": "#/definitions/virtualnetworks" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualnetworks": { + "get": { + "operationId": "virtualnetworks_ListByResourceGroup", + "x-ms-examples": { + "ListVirtualNetworkByResourceGroup": { + "$ref": "./examples/ListVirtualNetworkByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all virtualnetworks under the resource group.", + "schema": { + "$ref": "#/definitions/virtualnetworksListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualnetworks": { + "get": { + "operationId": "virtualnetworks_ListBySubscription", + "x-ms-examples": { + "ListVirtualNetworkBySubscription": { + "$ref": "./examples/ListVirtualNetworkBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all virtualnetworks under the subscription.", + "schema": { + "$ref": "#/definitions/virtualnetworksListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "virtualnetworksProperties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "networkType": { + "type": "string", + "description": "Type of the network" + }, + "subnets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name - The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "addressPrefix": { + "type": "string", + "description": "Cidr for this subnet - IPv4, IPv6" + }, + "addressPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "AddressPrefixes - List of address prefixes for the subnet." + }, + "ipAllocationMethod": { + "type": "string", + "description": "IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'" + }, + "ipConfigurationReferences": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ID": { + "type": "string", + "description": "IPConfigurationID" + } + }, + "description": "IPConfigurationReference - Describes a IPConfiguration under the virtual network" + }, + "description": "IPConfigurationReferences - list of IPConfigurationReferences" + }, + "routeTable": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Etag - Gets a unique read-only string that changes whenever the resource is updated." + }, + "name": { + "type": "string", + "description": "Name - READ-ONLY; Resource name." + }, + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "routes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name - name of the subnet" + }, + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "addressPrefix": { + "type": "string", + "description": "AddressPrefix - The destination CIDR to which the route applies." + }, + "nextHopIpAddress": { + "type": "string", + "description": "NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance." + } + }, + "description": "RoutePropertiesFormat - Properties of the route." + } + }, + "description": "Route is associated with a subnet." + }, + "description": "Routes - Collection of routes contained within a route table." + } + }, + "description": "RouteTablePropertiesFormat route Table resource." + }, + "type": { + "type": "string", + "description": "Type - READ-ONLY; Resource type." + } + }, + "description": "RouteTable for the subnet" + }, + "ipPools": { + "type": "array", + "description": "network associated pool of IP Addresses", + "items": { + "$ref": "#/definitions/IPPool" + } + }, + "vlan": { + "type": "integer", + "format": "int32", + "description": "Vlan to use for the subnet" + } + }, + "description": "SubnetProperties - Properties of the subnet." + } + }, + "description": "Subnet subnet in a virtual network resource." + }, + "description": "Subnet - list of subnets under the virtual network" + }, + "provisioningState": { + "type": "string" + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "type": "object", + "description": "MOCVirtualNetworkStatus defines the observed state of MOCVirtualNetwork" + } + }, + "description": "MOCVirtualNetworkSpec defines the desired state of MOCVirtualNetwork" + }, + "IPPoolInfo": { + "type": "object", + "properties": { + "used": { + "type": "string", + "readOnly": true, + "description": "no. of ip addresses allocated from the ip pool" + }, + "available": { + "type": "string", + "readOnly": true, + "description": "no. of ip addresses available in the ip pool" + } + } + }, + "IPPool": { + "type": "object", + "properties": { + "ipPoolType": { + "type": "string", + "enum": [ + "vm", + "vippool" + ], + "x-ms-enum": { + "name": "IPPoolTypeEnum", + "modelAsString": false + }, + "description": "ip pool type" + }, + "start": { + "type": "string", + "description": "start of the ip address pool" + }, + "end": { + "type": "string", + "description": "end of the ip address pool" + }, + "info": { + "$ref": "#/definitions/IPPoolInfo" + } + } + }, + "virtualnetworks": { + "type": "object", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/virtualnetworksProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "type": "string", + "description": "The resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "extendedLocation": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The extended location type." + }, + "name": { + "type": "string", + "description": "The extended location name." + } + } + } + }, + "required": [ + "location" + ], + "description": "The virtualnetworks resource definition." + }, + "virtualnetworksPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The virtualnetworks resource patch definition." + }, + "virtualnetworksListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/virtualnetworks" + } + }, + "nextLink": { + "type": "string" + } + } + } + }, + "parameters": { + "virtualnetworksNameParameter": { + "name": "virtualnetworksName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "maxLength": 64, + "minLength": 3 + } + } +} From 2c4e6a06dd9c567e195f4f94b7eb668c21bd97e5 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Tue, 8 Mar 2022 21:22:21 +0530 Subject: [PATCH 05/43] Fix some linter errors --- .../2021-07-01-preview/galleryImages.json | 18 +++++++++++++++--- .../2021-07-01-preview/virtualMachines.json | 12 ++++++++---- .../2021-07-01-preview/virtualNetworks.json | 10 +++++++--- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index 363ef926342f..f9895a61e581 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -40,6 +40,7 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryimages/{galleryimagesName}": { "get": { "operationId": "galleryimages_Retrieve", + "description": "Lists all galleryimages under the resource group.", "x-ms-examples": { "GetGalleryImage": { "$ref": "./examples/GetGalleryImage.json" @@ -76,6 +77,7 @@ }, "put": { "operationId": "galleryimages_CreateOrUpdate", + "description": "Create or update a galleryimage.", "x-ms-examples": { "PutGalleryImage": { "$ref": "./examples/PutGalleryImage.json" @@ -130,6 +132,7 @@ }, "delete": { "operationId": "galleryimages_Delete", + "description": "Delete a galleryimage.", "x-ms-examples": { "DeleteGalleryImage": { "$ref": "./examples/DeleteGalleryImage.json" @@ -166,6 +169,7 @@ }, "patch": { "operationId": "galleryimages_Update", + "description": "Update a galleryimage.", "x-ms-examples": { "UpdateGalleryImage": { "$ref": "./examples/UpdateGalleryImage.json" @@ -218,6 +222,7 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryimages": { "get": { "operationId": "galleryimages_ListByResourceGroup", + "description": "Lists all galleryimages under the resource group.", "x-ms-examples": { "ListGalleryImageByResourceGroup": { "$ref": "./examples/ListGalleryImageByResourceGroup.json" @@ -256,6 +261,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryimages": { "get": { "operationId": "galleryimages_ListBySubscription", + "description": "List all galleryimages under the subscription", "x-ms-examples": { "ListGalleryImageByResourceGroup": { "$ref": "./examples/ListGalleryImageBySubscription.json" @@ -315,7 +321,8 @@ "description": "operating system type that the gallery image uses. Expected to be linux or windows" }, "provisioningState": { - "type": "string" + "type": "string", + "description": "Provisioning state of the gallery image." }, "resourceName": { "type": "string", @@ -367,6 +374,7 @@ }, "extendedLocation": { "type": "object", + "description": "The extendedLocation of the resource.", "properties": { "type": { "type": "string", @@ -399,6 +407,7 @@ }, "galleryimagesListResult": { "type": "object", + "description": "List of galleryimages.", "properties": { "value": { "type": "array", @@ -407,7 +416,9 @@ } }, "nextLink": { - "type": "string" + "type": "string", + "description": "Link to the next set of results.", + "readOnly": true } } } @@ -420,7 +431,8 @@ "type": "string", "x-ms-parameter-location": "method", "maxLength": 64, - "minLength": 3 + "minLength": 3, + "description": "Name of the gallery image" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index bcaee3c372ef..70286a499b07 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -516,7 +516,8 @@ } } }, - "description": "PublicKeys - The list of SSH public keys used to authenticate with linux based VMs." + "description": "PublicKeys - The list of SSH public keys used to authenticate with linux based VMs.", + "x-ms-identifiers": [] } }, "description": "SSH - contains settings related to ssh configuration" @@ -554,7 +555,8 @@ } } }, - "description": "PublicKeys - The list of SSH public keys used to authenticate with linux based VMs." + "description": "PublicKeys - The list of SSH public keys used to authenticate with linux based VMs.", + "x-ms-identifiers": [] } }, "description": "AdditionalUnattendContent AdditionalUnattendContent *[]AdditionalUnattendContent `json:\"additionalUnattendContent,omitempty\"` SSH" @@ -595,7 +597,8 @@ } } }, - "description": "adds data disks to the virtual machine" + "description": "adds data disks to the virtual machine", + "x-ms-identifiers": ["name"] }, "imageReference": { "type": "object", @@ -728,7 +731,8 @@ } } }, - "description": "adds data disks to the virtual machine for the update call" + "description": "adds data disks to the virtual machine for the update call", + "x-ms-identifiers": ["name"] } } }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index ea5ba3f17184..e8ce96689cf3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -338,6 +338,7 @@ }, "description": "IPConfigurationReference - Describes a IPConfiguration under the virtual network" }, + "x-ms-identifiers": [], "description": "IPConfigurationReferences - list of IPConfigurationReferences" }, "routeTable": { @@ -382,7 +383,8 @@ }, "description": "Route is associated with a subnet." }, - "description": "Routes - Collection of routes contained within a route table." + "description": "Routes - Collection of routes contained within a route table.", + "x-ms-identifiers": [] } }, "description": "RouteTablePropertiesFormat route Table resource." @@ -399,7 +401,8 @@ "description": "network associated pool of IP Addresses", "items": { "$ref": "#/definitions/IPPool" - } + }, + "x-ms-identifiers": [] }, "vlan": { "type": "integer", @@ -412,7 +415,8 @@ }, "description": "Subnet subnet in a virtual network resource." }, - "description": "Subnet - list of subnets under the virtual network" + "description": "Subnet - list of subnets under the virtual network", + "x-ms-identifiers": [] }, "provisioningState": { "type": "string" From f673e4901e2741aace401c0e4c8783d8d267ba07 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Wed, 9 Mar 2022 18:27:26 +0530 Subject: [PATCH 06/43] Update readme to include 2021-07 --- .../2021-07-01-preview/galleryImages.json | 8 +++----- .../2021-07-01-preview/networkInterfaces.json | 8 +++----- .../2021-07-01-preview/storageContainers.json | 8 +++----- .../2021-07-01-preview/virtualHardDisks.json | 8 +++----- .../2021-07-01-preview/virtualMachines.json | 8 +++----- .../2021-07-01-preview/virtualNetworks.json | 8 +++----- .../azurestackhci/resource-manager/readme.go.md | 11 +++++++++++ .../azurestackhci/resource-manager/readme.md | 17 +++++++++++++---- 8 files changed, 42 insertions(+), 34 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index f9895a61e581..f72fff0f61c0 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -3,10 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-07-01-preview", - "x-ms-code-generation-settings": { - "name": "AzureStackHCIClient" - } + "version": "2021-07-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -360,7 +357,8 @@ }, "location": { "type": "string", - "description": "The resource location" + "description": "The resource location", + "x-ms-mutability": ["create", "read"] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 8036c1beec18..887ac3a9edf1 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -3,10 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-07-01-preview", - "x-ms-code-generation-settings": { - "name": "AzureStackHCIClient" - } + "version": "2021-07-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -405,7 +402,8 @@ }, "location": { "type": "string", - "description": "The resource location" + "description": "The resource location", + "x-ms-mutability": ["create", "read"] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json index 7efa6e9cefe6..b94e5dcc7623 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json @@ -3,10 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-07-01-preview", - "x-ms-code-generation-settings": { - "name": "AzureStackHCIClient" - } + "version": "2021-07-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -337,7 +334,8 @@ }, "location": { "type": "string", - "description": "The resource location" + "description": "The resource location", + "x-ms-mutability": ["create", "read"] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index b992cd677501..35f51cd1fa5a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -3,10 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-07-01-preview", - "x-ms-code-generation-settings": { - "name": "AzureStackHCIClient" - } + "version": "2021-07-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -354,7 +351,8 @@ }, "location": { "type": "string", - "description": "The resource location" + "description": "The resource location", + "x-ms-mutability": ["create", "read"] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 70286a499b07..b7722d2bcae6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -3,10 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-07-01-preview", - "x-ms-code-generation-settings": { - "name": "AzureStackHCIClient" - } + "version": "2021-07-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -649,7 +646,8 @@ }, "location": { "type": "string", - "description": "The resource location" + "description": "The resource location", + "x-ms-mutability": ["create", "read"] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index e8ce96689cf3..a120139b2584 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -3,10 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-07-01-preview", - "x-ms-code-generation-settings": { - "name": "AzureStackHCIClient" - } + "version": "2021-07-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -501,7 +498,8 @@ }, "location": { "type": "string", - "description": "The resource location" + "description": "The resource location", + "x-ms-mutability": ["create", "read"] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/readme.go.md b/specification/azurestackhci/resource-manager/readme.go.md index ba68c2a89efe..bef86587432d 100644 --- a/specification/azurestackhci/resource-manager/readme.go.md +++ b/specification/azurestackhci/resource-manager/readme.go.md @@ -25,6 +25,17 @@ batch: - tag: package-preview-2021-01 - tag: package-2020-10 - tag: package-2020-03-01-preview + - tag: package-preview-2021-07 +``` + +### Tag: package-preview-2021-07 and go + +These settings apply only when `--tag=package-2021-07 --go` is specified on the command line. +Please also specify `--go-sdks-folder=`. + +```yaml $(tag) == 'package-preview-2027-01' && $(go) +namespace: azurestackhci +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2021-07-01/$(namespace) ``` ### Tag: package-2022-05 and go diff --git a/specification/azurestackhci/resource-manager/readme.md b/specification/azurestackhci/resource-manager/readme.md index 5d9eb350b0d2..7064e1d32875 100644 --- a/specification/azurestackhci/resource-manager/readme.md +++ b/specification/azurestackhci/resource-manager/readme.md @@ -48,6 +48,12 @@ directive: - updateRuns.json - updateSummaries.json - updates.json + - galleryImages.json + - networkInterfaces.json + - storageContainers.json + - virtualHardDisks.json + - virtualMachines.json + - virtualNetworks.json reason: Microsoft.AzureStackHCI is the correct name for our RP. ``` @@ -109,11 +115,14 @@ input-file: These settings apply only when `--tag=package-preview-2021-07` is specified on the command line. -```yaml $(tag) == 'package-preview-2021-07' +``` yaml $(tag) == 'package-preview-2021-07' input-file: - - Microsoft.AzureStackHCI/preview/2021-07-01-preview/arcSettings.json - - Microsoft.AzureStackHCI/preview/2021-07-01-preview/clusters.json - - Microsoft.AzureStackHCI/preview/2021-07-01-preview/extensions.json + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json + - Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json - Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json ``` ### Tag: package-2022-01 From 93cbfa2250cd2118614a17d8d8543cca9dd97f9c Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Wed, 9 Mar 2022 19:23:53 +0530 Subject: [PATCH 07/43] Fix errors and run prettier --- custom-words.txt | 5 +++++ .../preview/2021-07-01-preview/galleryImages.json | 5 ++++- .../2021-07-01-preview/networkInterfaces.json | 8 ++++++-- .../2021-07-01-preview/storageContainers.json | 5 ++++- .../2021-07-01-preview/virtualHardDisks.json | 5 ++++- .../2021-07-01-preview/virtualMachines.json | 15 +++++++++++---- .../2021-07-01-preview/virtualNetworks.json | 5 ++++- 7 files changed, 38 insertions(+), 10 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index 9a8dc4d1b797..dc9fca082ac4 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2798,3 +2798,8 @@ logalertv1metricmeasurement resourcehealth activitylog budget +galleryimage +networkinterfaces +storagecontainers +virtualharddisks +vippool diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index f72fff0f61c0..d874e82f5656 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -358,7 +358,10 @@ "location": { "type": "string", "description": "The resource location", - "x-ms-mutability": ["create", "read"] + "x-ms-mutability": [ + "create", + "read" + ] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 887ac3a9edf1..c7e68bb4a71d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -308,7 +308,8 @@ "items": { "$ref": "#/definitions/ipConfiguration" }, - "description": "IPConfigurations - A list of IPConfigurations of the network interface." + "description": "IPConfigurations - A list of IPConfigurations of the network interface.", + "x-ms-identifiers": [] }, "macAddress": { "type": "string", @@ -403,7 +404,10 @@ "location": { "type": "string", "description": "The resource location", - "x-ms-mutability": ["create", "read"] + "x-ms-mutability": [ + "create", + "read" + ] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json index b94e5dcc7623..9448ec00544f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json @@ -335,7 +335,10 @@ "location": { "type": "string", "description": "The resource location", - "x-ms-mutability": ["create", "read"] + "x-ms-mutability": [ + "create", + "read" + ] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index 35f51cd1fa5a..b342ec2f1c3e 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -352,7 +352,10 @@ "location": { "type": "string", "description": "The resource location", - "x-ms-mutability": ["create", "read"] + "x-ms-mutability": [ + "create", + "read" + ] }, "tags": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index b7722d2bcae6..c0afba2852a9 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -556,7 +556,7 @@ "x-ms-identifiers": [] } }, - "description": "AdditionalUnattendContent AdditionalUnattendContent *[]AdditionalUnattendContent `json:\"additionalUnattendContent,omitempty\"` SSH" + "description": "SSH" }, "timeZone": { "type": "string", @@ -595,7 +595,9 @@ } }, "description": "adds data disks to the virtual machine", - "x-ms-identifiers": ["name"] + "x-ms-identifiers": [ + "name" + ] }, "imageReference": { "type": "object", @@ -647,7 +649,10 @@ "location": { "type": "string", "description": "The resource location", - "x-ms-mutability": ["create", "read"] + "x-ms-mutability": [ + "create", + "read" + ] }, "tags": { "type": "object", @@ -730,7 +735,9 @@ } }, "description": "adds data disks to the virtual machine for the update call", - "x-ms-identifiers": ["name"] + "x-ms-identifiers": [ + "name" + ] } } }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index a120139b2584..54b4033be2bd 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -499,7 +499,10 @@ "location": { "type": "string", "description": "The resource location", - "x-ms-mutability": ["create", "read"] + "x-ms-mutability": [ + "create", + "read" + ] }, "tags": { "type": "object", From e3385598f716275062d1b7e3913a65574528c70c Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Wed, 9 Mar 2022 19:36:53 +0530 Subject: [PATCH 08/43] Fix readme.go.md --- specification/azurestackhci/resource-manager/readme.go.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/azurestackhci/resource-manager/readme.go.md b/specification/azurestackhci/resource-manager/readme.go.md index bef86587432d..3fc8191a5098 100644 --- a/specification/azurestackhci/resource-manager/readme.go.md +++ b/specification/azurestackhci/resource-manager/readme.go.md @@ -30,12 +30,12 @@ batch: ### Tag: package-preview-2021-07 and go -These settings apply only when `--tag=package-2021-07 --go` is specified on the command line. +These settings apply only when `--tag=package-preview-2021-07 --go` is specified on the command line. Please also specify `--go-sdks-folder=`. -```yaml $(tag) == 'package-preview-2027-01' && $(go) +```yaml $(tag) == 'package-preview-2021-07' && $(go) namespace: azurestackhci -output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2021-07-01/$(namespace) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2021-07-01-preview/$(namespace) ``` ### Tag: package-2022-05 and go From d8b4c68393e07d9f1623293ab13b705011b56858 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Wed, 9 Mar 2022 19:38:21 +0530 Subject: [PATCH 09/43] Fix SSH description --- .../preview/2021-07-01-preview/virtualMachines.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index c0afba2852a9..600c5ff71c7a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -556,7 +556,7 @@ "x-ms-identifiers": [] } }, - "description": "SSH" + "description": "SSH Configuration" }, "timeZone": { "type": "string", From e8fa92da2476a832725f77be08975ced79d782a3 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 14 Mar 2022 19:33:09 +0530 Subject: [PATCH 10/43] Set provisioningState as enum --- .../preview/2021-07-01-preview/galleryImages.json | 10 +++++++++- .../preview/2021-07-01-preview/networkInterfaces.json | 10 +++++++++- .../preview/2021-07-01-preview/storageContainers.json | 10 +++++++++- .../preview/2021-07-01-preview/virtualHardDisks.json | 6 ------ .../preview/2021-07-01-preview/virtualMachines.json | 10 +++++++++- .../preview/2021-07-01-preview/virtualNetworks.json | 10 +++++++++- 6 files changed, 45 insertions(+), 11 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index d874e82f5656..3dea42935f73 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -319,7 +319,15 @@ }, "provisioningState": { "type": "string", - "description": "Provisioning state of the gallery image." + "description": "Provisioning state of the gallery image.", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } }, "resourceName": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index c7e68bb4a71d..3ab69455c8a2 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -320,7 +320,15 @@ "description": "DNS Settings for the interface" }, "provisioningState": { - "type": "string" + "type": "string", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } }, "resourceName": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json index 9448ec00544f..5575a44c056d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json @@ -296,7 +296,15 @@ "description": "location of the image the gallery image should be created from" }, "provisioningState": { - "type": "string" + "type": "string", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } }, "resourceName": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index b342ec2f1c3e..c1a303e9f3f0 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -202,12 +202,6 @@ "schema": { "$ref": "#/definitions/virtualharddisks" } - }, - "201": { - "description": "Updates the virtualharddisks resource.", - "schema": { - "$ref": "#/definitions/virtualharddisks" - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 600c5ff71c7a..c450db3546d3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -613,7 +613,15 @@ "description": "StorageProfile - contains information about the disks and storage information for the virtual machine" }, "provisioningState": { - "type": "string" + "type": "string", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } }, "status": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 54b4033be2bd..213a0a8d59fd 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -416,7 +416,15 @@ "x-ms-identifiers": [] }, "provisioningState": { - "type": "string" + "type": "string", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } }, "resourceName": { "type": "string", From 928599625740ea23bef0322e306efd40602303bd Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 14 Mar 2022 20:51:51 +0530 Subject: [PATCH 11/43] Use common-types TrackedResource --- .../2021-07-01-preview/galleryImages.json | 40 +++---------------- .../2021-07-01-preview/networkInterfaces.json | 40 +++---------------- .../2021-07-01-preview/storageContainers.json | 40 +++---------------- .../2021-07-01-preview/virtualHardDisks.json | 40 +++---------------- .../2021-07-01-preview/virtualMachines.json | 40 +++---------------- .../2021-07-01-preview/virtualNetworks.json | 40 +++---------------- 6 files changed, 36 insertions(+), 204 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index 3dea42935f73..ab4565cc1dbf 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -341,6 +341,7 @@ }, "galleryimages": { "type": "object", + "description": "The galleryimages resource definition.", "x-ms-azure-resource": true, "x-ms-client-flatten": true, "properties": { @@ -348,36 +349,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/galleryimagesProperties" }, - "id": { - "type": "string", - "readOnly": true, - "description": "Resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Resource Name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource Type" - }, - "location": { - "type": "string", - "description": "The resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, "systemData": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, @@ -396,10 +367,11 @@ } } }, - "required": [ - "location" - ], - "description": "The galleryimages resource definition." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ] }, "galleryimagesPatch": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 3ab69455c8a2..3cce5999fc58 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -387,6 +387,7 @@ }, "networkinterfaces": { "type": "object", + "description": "The networkinterfaces resource definition.", "x-ms-azure-resource": true, "x-ms-client-flatten": true, "properties": { @@ -394,36 +395,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/networkinterfacesProperties" }, - "id": { - "type": "string", - "readOnly": true, - "description": "Resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Resource Name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource Type" - }, - "location": { - "type": "string", - "description": "The resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, "systemData": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, @@ -441,10 +412,11 @@ } } }, - "required": [ - "location" - ], - "description": "The networkinterfaces resource definition." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ] }, "networkinterfacesPatch": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json index 5575a44c056d..f3d5cca0abc7 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json @@ -318,6 +318,7 @@ }, "storagecontainers": { "type": "object", + "description": "The storagecontainers resource definition.", "x-ms-azure-resource": true, "x-ms-client-flatten": true, "properties": { @@ -325,36 +326,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/storagecontainersProperties" }, - "id": { - "type": "string", - "readOnly": true, - "description": "Resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Resource Name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource Type" - }, - "location": { - "type": "string", - "description": "The resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, "systemData": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, @@ -372,10 +343,11 @@ } } }, - "required": [ - "location" - ], - "description": "The storagecontainers resource definition." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ] }, "storagecontainersPatch": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index c1a303e9f3f0..ff490e471d02 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -321,6 +321,7 @@ }, "virtualharddisks": { "type": "object", + "description": "The virtualharddisks resource definition.", "x-ms-azure-resource": true, "x-ms-client-flatten": true, "properties": { @@ -328,36 +329,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/virtualharddisksProperties" }, - "id": { - "type": "string", - "readOnly": true, - "description": "Resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Resource Name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource Type" - }, - "location": { - "type": "string", - "description": "The resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, "systemData": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, @@ -375,10 +346,11 @@ } } }, - "required": [ - "location" - ], - "description": "The virtualharddisks resource definition." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ] }, "virtualharddisksPatch": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index c450db3546d3..1e9a7e3919f8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -632,6 +632,7 @@ }, "virtualmachines": { "type": "object", + "description": "The virtualmachines resource definition.", "x-ms-client-flatten": true, "x-ms-azure-resource": true, "properties": { @@ -639,36 +640,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/virtualmachinesProperties" }, - "id": { - "type": "string", - "readOnly": true, - "description": "Resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Resource Name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource Type" - }, - "location": { - "type": "string", - "description": "The resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, "systemData": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, @@ -686,10 +657,11 @@ } } }, - "required": [ - "location" - ], - "description": "The virtualmachines resource definition." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ] }, "hardwareProfileUpdate": { "type": "object", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 213a0a8d59fd..b67d38463387 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -482,6 +482,7 @@ }, "virtualnetworks": { "type": "object", + "description": "The virtualnetworks resource definition.", "x-ms-azure-resource": true, "x-ms-client-flatten": true, "properties": { @@ -489,36 +490,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/virtualnetworksProperties" }, - "id": { - "type": "string", - "readOnly": true, - "description": "Resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Resource Name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource Type" - }, - "location": { - "type": "string", - "description": "The resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, "systemData": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, @@ -536,10 +507,11 @@ } } }, - "required": [ - "location" - ], - "description": "The virtualnetworks resource definition." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ] }, "virtualnetworksPatch": { "type": "object", From 38fa4f3fe5c8e1cb99b9fd757bae695db21dec02 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 14 Mar 2022 21:01:48 +0530 Subject: [PATCH 12/43] Change vmSize type to enum --- .../2021-07-01-preview/virtualMachines.json | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 1e9a7e3919f8..bc3b4ad4e5bb 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -667,7 +667,36 @@ "type": "object", "properties": { "vmSize": { - "type": "string" + "type": "string", + "enum": [ + "Default", + "Standard_A2_v2", + "Standard_A4_v2", + "Standard_D2s_v3", + "Standard_D4s_v3", + "Standard_D8s_v3", + "Standard_D16s_v3", + "Standard_D32s_v3", + "Standard_DS2_v2", + "Standard_DS3_v2", + "Standard_DS4_v2", + "Standard_DS5_v2", + "Standard_DS13_v2", + "Standard_K8S_v1", + "Standard_K8S2_v1", + "Standard_K8S3_v1", + "Standard_K8S4_v1", + "Standard_NK6", + "Standard_NK12", + "Standard_NV6", + "Standard_NV12", + "Standard_K8S5_v1", + "Custom" + ], + "x-ms-enum": { + "name": "VmSizeEnum", + "modelAsString": true + } }, "processors": { "type": "integer", From 32a7b862d77d45094d86564739601af4203d4984 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 14 Mar 2022 21:04:41 +0530 Subject: [PATCH 13/43] Set adminPassword mutability to [create] --- .../preview/2021-07-01-preview/virtualMachines.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index bc3b4ad4e5bb..4e233fe348d3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -478,7 +478,10 @@ "adminPassword": { "type": "string", "x-ms-secret": true, - "description": "AdminPassword - admin password" + "description": "AdminPassword - admin password", + "x-ms-mutability": [ + "create" + ] }, "adminUsername": { "type": "string", From e90e6e28849beb41a2f098dcae636403f9fd13a8 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 14 Mar 2022 21:13:00 +0530 Subject: [PATCH 14/43] Set osType as Enum --- .../preview/2021-07-01-preview/virtualMachines.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 4e233fe348d3..67be1c151015 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -508,6 +508,7 @@ "properties": { "keyData": { "type": "string", + "x-ms-secret": true, "description": "KeyData - SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Li nux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)." }, "path": { @@ -527,7 +528,15 @@ }, "osType": { "type": "string", - "description": "OsType - string specifying whether the OS is Linux or Windows" + "description": "OsType - string specifying whether the OS is Linux or Windows", + "enum": [ + "Linux", + "Windows" + ], + "x-ms-enum": { + "name": "OsTypeEnum", + "modelAsString": true + } }, "windowsConfiguration": { "type": "object", From 46081ed7a41198dd79e2edaf788ba9079278fb75 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 14 Mar 2022 21:26:03 +0530 Subject: [PATCH 15/43] Set networkType as enum --- .../2021-07-01-preview/virtualNetworks.json | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index b67d38463387..707aca4592c8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -202,12 +202,6 @@ "schema": { "$ref": "#/definitions/virtualnetworks" } - }, - "201": { - "description": "Updates the virtualnetworks resource.", - "schema": { - "$ref": "#/definitions/virtualnetworks" - } } } } @@ -293,7 +287,22 @@ "properties": { "networkType": { "type": "string", - "description": "Type of the network" + "description": "Type of the network", + "enum": [ + "NAT", + "Transparent", + "L2Bridge", + "L2Tunnel", + "ICS", + "Private", + "Overlay", + "Internal", + "Mirrored" + ], + "x-ms-enum": { + "name": "NetworkTypeEnum", + "modelAsString": true + } }, "subnets": { "type": "array", From 509a26512360b1dccb173bf7e4d29fa05729e165 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 14 Mar 2022 21:31:27 +0530 Subject: [PATCH 16/43] Some changes based on feedback --- .../2021-07-01-preview/virtualNetworks.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 707aca4592c8..e002ebac5ae0 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -330,7 +330,15 @@ }, "ipAllocationMethod": { "type": "string", - "description": "IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'" + "description": "IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'", + "enum": [ + "Dynamic", + "Static" + ], + "x-ms-enum": { + "name": "IpAllocationMethodEnum", + "modelAsString": true + } }, "ipConfigurationReferences": { "type": "array", @@ -478,11 +486,11 @@ }, "start": { "type": "string", - "description": "start of the ip address pool" + "description": "First IP of the pool" }, "end": { "type": "string", - "description": "end of the ip address pool" + "description": "Last IP of the pool" }, "info": { "$ref": "#/definitions/IPPoolInfo" From 3c0f17fab552133e218c708ea9e4b4b42f23cc74 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Wed, 16 Mar 2022 20:36:27 +0530 Subject: [PATCH 17/43] Remove storagecontainers --- .../2021-07-01-preview/storageContainers.json | 391 ------------------ .../azurestackhci/resource-manager/readme.md | 2 - 2 files changed, 393 deletions(-) delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json deleted file mode 100644 index f3d5cca0abc7..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json +++ /dev/null @@ -1,391 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "AzureStackHCI", - "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-07-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storagecontainers/{storagecontainersName}": { - "get": { - "operationId": "storagecontainers_Retrieve", - "x-ms-examples": { - "GetStorageContainer": { - "$ref": "./examples/GetStorageContainer.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/storagecontainersNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Retrieves the storagecontainers resource.", - "schema": { - "$ref": "#/definitions/storagecontainers" - } - } - } - }, - "put": { - "operationId": "storagecontainers_CreateOrUpdate", - "x-ms-examples": { - "PutStorageContainer": { - "$ref": "./examples/PutStorageContainer.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/storagecontainersNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "storagecontainers", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/storagecontainers" - } - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Updates the storagecontainers resource.", - "schema": { - "$ref": "#/definitions/storagecontainers" - } - }, - "201": { - "description": "Creates the storagecontainers resource.", - "schema": { - "$ref": "#/definitions/storagecontainers" - } - } - } - }, - "delete": { - "operationId": "storagecontainers_Delete", - "x-ms-examples": { - "DeleteStorageContainer": { - "$ref": "./examples/DeleteStorageContainer.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/storagecontainersNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Deletes the storagecontainers resource." - }, - "204": { - "description": "No content" - } - } - }, - "patch": { - "operationId": "storagecontainers_Update", - "x-ms-examples": { - "UpdateStorageContainer": { - "$ref": "./examples/UpdateStorageContainer.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/storagecontainersNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "storagecontainers", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/storagecontainersPatch" - } - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Updates the storagecontainers resource.", - "schema": { - "$ref": "#/definitions/storagecontainers" - } - }, - "201": { - "description": "Updates the storagecontainers resource.", - "schema": { - "$ref": "#/definitions/storagecontainers" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storagecontainers": { - "get": { - "operationId": "storagecontainers_ListByResourceGroup", - "x-ms-examples": { - "ListStorageContainerByResourceGroup": { - "$ref": "./examples/ListStorageContainerByResourceGroup.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Lists all storagecontainers under the resource group.", - "schema": { - "$ref": "#/definitions/storagecontainersListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/storagecontainers": { - "get": { - "operationId": "storagecontainers_ListBySubscription", - "x-ms-examples": { - "ListStorageContainerByResourceGroup": { - "$ref": "./examples/ListStorageContainerBySubscription.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Lists all storagecontainers under the subscription.", - "schema": { - "$ref": "#/definitions/storagecontainersListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "storagecontainersProperties": { - "type": "object", - "x-ms-client-flatten": true, - "properties": { - "path": { - "type": "string", - "description": "location of the image the gallery image should be created from" - }, - "provisioningState": { - "type": "string", - "enum": [ - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "ProvisioningStateEnum", - "modelAsString": true - } - }, - "resourceName": { - "type": "string", - "description": "name of the object to be used in moc" - }, - "status": { - "type": "object", - "description": "MOCStorageContainerStatus defines the observed state of MOCStorageContainer" - } - } - }, - "storagecontainers": { - "type": "object", - "description": "The storagecontainers resource definition.", - "x-ms-azure-resource": true, - "x-ms-client-flatten": true, - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/storagecontainersProperties" - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, - "extendedLocation": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The extended location type." - }, - "name": { - "type": "string", - "description": "The extended location name." - } - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ] - }, - "storagecontainersPatch": { - "type": "object", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "description": "The storagecontainers resource patch definition." - }, - "storagecontainersListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/storagecontainers" - } - }, - "nextLink": { - "type": "string" - } - } - } - }, - "parameters": { - "storagecontainersNameParameter": { - "name": "storagecontainersName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "maxLength": 64, - "minLength": 3 - } - } -} diff --git a/specification/azurestackhci/resource-manager/readme.md b/specification/azurestackhci/resource-manager/readme.md index 7064e1d32875..1f5fc4666da8 100644 --- a/specification/azurestackhci/resource-manager/readme.md +++ b/specification/azurestackhci/resource-manager/readme.md @@ -50,7 +50,6 @@ directive: - updates.json - galleryImages.json - networkInterfaces.json - - storageContainers.json - virtualHardDisks.json - virtualMachines.json - virtualNetworks.json @@ -119,7 +118,6 @@ These settings apply only when `--tag=package-preview-2021-07` is specified on t input-file: - Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json - Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json - - Microsoft.AzureStackHCI/preview/2021-07-01-preview/storageContainers.json - Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json - Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json - Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json From 0a0903a6ad90f50bf85a0d3e934e5dd2cff4ca51 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Thu, 17 Mar 2022 15:05:54 +0530 Subject: [PATCH 18/43] Add MocVirtualMachineStatus object --- .../2021-07-01-preview/virtualMachines.json | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 67be1c151015..16f9f804bb13 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -636,12 +636,43 @@ } }, "status": { - "type": "object", - "description": "MOCVirtualMachineStatus defines the observed state of MOCVirtualMachine" + "$ref": "#/definitions/MOCVirtualMachineStatus" } }, "description": "MOCVirtualMachineSpec defines the desired state of MOCVirtualMachine" }, + "MOCVirtualMachineStatus": { + "type": "object", + "description": "MOCVirtualMachineSpec defines the desired state of MOCVirtualMachine", + "x-mx-client-flatten": true, + "properties": { + "powerState": { + "type": "string", + "description": "PowerState of the VM", + "enum": [ + "Deallocated", + "Deallocating", + "Running", + "Starting", + "Stopped", + "Stopping", + "Unknown" + ], + "x-ms-enum": { + "name": "PowerStateEnum", + "modelAsString": true + } + }, + "errorCode": { + "type": "string", + "description": "VM provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + } + } + }, "virtualmachines": { "type": "object", "description": "The virtualmachines resource definition.", From 9e94e76437c73e1964b39032f91e20dd677d9198 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Thu, 17 Mar 2022 15:32:05 +0530 Subject: [PATCH 19/43] Fix provisioningState enum --- .../preview/2021-07-01-preview/virtualMachines.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 16f9f804bb13..9fa4c5d37b76 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -628,7 +628,8 @@ "type": "string", "enum": [ "Succeeded", - "Failed" + "Failed", + "InProgress" ], "x-ms-enum": { "name": "ProvisioningStateEnum", From 3dfa27f0b08597d76fa0721c0b70c548f962a9ce Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Thu, 17 Mar 2022 19:26:00 +0530 Subject: [PATCH 20/43] Fix networkinterface id description --- .../preview/2021-07-01-preview/virtualMachines.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 9fa4c5d37b76..cd70c75f4356 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -463,7 +463,7 @@ "properties": { "id": { "type": "string", - "description": "ID - Resource Id" + "description": "Name of the network interface" } } }, @@ -765,7 +765,7 @@ "properties": { "id": { "type": "string", - "description": "ID - Resource Id" + "description": "Name of the network interface" } } }, From 5ec05956a7e17aa663a858bee4b8c5c78fc7aeec Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Thu, 17 Mar 2022 19:29:46 +0530 Subject: [PATCH 21/43] Fix provisioningState in all the resources --- .../preview/2021-07-01-preview/galleryImages.json | 3 ++- .../preview/2021-07-01-preview/networkInterfaces.json | 3 ++- .../preview/2021-07-01-preview/virtualHardDisks.json | 11 ++++++++++- .../preview/2021-07-01-preview/virtualNetworks.json | 3 ++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index ab4565cc1dbf..ce39bd3120e5 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -322,7 +322,8 @@ "description": "Provisioning state of the gallery image.", "enum": [ "Succeeded", - "Failed" + "Failed", + "InProgress" ], "x-ms-enum": { "name": "ProvisioningStateEnum", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 3cce5999fc58..6c0619c5a90c 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -323,7 +323,8 @@ "type": "string", "enum": [ "Succeeded", - "Failed" + "Failed", + "InProgress" ], "x-ms-enum": { "name": "ProvisioningStateEnum", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index ff490e471d02..c3c63118c1a1 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -306,7 +306,16 @@ "format": "int32" }, "provisioningState": { - "type": "string" + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } }, "resourceName": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index e002ebac5ae0..cc3be301ba07 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -436,7 +436,8 @@ "type": "string", "enum": [ "Succeeded", - "Failed" + "Failed", + "InProgress" ], "x-ms-enum": { "name": "ProvisioningStateEnum", From 681be29b02004ec833aca3ed66b613aa2d36201c Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Thu, 17 Mar 2022 19:45:40 +0530 Subject: [PATCH 22/43] Update description of ipConfigurationReferences.ID --- .../preview/2021-07-01-preview/virtualNetworks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index cc3be301ba07..35c457791d91 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -347,7 +347,7 @@ "properties": { "ID": { "type": "string", - "description": "IPConfigurationID" + "description": "Name of the Ip Configuration" } }, "description": "IPConfigurationReference - Describes a IPConfiguration under the virtual network" From 46f14fa9d0ce46d2f81f20bb05b8202342b0b6b1 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Fri, 18 Mar 2022 16:22:36 +0530 Subject: [PATCH 23/43] Add typed status object --- .../2021-07-01-preview/galleryImages.json | 18 ++++++++++++++++-- .../2021-07-01-preview/networkInterfaces.json | 18 ++++++++++++++++-- .../2021-07-01-preview/virtualHardDisks.json | 18 ++++++++++++++++-- .../2021-07-01-preview/virtualNetworks.json | 18 ++++++++++++++++-- 4 files changed, 64 insertions(+), 8 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index ce39bd3120e5..4faa8abec0da 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -335,8 +335,22 @@ "description": "name of the object to be used in moc" }, "status": { - "type": "object", - "description": "MOCGalleryImageStatus defines the observed state of MOCGalleryImage" + "$ref": "#/definitions/MOCGalleryImageStatus" + } + } + }, + "MOCGalleryImageStatus": { + "type": "object", + "description": "MOCGalleryImageStatus defines the desired state of MOCGalleryImage", + "x-mx-client-flatten": true, + "properties": { + "errorCode": { + "type": "string", + "description": "GalleryImage provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" } } }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 6c0619c5a90c..9470a3db153e 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -336,12 +336,26 @@ "description": "name of the object to be used in moc" }, "status": { - "type": "object", - "description": "MOCNetworkInterfaceStatus defines the observed state of MOCNetworkInterface" + "$ref": "#/definitions/MOCNetworkInterfaceStatus" } }, "description": "MOCNetworkInterfaceSpec defines the desired state of MOCNetworkInterface" }, + "MOCNetworkInterfaceStatus": { + "type": "object", + "description": "MOCNetworkInterfaceStatus defines the desired state of MOCNetworkInterface", + "x-mx-client-flatten": true, + "properties": { + "errorCode": { + "type": "string", + "description": "NetworkInterface provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + } + } + }, "ipConfiguration": { "type": "object", "x-ms-client-flatten": true, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index c3c63118c1a1..577036b984fa 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -322,12 +322,26 @@ "description": "name of the object to be used in moc" }, "status": { - "type": "object", - "description": "MOCVirtualHardDiskStatus defines the observed state of MOCVirtualHardDisk" + "$ref": "#/definitions/MOCVirtualHardDiskStatus" } }, "description": "MOCVirtualHardDiskSpec defines the desired state of MOCVirtualHardDisk" }, + "MOCVirtualHardDiskStatus": { + "type": "object", + "description": "MOCVirtualHardDiskStatus defines the desired state of MocVirtualHardDisk", + "x-mx-client-flatten": true, + "properties": { + "errorCode": { + "type": "string", + "description": "NetworkInterface provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + } + } + }, "virtualharddisks": { "type": "object", "description": "The virtualharddisks resource definition.", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 35c457791d91..916743d67813 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -449,12 +449,26 @@ "description": "name of the object to be used in moc" }, "status": { - "type": "object", - "description": "MOCVirtualNetworkStatus defines the observed state of MOCVirtualNetwork" + "$ref": "#/definitions/MOCVirtualNetworkStatus" } }, "description": "MOCVirtualNetworkSpec defines the desired state of MOCVirtualNetwork" }, + "MOCVirtualNetworkStatus": { + "type": "object", + "description": "MOCVirtualNetworkStatus defines the desired state of MOCVirtualNetwork", + "x-mx-client-flatten": true, + "properties": { + "errorCode": { + "type": "string", + "description": "VirtualNetwork provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + } + } + }, "IPPoolInfo": { "type": "object", "properties": { From 35cb52ca35267c46e47deb8c6fac4c3a9f41ed46 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Fri, 18 Mar 2022 16:27:32 +0530 Subject: [PATCH 24/43] Use common-types v3/types.json objects --- .../preview/2021-07-01-preview/galleryImages.json | 5 +---- .../preview/2021-07-01-preview/networkInterfaces.json | 5 +---- .../preview/2021-07-01-preview/virtualHardDisks.json | 5 +---- .../preview/2021-07-01-preview/virtualMachines.json | 5 +---- .../preview/2021-07-01-preview/virtualNetworks.json | 5 +---- 5 files changed, 5 insertions(+), 20 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index 4faa8abec0da..17467adcc992 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -364,9 +364,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/galleryimagesProperties" }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "extendedLocation": { "type": "object", "description": "The extendedLocation of the resource.", @@ -384,7 +381,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 9470a3db153e..84b58f467efc 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -410,9 +410,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/networkinterfacesProperties" }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "extendedLocation": { "type": "object", "properties": { @@ -429,7 +426,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index 577036b984fa..f6b8385ce50f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -352,9 +352,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/virtualharddisksProperties" }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "extendedLocation": { "type": "object", "properties": { @@ -371,7 +368,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index cd70c75f4356..3c367da67ff1 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -684,9 +684,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/virtualmachinesProperties" }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "extendedLocation": { "type": "object", "properties": { @@ -703,7 +700,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 916743d67813..0f2ff9bd94ed 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -522,9 +522,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/virtualnetworksProperties" }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "extendedLocation": { "type": "object", "properties": { @@ -541,7 +538,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, From 48cf271915c6174eed82bff2ef9d42244bcf2ec8 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Fri, 18 Mar 2022 16:35:08 +0530 Subject: [PATCH 25/43] Remove 201 response from update apis --- .../preview/2021-07-01-preview/galleryImages.json | 6 ------ .../preview/2021-07-01-preview/networkInterfaces.json | 6 ------ .../preview/2021-07-01-preview/virtualMachines.json | 6 ------ 3 files changed, 18 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index 17467adcc992..b005a927dba7 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -206,12 +206,6 @@ "schema": { "$ref": "#/definitions/galleryimages" } - }, - "201": { - "description": "Updates the galleryimages resource.", - "schema": { - "$ref": "#/definitions/galleryimages" - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 84b58f467efc..568afa0f3dbf 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -202,12 +202,6 @@ "schema": { "$ref": "#/definitions/networkinterfaces" } - }, - "201": { - "description": "Updates the networkinterfaces resource.", - "schema": { - "$ref": "#/definitions/networkinterfaces" - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 3c367da67ff1..230ccc7fbf4a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -202,12 +202,6 @@ "schema": { "$ref": "#/definitions/virtualmachines" } - }, - "201": { - "description": "Updates the virtualmachines resource.", - "schema": { - "$ref": "#/definitions/virtualmachines" - } } } } From 09c4f8a28b3b9f5babaa84959170059a8ab4670b Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Fri, 18 Mar 2022 16:41:41 +0530 Subject: [PATCH 26/43] Add enum PrivateIPAllocationMethod --- .../preview/2021-07-01-preview/networkInterfaces.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 568afa0f3dbf..babcbfaf8146 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -376,7 +376,15 @@ }, "privateIPAllocationMethod": { "type": "string", - "description": "PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic'" + "description": "PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic'", + "enum": [ + "Dynamic", + "Static" + ], + "x-ms-enum": { + "name": "PrivateIPAllocationMethodEnum", + "modelAsString": true + } }, "subnet": { "type": "object", From 9c3d49fc7fbbb7f54795f5ec68b7a3e8986392b1 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Fri, 29 Apr 2022 16:06:01 +0530 Subject: [PATCH 27/43] Add additional provisioningState enum variants --- .../preview/2021-07-01-preview/galleryImages.json | 4 +++- .../preview/2021-07-01-preview/networkInterfaces.json | 4 +++- .../preview/2021-07-01-preview/virtualHardDisks.json | 4 +++- .../preview/2021-07-01-preview/virtualMachines.json | 4 +++- .../preview/2021-07-01-preview/virtualNetworks.json | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index b005a927dba7..1cf0d4576077 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -317,7 +317,9 @@ "enum": [ "Succeeded", "Failed", - "InProgress" + "InProgress", + "Accepted", + "Deleting" ], "x-ms-enum": { "name": "ProvisioningStateEnum", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index babcbfaf8146..e442043ad957 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -318,7 +318,9 @@ "enum": [ "Succeeded", "Failed", - "InProgress" + "InProgress", + "Accepted", + "Deleting" ], "x-ms-enum": { "name": "ProvisioningStateEnum", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index f6b8385ce50f..ffa6d324a0c2 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -310,7 +310,9 @@ "enum": [ "Succeeded", "Failed", - "InProgress" + "InProgress", + "Accepted", + "Deleting" ], "x-ms-enum": { "name": "ProvisioningStateEnum", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 230ccc7fbf4a..8bfed177061d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -623,7 +623,9 @@ "enum": [ "Succeeded", "Failed", - "InProgress" + "InProgress", + "Accepted", + "Deleting" ], "x-ms-enum": { "name": "ProvisioningStateEnum", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 0f2ff9bd94ed..d51bee79ce41 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -437,7 +437,9 @@ "enum": [ "Succeeded", "Failed", - "InProgress" + "InProgress", + "Accepted", + "Deleting" ], "x-ms-enum": { "name": "ProvisioningStateEnum", From ab16dd5843075b9f7e2046af095e2771a01d1536 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Fri, 29 Apr 2022 16:06:59 +0530 Subject: [PATCH 28/43] Fix typo --- .../preview/2021-07-01-preview/galleryImages.json | 2 +- .../preview/2021-07-01-preview/networkInterfaces.json | 2 +- .../preview/2021-07-01-preview/virtualHardDisks.json | 2 +- .../preview/2021-07-01-preview/virtualMachines.json | 2 +- .../preview/2021-07-01-preview/virtualNetworks.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index 1cf0d4576077..93a7c95081cc 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -338,7 +338,7 @@ "MOCGalleryImageStatus": { "type": "object", "description": "MOCGalleryImageStatus defines the desired state of MOCGalleryImage", - "x-mx-client-flatten": true, + "x-ms-client-flatten": true, "properties": { "errorCode": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index e442043ad957..cb6f498483dc 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -340,7 +340,7 @@ "MOCNetworkInterfaceStatus": { "type": "object", "description": "MOCNetworkInterfaceStatus defines the desired state of MOCNetworkInterface", - "x-mx-client-flatten": true, + "x-ms-client-flatten": true, "properties": { "errorCode": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index ffa6d324a0c2..8d2010982037 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -332,7 +332,7 @@ "MOCVirtualHardDiskStatus": { "type": "object", "description": "MOCVirtualHardDiskStatus defines the desired state of MocVirtualHardDisk", - "x-mx-client-flatten": true, + "x-ms-client-flatten": true, "properties": { "errorCode": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 8bfed177061d..069e17e74267 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -641,7 +641,7 @@ "MOCVirtualMachineStatus": { "type": "object", "description": "MOCVirtualMachineSpec defines the desired state of MOCVirtualMachine", - "x-mx-client-flatten": true, + "x-ms-client-flatten": true, "properties": { "powerState": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index d51bee79ce41..719a5636ebfe 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -459,7 +459,7 @@ "MOCVirtualNetworkStatus": { "type": "object", "description": "MOCVirtualNetworkStatus defines the desired state of MOCVirtualNetwork", - "x-mx-client-flatten": true, + "x-ms-client-flatten": true, "properties": { "errorCode": { "type": "string", From 7e50b0213774685d9e6f9e13a50410a2cbf891a2 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Fri, 29 Apr 2022 16:21:57 +0530 Subject: [PATCH 29/43] Remove MOC reference from object definitions --- .../preview/2021-07-01-preview/galleryImages.json | 6 +++--- .../2021-07-01-preview/networkInterfaces.json | 8 ++++---- .../preview/2021-07-01-preview/virtualHardDisks.json | 8 ++++---- .../preview/2021-07-01-preview/virtualMachines.json | 8 ++++---- .../preview/2021-07-01-preview/virtualNetworks.json | 12 ++++++------ 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index 93a7c95081cc..b6af15ce812e 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -331,13 +331,13 @@ "description": "name of the object to be used in moc" }, "status": { - "$ref": "#/definitions/MOCGalleryImageStatus" + "$ref": "#/definitions/GalleryImageStatus" } } }, - "MOCGalleryImageStatus": { + "GalleryImageStatus": { "type": "object", - "description": "MOCGalleryImageStatus defines the desired state of MOCGalleryImage", + "description": "GalleryImageStatus defines the observed state of MOCGalleryImage", "x-ms-client-flatten": true, "properties": { "errorCode": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index cb6f498483dc..0128bef53b4f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -332,14 +332,14 @@ "description": "name of the object to be used in moc" }, "status": { - "$ref": "#/definitions/MOCNetworkInterfaceStatus" + "$ref": "#/definitions/NetworkInterfaceStatus" } }, - "description": "MOCNetworkInterfaceSpec defines the desired state of MOCNetworkInterface" + "description": "NetworkInterfaceSpec defines the desired state of NetworkInterface" }, - "MOCNetworkInterfaceStatus": { + "NetworkInterfaceStatus": { "type": "object", - "description": "MOCNetworkInterfaceStatus defines the desired state of MOCNetworkInterface", + "description": "NetworkInterfaceStatus defines the observed state of NetworkInterface", "x-ms-client-flatten": true, "properties": { "errorCode": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index 8d2010982037..2fb3c0aa859d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -324,14 +324,14 @@ "description": "name of the object to be used in moc" }, "status": { - "$ref": "#/definitions/MOCVirtualHardDiskStatus" + "$ref": "#/definitions/VirtualHardDiskStatus" } }, - "description": "MOCVirtualHardDiskSpec defines the desired state of MOCVirtualHardDisk" + "description": "VirtualHardDiskSpec defines the desired state of VirtualHardDisk" }, - "MOCVirtualHardDiskStatus": { + "VirtualHardDiskStatus": { "type": "object", - "description": "MOCVirtualHardDiskStatus defines the desired state of MocVirtualHardDisk", + "description": "VirtualHardDiskStatus defines the observed state of VirtualHardDisk", "x-ms-client-flatten": true, "properties": { "errorCode": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 069e17e74267..a613ca562217 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -633,14 +633,14 @@ } }, "status": { - "$ref": "#/definitions/MOCVirtualMachineStatus" + "$ref": "#/definitions/VirtualMachineStatus" } }, - "description": "MOCVirtualMachineSpec defines the desired state of MOCVirtualMachine" + "description": "VirtualMachineSpec defines the desired state of VirtualMachine" }, - "MOCVirtualMachineStatus": { + "VirtualMachineStatus": { "type": "object", - "description": "MOCVirtualMachineSpec defines the desired state of MOCVirtualMachine", + "description": "VirtualMachineStatus defines the observed state of VirtualMachine", "x-ms-client-flatten": true, "properties": { "powerState": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 719a5636ebfe..cfbf65e536a8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -451,14 +451,14 @@ "description": "name of the object to be used in moc" }, "status": { - "$ref": "#/definitions/MOCVirtualNetworkStatus" + "$ref": "#/definitions/VirtualNetworkStatus" } }, - "description": "MOCVirtualNetworkSpec defines the desired state of MOCVirtualNetwork" + "description": "VirtualNetworkSpec defines the desired state of VirtualNetwork" }, - "MOCVirtualNetworkStatus": { + "VirtualNetworkStatus": { "type": "object", - "description": "MOCVirtualNetworkStatus defines the desired state of MOCVirtualNetwork", + "description": "VirtualNetworkStatus defines the observed state of VirtualNetwork", "x-ms-client-flatten": true, "properties": { "errorCode": { @@ -503,11 +503,11 @@ }, "start": { "type": "string", - "description": "First IP of the pool" + "description": "First IP in the pool" }, "end": { "type": "string", - "description": "Last IP of the pool" + "description": "Last IP in the pool" }, "info": { "$ref": "#/definitions/IPPoolInfo" From 46461d690fbe753e5deefe356db9b72af75e056b Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Fri, 29 Apr 2022 16:25:10 +0530 Subject: [PATCH 30/43] Set provisioningState as read only --- .../preview/2021-07-01-preview/galleryImages.json | 1 + .../preview/2021-07-01-preview/networkInterfaces.json | 1 + .../preview/2021-07-01-preview/virtualHardDisks.json | 1 + .../preview/2021-07-01-preview/virtualMachines.json | 1 + .../preview/2021-07-01-preview/virtualNetworks.json | 1 + 5 files changed, 5 insertions(+) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index b6af15ce812e..6ffaca491348 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -314,6 +314,7 @@ "provisioningState": { "type": "string", "description": "Provisioning state of the gallery image.", + "readOnly": true, "enum": [ "Succeeded", "Failed", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 0128bef53b4f..4f1e96fe7fe0 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -315,6 +315,7 @@ }, "provisioningState": { "type": "string", + "readOnly": true, "enum": [ "Succeeded", "Failed", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index 2fb3c0aa859d..da5cfc7c03fd 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -307,6 +307,7 @@ }, "provisioningState": { "type": "string", + "readOnly": true, "enum": [ "Succeeded", "Failed", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index a613ca562217..ec6ada8836b5 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -620,6 +620,7 @@ }, "provisioningState": { "type": "string", + "readOnly": true, "enum": [ "Succeeded", "Failed", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index cfbf65e536a8..6f7185c5ee61 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -434,6 +434,7 @@ }, "provisioningState": { "type": "string", + "readOnly": true, "enum": [ "Succeeded", "Failed", From dcb894ecfc0d48526fac6a431d3493793d161c0e Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Thu, 2 Jun 2022 13:19:46 +0530 Subject: [PATCH 31/43] Mark Statuses as readOnly --- .../preview/2021-07-01-preview/galleryImages.json | 1 + .../preview/2021-07-01-preview/networkInterfaces.json | 1 + .../preview/2021-07-01-preview/virtualHardDisks.json | 1 + .../preview/2021-07-01-preview/virtualMachines.json | 1 + .../preview/2021-07-01-preview/virtualNetworks.json | 1 + 5 files changed, 5 insertions(+) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index 6ffaca491348..96c04eafbcc8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -340,6 +340,7 @@ "type": "object", "description": "GalleryImageStatus defines the observed state of MOCGalleryImage", "x-ms-client-flatten": true, + "readOnly": true, "properties": { "errorCode": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 4f1e96fe7fe0..264e36388807 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -342,6 +342,7 @@ "type": "object", "description": "NetworkInterfaceStatus defines the observed state of NetworkInterface", "x-ms-client-flatten": true, + "readOnly": true, "properties": { "errorCode": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index da5cfc7c03fd..0f5f946bfcf1 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -334,6 +334,7 @@ "type": "object", "description": "VirtualHardDiskStatus defines the observed state of VirtualHardDisk", "x-ms-client-flatten": true, + "readOnly": true, "properties": { "errorCode": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index ec6ada8836b5..8adfba60f492 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -643,6 +643,7 @@ "type": "object", "description": "VirtualMachineStatus defines the observed state of VirtualMachine", "x-ms-client-flatten": true, + "readOnly": true, "properties": { "powerState": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 6f7185c5ee61..4bf2a42fb0a1 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -461,6 +461,7 @@ "type": "object", "description": "VirtualNetworkStatus defines the observed state of VirtualNetwork", "x-ms-client-flatten": true, + "readOnly": true, "properties": { "errorCode": { "type": "string", From 10fd8143e36d6559aee39b9280e9cf4d02b898b5 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Fri, 3 Jun 2022 19:42:10 +0530 Subject: [PATCH 32/43] Change description of routeTable ID --- .../preview/2021-07-01-preview/virtualNetworks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 4bf2a42fb0a1..563041362b66 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -360,7 +360,7 @@ "properties": { "id": { "type": "string", - "description": "Etag - Gets a unique read-only string that changes whenever the resource is updated." + "description": "Name of the Route" }, "name": { "type": "string", From 97de8ca8d89a660175630aa9054f3518ba5c108d Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 13 Jun 2022 17:15:49 +0530 Subject: [PATCH 33/43] Put extended location definition in a common file --- .../preview/2021-07-01-preview/common.json | 63 +++++++++++++++++++ .../2021-07-01-preview/galleryImages.json | 14 +---- .../2021-07-01-preview/networkInterfaces.json | 13 +--- .../2021-07-01-preview/virtualHardDisks.json | 13 +--- .../2021-07-01-preview/virtualMachines.json | 13 +--- .../2021-07-01-preview/virtualNetworks.json | 13 +--- 6 files changed, 73 insertions(+), 56 deletions(-) create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json new file mode 100644 index 000000000000..7ddc310b25a9 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json @@ -0,0 +1,63 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec", + "version": "2021-07-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "ExtendedLocationType": { + "type": "string", + "description": "The type of extendedLocation.", + "enum": [ + "EdgeZone" + ], + "x-ms-enum": { + "name": "ExtendedLocationTypes", + "modelAsString": true + } + }, + "ExtendedLocation": { + "description": "The complex type of the extended location.", + "properties": { + "name": { + "type": "string", + "description": "The name of the extended location." + }, + "type": { + "$ref": "#/definitions/ExtendedLocationType", + "description": "The type of the extended location." + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index 96c04eafbcc8..d823328454f1 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -363,18 +363,8 @@ "$ref": "#/definitions/galleryimagesProperties" }, "extendedLocation": { - "type": "object", - "description": "The extendedLocation of the resource.", - "properties": { - "type": { - "type": "string", - "description": "The extended location type." - }, - "name": { - "type": "string", - "description": "The extended location name." - } - } + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." } }, "allOf": [ diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 264e36388807..5f89626c6aab 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -417,17 +417,8 @@ "$ref": "#/definitions/networkinterfacesProperties" }, "extendedLocation": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The extended location type." - }, - "name": { - "type": "string", - "description": "The extended location name." - } - } + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." } }, "allOf": [ diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json index 0f5f946bfcf1..75dc5b899e24 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json @@ -357,17 +357,8 @@ "$ref": "#/definitions/virtualharddisksProperties" }, "extendedLocation": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The extended location type." - }, - "name": { - "type": "string", - "description": "The extended location name." - } - } + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." } }, "allOf": [ diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 8adfba60f492..58b1a25680ef 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -683,17 +683,8 @@ "$ref": "#/definitions/virtualmachinesProperties" }, "extendedLocation": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The extended location type." - }, - "name": { - "type": "string", - "description": "The extended location name." - } - } + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." } }, "allOf": [ diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 563041362b66..4ca7c39216ef 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -527,17 +527,8 @@ "$ref": "#/definitions/virtualnetworksProperties" }, "extendedLocation": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The extended location type." - }, - "name": { - "type": "string", - "description": "The extended location name." - } - } + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." } }, "allOf": [ From 1182f841b21065f3ec1bbe7f71f43d60a4fe54fd Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 13 Jun 2022 17:18:06 +0530 Subject: [PATCH 34/43] Change description of route.ID --- .../preview/2021-07-01-preview/virtualNetworks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json index 4ca7c39216ef..82abc2fe58ea 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json @@ -360,7 +360,7 @@ "properties": { "id": { "type": "string", - "description": "Name of the Route" + "description": "route ID - ID of the IP route" }, "name": { "type": "string", From d8ae2f572546324c0e34c7369664c1557599c265 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 8 Aug 2022 20:50:03 +0530 Subject: [PATCH 35/43] Fix customLocation enum types --- .../preview/2021-07-01-preview/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json index 7ddc310b25a9..5bf74fb7737e 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json @@ -39,7 +39,7 @@ "type": "string", "description": "The type of extendedLocation.", "enum": [ - "EdgeZone" + "CustomLocation" ], "x-ms-enum": { "name": "ExtendedLocationTypes", From b0ae71ef64d5ea08e86d728799ff8135a351164b Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 22 Aug 2022 20:46:32 +0530 Subject: [PATCH 36/43] Remove storageContainers examples StorageContainer is not published in this version --- .../examples/DeleteStorageContainer.json | 12 ----- .../examples/GetStorageContainer.json | 26 --------- .../ListStorageContainerByResourceGroup.json | 29 ---------- .../ListStorageContainerBySubscription.json | 28 ---------- .../examples/PutStorageContainer.json | 52 ------------------ .../examples/UpdateStorageContainer.json | 53 ------------------- 6 files changed, 200 deletions(-) delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteStorageContainer.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetStorageContainer.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerByResourceGroup.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerBySubscription.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutStorageContainer.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateStorageContainer.json diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteStorageContainer.json deleted file mode 100644 index 54ab592d5db5..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteStorageContainer.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "storagecontainersName": "Default_Container", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetStorageContainer.json deleted file mode 100644 index badf3091cb00..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetStorageContainer.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "storagecontainersName": "Default_Container", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/Default_Container", - "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "properties": { - "provisioningState": "Accepted", - "path": "C:\\container_storage" - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerByResourceGroup.json deleted file mode 100644 index 44fb7ec5c5a6..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerByResourceGroup.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/Default_Container", - "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "properties": { - "provisioningState": "Accepted", - "path": "C:\\container_storage" - } - } - ] - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerBySubscription.json deleted file mode 100644 index dfabfd15e1cf..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListStorageContainerBySubscription.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-07-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/Default_Container", - "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "properties": { - "provisioningState": "Accepted", - "path": "C:\\container_storage" - } - } - ] - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutStorageContainer.json deleted file mode 100644 index 210502c58d6a..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutStorageContainer.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "storagecontainersName": "Default_Container", - "api-version": "2021-07-01-preview", - "storagecontainers": { - "location": "West US2", - "extendedLocation": { - "type": "CustomLocation", - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" - }, - "properties": { - "path": "C:\\container_storage" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", - "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "properties": { - "provisioningState": "Accepted", - "path": "C:\\container_storage" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", - "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "properties": { - "provisioningState": "Created", - "path": "C:\\container_storage" - } - } - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateStorageContainer.json deleted file mode 100644 index f38a8e45d262..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateStorageContainer.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "storagecontainersName": "Default_Container", - "api-version": "2021-07-01-preview", - "storagecontainers": { - "tags": { - "additionalProperties": "sample" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", - "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "tags": { - "additionalProperties": "sample" - }, - "properties": { - "provisioningState": "Accepted", - "path": "C:\\container_storage" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", - "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "tags": { - "additionalProperties": "sample" - }, - "properties": { - "provisioningState": "Accepted", - "path": "C:\\container_storage" - } - } - } - } -} From 7edeec6441e3922a3ee456c9bcabfef712c94b21 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 22 Aug 2022 21:00:22 +0530 Subject: [PATCH 37/43] Fix swagger lintdiff --- .../preview/2021-07-01-preview/common.json | 1 + .../preview/2021-07-01-preview/galleryImages.json | 2 ++ .../preview/2021-07-01-preview/networkInterfaces.json | 2 ++ 3 files changed, 5 insertions(+) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json index 5bf74fb7737e..206d26faa6f5 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json @@ -48,6 +48,7 @@ }, "ExtendedLocation": { "description": "The complex type of the extended location.", + "type": "object", "properties": { "name": { "type": "string", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json index d823328454f1..9382be4991c9 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json @@ -101,6 +101,7 @@ "name": "galleryimages", "in": "body", "required": true, + "description": "Spec of the to-be-created galleryimage resource", "schema": { "$ref": "#/definitions/galleryimages" } @@ -189,6 +190,7 @@ "name": "galleryimages", "in": "body", "required": true, + "description": "Patch of the updated galleryimage resource", "schema": { "$ref": "#/definitions/galleryimagesPatch" } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index 5f89626c6aab..fc7c424f81bb 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -99,6 +99,7 @@ "name": "networkinterfaces", "in": "body", "required": true, + "description": "Spec of the to-be-created networkinterface resource", "schema": { "$ref": "#/definitions/networkinterfaces" } @@ -185,6 +186,7 @@ "name": "networkinterfaces", "in": "body", "required": true, + "description": "Patch of the updated networkinterface resource", "schema": { "$ref": "#/definitions/networkinterfacesPatch" } From 5f6876fabc8bdb54e5f77019d9c1f81736591945 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 22 Aug 2022 21:08:28 +0530 Subject: [PATCH 38/43] Remove 201 response from update examples fixes RESPONSE_STATUS_CODE_NOT_IN_SPEC [https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/Semantic-and-Model-Violations-Reference.md\#RESPONSE_STATUS_CODE_NOT_IN_SPEC] --- .../examples/UpdateGalleryImage.json | 20 ---------- .../examples/UpdateNetworkInterface.json | 25 ------------- .../examples/UpdateVirtualHardDisk.json | 19 ---------- .../examples/UpdateVirtualMachine.json | 37 ------------------- .../examples/UpdateVirtualNetwork.json | 19 ---------- 5 files changed, 120 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json index a2cf34d994f7..467bf7eb08a4 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json @@ -30,26 +30,6 @@ "containerName": "Default_Container" } } - }, - "201": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-galimg3325", - "name": "test-gallery-image", - "type": "Microsoft.AzureStackHCI/galleryimages", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "tags": { - "additionalProperties": "sample" - }, - "properties": { - "provisioningState": "Accepted", - "imagePath": "C:\\test.vhdx", - "containerName": "Default_Container" - } - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json index 265e55eeae68..1f4d1f1f0104 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json @@ -35,31 +35,6 @@ "provisioningState": "Accepted" } } - }, - "201": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", - "name": "test-nic", - "type": "Microsoft.AzureStackHCI/networkinterfaces", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "properties": { - "ipConfigurations": [ - { - "name": "ipconfig-sample", - "properties": { - "subnet": { - "id": "test-vnet" - } - } - } - ], - "provisioningState": "Created" - } - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json index ce5c771dbd36..04fafae04763 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json @@ -29,25 +29,6 @@ "provisioningState": "Accepted" } } - }, - "201": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", - "name": "test-vhd", - "type": "Microsoft.AzureStackHCI/virtualharddisks", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "tags": { - "additionalProperties": "sample" - }, - "properties": { - "diskSizeBytes": 32, - "provisioningState": "Created" - } - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json index 25cea4530ae7..280392ec62c3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json @@ -47,43 +47,6 @@ } } } - }, - "201": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", - "name": "test-vm", - "type": "Microsoft.AzureStackHCI/virtualmachines", - "location": "West US2", - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "tags": { - "additionalProperties": "sample" - }, - "properties": { - "provisioningState": "Accepted", - "storageProfile": { - "imageReference": { - "name": "test-gallery-image" - } - }, - "hardwareProfile": { - "vmSize": "Default" - }, - "osProfile": { - "computerName": "luamaster", - "adminUsername": "localadmin" - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "test-nic" - } - ] - } - } - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json index 6c71684e506b..b1458c6ca90b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json @@ -29,25 +29,6 @@ "provisioningState": "Accepted" } } - }, - "201": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet", - "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/virtualnetworks", - "location": "West US2", - "tags": { - "additionalProperties": "sample" - }, - "extendedLocation": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", - "type": "CustomLocation" - }, - "properties": { - "networkType": "Transparent", - "provisioningState": "Created" - } - } } } } From 16dfff499807c7cd76180db4e07f54a212ddada0 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Mon, 22 Aug 2022 21:10:03 +0530 Subject: [PATCH 39/43] Fix PrettierCheck on common.json --- .../preview/2021-07-01-preview/common.json | 2 +- .../preview/2021-07-01-preview/networkInterfaces.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json index 206d26faa6f5..cecf3fd6cb16 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json @@ -3,7 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec", - "version": "2021-07-01-preview" + "version": "2021-07-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json index fc7c424f81bb..bbaf459500a4 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json @@ -99,7 +99,7 @@ "name": "networkinterfaces", "in": "body", "required": true, - "description": "Spec of the to-be-created networkinterface resource", + "description": "Spec of the to-be-created networkinterfaces resource", "schema": { "$ref": "#/definitions/networkinterfaces" } @@ -186,7 +186,7 @@ "name": "networkinterfaces", "in": "body", "required": true, - "description": "Patch of the updated networkinterface resource", + "description": "Patch of the updated networkinterfaces resource", "schema": { "$ref": "#/definitions/networkinterfacesPatch" } From 960224a03e85a968208b881c1735c116fb832bae Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Tue, 30 Aug 2022 18:56:38 +0530 Subject: [PATCH 40/43] Set long running operation options final state to location --- .../preview/2021-07-01-preview/virtualMachines.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json index 58b1a25680ef..2f8fe8523931 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json @@ -211,7 +211,7 @@ "operationId": "virtualmachines_Start", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-examples": { "StartVirtualMachine": { @@ -253,7 +253,7 @@ "operationId": "virtualmachines_Stop", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-examples": { "StopVirtualMachine": { @@ -295,7 +295,7 @@ "operationId": "virtualmachines_Restart", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-examples": { "RestartVirtualMachine": { From 3fd1aedff3b568182423b23e704ba00961376036 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Tue, 30 Aug 2022 19:03:20 +0530 Subject: [PATCH 41/43] Add operations examples --- .../examples/ListOperations.json | 243 ++++++++++++++++++ .../2021-07-01-preview/operations.json | 5 + 2 files changed, 248 insertions(+) create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json new file mode 100644 index 000000000000..66ddd4c87fee --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json @@ -0,0 +1,243 @@ +{ + "parameters": { + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AzureStackHCI/Operations/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Operations", + "operation": "Gets/List operations resources", + "description": "Gets operations" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/Restart/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines", + "operation": "Restarts virtual machine resource", + "description": "Restarts virtual machine resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/Start/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines", + "operation": "Starts virtual machine resource", + "description": "Starts virtual machine resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/Stop/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines", + "operation": "Stops virtual machine resource", + "description": "Stops virtual machine resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines", + "operation": "Deletes virtual machine resource", + "description": "Deletes virtual machine resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines", + "operation": "Creates/Updates virtual machine resource", + "description": "Creates/Updates virtual machine resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines", + "operation": "Gets/Lists virtual machine resource", + "description": "Gets/Lists virtual machine resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualNetworks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualNetworks", + "operation": "Deletes virtual networks resource", + "description": "Deletes virtual networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualNetworks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualNetworks", + "operation": "Creates/Updates virtual networks resource", + "description": "Creates/Updates virtual networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualNetworks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualNetworks", + "operation": "Gets/Lists virtual networks resource", + "description": "Gets/Lists virtual networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Deletes virtual hard disk resource", + "description": "Deletes virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Creates/Updates virtual hard disk resource", + "description": "Creates/Updates virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Gets/Lists virtual hard disk resource", + "description": "Gets/Lists virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Deletes network interfaces resource", + "description": "Deletes network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Creates/Updates network interfaces resource", + "description": "Creates/Updates network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Gets/Lists network interfaces resource", + "description": "Gets/Lists network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Deletes gallery images resource", + "description": "Deletes gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Creates/Updates gallery images resource", + "description": "Creates/Updates gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Gets/Lists gallery images resource", + "description": "Gets/Lists gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/HybridIdentityMetadata/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines/HybridIdentityMetadata", + "operation": "Gets/Lists virtual machine hybrid identity metadata proxy resource", + "description": "Gets/Lists virtual machine hybrid identity metadata proxy resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/Extensions/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines/Extensions", + "operation": "Gets/Lists virtual machine extensions resource", + "description": "Gets/Lists virtual machine extensions resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/Extensions/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines/Extensions", + "operation": "Creates/Updates virtual machine extensions resource", + "description": "Creates/Updates virtual machine extensions resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachines/Extensions/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachines/Extensions", + "operation": "Deletes virtual machine extensions resource", + "description": "Deletes virtual machine extensions resource" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json index 483ce41a0876..fc6acb220730 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json @@ -40,6 +40,11 @@ "Operations" ], "operationId": "Operations_List", + "x-ms-examples": { + "List Operations": { + "$ref": "./examples/ListOperations.json" + } + }, "description": "List all available Microsoft.AzureStackHCI provider operations", "parameters": [ { From 0dfe31fba264346bb036a9fcd032991e0fa58fb9 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Wed, 2 Nov 2022 12:46:21 +0530 Subject: [PATCH 42/43] Fix model validation errors --- .../examples/ListOperations.json | 2 +- .../examples/PutVirtualMachine.json | 2 ++ .../examples/RestartVirtualMachine.json | 14 +++++++++++--- .../examples/StartVirtualMachine.json | 14 +++++++++++--- .../examples/StopVirtualMachine.json | 14 +++++++++++--- 5 files changed, 36 insertions(+), 10 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json index 66ddd4c87fee..0d87657337c5 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json index f4cb332b89b5..f2dc5b0baa76 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json @@ -37,6 +37,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -68,6 +69,7 @@ }, "201": { "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", "location": "West US2", "extendedLocation": { "type": "CustomLocation", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json index fed94427d3c0..75e8beade82a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json @@ -3,10 +3,18 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2020-11-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { - "200": {}, - "202": {} + "200": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse" + } + } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json index fed94427d3c0..75e8beade82a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json @@ -3,10 +3,18 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2020-11-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { - "200": {}, - "202": {} + "200": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse" + } + } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json index fed94427d3c0..75e8beade82a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json @@ -3,10 +3,18 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2020-11-01-preview" + "api-version": "2021-07-01-preview" }, "responses": { - "200": {}, - "202": {} + "200": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse" + } + } } } From 875640c1f6a7a3b6346e9dcf8fec41792d3d3ec3 Mon Sep 17 00:00:00 2001 From: Arka Nayan Date: Wed, 2 Nov 2022 13:19:07 +0530 Subject: [PATCH 43/43] Fix git merge --- custom-words.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index 76bd201233da..dfddb4020460 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1,4 +1,4 @@ -A128CBCPAD +A128CBCPAD A192CBCPAD A256CBCPAD AADDS @@ -2799,15 +2799,12 @@ logalertv1metricmeasurement resourcehealth activitylog budget -<<<<<<< HEAD galleryimage networkinterfaces storagecontainers virtualharddisks vippool -======= routeset routesets wayfind wayfinding ->>>>>>> upstream/main