From 79b6894366f16044842539e3f2e3b400422ebadf Mon Sep 17 00:00:00 2001 From: Patricia Huang <69329771+pathuang-sia@users.noreply.github.com> Date: Wed, 22 Mar 2023 14:49:28 -0700 Subject: [PATCH 1/9] Adds base for updating Microsoft.AzureStackHCI from version preview/2021-09-01-preview to version 2022-12-15-preview --- .../2022-12-15-preview/arcSettings.json | 379 +++ .../preview/2022-12-15-preview/clusters.json | 643 +++++ .../preview/2022-12-15-preview/common.json | 64 + .../examples/CreateCluster.json | 50 + .../examples/CreateGuestAgent.json | 44 + .../CreateHybridIdentityMetadata.json | 33 + .../examples/DeleteArcSetting.json | 26 + .../examples/DeleteCluster.json | 12 + .../examples/DeleteExtension.json | 27 + .../examples/DeleteGalleryImage.json | 12 + .../examples/DeleteGuestAgent.json | 26 + .../DeleteHybridIdentityMetadata.json | 13 + .../examples/DeleteMachineExtension.json | 26 + .../DeleteMarketplaceGalleryImage.json | 12 + .../examples/DeleteNetworkInterface.json | 12 + .../examples/DeleteStorageContainer.json | 12 + .../examples/DeleteVirtualHardDisk.json | 12 + .../examples/DeleteVirtualMachine.json | 12 + .../examples/DeleteVirtualNetwork.json | 12 + .../examples/GetArcSetting.json | 42 + .../examples/GetCluster.json | 89 + .../examples/GetExtension.json | 52 + .../examples/GetGalleryImage.json | 54 + .../examples/GetGuestAgent.json | 23 + .../examples/GetHybridIdentityMetadata.json | 27 + .../examples/GetMachineExtension.json | 39 + .../examples/GetMarketplaceGalleryImage.json | 54 + .../examples/GetNetworkInterface.json | 35 + .../examples/GetStorageContainer.json | 26 + .../examples/GetVirtualHardDisk.json | 32 + .../examples/GetVirtualMachine.json | 45 + .../examples/GetVirtualNetwork.json | 26 + .../GuestAgent_ListByVirtualMachines.json | 26 + ...dentityMetadata_ListByVirtualMachines.json | 30 + .../examples/ListArcSettingsByCluster.json | 45 + .../examples/ListClustersByResourceGroup.json | 122 + .../examples/ListClustersBySubscription.json | 121 + .../examples/ListExtensionsByArcSetting.json | 93 + .../ListGalleryImageByResourceGroup.json | 51 + .../ListGalleryImageBySubscription.json | 50 + .../examples/ListMachineExtension.json | 64 + ...arketplaceGalleryImageByResourceGroup.json | 57 + ...MarketplaceGalleryImageBySubscription.json | 56 + .../ListNetworkInterfaceByResourceGroup.json | 39 + .../ListNetworkInterfaceBySubscription.json | 39 + .../examples/ListOperationByCluster.json | 13 + .../ListStorageContainerByResourceGroup.json | 29 + .../ListStorageContainerBySubscription.json | 28 + .../ListVirtualHardDiskByResourceGroup.json | 35 + .../ListVirtualHardDiskBySubscription.json | 34 + .../ListVirtualMachineByResourceGroup.json | 48 + .../ListVirtualMachineBySubscription.json | 47 + .../ListVirtualNetworkByResourceGroup.json | 29 + .../ListVirtualNetworkBySubscription.json | 28 + .../examples/PatchExtension.json | 64 + .../examples/PutArcSetting.json | 43 + .../examples/PutExtension.json | 107 + .../examples/PutGalleryImage.json | 97 + .../examples/PutMachineExtension.json | 71 + .../examples/PutMarketplaceGalleryImage.json | 119 + .../examples/PutNetworkInterface.json | 79 + .../examples/PutStorageContainer.json | 52 + .../examples/PutVirtualHardDisk.json | 64 + .../PutVirtualMachineWithGalleryImage.json | 118 + ...ualMachineWithMarketplaceGalleryImage.json | 118 + .../examples/PutVirtualMachineWithOsDisk.json | 105 + .../examples/PutVirtualNetwork.json | 52 + .../examples/RestartVirtualMachine.json | 20 + .../examples/StartVirtualMachine.json | 20 + .../examples/StopVirtualMachine.json | 20 + .../examples/UpdateCluster.json | 105 + .../examples/UpdateGalleryImage.json | 97 + .../examples/UpdateMachineExtension.json | 70 + .../UpdateMarketplaceGalleryImage.json | 109 + .../examples/UpdateNetworkInterface.json | 65 + .../examples/UpdateStorageContainer.json | 53 + .../examples/UpdateVirtualHardDisk.json | 65 + .../examples/UpdateVirtualMachine.json | 90 + .../examples/UpdateVirtualNetwork.json | 53 + .../2022-12-15-preview/extensions.json | 500 ++++ .../2022-12-15-preview/galleryImages.json | 580 +++++ .../marketplaceGalleryImages.json | 577 +++++ .../2022-12-15-preview/networkInterfaces.json | 506 ++++ .../2022-12-15-preview/operations.json | 73 + .../2022-12-15-preview/storageContainers.json | 472 ++++ .../2022-12-15-preview/virtualHardDisks.json | 473 ++++ .../2022-12-15-preview/virtualMachines.json | 2169 +++++++++++++++++ .../2022-12-15-preview/virtualNetworks.json | 615 +++++ 88 files changed, 10876 insertions(+) create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGuestAgent.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteHybridIdentityMetadata.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMachineExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json new file mode 100644 index 000000000000..a623ba83e849 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json @@ -0,0 +1,379 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-09-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/2022-12-15-preview/clusters.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json new file mode 100644 index 000000000000..be42b696425b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json @@ -0,0 +1,643 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-09-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": { + "description": "Endpoint configured for management from the Azure portal.", + "type": "string" + }, + "aadClientId": { + "description": "App id of cluster AAD identity.", + "type": "string" + }, + "aadTenantId": { + "description": "Tenant id of cluster AAD identity.", + "type": "string" + }, + "desiredProperties": { + "description": "Desired properties of the cluster.", + "$ref": "#/definitions/ClusterDesiredProperties" + }, + "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": { + "description": "Endpoint configured for management from the Azure portal", + "type": "string" + }, + "aadClientId": { + "description": "App id of cluster AAD identity.", + "type": "string" + }, + "aadTenantId": { + "description": "Tenant id of cluster AAD identity.", + "type": "string" + }, + "desiredProperties": { + "description": "Desired properties of the cluster.", + "$ref": "#/definitions/ClusterDesiredProperties" + } + } + }, + "ClusterDesiredProperties": { + "description": "Desired properties of the cluster.", + "type": "object", + "properties": { + "windowsServerSubscription": { + "description": "Desired state of Windows Server Subscription.", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "WindowsServerSubscription", + "modelAsString": true + } + }, + "diagnosticLevel": { + "description": "Desired level of diagnostic data emitted by the cluster.", + "type": "string", + "enum": [ + "Off", + "Basic", + "Enhanced" + ], + "x-ms-enum": { + "name": "DiagnosticLevel", + "modelAsString": true + } + } + } + }, + "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 + }, + "imdsAttestation": { + "description": "IMDS attestation status of the cluster.", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "ImdsAttestation", + "modelAsString": true + }, + "readOnly": true + }, + "diagnosticLevel": { + "description": "Level of diagnostic data emitted by the cluster.", + "type": "string", + "enum": [ + "Off", + "Basic", + "Enhanced" + ], + "x-ms-enum": { + "name": "DiagnosticLevel", + "modelAsString": 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 + }, + "windowsServerSubscription": { + "description": "State of Windows Server Subscription.", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "WindowsServerSubscription", + "modelAsString": true + }, + "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/2022-12-15-preview/common.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json new file mode 100644 index 000000000000..37d73e6caaf7 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json @@ -0,0 +1,64 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec", + "version": "2021-09-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": [ + "CustomLocation" + ], + "x-ms-enum": { + "name": "ExtendedLocationTypes", + "modelAsString": true + } + }, + "ExtendedLocation": { + "description": "The complex type of the extended location.", + "type": "object", + "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/2022-12-15-preview/examples/CreateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json new file mode 100644 index 000000000000..ff454a496e57 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-09-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", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Off" + }, + "reportedProperties": {}, + "trialDaysRemaining": 30, + "billingModel": "Trial" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json new file mode 100644 index 000000000000..3be2f928aa4d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "name": "default", + "body": { + "properties": { + "provisioningAction": "install", + "credentials": { + "username": "tempuser", + "password": "" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/guestAgents/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/guestAgents", + "properties": { + "provisioningAction": "install", + "status": "connected", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/guestAgents/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/guestAgents", + "properties": { + "provisioningAction": "install", + "status": "connected", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json new file mode 100644 index 000000000000..319c8296df5d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "metadataName": "default", + "body": { + "properties": { + "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/hybridIdentityMetadata/default", + "name": "testItem", + "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/hybridIdentityMetadata", + "properties": { + "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + "identity": { + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", + "type": "SystemAssigned" + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json new file mode 100644 index 000000000000..0bd4760ac783 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json new file mode 100644 index 000000000000..12e08473537b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json new file mode 100644 index 000000000000..c2cb3f41aaa9 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "extensionName": "MicrosoftMonitoringAgent", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json new file mode 100644 index 000000000000..377d8a9c1a9b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "galleryimagesName": "test-gallery-image", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGuestAgent.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGuestAgent.json new file mode 100644 index 000000000000..82211aaad1dc --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGuestAgent.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "name": "default" + }, + "responses": { + "200": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteHybridIdentityMetadata.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteHybridIdentityMetadata.json new file mode 100644 index 000000000000..f02221e87aad --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteHybridIdentityMetadata.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "metadataName": "default" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMachineExtension.json new file mode 100644 index 000000000000..ef2cddddcc69 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMachineExtension.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "extensionName": "MMA", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json new file mode 100644 index 000000000000..f11eb04b81ab --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "marketplacegalleryimagesName": "test-marketplace-gallery-image", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json new file mode 100644 index 000000000000..1d49c40ffd00 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json new file mode 100644 index 000000000000..7ecf1eb41638 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "storagecontainersName": "Default_Container", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json new file mode 100644 index 000000000000..4c000979e885 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualharddisksName": "test-vhd", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json new file mode 100644 index 000000000000..7d3ebad12c66 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json new file mode 100644 index 000000000000..0c07cc326135 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualnetworksName": "test-vnet", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json new file mode 100644 index 000000000000..6e8ea59feb8b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-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-09-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.AzureStackHCI/machine/Node-1", + "state": "Connected" + }, + { + "name": "Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2", + "state": "Disconnected" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json new file mode 100644 index 000000000000..6bbec43ff2b6 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-09-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", + "desiredProperties": { + "windowsServerSubscription": "Enabled", + "diagnosticLevel": "Required" + }, + "reportedProperties": { + "clusterName": "cluster1", + "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", + "clusterVersion": "10.0.17777", + "nodes": [ + { + "name": "Node1", + "id": 1, + "windowsServerSubscription": "Enabled", + "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, + "windowsServerSubscription": "Enabled", + "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, + "windowsServerSubscription": "Enabled", + "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", + "imdsAttestation": "Disabled" + }, + "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/2022-12-15-preview/examples/GetExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json new file mode 100644 index 000000000000..b1d306dd8538 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-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-09-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.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Succeeded" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "state": "Failed" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json new file mode 100644 index 000000000000..6f7a49cfce84 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "galleryimagesName": "test-gallery-image", + "api-version": "2021-09-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", + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json new file mode 100644 index 000000000000..a405bdbb3828 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "name": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/guestAgents/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/guestAgents", + "properties": { + "provisioningAction": "install", + "status": "connected", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json new file mode 100644 index 000000000000..3299cce23922 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "metadataName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/hybridIdentityMetadata/default", + "name": "testItem", + "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/hybridIdentityMetadata", + "properties": { + "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + "identity": { + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", + "type": "SystemAssigned" + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json new file mode 100644 index 000000000000..21fee04d4bc6 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "extensionName": "CustomScriptExtension", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}", + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "displayStatus": "Provisioning succeeded", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json new file mode 100644 index 000000000000..4c9a0d980eb4 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "marketplacegalleryimagesName": "test-marketplace-gallery-image", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json new file mode 100644 index 000000000000..4721d6b46b52 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-09-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/2022-12-15-preview/examples/GetStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json new file mode 100644 index 000000000000..597bfb31a90c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "storagecontainersName": "Default_Container", + "api-version": "2021-09-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/2022-12-15-preview/examples/GetVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json new file mode 100644 index 000000000000..05ca966614bb --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualharddisksName": "test-vhd", + "api-version": "2021-09-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, + "blockSizeBytes": 0, + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted", + "diskFileFormat": "vhdx", + "hyperVGeneration": "V2", + "dynamic": true + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json new file mode 100644 index 000000000000..2e7ca12f2a66 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json new file mode 100644 index 000000000000..e4a79cd13272 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualnetworksName": "test-vnet", + "api-version": "2021-09-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/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json new file mode 100644 index 000000000000..a57ffcd3245c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/guestAgents/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/guestAgents", + "properties": { + "provisioningAction": "install", + "status": "connected", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json new file mode 100644 index 000000000000..1b5253277590 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/hybridIdentityMetadata/default", + "name": "testItem", + "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/hybridIdentityMetadata", + "properties": { + "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + "identity": { + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", + "type": "SystemAssigned" + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json new file mode 100644 index 000000000000..fa3769e887ba --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-09-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.AzureStackHCI/machine/Node-1", + "state": "Connected" + }, + { + "name": "Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2", + "state": "Disconnected" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json new file mode 100644 index 000000000000..eae1896890af --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-09-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", + "desiredProperties": { + "windowsServerSubscription": "Enabled", + "diagnosticLevel": "Required" + }, + "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", + "desiredProperties": { + "windowsServerSubscription": "Enabled", + "diagnosticLevel": "Required" + }, + "reportedProperties": { + "clusterName": "cluster1", + "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", + "clusterVersion": "10.0.17777", + "nodes": [ + { + "name": "Node1", + "id": 0, + "windowsServerSubscription": "Enabled", + "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, + "windowsServerSubscription": "Enabled", + "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, + "windowsServerSubscription": "Enabled", + "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", + "imdsAttestation": "Disabled" + }, + "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/2022-12-15-preview/examples/ListClustersBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json new file mode 100644 index 000000000000..2ac2a421b1f8 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json @@ -0,0 +1,121 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-09-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", + "desiredProperties": { + "windowsServerSubscription": "Enabled", + "diagnosticLevel": "Required" + }, + "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", + "desiredProperties": { + "windowsServerSubscription": "Enabled", + "diagnosticLevel": "Required" + }, + "reportedProperties": { + "clusterName": "cluster1", + "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", + "clusterVersion": "10.0.17777", + "nodes": [ + { + "name": "Node1", + "id": 0, + "windowsServerSubscription": "Enabled", + "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, + "windowsServerSubscription": "Enabled", + "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, + "windowsServerSubscription": "Enabled", + "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", + "imdsAttestation": "Disabled" + }, + "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/2022-12-15-preview/examples/ListExtensionsByArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json new file mode 100644 index 000000000000..bc3c14db9f4f --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-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-09-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.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Connected" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/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.AzureStackHCI/machine/Node-1/Extensions/SecurityExtension", + "state": "Succeeded" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/SecurityExtension", + "state": "Failed" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json new file mode 100644 index 000000000000..03507f5b86f2 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-09-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", + "containerName": "Default_Container", + "osType": "Linux", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V2", + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json new file mode 100644 index 000000000000..4765dbcd05e0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-09-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", + "containerName": "Default_Container", + "osType": "Linux", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V2", + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json new file mode 100644 index 000000000000..45aaad1de5a2 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "location": "eastus2euap", + "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "properties": { + "publisher": "Microsoft.Compute", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + }, + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "displayStatus": "Provisioning succeeded", + "message": "formattedMessage: Finished executing command, StdOut: , StdErr: ", + "time": "2020-08-13T17:18:57.405Z" + } + } + } + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/winosupdateextension", + "name": "winosupdateextension", + "location": "eastus2euap", + "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "properties": { + "publisher": "microsoft.softwareupdatemanagement.test", + "type": "windowsosupdateextension", + "typeHandlerVersion": "1.0.0.0", + "autoUpgradeMinorVersion": false, + "settings": {}, + "provisioningState": "Creating", + "instanceView": { + "name": "winosupdateextension", + "type": "windowsosupdateextension", + "typeHandlerVersion": "1.0.0.0", + "status": {} + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json new file mode 100644 index 000000000000..20c4caad664d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json new file mode 100644 index 000000000000..812bdeec84f9 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json new file mode 100644 index 000000000000..6b66418bfad8 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-09-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/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json new file mode 100644 index 000000000000..6b66418bfad8 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-09-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/2022-12-15-preview/examples/ListOperationByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json new file mode 100644 index 000000000000..1c523bf7b0d7 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json new file mode 100644 index 000000000000..99d29fa7c6db --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-09-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/2022-12-15-preview/examples/ListStorageContainerBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json new file mode 100644 index 000000000000..3f288855d748 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-09-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/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json new file mode 100644 index 000000000000..c1005170d03f --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-09-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, + "blockSizeBytes": 0, + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted", + "diskFileFormat": "vhdx", + "hyperVGeneration": "V2", + "dynamic": true + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json new file mode 100644 index 000000000000..d9cd649e0e54 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-09-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, + "blockSizeBytes": 0, + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted", + "diskFileFormat": "vhdx", + "hyperVGeneration": "V2", + "dynamic": true + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json new file mode 100644 index 000000000000..7b54b5cff0fc --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-09-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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json new file mode 100644 index 000000000000..4db1201aef67 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-09-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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json new file mode 100644 index 000000000000..29b7159cf9e2 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-09-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/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json new file mode 100644 index 000000000000..566c6db575e2 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-09-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/2022-12-15-preview/examples/PatchExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json new file mode 100644 index 000000000000..9e6799ead3bf --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-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-09-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.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Connected" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "state": "Disconnected" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json new file mode 100644 index 000000000000..be38dd92a982 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-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-09-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.AzureStackHCI/machine/Node-1", + "state": "Creating" + }, + { + "name": "Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2", + "state": "Creating" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json new file mode 100644 index 000000000000..9005f1a10d65 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-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-09-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.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Succeeded" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/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.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "state": "Succeeded" + }, + { + "name": "Node-2", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "state": "Failed" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json new file mode 100644 index 000000000000..7e77787d4d45 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "galleryimagesName": "test-gallery-image", + "api-version": "2021-09-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", + "containerName": "Default_Container", + "osType": "Linux", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V2", + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + }, + "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": "Succeeded", + "containerName": "Default_Container", + "osType": "Linux", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V2", + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json new file mode 100644 index 000000000000..30af4df4b242 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "extensionName": "CustomScriptExtension", + "api-version": "2021-09-01-preview", + "extensionParameters": { + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "type": "CustomScriptExtension", + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}", + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2020-08-08T20:42:10.999Z" + } + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.AzureStackHCI/VirtualMachines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}", + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": {} + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json new file mode 100644 index 000000000000..aa613499731d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json @@ -0,0 +1,119 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "marketplacegalleryimagesName": "test-marketplace-gallery-image", + "api-version": "2021-09-01-preview", + "marketplacegalleryimages": { + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "InProgress" + }, + "progressPercentage": 0, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json new file mode 100644 index 000000000000..b29e8dcdaf75 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-09-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": "Succeeded" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json new file mode 100644 index 000000000000..a70e6378201f --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "storagecontainersName": "Default_Container", + "api-version": "2021-09-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": "Succeeded", + "path": "C:\\container_storage" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json new file mode 100644 index 000000000000..9f3532f43eac --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualharddisksName": "test-vhd", + "api-version": "2021-09-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, + "blockSizeBytes": 0, + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted", + "diskFileFormat": "vhdx", + "hyperVGeneration": "V2", + "dynamic": true + } + } + }, + "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, + "blockSizeBytes": 0, + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Succeeded", + "diskFileFormat": "vhdx", + "hyperVGeneration": "V2", + "dynamic": true + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json new file mode 100644 index 000000000000..8e80bc3b4d2c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin", + "adminPassword": "password" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json new file mode 100644 index 000000000000..d8bd0cebdf15 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin", + "adminPassword": "password" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json new file mode 100644 index 000000000000..9749f264dfaf --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-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": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json new file mode 100644 index 000000000000..da75e646d97a --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualnetworksName": "test-vnet", + "api-version": "2021-09-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": "Succeeded" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json new file mode 100644 index 000000000000..86878b3bbf72 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json new file mode 100644 index 000000000000..86878b3bbf72 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json new file mode 100644 index 000000000000..86878b3bbf72 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json new file mode 100644 index 000000000000..43c33ba72e98 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-09-01-preview", + "cluster": { + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", + "desiredProperties": { + "windowsServerSubscription": "Enabled", + "diagnosticLevel": "Required" + } + } + } + }, + "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", + "desiredProperties": { + "windowsServerSubscription": "Enabled", + "diagnosticLevel": "Required" + }, + "reportedProperties": { + "clusterName": "cluster1", + "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", + "clusterVersion": "10.0.17777", + "nodes": [ + { + "name": "Node1", + "id": 1, + "windowsServerSubscription": "Enabled", + "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, + "windowsServerSubscription": "Enabled", + "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, + "windowsServerSubscription": "Enabled", + "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", + "imdsAttestation": "Disabled" + }, + "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/2022-12-15-preview/examples/UpdateGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json new file mode 100644 index 000000000000..3c44cab542a5 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "galleryimagesName": "test-gallery-image", + "api-version": "2021-09-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", + "containerName": "Default_Container", + "osType": "Linux", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V2", + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + }, + "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": "Succeeded", + "containerName": "Default_Container", + "osType": "Linux", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V2", + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json new file mode 100644 index 000000000000..cc1ccb59594c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "extensionName": "CustomScriptExtension", + "api-version": "2021-09-01-preview", + "extensionParameters": { + "properties": { + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "type": "CustomScriptExtension", + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"}", + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2020-01-08T20:42:10.999Z" + } + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.AzureStackHCI/VirtualMachines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"}", + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": {} + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json new file mode 100644 index 000000000000..d922ceb12ca0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "marketplacegalleryimagesName": "test-marketplce-gallery-image", + "api-version": "2021-09-01-preview", + "marketplacegalleryimages": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "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": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "InProgress" + }, + "progressPercentage": 0, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "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": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json new file mode 100644 index 000000000000..7319f4cc93c8 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "networkinterfacesName": "test-nic", + "api-version": "2021-09-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": "Succeeded" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json new file mode 100644 index 000000000000..2e447565ee4d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "storagecontainersName": "Default_Container", + "api-version": "2021-09-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/2022-12-15-preview/examples/UpdateVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json new file mode 100644 index 000000000000..9fd33a9822c3 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualharddisksName": "test-vhd", + "api-version": "2021-09-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, + "blockSizeBytes": 0, + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted", + "diskFileFormat": "vhdx", + "hyperVGeneration": "V2", + "dynamic": true + } + } + }, + "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, + "blockSizeBytes": 0, + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Succeeded", + "diskFileFormat": "vhdx", + "hyperVGeneration": "V2", + "dynamic": true + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json new file mode 100644 index 000000000000..ee761f22133b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json new file mode 100644 index 000000000000..9f6d0c27d62e --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualnetworksName": "test-vnet", + "api-version": "2021-09-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": "Succeeded" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json new file mode 100644 index 000000000000..f564214581b5 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json @@ -0,0 +1,500 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-09-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/2022-12-15-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json new file mode 100644 index 000000000000..d8e1461cda2c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json @@ -0,0 +1,580 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-09-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", + "description": "Gets galleryimages by resource name", + "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": "Retrieved the gallery image resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + } + } + }, + "put": { + "operationId": "galleryimages_CreateOrUpdate", + "description": "Create or update a gallery image.", + "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 gallery image resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + }, + "201": { + "description": "Creates the gallery image resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + } + } + }, + "delete": { + "operationId": "galleryimages_Delete", + "description": "Delete a gallery image.", + "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 gallery image resource." + }, + "204": { + "description": "No content" + } + } + }, + "patch": { + "operationId": "galleryimages_Update", + "description": "Update a gallery image.", + "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 gallery image resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + }, + "201": { + "description": "Updates the gallery image resource.", + "schema": { + "$ref": "#/definitions/galleryimages" + } + } + } + } + }, + "/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" + } + }, + "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", + "description": "List all galleryimages under the subscription", + "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", + "x-ms-secret": true, + "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" + }, + "cloudInitDataSource": { + "type": "string", + "description": "Datasource for the gallery image when provisioning with cloud-init (Azure or NoCloud)", + "enum": [ + "NoCloud", + "Azure" + ], + "x-ms-enum": { + "name": "CloudInitDataSource", + "modelAsString": true + } + }, + "hyperVGeneration": { + "type": "string", + "description": "The hypervisor generation of the Virtual Machine [V1, V2]", + "enum": [ + "V1", + "V2" + ], + "x-ms-enum": { + "name": "HyperVGeneration", + "modelAsString": true + } + }, + "identifier": { + "$ref": "#/definitions/galleryImageIdentifier" + }, + "version": { + "$ref": "#/definitions/galleryImageVersion" + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the gallery image.", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "InProgress", + "Accepted", + "Deleting" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "$ref": "#/definitions/GalleryImageStatus" + } + }, + "description": "Properties of a gallery image resource" + }, + "GalleryImageStatus": { + "type": "object", + "x-ms-client-flatten": true, + "readOnly": true, + "properties": { + "errorCode": { + "type": "string", + "description": "Gallery image provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "type": "object", + "description": "The provisioning status of the gallery image", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the gallery image" + }, + "status": { + "type": "string", + "description": "The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "ProvisioningStatusEnum", + "modelAsString": true + } + } + } + }, + "downloadStatus": { + "type": "object", + "properties": { + "downloadSizeInMB": { + "type": "integer", + "format": "int64", + "description": "The downloaded sized of the image in MB" + } + }, + "description": "The download status of the gallery image" + }, + "progressPercentage": { + "type": "integer", + "format": "int64", + "description": "The progress of the operation in percentage" + } + }, + "description": "GalleryImageStatus defines the observed state of galleryimages" + }, + "galleryImageIdentifier": { + "type": "object", + "properties": { + "publisher": { + "type": "string", + "description": "The name of the gallery image definition publisher." + }, + "offer": { + "type": "string", + "description": "The name of the gallery image definition offer." + }, + "sku": { + "type": "string", + "description": "The name of the gallery image definition SKU." + } + }, + "required": [ + "publisher", + "offer", + "sku" + ], + "description": "This is the gallery image definition identifier." + }, + "galleryImageVersion": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This is the version of the gallery image." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/galleryImageVersionProperties" + } + }, + "description": "Specifies information about the gallery image version that you want to create or update." + }, + "galleryImageVersionProperties": { + "type": "object", + "properties": { + "storageProfile": { + "$ref": "#/definitions/galleryImageVersionStorageProfile" + } + }, + "required": [ + "storageProfile" + ], + "description": "Describes the properties of a gallery image version." + }, + "galleryImageVersionStorageProfile": { + "type": "object", + "properties": { + "osDiskImage": { + "$ref": "#/definitions/galleryOSDiskImage" + } + }, + "description": "This is the storage profile of a Gallery Image Version." + }, + "galleryOSDiskImage": { + "allOf": [ + { + "$ref": "#/definitions/galleryDiskImage" + } + ], + "description": "This is the OS disk image." + }, + "galleryDiskImage": { + "type": "object", + "properties": { + "sizeInMB": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "This property indicates the size of the VHD to be created." + } + }, + "description": "This is the disk image base class." + }, + "galleryimages": { + "type": "object", + "description": "The gallery image resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/galleryimagesProperties" + }, + "extendedLocation": { + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ] + }, + "galleryimagesPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The gallery image resource patch definition." + }, + "galleryimagesListResult": { + "type": "object", + "description": "List of galleryimages.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/galleryimages" + } + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results.", + "readOnly": true + } + } + } + }, + "parameters": { + "galleryimagesNameParameter": { + "name": "galleryimagesName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "maxLength": 64, + "minLength": 3, + "description": "Name of the gallery image" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json new file mode 100644 index 000000000000..d08e2b8fd75e --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json @@ -0,0 +1,577 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-09-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/marketplacegalleryimages/{marketplacegalleryimagesName}": { + "get": { + "operationId": "marketplacegalleryimages_Get", + "description": "Gets marketplacegalleryimages by resource name", + "x-ms-examples": { + "GetMarketplaceGalleryImage": { + "$ref": "./examples/GetMarketplaceGalleryImage.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + }, + { + "$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": "Retrieved the marketplace gallery image resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + } + } + }, + "put": { + "operationId": "marketplacegalleryimages_CreateOrUpdate", + "description": "Creates or updates a marketplace gallery image", + "x-ms-examples": { + "PutMarketplaceGalleryImage": { + "$ref": "./examples/PutMarketplaceGalleryImage.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/marketplacegalleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "marketplacegalleryimages", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + } + ], + "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 marketplace gallery image resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + }, + "201": { + "description": "Creates the marketplace gallery image resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + } + } + }, + "delete": { + "operationId": "marketplacegalleryimages_Delete", + "description": "Deletes a marketplace gallery image", + "x-ms-examples": { + "DeleteMarketplaceGalleryImage": { + "$ref": "./examples/DeleteMarketplaceGalleryImage.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + }, + { + "$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 marketplace gallery image resource." + }, + "204": { + "description": "No content" + } + } + }, + "patch": { + "operationId": "marketplacegalleryimages_Update", + "description": "Updates a marketplace gallery image", + "x-ms-examples": { + "UpdateMarketplaceGalleryImage": { + "$ref": "./examples/UpdateMarketplaceGalleryImage.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "marketplacegalleryimages", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/marketplacegalleryimagesPatch" + } + } + ], + "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 marketplace gallery image resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + }, + "201": { + "description": "Updates the marketplace gallery image resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplacegalleryimages": { + "get": { + "operationId": "marketplacegalleryimages_ListByResourceGroup", + "description": "Lists all marketplacegalleryimages under the resource group", + "x-ms-examples": { + "ListMarketplaceGalleryImageByResourceGroup": { + "$ref": "./examples/ListMarketplaceGalleryImageByResourceGroup.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 marketplacegalleryimages under the resource group.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimagesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/marketplacegalleryimages": { + "get": { + "operationId": "marketplacegalleryimages_ListBySubscription", + "description": "Lists all marketplacegalleryimages under the subscription", + "x-ms-examples": { + "ListMarketplaceGalleryImageBySubscription": { + "$ref": "./examples/ListMarketplaceGalleryImageBySubscription.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 marketplacegalleryimages under the subscription.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimagesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "marketplacegalleryimagesProperties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "containerName": { + "type": "string", + "description": "Container Name for storage container" + }, + "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" + }, + "cloudInitDataSource": { + "type": "string", + "description": "Datasource for the gallery image when provisioning with cloud-init [Azure, NoCloud]", + "enum": [ + "NoCloud", + "Azure" + ], + "x-ms-enum": { + "name": "CloudInitDataSource", + "modelAsString": true + } + }, + "hyperVGeneration": { + "type": "string", + "description": "The hypervisor generation of the Virtual Machine [V1, V2]", + "enum": [ + "V1", + "V2" + ], + "x-ms-enum": { + "name": "HyperVGeneration", + "modelAsString": true + } + }, + "identifier": { + "$ref": "#/definitions/galleryImageIdentifier" + }, + "version": { + "$ref": "#/definitions/galleryImageVersion" + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the gallery image.", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "InProgress", + "Accepted", + "Deleting", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "$ref": "#/definitions/MarketplaceGalleryImageStatus" + } + }, + "description": "Properties of a marketplace gallery image resource" + }, + "MarketplaceGalleryImageStatus": { + "type": "object", + "x-ms-client-flatten": true, + "readOnly": true, + "properties": { + "errorCode": { + "type": "string", + "description": "Marketplace gallery image provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "type": "object", + "description": "The provisioning status of the marketplace gallery image", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the marketplace gallery image" + }, + "status": { + "type": "string", + "description": "The status of the operation performed on the marketplace gallery image [Succeeded, Failed, InProgress]", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "ProvisioningStatusEnum", + "modelAsString": true + } + } + } + }, + "downloadStatus": { + "type": "object", + "properties": { + "downloadSizeInMB": { + "type": "integer", + "format": "int64", + "description": "The downloaded sized of the image in MB" + } + }, + "description": "The download status of the marketplace gallery image" + }, + "progressPercentage": { + "type": "integer", + "format": "int64", + "description": "The progress of the operation in percentage" + } + }, + "description": "MarketplaceGalleryImageStatus defines the observed state of marketplacegalleryimages" + }, + "galleryImageIdentifier": { + "type": "object", + "properties": { + "publisher": { + "type": "string", + "description": "The name of the gallery image definition publisher." + }, + "offer": { + "type": "string", + "description": "The name of the gallery image definition offer." + }, + "sku": { + "type": "string", + "description": "The name of the gallery image definition SKU." + } + }, + "required": [ + "publisher", + "offer", + "sku" + ], + "description": "This is the gallery image definition identifier." + }, + "galleryImageVersion": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This is the version of the gallery image." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/galleryImageVersionProperties" + } + }, + "description": "Specifies information about the gallery image version that you want to create or update." + }, + "galleryImageVersionProperties": { + "type": "object", + "properties": { + "storageProfile": { + "$ref": "#/definitions/galleryImageVersionStorageProfile" + } + }, + "required": [ + "storageProfile" + ], + "description": "Describes the properties of a gallery image version." + }, + "galleryImageVersionStorageProfile": { + "type": "object", + "properties": { + "osDiskImage": { + "$ref": "#/definitions/galleryOSDiskImage" + } + }, + "description": "This is the storage profile of a Gallery Image Version." + }, + "galleryOSDiskImage": { + "allOf": [ + { + "$ref": "#/definitions/galleryDiskImage" + } + ], + "description": "This is the OS disk image." + }, + "galleryDiskImage": { + "type": "object", + "properties": { + "sizeInMB": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "This property indicates the size of the VHD to be created." + } + }, + "description": "This is the disk image base class." + }, + "marketplacegalleryimages": { + "type": "object", + "description": "The marketplace gallery image resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/marketplacegalleryimagesProperties" + }, + "extendedLocation": { + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ] + }, + "marketplacegalleryimagesPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The marketplace gallery image resource patch definition." + }, + "marketplacegalleryimagesListResult": { + "type": "object", + "description": "List of marketplacegalleryimages.", + "properties": { + "value": { + "type": "array", + "description": "The itemed list of marketplacegalleryimages", + "items": { + "$ref": "#/definitions/marketplacegalleryimages" + } + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results.", + "readOnly": true + } + } + } + }, + "parameters": { + "marketplacegalleryimagesNameParameter": { + "name": "marketplacegalleryimagesName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "maxLength": 64, + "minLength": 3, + "description": "Name of the marketplace gallery image" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json new file mode 100644 index 000000000000..a4e259ebc9f2 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json @@ -0,0 +1,506 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-09-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", + "description": "Gets network interfaces by resource name", + "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": "Retrieved the network interface 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 network interface resource.", + "schema": { + "$ref": "#/definitions/networkinterfaces" + } + }, + "201": { + "description": "Creates the network interface 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 network interface 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 network interface resource.", + "schema": { + "$ref": "#/definitions/networkinterfaces" + } + }, + "201": { + "description": "Updates the network interface 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 network interfaces 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 network interfaces 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.", + "x-ms-identifiers": [] + }, + "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", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "InProgress", + "Accepted", + "Deleting", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "$ref": "#/definitions/NetworkInterfaceStatus" + } + }, + "description": "Properties of a network interface resource" + }, + "NetworkInterfaceStatus": { + "type": "object", + "x-ms-client-flatten": true, + "readOnly": true, + "properties": { + "errorCode": { + "type": "string", + "description": "NetworkInterface provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "type": "object", + "description": "The provisioning status of the network interface", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the network interface" + }, + "status": { + "type": "string", + "description": "The status of the operation performed on the network interface [Succeeded, Failed, InProgress]", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "ProvisioningStatusEnum", + "modelAsString": true + } + } + } + } + }, + "description": "NetworkInterfaceStatus defines the observed state of network interfaces" + }, + "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'", + "enum": [ + "Dynamic", + "Static" + ], + "x-ms-enum": { + "name": "PrivateIPAllocationMethodEnum", + "modelAsString": true + } + }, + "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", + "description": "The network interface resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/networkinterfacesProperties" + }, + "extendedLocation": { + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ] + }, + "networkinterfacesPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The network interface 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/2022-12-15-preview/operations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json new file mode 100644 index 000000000000..6e39a3f131d0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json @@ -0,0 +1,73 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-09-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" + } + } + }, + "x-ms-examples": { + "List operation resources": { + "$ref": "./examples/ListOperationByCluster.json" + } + } + } + } + }, + "definitions": {}, + "parameters": {} +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json new file mode 100644 index 000000000000..76d459b00442 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json @@ -0,0 +1,472 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-09-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", + "description": "Gets storagecontainers by resource name", + "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": "Retrieved the storage container 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 storage container resource.", + "schema": { + "$ref": "#/definitions/storagecontainers" + } + }, + "201": { + "description": "Creates the storage container 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 storage container 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 storage container resource.", + "schema": { + "$ref": "#/definitions/storagecontainers" + } + }, + "201": { + "description": "Updates the storage container 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": "Path of the storage container on the disk" + }, + "provisioningState": { + "type": "string" + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "availableSizeMB": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Amount of space available on the disk in MB" + }, + "containerSizeMB": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Total size of the disk in MB" + }, + "status": { + "$ref": "#/definitions/storageContainerStatus" + } + }, + "description": "Properties of a storage container resource" + }, + "storageContainerStatus": { + "type": "object", + "x-ms-client-flatten": true, + "readOnly": true, + "properties": { + "errorCode": { + "type": "string", + "description": "StorageContainer provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "availableSizeMB": { + "type": "integer", + "format": "int64", + "description": "Amount of space available on the disk in MB" + }, + "containerSizeMB": { + "type": "integer", + "format": "int64", + "description": "Total size of the disk in MB" + }, + "provisioningStatus": { + "type": "object", + "description": "The provisioning status of the storage container", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the storage container" + }, + "status": { + "type": "string", + "description": "The status of the operation performed on the storage container [Succeeded, Failed, InProgress]", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "ProvisioningStatusEnum", + "modelAsString": true + } + } + } + } + }, + "description": "storageContainerStatus defines the observed state of storagecontainers" + }, + "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 storage container resource definition." + }, + "storagecontainersPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The storage container 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/2022-12-15-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json new file mode 100644 index 000000000000..2669902a15fd --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json @@ -0,0 +1,473 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-09-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", + "description": "Gets virtualharddisks by resource name", + "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": "Retrieved the virtual hard disk 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 virtual hard disk resource.", + "schema": { + "$ref": "#/definitions/virtualharddisks" + } + }, + "201": { + "description": "Creates the virtual hard disk 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 virtual hard disk 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 virtual hard disk resource.", + "schema": { + "$ref": "#/definitions/virtualharddisks" + } + }, + "201": { + "description": "Updates the virtual hard disk 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" + }, + "hyperVGeneration": { + "type": "string", + "description": "The hypervisor generation of the Virtual Machine [V1, V2]", + "enum": [ + "V1", + "V2" + ], + "x-ms-enum": { + "name": "HyperVGeneration", + "modelAsString": true + } + }, + "diskFileFormat": { + "type": "string", + "description": "The format of the actual VHD file [vhd, vhdx]", + "enum": [ + "vhdx", + "vhd" + ], + "x-ms-enum": { + "name": "DiskFileFormat", + "modelAsString": true + } + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "InProgress", + "Accepted", + "Deleting" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } + }, + "containerId": { + "type": "string", + "description": "Storage ContainerID of the storage container to be used for VHD" + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "$ref": "#/definitions/VirtualHardDiskStatus" + } + }, + "description": "Properties of a virtual hard disk resource" + }, + "VirtualHardDiskStatus": { + "type": "object", + "x-ms-client-flatten": true, + "readOnly": true, + "properties": { + "errorCode": { + "type": "string", + "description": "VirtualHardDisk provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "type": "object", + "description": "The provisioning status of the virtual hard disk", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the virtual hard disk" + }, + "status": { + "type": "string", + "description": "The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress]", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "ProvisioningStatusEnum", + "modelAsString": true + } + } + } + } + }, + "description": "VirtualHardDiskStatus defines the observed state of virtualharddisks" + }, + "virtualharddisks": { + "type": "object", + "description": "The virtual hard disk resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/virtualharddisksProperties" + }, + "extendedLocation": { + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ] + }, + "virtualharddisksPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The virtual hard disk 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/2022-12-15-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json new file mode 100644 index 000000000000..cdc2c64b17ae --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json @@ -0,0 +1,2169 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-09-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", + "description": "Gets virtual machines by resource name", + "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": "Retrieved the virtual machine resource.", + "schema": { + "$ref": "#/definitions/virtualmachines" + } + } + } + }, + "put": { + "operationId": "virtualmachines_CreateOrUpdate", + "x-ms-examples": { + "PutVirtualMachineWithGalleryImage": { + "$ref": "./examples/PutVirtualMachineWithGalleryImage.json" + }, + "PutVirtualMachineWithMarketplaceGalleryImage": { + "$ref": "./examples/PutVirtualMachineWithMarketplaceGalleryImage.json" + }, + "PutVirtualMachineWithOsDisk": { + "$ref": "./examples/PutVirtualMachineWithOsDisk.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 virtual machine resource.", + "schema": { + "$ref": "#/definitions/virtualmachines" + } + }, + "201": { + "description": "Creates the virtual machine 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 virtual machine 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 virtual machine resource.", + "schema": { + "$ref": "#/definitions/virtualmachines" + } + }, + "201": { + "description": "Updates the virtual machine 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" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{virtualMachineName}/hybridIdentityMetadata/{metadataName}": { + "put": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadata_Create", + "description": "Create Or Update HybridIdentityMetadata.", + "summary": "Implements HybridIdentityMetadata PUT method.", + "x-ms-examples": { + "CreateHybridIdentityMetadata": { + "$ref": "./examples/CreateHybridIdentityMetadata.json" + } + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "metadataName", + "required": true, + "type": "string", + "description": "Name of the hybridIdentityMetadata." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Request payload.", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadata_Get", + "summary": "Gets HybridIdentityMetadata.", + "description": "Implements HybridIdentityMetadata GET method.", + "x-ms-examples": { + "GetHybridIdentityMetadata": { + "$ref": "./examples/GetHybridIdentityMetadata.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "metadataName", + "required": true, + "type": "string", + "description": "Name of the HybridIdentityMetadata." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadata_Delete", + "summary": "Deletes an HybridIdentityMetadata.", + "description": "Implements HybridIdentityMetadata DELETE method.", + "x-ms-examples": { + "DeleteHybridIdentityMetadata": { + "$ref": "./examples/DeleteHybridIdentityMetadata.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "metadataName", + "required": true, + "type": "string", + "description": "Name of the HybridIdentityMetadata." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{virtualMachineName}/hybridIdentityMetadata": { + "get": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadata_ListByVirtualMachines", + "summary": "Implements GET HybridIdentityMetadata in a vm.", + "description": "Returns the list of HybridIdentityMetadata of the given vm.", + "x-ms-examples": { + "HybridIdentityMetadataListByVirtualMachines": { + "$ref": "./examples/HybridIdentityMetadata_ListByVirtualMachines.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadataList" + } + }, + "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/virtualMachines/{name}/extensions/{extensionName}": { + "put": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_CreateOrUpdate", + "description": "The operation to create or update the extension.", + "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" + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "201": { + "description": "HTTP 201 (Created) if the operation was successfully started and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension (PUT)": { + "$ref": "./examples/PutMachineExtension.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Update", + "description": "The operation to update the extension.", + "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" + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtensionUpdate" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension (PATCH)": { + "$ref": "./examples/UpdateMachineExtension.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Delete", + "description": "The operation to delete the extension.", + "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" + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be deleted." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "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-examples": { + "Delete a Machine Extension": { + "$ref": "./examples/DeleteMachineExtension.json" + } + } + }, + "get": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Get", + "description": "The operation to get the extension.", + "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" + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine containing the extension." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Machine Extension": { + "$ref": "./examples/GetMachineExtension.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{name}/extensions": { + "get": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_ListByVirtualMachines", + "description": "The operation to get all extensions of a non-Azure machine", + "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" + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine containing the extension." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtensionsListResult" + } + }, + "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" + }, + "x-ms-examples": { + "Get all Machine Extensions": { + "$ref": "./examples/ListMachineExtension.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{virtualMachineName}/guestAgents/{name}": { + "put": { + "tags": [ + "GuestAgents" + ], + "operationId": "GuestAgent_Create", + "description": "Create Or Update GuestAgent.", + "summary": "Implements GuestAgent PUT method.", + "x-ms-examples": { + "CreateGuestAgent": { + "$ref": "./examples/CreateGuestAgent.json" + } + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string", + "description": "Name of the guestAgents." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Request payload.", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + }, + "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" + } + }, + "get": { + "tags": [ + "GuestAgents" + ], + "operationId": "GuestAgent_Get", + "summary": "Gets GuestAgent.", + "description": "Implements GuestAgent GET method.", + "x-ms-examples": { + "GetGuestAgent": { + "$ref": "./examples/GetGuestAgent.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string", + "description": "Name of the GuestAgent." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "GuestAgents" + ], + "operationId": "GuestAgent_Delete", + "summary": "Deletes an GuestAgent.", + "description": "Implements GuestAgent DELETE method.", + "x-ms-examples": { + "DeleteGuestAgent": { + "$ref": "./examples/DeleteGuestAgent.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string", + "description": "Name of the GuestAgent." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted" + }, + "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 + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{virtualMachineName}/guestAgents": { + "get": { + "tags": [ + "GuestAgents" + ], + "operationId": "GuestAgents_ListByVirtualMachines", + "summary": "Implements GET GuestAgent in a vm.", + "description": "Returns the list of GuestAgent of the given vm.", + "x-ms-examples": { + "GuestAgentListByVirtualMachines": { + "$ref": "./examples/GuestAgent_ListByVirtualMachines.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GuestAgentList" + } + }, + "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" + } + } + } + }, + "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 of the network interface" + } + } + }, + "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", + "x-ms-mutability": [ + "create" + ] + }, + "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", + "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.", + "x-ms-identifiers": [] + } + }, + "description": "SSH - contains settings related to ssh configuration" + }, + "provisionVMAgent": { + "type": "boolean", + "description": "Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine creation process." + } + }, + "description": "LinuxConfiguration - linux specific configuration values for the virtual machine" + }, + "osType": { + "type": "string", + "description": "OsType - string specifying whether the OS is Linux or Windows", + "enum": [ + "Linux", + "Windows" + ], + "x-ms-enum": { + "name": "OsTypeEnum", + "modelAsString": true + } + }, + "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.", + "x-ms-identifiers": [] + } + }, + "description": "SSH Configuration" + }, + "timeZone": { + "type": "string", + "description": "TimeZone for the virtual machine" + }, + "provisionVMAgent": { + "type": "boolean", + "description": "Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine creation process." + } + }, + "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" + }, + "uefiSettings": { + "type": "object", + "properties": { + "secureBootEnabled": { + "type": "boolean", + "description": "Specifies whether secure boot should be enabled on the virtual machine." + } + } + } + }, + "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", + "x-ms-identifiers": [ + "name" + ] + }, + "imageReference": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name - Name of the image" + } + }, + "description": "Which Image to use for the virtual machine" + }, + "osDisk": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Specifies the virtual hard disk's ID" + } + }, + "description": "VHD to attach as OS disk" + }, + "vmConfigContainerName": { + "type": "string", + "description": "Name of the storage container that hosts the VM configuration file" + } + }, + "description": "StorageProfile - contains information about the disks and storage information for the virtual machine" + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "InProgress", + "Accepted", + "Deleting", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } + }, + "status": { + "$ref": "#/definitions/VirtualMachineStatus" + }, + "guestAgentProfile": { + "description": "Guest agent status properties.", + "$ref": "#/definitions/GuestAgentProfile" + }, + "vmId": { + "description": "Unique identifier for the vm resource.", + "type": "string", + "readOnly": true + } + }, + "description": "Properties of a virtual machine resource" + }, + "VirtualMachineStatus": { + "type": "object", + "x-ms-client-flatten": true, + "readOnly": true, + "properties": { + "errorCode": { + "type": "string", + "description": "VirtualMachine provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "powerState": { + "type": "string", + "description": "The power state of the virtual machine", + "enum": [ + "Deallocated", + "Deallocating", + "Running", + "Starting", + "Stopped", + "Stopping", + "Unknown" + ], + "x-ms-enum": { + "name": "PowerStateEnum", + "modelAsString": true + } + }, + "provisioningStatus": { + "type": "object", + "description": "The provisioning status of the virtual machine", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the virtual machine" + }, + "status": { + "type": "string", + "description": "The status of the operation performed on the virtual machine [Succeeded, Failed, InProgress]", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "ProvisioningStatusEnum", + "modelAsString": true + } + } + } + } + }, + "description": "VirtualMachineStatus defines the observed state of virtualmachines" + }, + "virtualmachines": { + "type": "object", + "x-ms-client-flatten": true, + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/virtualmachinesProperties" + }, + "extendedLocation": { + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Identity" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "description": "The virtual machine resource definition." + }, + "hardwareProfileUpdate": { + "type": "object", + "properties": { + "vmSize": { + "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", + "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 of the network interface" + } + } + }, + "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", + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "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 virtual machine resource patch definition." + }, + "virtualmachinesListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/virtualmachines" + } + }, + "nextLink": { + "type": "string" + } + } + }, + "GuestAgentProfile": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "vmUuid": { + "readOnly": true, + "type": "string", + "description": "Specifies the VM's unique SMBIOS ID." + }, + "status": { + "readOnly": true, + "type": "string", + "description": "The status of the hybrid machine agent.", + "enum": [ + "Connected", + "Disconnected", + "Error" + ], + "x-ms-enum": { + "name": "StatusTypes", + "modelAsString": true + } + }, + "lastStatusChange": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The time of the last status change." + }, + "agentVersion": { + "readOnly": true, + "type": "string", + "description": "The hybrid machine agent full version." + }, + "errorDetails": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "description": "Details about the error state.", + "x-ms-identifiers": [] + } + } + }, + "HybridIdentityMetadataList": { + "description": "List of HybridIdentityMetadata.", + "type": "object", + "properties": { + "nextLink": { + "description": "Url to follow for getting next page of HybridIdentityMetadata.", + "type": "string" + }, + "value": { + "description": "Array of HybridIdentityMetadata", + "type": "array", + "items": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + } + }, + "required": [ + "value" + ] + }, + "HybridIdentityMetadata": { + "description": "Defines the HybridIdentityMetadata.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource", + "description": "The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags." + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/HybridIdentityMetadataProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system data." + } + }, + "x-ms-azure-resource": true + }, + "HybridIdentityMetadataProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "resourceUid": { + "description": "The unique identifier for the resource.", + "type": "string" + }, + "publicKey": { + "description": "The Public Key.", + "type": "string" + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Identity", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state.", + "type": "string", + "readOnly": true + } + } + }, + "ResourcePatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Object containing updates for patch operations." + }, + "MachineExtension": { + "x-ms-azure-resource": true, + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineExtensionProperties", + "description": "Describes Machine Extension Properties." + }, + "location": { + "description": "The geo-location where the resource lives", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system data." + }, + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "The name of the resource", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Fully qualified resource ID for the resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + } + }, + "description": "Describes a Machine Extension." + }, + "MachineExtensionUpdate": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineExtensionUpdateProperties", + "description": "Describes Machine Extension Update Properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourcePatch" + } + ], + "description": "Describes a Machine Extension Update." + }, + "MachineExtensionProperties": { + "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": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.", + "x-ms-secret": true + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "instanceView": { + "allOf": [ + { + "$ref": "#/definitions/MachineExtensionInstanceView" + } + ], + "description": "The machine extension instance view." + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionUpdateProperties": { + "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": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.", + "x-ms-secret": true + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionInstanceView": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The machine extension name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "readOnly": true, + "description": "Specifies the version of the script handler." + }, + "status": { + "type": "object", + "properties": { + "code": { + "type": "string", + "readOnly": true, + "description": "The status code." + }, + "level": { + "type": "string", + "readOnly": true, + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": true + } + }, + "displayStatus": { + "type": "string", + "readOnly": true, + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The time of the status." + } + }, + "description": "Instance view status." + } + }, + "description": "Describes the Machine Extension Instance View." + }, + "MachineExtensionsListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "The list of extensions" + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions." + } + }, + "description": "Describes the Machine Extensions List Result." + }, + "GuestAgentList": { + "type": "object", + "description": "List of GuestAgent.", + "properties": { + "nextLink": { + "description": "Url to follow for getting next page of GuestAgent.", + "type": "string" + }, + "value": { + "description": "Array of GuestAgent", + "type": "array", + "items": { + "$ref": "#/definitions/GuestAgent" + } + } + }, + "required": [ + "value" + ] + }, + "GuestAgent": { + "description": "Defines the GuestAgent.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource", + "description": "The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags." + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/GuestAgentProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system data." + } + }, + "x-ms-azure-resource": true + }, + "ProvisioningAction": { + "description": "Defines the different types of operations for guest agent.", + "enum": [ + "install", + "uninstall", + "repair" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ProvisioningAction" + } + }, + "GuestCredential": { + "description": "Username / Password Credentials to connect to guest.", + "type": "object", + "properties": { + "username": { + "description": "The username to connect with the guest.", + "type": "string" + }, + "password": { + "description": "The password to connect with the guest.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + } + } + }, + "GuestAgentProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "credentials": { + "description": "Username / Password Credentials to provision guest agent.", + "$ref": "#/definitions/GuestCredential" + }, + "httpProxyConfig": { + "description": "HTTP Proxy configuration for the VM.", + "$ref": "#/definitions/HttpProxyConfiguration" + }, + "provisioningAction": { + "description": "The guest agent provisioning action.", + "$ref": "#/definitions/ProvisioningAction", + "type": "string" + }, + "status": { + "description": "The guest agent status.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state.", + "type": "string", + "readOnly": true + } + } + }, + "HttpProxyConfiguration": { + "description": "HTTP Proxy configuration for the VM.", + "type": "object", + "properties": { + "httpsProxy": { + "description": "The httpsProxy url.", + "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/2022-12-15-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json new file mode 100644 index 000000000000..cd742cd9ef20 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json @@ -0,0 +1,615 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-09-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": "Retrieved the virtual network 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 virtual networks 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 virtual network 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 virtual network resource.", + "schema": { + "$ref": "#/definitions/virtualnetworks" + } + }, + "201": { + "description": "Updates the virtual network 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 virtual networks 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 virtual networks 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", + "enum": [ + "NAT", + "Transparent", + "L2Bridge", + "L2Tunnel", + "ICS", + "Private", + "Overlay", + "Internal", + "Mirrored" + ], + "x-ms-enum": { + "name": "NetworkTypeEnum", + "modelAsString": true + } + }, + "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'", + "enum": [ + "Dynamic", + "Static" + ], + "x-ms-enum": { + "name": "IpAllocationMethodEnum", + "modelAsString": true + } + }, + "ipConfigurationReferences": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ID": { + "type": "string", + "description": "IPConfigurationID" + } + }, + "description": "IPConfigurationReference - Describes a IPConfiguration under the virtual network" + }, + "x-ms-identifiers": [], + "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.", + "x-ms-identifiers": [] + } + }, + "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" + }, + "x-ms-identifiers": [] + }, + "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", + "x-ms-identifiers": [] + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "InProgress", + "Accepted", + "Deleting", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "$ref": "#/definitions/VirtualNetworkStatus" + } + }, + "description": "Properties of a virtual network resource" + }, + "VirtualNetworkStatus": { + "type": "object", + "x-ms-client-flatten": true, + "readOnly": true, + "properties": { + "errorCode": { + "type": "string", + "description": "VirtualNetwork provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "type": "object", + "description": "The provisioning status of the virtual network", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the virtual network" + }, + "status": { + "type": "string", + "description": "The status of the operation performed on the virtual network [Succeeded, Failed, InProgress]", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "ProvisioningStatusEnum", + "modelAsString": true + } + } + } + } + }, + "description": "VirtualNetworkStatus defines the observed state of virtual networks" + }, + "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", + "description": "The virtual network resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/virtualnetworksProperties" + }, + "extendedLocation": { + "$ref": "./common.json#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ] + }, + "virtualnetworksPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The virtual network 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 e617696196e72ee370bbfa12dcdc3b85d76c73f3 Mon Sep 17 00:00:00 2001 From: Patricia Huang <69329771+pathuang-sia@users.noreply.github.com> Date: Wed, 22 Mar 2023 14:49:32 -0700 Subject: [PATCH 2/9] Updates readme --- .../azurestackhci/resource-manager/readme.md | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/specification/azurestackhci/resource-manager/readme.md b/specification/azurestackhci/resource-manager/readme.md index 3483a988ea22..85873a1dd91a 100644 --- a/specification/azurestackhci/resource-manager/readme.md +++ b/specification/azurestackhci/resource-manager/readme.md @@ -29,7 +29,7 @@ title: AzureStackHCIClient description: Azure Stack HCI management service openapi-type: arm openapi-subtype: rpaas -tag: package-2023-02 +tag: package-preview-2022-12 ``` ## Suppression @@ -58,11 +58,30 @@ directive: ``` +### Tag: package-preview-2022-12 + +These settings apply only when `--tag=package-preview-2022-12` is specified on the command line. + +```yaml $(tag) == 'package-preview-2022-12' +input-file: + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json +``` ### Tag: package-2023-02 These settings apply only when `--tag=package-2023-02` is specified on the command line. -```yaml $(tag) == 'package-2023-02' +``` yaml $(tag) == 'package-2023-02' input-file: - Microsoft.AzureStackHCI/stable/2023-02-01/arcSettings.json - Microsoft.AzureStackHCI/stable/2023-02-01/clusters.json @@ -75,6 +94,7 @@ input-file: - Microsoft.AzureStackHCI/stable/2023-02-01/updateSummaries.json - Microsoft.AzureStackHCI/stable/2023-02-01/updates.json ``` + ### Tag: package-2022-12 These settings apply only when `--tag=package-2022-12` is specified on the command line. From 4ce6ab694b64553fb93407014bd70d4a70b56a9c Mon Sep 17 00:00:00 2001 From: Patricia Huang <69329771+pathuang-sia@users.noreply.github.com> Date: Wed, 22 Mar 2023 14:49:36 -0700 Subject: [PATCH 3/9] Updates API version in new specs and examples --- .../preview/2022-12-15-preview/arcSettings.json | 2 +- .../preview/2022-12-15-preview/clusters.json | 2 +- .../preview/2022-12-15-preview/common.json | 2 +- .../preview/2022-12-15-preview/examples/CreateCluster.json | 2 +- .../preview/2022-12-15-preview/examples/CreateGuestAgent.json | 2 +- .../examples/CreateHybridIdentityMetadata.json | 2 +- .../preview/2022-12-15-preview/examples/DeleteArcSetting.json | 2 +- .../preview/2022-12-15-preview/examples/DeleteCluster.json | 2 +- .../preview/2022-12-15-preview/examples/DeleteExtension.json | 2 +- .../preview/2022-12-15-preview/examples/DeleteGalleryImage.json | 2 +- .../preview/2022-12-15-preview/examples/DeleteGuestAgent.json | 2 +- .../examples/DeleteHybridIdentityMetadata.json | 2 +- .../2022-12-15-preview/examples/DeleteMachineExtension.json | 2 +- .../examples/DeleteMarketplaceGalleryImage.json | 2 +- .../2022-12-15-preview/examples/DeleteNetworkInterface.json | 2 +- .../2022-12-15-preview/examples/DeleteStorageContainer.json | 2 +- .../2022-12-15-preview/examples/DeleteVirtualHardDisk.json | 2 +- .../2022-12-15-preview/examples/DeleteVirtualMachine.json | 2 +- .../2022-12-15-preview/examples/DeleteVirtualNetwork.json | 2 +- .../preview/2022-12-15-preview/examples/GetArcSetting.json | 2 +- .../preview/2022-12-15-preview/examples/GetCluster.json | 2 +- .../preview/2022-12-15-preview/examples/GetExtension.json | 2 +- .../preview/2022-12-15-preview/examples/GetGalleryImage.json | 2 +- .../preview/2022-12-15-preview/examples/GetGuestAgent.json | 2 +- .../2022-12-15-preview/examples/GetHybridIdentityMetadata.json | 2 +- .../2022-12-15-preview/examples/GetMachineExtension.json | 2 +- .../2022-12-15-preview/examples/GetMarketplaceGalleryImage.json | 2 +- .../2022-12-15-preview/examples/GetNetworkInterface.json | 2 +- .../2022-12-15-preview/examples/GetStorageContainer.json | 2 +- .../preview/2022-12-15-preview/examples/GetVirtualHardDisk.json | 2 +- .../preview/2022-12-15-preview/examples/GetVirtualMachine.json | 2 +- .../preview/2022-12-15-preview/examples/GetVirtualNetwork.json | 2 +- .../examples/GuestAgent_ListByVirtualMachines.json | 2 +- .../examples/HybridIdentityMetadata_ListByVirtualMachines.json | 2 +- .../2022-12-15-preview/examples/ListArcSettingsByCluster.json | 2 +- .../examples/ListClustersByResourceGroup.json | 2 +- .../2022-12-15-preview/examples/ListClustersBySubscription.json | 2 +- .../2022-12-15-preview/examples/ListExtensionsByArcSetting.json | 2 +- .../examples/ListGalleryImageByResourceGroup.json | 2 +- .../examples/ListGalleryImageBySubscription.json | 2 +- .../2022-12-15-preview/examples/ListMachineExtension.json | 2 +- .../examples/ListMarketplaceGalleryImageByResourceGroup.json | 2 +- .../examples/ListMarketplaceGalleryImageBySubscription.json | 2 +- .../examples/ListNetworkInterfaceByResourceGroup.json | 2 +- .../examples/ListNetworkInterfaceBySubscription.json | 2 +- .../2022-12-15-preview/examples/ListOperationByCluster.json | 2 +- .../examples/ListStorageContainerByResourceGroup.json | 2 +- .../examples/ListStorageContainerBySubscription.json | 2 +- .../examples/ListVirtualHardDiskByResourceGroup.json | 2 +- .../examples/ListVirtualHardDiskBySubscription.json | 2 +- .../examples/ListVirtualMachineByResourceGroup.json | 2 +- .../examples/ListVirtualMachineBySubscription.json | 2 +- .../examples/ListVirtualNetworkByResourceGroup.json | 2 +- .../examples/ListVirtualNetworkBySubscription.json | 2 +- .../preview/2022-12-15-preview/examples/PatchExtension.json | 2 +- .../preview/2022-12-15-preview/examples/PutArcSetting.json | 2 +- .../preview/2022-12-15-preview/examples/PutExtension.json | 2 +- .../preview/2022-12-15-preview/examples/PutGalleryImage.json | 2 +- .../2022-12-15-preview/examples/PutMachineExtension.json | 2 +- .../2022-12-15-preview/examples/PutMarketplaceGalleryImage.json | 2 +- .../2022-12-15-preview/examples/PutNetworkInterface.json | 2 +- .../2022-12-15-preview/examples/PutStorageContainer.json | 2 +- .../preview/2022-12-15-preview/examples/PutVirtualHardDisk.json | 2 +- .../examples/PutVirtualMachineWithGalleryImage.json | 2 +- .../examples/PutVirtualMachineWithMarketplaceGalleryImage.json | 2 +- .../examples/PutVirtualMachineWithOsDisk.json | 2 +- .../preview/2022-12-15-preview/examples/PutVirtualNetwork.json | 2 +- .../2022-12-15-preview/examples/RestartVirtualMachine.json | 2 +- .../2022-12-15-preview/examples/StartVirtualMachine.json | 2 +- .../preview/2022-12-15-preview/examples/StopVirtualMachine.json | 2 +- .../preview/2022-12-15-preview/examples/UpdateCluster.json | 2 +- .../preview/2022-12-15-preview/examples/UpdateGalleryImage.json | 2 +- .../2022-12-15-preview/examples/UpdateMachineExtension.json | 2 +- .../examples/UpdateMarketplaceGalleryImage.json | 2 +- .../2022-12-15-preview/examples/UpdateNetworkInterface.json | 2 +- .../2022-12-15-preview/examples/UpdateStorageContainer.json | 2 +- .../2022-12-15-preview/examples/UpdateVirtualHardDisk.json | 2 +- .../2022-12-15-preview/examples/UpdateVirtualMachine.json | 2 +- .../2022-12-15-preview/examples/UpdateVirtualNetwork.json | 2 +- .../preview/2022-12-15-preview/extensions.json | 2 +- .../preview/2022-12-15-preview/galleryImages.json | 2 +- .../preview/2022-12-15-preview/marketplaceGalleryImages.json | 2 +- .../preview/2022-12-15-preview/networkInterfaces.json | 2 +- .../preview/2022-12-15-preview/operations.json | 2 +- .../preview/2022-12-15-preview/storageContainers.json | 2 +- .../preview/2022-12-15-preview/virtualHardDisks.json | 2 +- .../preview/2022-12-15-preview/virtualMachines.json | 2 +- .../preview/2022-12-15-preview/virtualNetworks.json | 2 +- 88 files changed, 88 insertions(+), 88 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json index a623ba83e849..3632a7a78e91 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "title": "AzureStackHCI", "description": "Azure Stack HCI management service" }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json index be42b696425b..36d34a1d9ac3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "title": "AzureStackHCI", "description": "Azure Stack HCI management service" }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json index 37d73e6caaf7..fe4ddc912443 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json @@ -3,7 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec", - "version": "2021-09-01-preview" + "version": "2022-12-15-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json index ff454a496e57..f4a056142b32 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "cluster": { "location": "East US", "properties": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json index 3be2f928aa4d..03ce655f6973 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "virtualMachineName": "ContosoVm", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json index 319c8296df5d..83b00d3d2938 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "virtualMachineName": "ContosoVm", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json index 0bd4760ac783..dd5e0a131ee4 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "clusterName": "myCluster", "arcSettingName": "default", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json index 12e08473537b..dd049e64b6ea 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json index c2cb3f41aaa9..6670ab64bbe6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json @@ -5,7 +5,7 @@ "clusterName": "myCluster", "arcSettingName": "default", "extensionName": "MicrosoftMonitoringAgent", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json index 377d8a9c1a9b..6b5d71581d52 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "galleryimagesName": "test-gallery-image", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGuestAgent.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGuestAgent.json index 82211aaad1dc..7c92fededd1f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGuestAgent.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGuestAgent.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "virtualMachineName": "ContosoVm", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteHybridIdentityMetadata.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteHybridIdentityMetadata.json index f02221e87aad..ba8365d3c067 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteHybridIdentityMetadata.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteHybridIdentityMetadata.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "virtualMachineName": "ContosoVm", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMachineExtension.json index ef2cddddcc69..cbfd5d6b9bab 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMachineExtension.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "name": "myMachine", "extensionName": "MMA", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json index f11eb04b81ab..e8ac8308f87b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "marketplacegalleryimagesName": "test-marketplace-gallery-image", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json index 1d49c40ffd00..9cffb6bb4899 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "networkinterfacesName": "test-nic", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json index 7ecf1eb41638..b9210220a6dd 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "storagecontainersName": "Default_Container", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json index 4c000979e885..6095ecba038c 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualharddisksName": "test-vhd", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json index 7d3ebad12c66..7ba2a6a5f66f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json index 0c07cc326135..73fdf6e4e086 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualnetworksName": "test-vnet", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": {}, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json index 6e8ea59feb8b..e9ec387880d0 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "clusterName": "myCluster", "arcSettingName": "default", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json index 6bbec43ff2b6..c4b00cdf95ff 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json index b1d306dd8538..31685fdfd918 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json @@ -5,7 +5,7 @@ "clusterName": "myCluster", "arcSettingName": "default", "extensionName": "MicrosoftMonitoringAgent", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json index 6f7a49cfce84..df578c1b102a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "galleryimagesName": "test-gallery-image", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json index a405bdbb3828..a2ea7e27a01c 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "virtualMachineName": "ContosoVm", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json index 3299cce23922..a1910b3b675e 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "virtualMachineName": "ContosoVm", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json index 21fee04d4bc6..e2e6dfd65676 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "name": "myMachine", "extensionName": "CustomScriptExtension", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json index 4c9a0d980eb4..a61a9ad2bed7 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "marketplacegalleryimagesName": "test-marketplace-gallery-image", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json index 4721d6b46b52..037b33b3d035 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "networkinterfacesName": "test-nic", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json index 597bfb31a90c..63a3e67b5f3a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "storagecontainersName": "Default_Container", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json index 05ca966614bb..4301ad90e465 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualharddisksName": "test-vhd", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json index 2e7ca12f2a66..85209cfea2d4 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json index e4a79cd13272..ecd9aa293bb6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualnetworksName": "test-vnet", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json index a57ffcd3245c..5af4225495c2 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "virtualMachineName": "ContosoVm" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json index 1b5253277590..1067f15996eb 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "virtualMachineName": "ContosoVm" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json index fa3769e887ba..8d2b7c64cf9f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json index eae1896890af..56f18b00e0cc 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json index 2ac2a421b1f8..c8edcb1a40d6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json index bc3c14db9f4f..7ab95145f2a0 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "clusterName": "myCluster", "arcSettingName": "default", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json index 03507f5b86f2..6f4708ce270d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json index 4765dbcd05e0..808b72c1b974 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json index 45aaad1de5a2..b9bec72f73bd 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "name": "myMachine", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json index 20c4caad664d..6465eecc8dc0 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json index 812bdeec84f9..c4b750846359 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json index 6b66418bfad8..578629b45f2d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "networkinterfacesName": "test-nic", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json index 6b66418bfad8..578629b45f2d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "networkinterfacesName": "test-nic", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json index 1c523bf7b0d7..6ba5774cfdc6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json index 99d29fa7c6db..c86aff2081b2 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json index 3f288855d748..702ad5dabbe2 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json index c1005170d03f..50de15fd2e1a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json index d9cd649e0e54..a2b08be1aeb8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json index 7b54b5cff0fc..f90451e699a3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json index 4db1201aef67..444f14019119 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json index 29b7159cf9e2..829e0a124a44 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json index 566c6db575e2..e81e59e8de94 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json index 9e6799ead3bf..4872e18ea15f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json @@ -17,7 +17,7 @@ } } }, - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "201": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json index be38dd92a982..96e48eaf7247 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json @@ -5,7 +5,7 @@ "clusterName": "myCluster", "arcSettingName": "default", "arcSetting": {}, - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json index 9005f1a10d65..b94b0fd9bf1a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json @@ -20,7 +20,7 @@ } } }, - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json index 7e77787d4d45..c34b94c03af2 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "galleryimagesName": "test-gallery-image", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "galleryimages": { "location": "West US2", "extendedLocation": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json index 30af4df4b242..6aca926f2a67 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "name": "myMachine", "extensionName": "CustomScriptExtension", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "extensionParameters": { "location": "eastus2euap", "properties": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json index aa613499731d..2d41a3fafd2b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "marketplacegalleryimagesName": "test-marketplace-gallery-image", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "marketplacegalleryimages": { "location": "West US2", "extendedLocation": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json index b29e8dcdaf75..e57eea2d1ff6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "networkinterfacesName": "test-nic", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "networkinterfaces": { "location": "West US2", "extendedLocation": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json index a70e6378201f..cd8dbc2e043f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "storagecontainersName": "Default_Container", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "storagecontainers": { "location": "West US2", "extendedLocation": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json index 9f3532f43eac..370c74168e67 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualharddisksName": "test-vhd", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "virtualharddisks": { "location": "West US2", "extendedLocation": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json index 8e80bc3b4d2c..2b9ee4a01f4f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "virtualmachines": { "location": "West US2", "extendedLocation": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json index d8bd0cebdf15..8c56657de803 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "virtualmachines": { "location": "West US2", "extendedLocation": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json index 9749f264dfaf..28ac6577bfab 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "virtualmachines": { "location": "West US2", "extendedLocation": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json index da75e646d97a..7567aca18cbf 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualnetworksName": "test-vnet", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "virtualnetworks": { "location": "West US2", "extendedLocation": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json index 86878b3bbf72..aa292288ea4d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json index 86878b3bbf72..aa292288ea4d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json index 86878b3bbf72..aa292288ea4d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2021-09-01-preview" + "api-version": "2022-12-15-preview" }, "responses": { "200": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json index 43c33ba72e98..3c0ef98d63a5 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "clusterName": "myCluster", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "cluster": { "tags": { "tag1": "value1", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json index 3c44cab542a5..8e4cd091bdf3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "galleryimagesName": "test-gallery-image", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "galleryimages": { "tags": { "additionalProperties": "sample" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json index cc1ccb59594c..ab075f01717b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "name": "myMachine", "extensionName": "CustomScriptExtension", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "extensionParameters": { "properties": { "publisher": "Microsoft.Compute", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json index d922ceb12ca0..25cdfb33349c 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "marketplacegalleryimagesName": "test-marketplce-gallery-image", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "marketplacegalleryimages": { "tags": { "additionalProperties": "sample" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json index 7319f4cc93c8..eaf55365937e 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "networkinterfacesName": "test-nic", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "networkinterfaces": { "tags": { "additionalProperties": "sample" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json index 2e447565ee4d..4535a6db7947 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "storagecontainersName": "Default_Container", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "storagecontainers": { "tags": { "additionalProperties": "sample" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json index 9fd33a9822c3..5679b57b9918 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualharddisksName": "test-vhd", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "virtualharddisks": { "tags": { "additionalProperties": "sample" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json index ee761f22133b..ca425597afcf 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualmachinesName": "test-vm", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "virtualmachines": { "tags": { "additionalProperties": "sample" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json index 9f6d0c27d62e..0d8b4aff7e70 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json @@ -3,7 +3,7 @@ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", "virtualnetworksName": "test-vnet", - "api-version": "2021-09-01-preview", + "api-version": "2022-12-15-preview", "virtualnetworks": { "tags": { "additionalProperties": "sample" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json index f564214581b5..1c72efd88250 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "title": "AzureStackHCI", "description": "Azure Stack HCI management service" }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json index d8e1461cda2c..99ba059a08b0 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json @@ -3,7 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "x-ms-code-generation-settings": { "name": "AzureStackHCIClient" } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json index d08e2b8fd75e..9bf6c0162491 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json @@ -3,7 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "x-ms-code-generation-settings": { "name": "AzureStackHCIClient" } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json index a4e259ebc9f2..d8716ae8e50f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json @@ -3,7 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "x-ms-code-generation-settings": { "name": "AzureStackHCIClient" } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json index 6e39a3f131d0..9919bc6d009e 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "title": "AzureStackHCI", "description": "Azure Stack HCI management service" }, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json index 76d459b00442..c10c39982ad3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json @@ -3,7 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "x-ms-code-generation-settings": { "name": "AzureStackHCIClient" } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json index 2669902a15fd..0ee5726f742d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json @@ -3,7 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "x-ms-code-generation-settings": { "name": "AzureStackHCIClient" } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json index cdc2c64b17ae..66a241a7959d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json @@ -3,7 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "x-ms-code-generation-settings": { "name": "AzureStackHCIClient" } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json index cd742cd9ef20..6e813d0b32e3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json @@ -3,7 +3,7 @@ "info": { "title": "AzureStackHCI", "description": "The Microsoft.AzureStackHCI Rest API spec.", - "version": "2021-09-01-preview", + "version": "2022-12-15-preview", "x-ms-code-generation-settings": { "name": "AzureStackHCIClient" } From 117422c2b04f71dc2002b1d49c86fcd9f465f1a7 Mon Sep 17 00:00:00 2001 From: Patricia Huang Date: Wed, 22 Mar 2023 15:02:17 -0700 Subject: [PATCH 4/9] 2022-12-15-preview changes from RPSaaSMaster --- .../2022-12-15-preview/arcSettings.json | 450 +++++++++++- .../preview/2022-12-15-preview/clusters.json | 411 ++++++++++- .../ConsentAndInstallDefaultExtensions.json | 51 ++ .../examples/CreateArcIdentity.json | 26 + .../examples/CreateCluster.json | 13 +- .../examples/CreateClusterIdentity.json | 25 + .../examples/CreateGuestAgent.json | 10 +- .../CreateHybridIdentityMetadata.json | 8 +- .../examples/DeleteArcSetting.json | 14 +- .../examples/DeleteCluster.json | 5 + .../examples/DeleteExtension.json | 14 +- .../examples/DeleteGalleryImage.json | 2 +- .../DeleteMarketplaceGalleryImage.json | 2 +- .../examples/DeleteNetworkInterface.json | 2 +- .../examples/DeleteStorageContainer.json | 2 +- .../examples/DeleteUpdateRuns.json | 19 + .../examples/DeleteUpdateSummaries.json | 17 + .../examples/DeleteUpdates.json | 18 + .../examples/DeleteVirtualHardDisk.json | 2 +- .../examples/DeleteVirtualMachine.json | 2 +- .../examples/DeleteVirtualNetwork.json | 2 +- .../ExtendSoftwareAssuranceBenefit.json | 82 +++ .../examples/Extensions_Upgrade.json | 20 + .../examples/GeneratePassword.json | 19 + .../examples/GetArcSetting.json | 17 +- .../examples/GetCluster.json | 5 +- .../examples/GetExtension.json | 38 +- .../examples/GetGalleryImage.json | 6 +- .../examples/GetGuestAgent.json | 4 +- .../examples/GetHybridIdentityMetadata.json | 7 +- .../examples/GetMachineExtension.json | 2 +- .../examples/GetMarketplaceGalleryImage.json | 6 +- .../examples/GetNetworkInterface.json | 6 +- .../2022-12-15-preview/examples/GetOffer.json | 34 + .../examples/GetPublisher.json | 18 + .../2022-12-15-preview/examples/GetSku.json | 36 + .../examples/GetStorageContainer.json | 6 +- .../examples/GetUpdateRuns.json | 43 ++ .../examples/GetUpdateSummaries.json | 41 ++ .../examples/GetUpdates.json | 44 ++ .../examples/GetVirtualHardDisk.json | 8 +- .../examples/GetVirtualMachine.json | 10 +- .../examples/GetVirtualNetwork.json | 6 +- .../GuestAgent_ListByVirtualMachines.json | 4 +- ...dentityMetadata_ListByVirtualMachines.json | 7 +- .../examples/InitializeDisableProcess.json | 18 + .../examples/ListArcSettingsByCluster.json | 17 +- .../examples/ListClustersByResourceGroup.json | 7 +- .../examples/ListClustersBySubscription.json | 7 +- .../examples/ListExtensionsByArcSetting.json | 14 +- .../ListGalleryImageByResourceGroup.json | 4 +- .../ListGalleryImageBySubscription.json | 4 +- .../examples/ListMachineExtension.json | 4 +- ...arketplaceGalleryImageByResourceGroup.json | 4 +- ...MarketplaceGalleryImageBySubscription.json | 4 +- .../ListNetworkInterfaceByResourceGroup.json | 6 +- .../ListNetworkInterfaceBySubscription.json | 6 +- .../examples/ListOffersByCluster.json | 36 + .../examples/ListOffersByPublisher.json | 37 + .../examples/ListOperationByCluster.json | 13 - .../examples/ListOperations.json | 453 ++++++++++++ .../examples/ListPublishersByCluster.json | 21 + .../examples/ListSkusByOffer.json | 39 + .../ListStorageContainerByResourceGroup.json | 4 +- .../ListStorageContainerBySubscription.json | 4 +- .../examples/ListUpdateRuns.json | 46 ++ .../examples/ListUpdateSummaries.json | 45 ++ .../examples/ListUpdates.json | 47 ++ .../ListVirtualHardDiskByResourceGroup.json | 6 +- .../ListVirtualHardDiskBySubscription.json | 6 +- .../ListVirtualMachineByResourceGroup.json | 8 +- .../ListVirtualMachineBySubscription.json | 8 +- .../ListVirtualNetworkByResourceGroup.json | 4 +- .../ListVirtualNetworkBySubscription.json | 4 +- .../examples/PatchArcSetting.json | 62 ++ .../examples/PatchExtension.json | 17 +- .../examples/PostUpdates.json | 17 + .../examples/PutArcSetting.json | 13 +- .../examples/PutExtension.json | 21 +- .../examples/PutGalleryImage.json | 12 +- .../examples/PutMachineExtension.json | 2 +- .../examples/PutMarketplaceGalleryImage.json | 13 +- .../examples/PutNetworkInterface.json | 12 +- .../examples/PutStorageContainer.json | 12 +- .../examples/PutUpdateRuns.json | 68 ++ .../examples/PutUpdateSummaries.json | 52 ++ .../examples/PutUpdates.json | 71 ++ .../examples/PutVirtualHardDisk.json | 18 +- .../PutVirtualMachineWithGalleryImage.json | 20 +- ...ualMachineWithMarketplaceGalleryImage.json | 20 +- .../examples/PutVirtualMachineWithOsDisk.json | 20 +- .../examples/PutVirtualNetwork.json | 12 +- .../examples/RestartVirtualMachine.json | 2 +- .../examples/StartVirtualMachine.json | 2 +- .../examples/StopVirtualMachine.json | 2 +- .../examples/UpdateCluster.json | 15 +- .../examples/UpdateGalleryImage.json | 53 +- .../examples/UpdateMachineExtension.json | 2 +- .../UpdateMarketplaceGalleryImage.json | 61 +- .../examples/UpdateNetworkInterface.json | 37 +- .../examples/UpdateStorageContainer.json | 31 +- .../examples/UpdateVirtualHardDisk.json | 41 +- .../examples/UpdateVirtualMachine.json | 56 +- .../examples/UpdateVirtualNetwork.json | 31 +- .../examples/UploadCertificate.json | 23 + .../2022-12-15-preview/extensions.json | 221 +++++- .../2022-12-15-preview/galleryImages.json | 213 +++--- .../marketplaceGalleryImages.json | 220 +++--- .../2022-12-15-preview/networkInterfaces.json | 174 ++--- .../preview/2022-12-15-preview/offers.json | 302 ++++++++ .../2022-12-15-preview/operations.json | 16 +- .../2022-12-15-preview/publishers.json | 188 +++++ .../preview/2022-12-15-preview/skus.json | 275 +++++++ .../2022-12-15-preview/storageContainers.json | 239 +++---- .../2022-12-15-preview/updateRuns.json | 412 +++++++++++ .../2022-12-15-preview/updateSummaries.json | 488 +++++++++++++ .../preview/2022-12-15-preview/updates.json | 668 ++++++++++++++++++ .../2022-12-15-preview/virtualHardDisks.json | 172 ++--- .../2022-12-15-preview/virtualMachines.json | 472 +++++++------ .../2022-12-15-preview/virtualNetworks.json | 175 +++-- 120 files changed, 6290 insertions(+), 1203 deletions(-) create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ConsentAndInstallDefaultExtensions.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateArcIdentity.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateClusterIdentity.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdateRuns.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdateSummaries.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdates.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ExtendSoftwareAssuranceBenefit.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/Extensions_Upgrade.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GeneratePassword.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetOffer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetPublisher.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetSku.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdateRuns.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdateSummaries.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdates.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/InitializeDisableProcess.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOffersByCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOffersByPublisher.json delete mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperations.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListPublishersByCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListSkusByOffer.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdateRuns.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdateSummaries.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdates.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchArcSetting.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PostUpdates.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdateRuns.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdateSummaries.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdates.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UploadCertificate.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/offers.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/publishers.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/skus.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateRuns.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateSummaries.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updates.json diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json index 3632a7a78e91..20f44612eef2 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json @@ -40,16 +40,16 @@ "description": "Get ArcSetting resources of HCI Cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -62,7 +62,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -82,10 +82,10 @@ "description": "Get ArcSetting resource details of HCI Cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" @@ -94,7 +94,7 @@ "$ref": "#/parameters/ArcSettingNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -107,7 +107,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -122,10 +122,10 @@ "description": "Create ArcSetting for HCI cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" @@ -143,7 +143,7 @@ "description": "Parameters supplied to the Create ArcSetting resource for this HCI cluster." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -156,7 +156,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -166,15 +166,64 @@ } } }, + "patch": { + "operationId": "ArcSettings_Update", + "description": "Update ArcSettings for HCI cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "name": "arcSetting", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ArcSettingsPatch" + }, + "description": "ArcSettings parameters that needs to be updated" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/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/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch ArcSetting": { + "$ref": "./examples/PatchArcSetting.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/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" @@ -183,7 +232,7 @@ "$ref": "#/parameters/ArcSettingNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -191,7 +240,7 @@ "description": "OK" }, "202": { - "description": "OK" + "description": "Accepted" }, "204": { "description": "No content" @@ -199,7 +248,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -213,6 +262,194 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/generatePassword": { + "post": { + "tags": [ + "ArcSettings" + ], + "operationId": "ArcSettings_GeneratePassword", + "description": "Generate password for arc settings.", + "x-ms-examples": { + "Generate Password": { + "$ref": "./examples/GeneratePassword.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PasswordCredential" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/createArcIdentity": { + "post": { + "tags": [ + "ArcSettings" + ], + "operationId": "ArcSettings_CreateIdentity", + "description": "Create Aad identity for arc settings.", + "x-ms-examples": { + "Create Arc Identity": { + "$ref": "./examples/CreateArcIdentity.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/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArcIdentityResponse" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/consentAndInstallDefaultExtensions": { + "post": { + "tags": [ + "ArcSettings" + ], + "operationId": "ArcSettings_ConsentAndInstallDefaultExtensions", + "description": "Add consent time for default extensions and initiate extensions installation", + "x-ms-examples": { + "Consent And Install Default Extensions": { + "$ref": "./examples/ConsentAndInstallDefaultExtensions.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/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/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/InitializeDisableProcess": { + "post": { + "tags": [ + "ArcSettings" + ], + "operationId": "ArcSettings_InitializeDisableProcess", + "description": "Initializes ARC Disable process on the cluster", + "x-ms-examples": { + "Trigger ARC Disable": { + "$ref": "./examples/InitializeDisableProcess.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } } }, "definitions": { @@ -235,18 +472,49 @@ } } }, + "ArcSettingsPatch": { + "description": "ArcSetting details to update.", + "type": "object", + "properties": { + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "ArcSettings properties.", + "$ref": "#/definitions/ArcSettingsPatchProperties", + "x-ms-client-flatten": true + } + } + }, + "ArcSettingsPatchProperties": { + "description": "ArcSettings properties.", + "type": "object", + "properties": { + "connectivityProperties": { + "description": "contains connectivity related configuration for ARC resources", + "type": "object", + "items": { + "$ref": "#/definitions/ArcConnectivityProperties" + } + } + } + }, "ArcSetting": { "description": "ArcSetting details.", "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ], "properties": { "systemData": { "description": "System data of ArcSetting resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "x-ms-client-flatten": true, "readOnly": true }, @@ -265,11 +533,24 @@ "description": "Provisioning state of the ArcSetting proxy resource.", "type": "string", "enum": [ + "NotSpecified", + "Error", "Succeeded", "Failed", "Canceled", + "Connected", + "Disconnected", + "Deleted", + "Creating", + "Updating", + "Deleting", + "Moving", + "PartiallySucceeded", + "PartiallyConnected", + "InProgress", "Accepted", - "Provisioning" + "Provisioning", + "DisableInProgress" ], "x-ms-enum": { "name": "ProvisioningState", @@ -279,8 +560,23 @@ }, "arcInstanceResourceGroup": { "description": "The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.", - "type": "string", - "readOnly": true + "type": "string" + }, + "arcApplicationClientId": { + "description": "App id of arc AAD identity.", + "type": "string" + }, + "arcApplicationTenantId": { + "description": "Tenant id of arc AAD identity.", + "type": "string" + }, + "arcServicePrincipalObjectId": { + "description": "Object id of arc AAD service principal.", + "type": "string" + }, + "arcApplicationObjectId": { + "description": "Object id of arc AAD identity.", + "type": "string" }, "aggregateState": { "description": "Aggregate state of Arc agent across the nodes in this HCI cluster.", @@ -300,7 +596,10 @@ "Moving", "PartiallySucceeded", "PartiallyConnected", - "InProgress" + "InProgress", + "Accepted", + "Provisioning", + "DisableInProgress" ], "x-ms-enum": { "name": "ArcSettingAggregateState", @@ -315,6 +614,24 @@ "$ref": "#/definitions/PerNodeState" }, "readOnly": true + }, + "connectivityProperties": { + "description": "contains connectivity related configuration for ARC resources", + "type": "object", + "items": { + "$ref": "#/definitions/ArcConnectivityProperties" + } + }, + "defaultExtensions": { + "description": "Consent time for each of the default extensions category", + "type": "array", + "items": { + "$ref": "#/definitions/DefaultExtensionDetails" + }, + "x-ms-identifiers": [ + "category" + ], + "readOnly": true } } }, @@ -347,7 +664,13 @@ "Creating", "Updating", "Deleting", - "Moving" + "Moving", + "PartiallySucceeded", + "PartiallyConnected", + "InProgress", + "Accepted", + "Provisioning", + "DisableInProgress" ], "x-ms-enum": { "name": "NodeArcState", @@ -356,6 +679,85 @@ "readOnly": true } } + }, + "DefaultExtensionDetails": { + "description": "Consent time for a particular default extension category.", + "type": "object", + "properties": { + "category": { + "description": "Default extension category", + "type": "string", + "readOnly": true + }, + "consentTime": { + "description": "Consent time for extension category", + "type": "string", + "format": "date-time", + "readOnly": true + } + } + }, + "ArcConnectivityProperties": { + "description": "Connectivity related configuration required by arc server.", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "True indicates ARC connectivity is enabled" + } + }, + "additionalProperties": false + }, + "PasswordCredential": { + "type": "object", + "properties": { + "secretText": { + "type": "string" + }, + "keyId": { + "type": "string" + }, + "startDateTime": { + "type": "string", + "format": "date-time" + }, + "endDateTime": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "readOnly": true + }, + "ArcIdentityResponse": { + "description": "ArcIdentity details.", + "type": "object", + "properties": { + "properties": { + "description": "ArcIdentity properties.", + "$ref": "#/definitions/ArcIdentityResponseProperties", + "x-ms-client-flatten": true + } + } + }, + "ArcIdentityResponseProperties": { + "type": "object", + "properties": { + "arcApplicationClientId": { + "type": "string" + }, + "arcApplicationTenantId": { + "type": "string" + }, + "arcServicePrincipalObjectId": { + "type": "string" + }, + "arcApplicationObjectId": { + "type": "string" + } + }, + "additionalProperties": false, + "readOnly": true } }, "parameters": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json index 36d34a1d9ac3..27da02b1c1dc 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json @@ -48,10 +48,10 @@ "description": "List all HCI clusters in a subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -64,7 +64,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -87,13 +87,13 @@ "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/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -106,7 +106,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -129,16 +129,16 @@ "description": "Get HCI cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -151,7 +151,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -169,16 +169,16 @@ "description": "Create an HCI cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "cluster", @@ -200,7 +200,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -218,16 +218,16 @@ "description": "Update an HCI cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "cluster", @@ -249,7 +249,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -267,31 +267,194 @@ "description": "Delete an HCI cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK" }, + "202": { + "description": "Accepted" + }, "204": { "description": "No content" }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/uploadCertificate": { + "post": { + "tags": [ + "Cluster" + ], + "operationId": "Clusters_UploadCertificate", + "x-ms-examples": { + "Upload certificate": { + "$ref": "./examples/UploadCertificate.json" + } + }, + "description": "Upload certificate.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "uploadCertificateRequest", + "in": "body", + "description": "Upload certificate request.", + "required": true, + "schema": { + "$ref": "#/definitions/UploadCertificateRequest" + } + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/createClusterIdentity": { + "post": { + "tags": [ + "Cluster" + ], + "operationId": "Clusters_CreateIdentity", + "description": "Create cluster identity.", + "x-ms-examples": { + "Create cluster Identity": { + "$ref": "./examples/CreateClusterIdentity.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterIdentityResponse" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/extendSoftwareAssuranceBenefit": { + "post": { + "tags": [ + "Cluster" + ], + "operationId": "Clusters_ExtendSoftwareAssuranceBenefit", + "description": "Extends Software Assurance Benefit to a cluster", + "x-ms-examples": { + "Create cluster Identity": { + "$ref": "./examples/ExtendSoftwareAssuranceBenefit.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "softwareAssuranceChangeRequest", + "in": "body", + "description": "Software Assurance Change Request Payload", + "required": true, + "schema": { + "$ref": "#/definitions/SoftwareAssuranceChangeRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } } } @@ -320,16 +483,21 @@ "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ], "properties": { "systemData": { "description": "System data of Cluster resource", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "x-ms-client-flatten": true, "readOnly": true }, + "identity": { + "description": "Identity of Cluster resource", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "x-ms-client-flatten": true + }, "properties": { "description": "Cluster properties.", "$ref": "#/definitions/ClusterProperties", @@ -348,6 +516,11 @@ "type": "string" } }, + "identity": { + "description": "Identity of Cluster resource", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "x-ms-client-flatten": true + }, "properties": { "description": "Cluster properties.", "$ref": "#/definitions/ClusterPatchProperties", @@ -358,10 +531,6 @@ "ClusterProperties": { "description": "Cluster properties.", "type": "object", - "required": [ - "aadClientId", - "aadTenantId" - ], "properties": { "provisioningState": { "description": "Provisioning state.", @@ -371,7 +540,19 @@ "Failed", "Canceled", "Accepted", - "Provisioning" + "Provisioning", + "NotSpecified", + "Creating", + "Updating", + "Deleting", + "Moving", + "Deleted", + "PartiallySucceeded", + "InProgress", + "DisableInProgress", + "Connected", + "PartiallyConnected", + "Disconnected" ], "x-ms-enum": { "name": "ProvisioningState", @@ -387,7 +568,8 @@ "ConnectedRecently", "NotConnectedRecently", "Disconnected", - "Error" + "Error", + "NotSpecified" ], "x-ms-enum": { "name": "Status", @@ -412,6 +594,18 @@ "description": "Tenant id of cluster AAD identity.", "type": "string" }, + "aadApplicationObjectId": { + "description": "Object id of cluster AAD identity.", + "type": "string" + }, + "aadServicePrincipalObjectId": { + "description": "Id of cluster identity service principal.", + "type": "string" + }, + "softwareAssuranceProperties": { + "description": "Software Assurance properties of the cluster.", + "$ref": "#/definitions/SoftwareAssuranceProperties" + }, "desiredProperties": { "description": "Desired properties of the cluster.", "$ref": "#/definitions/ClusterDesiredProperties" @@ -448,6 +642,16 @@ "type": "string", "format": "date-time", "readOnly": true + }, + "serviceEndpoint": { + "description": "Region specific DataPath Endpoint of the cluster.", + "type": "string", + "readOnly": true + }, + "resourceProviderObjectId": { + "description": "Object id of RP Service Principal", + "type": "string", + "readOnly": true } } }, @@ -473,6 +677,42 @@ } } }, + "SoftwareAssuranceProperties": { + "description": "Software Assurance properties of the cluster.", + "type": "object", + "properties": { + "softwareAssuranceStatus": { + "description": "Status of the Software Assurance for the cluster.", + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "SoftwareAssuranceStatus", + "modelAsString": true + } + }, + "softwareAssuranceIntent": { + "description": "Customer Intent for Software Assurance Benefit.", + "type": "string", + "enum": [ + "Enable", + "Disable" + ], + "x-ms-enum": { + "name": "SoftwareAssuranceIntent", + "modelAsString": true + } + }, + "lastUpdated": { + "description": "TimeStamp denoting the latest SA benefit applicability is validated.", + "type": "string", + "format": "date-time", + "readOnly": true + } + } + }, "ClusterDesiredProperties": { "description": "Desired properties of the cluster.", "type": "object", @@ -562,6 +802,15 @@ "name": "DiagnosticLevel", "modelAsString": true } + }, + "supportedCapabilities": { + "description": "Capabilities supported by the cluster.", + "type": "array", + "readOnly": true, + "items": { + "type": "string", + "readOnly": true + } } } }, @@ -592,6 +841,24 @@ }, "readOnly": true }, + "nodeType": { + "description": "Type of the cluster node hardware.", + "type": "string", + "enum": [ + "FirstParty", + "ThirdParty" + ], + "x-ms-enum": { + "name": "ClusterNodeType", + "modelAsString": true + }, + "readOnly": true + }, + "ehcResourceId": { + "description": "Edge Hardware Center Resource Id", + "type": "string", + "readOnly": true + }, "manufacturer": { "description": "Manufacturer of the cluster node hardware.", "type": "string", @@ -612,6 +879,11 @@ "type": "string", "readOnly": true }, + "osDisplayVersion": { + "description": "Display version of the operating system running on the cluster node.", + "type": "string", + "readOnly": true + }, "serialNumber": { "description": "Immutable id of the cluster node.", "type": "string", @@ -628,6 +900,83 @@ "readOnly": true } } + }, + "RawCertificateData": { + "type": "object", + "properties": { + "certificates": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "UploadCertificateRequest": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/RawCertificateData" + } + }, + "additionalProperties": false + }, + "SoftwareAssuranceChangeRequestProperties": { + "type": "object", + "properties": { + "softwareAssuranceIntent": { + "type": "string", + "enum": [ + "Enable", + "Disable" + ], + "x-ms-enum": { + "name": "SoftwareAssuranceIntent", + "modelAsString": true + } + } + }, + "additionalProperties": false + }, + "SoftwareAssuranceChangeRequest": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/SoftwareAssuranceChangeRequestProperties" + } + }, + "additionalProperties": false + }, + "ClusterIdentityResponse": { + "description": "Cluster Identity details.", + "type": "object", + "properties": { + "properties": { + "description": "Cluster identity properties.", + "$ref": "#/definitions/ClusterIdentityResponseProperties", + "x-ms-client-flatten": true + } + } + }, + "ClusterIdentityResponseProperties": { + "type": "object", + "properties": { + "aadClientId": { + "type": "string" + }, + "aadTenantId": { + "type": "string" + }, + "aadServicePrincipalObjectId": { + "type": "string" + }, + "aadApplicationObjectId": { + "type": "string" + } + }, + "additionalProperties": false, + "readOnly": true } }, "parameters": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ConsentAndInstallDefaultExtensions.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ConsentAndInstallDefaultExtensions.json new file mode 100644 index 000000000000..6214f0859e62 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ConsentAndInstallDefaultExtensions.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "api-version": "2022-12-15-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/machines/Node-1", + "state": "Creating" + }, + { + "name": "Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + "state": "Creating" + } + ], + "connectivityProperties": { + "enabled": false + }, + "defaultExtensions": [ + { + "category": "Telemetry", + "consentTime": "2023-01-01T17:18:19.1234567Z" + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateArcIdentity.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateArcIdentity.json new file mode 100644 index 000000000000..b47213f2e955 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateArcIdentity.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "arcApplicationClientId": "7b93bf67-60ac-4909-a987-ac438e69f9ba", + "arcApplicationTenantId": "bdb2c88c-9cfd-4e19-927d-51e875f6912b", + "arcApplicationObjectId": "400bd05f-395f-45a6-ba75-72601df80107", + "arcServicePrincipalObjectId": "00cc4014-482e-4de9-9932-83415cc75f45" + } + } + }, + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json index f4a056142b32..5d24c0154bbe 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateCluster.json @@ -10,6 +10,9 @@ "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", "aadClientId": "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94" + }, + "identity": { + "type": "SystemAssigned" } } }, @@ -20,6 +23,11 @@ "name": "myCluster", "type": "Microsoft.AzureStackHCI/clusters", "location": "East US", + "identity": { + "principalId": "87a834db-2e45-409e-911b-e16a44562ec3", + "tenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", + "type": "SystemAssigned" + }, "tags": {}, "systemData": { "createdBy": "user1", @@ -38,11 +46,12 @@ "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", "desiredProperties": { "windowsServerSubscription": "Disabled", - "diagnosticLevel": "Off" + "diagnosticLevel": "Basic" }, "reportedProperties": {}, "trialDaysRemaining": 30, - "billingModel": "Trial" + "billingModel": "Trial", + "serviceEndpoint": "https://azurestackhci.azurefd.net/eastus" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateClusterIdentity.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateClusterIdentity.json new file mode 100644 index 000000000000..3660a3acfe59 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateClusterIdentity.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "aadClientId": "7b93bf67-60ac-4909-a987-ac438e69f9ba", + "aadTenantId": "bdb2c88c-9cfd-4e19-927d-51e875f6912b", + "aadServicePrincipalObjectId": "400bd05f-395f-45a6-ba75-72601df80107", + "aadApplicationObjectId": "00cc4014-482e-4de9-9932-83415cc75f45" + } + } + }, + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json index 03ce655f6973..c4cded4ecbaf 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateGuestAgent.json @@ -18,9 +18,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/guestAgents/default", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/ContosoVm/guestAgents/default", "name": "default", - "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/guestAgents", + "type": "Microsoft.AzureStackHCI/virtualMachines/guestAgents", "properties": { "provisioningAction": "install", "status": "connected", @@ -30,13 +30,13 @@ }, "201": { "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/guestAgents/default", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/ContosoVm/guestAgents/default", "name": "default", - "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/guestAgents", + "type": "Microsoft.AzureStackHCI/virtualMachines/guestAgents", "properties": { "provisioningAction": "install", "status": "connected", - "provisioningState": "Succeeded" + "provisioningState": "Created" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json index 83b00d3d2938..96612987127b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/CreateHybridIdentityMetadata.json @@ -7,7 +7,6 @@ "metadataName": "default", "body": { "properties": { - "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2" } } @@ -15,11 +14,10 @@ "responses": { "200": { "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/hybridIdentityMetadata/default", - "name": "testItem", - "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/hybridIdentityMetadata", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/ContosoVm/hybridIdentityMetadata/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachines/hybridIdentityMetadata", "properties": { - "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", "identity": { "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json index dd5e0a131ee4..cdf85ebe2da1 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteArcSetting.json @@ -7,20 +7,12 @@ "api-version": "2022-12-15-preview" }, "responses": { - "200": { - "headers": { - "azure-asyncoperation": "http://azure.async.operation/status" - } - }, + "200": {}, "202": { "headers": { - "azure-asyncoperation": "http://azure.async.operation/status" + "location": "https://foo.com/operationStatuses" } }, - "204": { - "headers": { - "azure-asyncoperation": "http://azure.async.operation/status" - } - } + "204": {} } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json index dd049e64b6ea..29aa25057be9 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteCluster.json @@ -7,6 +7,11 @@ }, "responses": { "200": {}, + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + }, "204": {} } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json index 6670ab64bbe6..88f20629858b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteExtension.json @@ -8,20 +8,12 @@ "api-version": "2022-12-15-preview" }, "responses": { - "200": { - "headers": { - "azure-asyncoperation": "http://azure.async.operation/status" - } - }, + "200": {}, "202": { "headers": { - "azure-asyncoperation": "http://azure.async.operation/status" + "location": "https://foo.com/operationStatuses" } }, - "204": { - "headers": { - "azure-asyncoperation": "http://azure.async.operation/status" - } - } + "204": {} } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json index 6b5d71581d52..7acb2e617bf4 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "galleryimagesName": "test-gallery-image", + "galleryImageName": "test-gallery-image", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json index e8ac8308f87b..e4d06178288f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteMarketplaceGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "marketplacegalleryimagesName": "test-marketplace-gallery-image", + "marketplaceGalleryImageName": "test-marketplace-gallery-image", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json index 9cffb6bb4899..d294f36f397b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteNetworkInterface.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "networkinterfacesName": "test-nic", + "networkInterfaceName": "test-nic", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json index b9210220a6dd..0c67770c1257 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteStorageContainer.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "storagecontainersName": "Default_Container", + "storageContainerName": "Default_Container", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdateRuns.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdateRuns.json new file mode 100644 index 000000000000..f498b73fa04d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdateRuns.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "updateName": "Microsoft4.2203.2.32", + "updateRunName": "23b779ba-0d52-4a80-8571-45ca74664ec3", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + }, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdateSummaries.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdateSummaries.json new file mode 100644 index 000000000000..f2925038373a --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdateSummaries.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + }, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdates.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdates.json new file mode 100644 index 000000000000..29145684e42d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteUpdates.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "updateName": "Microsoft4.2203.2.32", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + }, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json index 6095ecba038c..28d1f24edf38 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualHardDisk.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualharddisksName": "test-vhd", + "virtualHardDiskName": "test-vhd", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json index 7ba2a6a5f66f..cc5aa51d51f8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualMachine.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualmachinesName": "test-vm", + "virtualMachineName": "test-vm", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json index 73fdf6e4e086..c4deb18a6f01 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/DeleteVirtualNetwork.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualnetworksName": "test-vnet", + "virtualNetworkName": "test-vnet", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ExtendSoftwareAssuranceBenefit.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ExtendSoftwareAssuranceBenefit.json new file mode 100644 index 000000000000..e2f53a4bb6e6 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ExtendSoftwareAssuranceBenefit.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2022-12-15-preview", + "softwareAssuranceChangeRequest": { + "properties": { + "softwareAssuranceIntent": "Enable" + } + } + }, + "responses": { + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + }, + "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", + "desiredProperties": { + "windowsServerSubscription": "Enabled", + "diagnosticLevel": "Basic" + }, + "softwareAssuranceProperties": { + "softwareAssuranceStatus": "Enabled", + "lastUpdated": "2022-08-18T22:01:12.4191603Z", + "softwareAssuranceIntent": "Enable" + }, + "reportedProperties": { + "clusterName": "cluster1", + "clusterId": "a76ac23a-1819-4e82-9410-e3e4ec3d1425", + "clusterVersion": "10.0.17777", + "nodes": [ + { + "name": "Node1", + "id": 1, + "windowsServerSubscription": "Enabled", + "nodeType": "ThirdParty", + "manufacturer": "Dell Inc.", + "model": "EMC AX740", + "osName": "Azure Stack HCI", + "osVersion": "10.0.17777.1061", + "serialNumber": "Q45CZC3", + "coreCount": 8, + "memoryInGiB": 128 + } + ], + "lastUpdated": "2020-03-11T19:24:42.1946017Z", + "imdsAttestation": "Disabled", + "diagnosticLevel": "Basic" + }, + "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/2022-12-15-preview/examples/Extensions_Upgrade.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/Extensions_Upgrade.json new file mode 100644 index 000000000000..cbe16583a581 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/Extensions_Upgrade.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "extensionName": "MicrosoftMonitoringAgent", + "api-version": "2022-12-15-preview", + "extensionUpgradeParameters": { + "targetVersion": "1.0.18062.0" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GeneratePassword.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GeneratePassword.json new file mode 100644 index 000000000000..1fe6d0e2ed79 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GeneratePassword.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "secretText": "secretText", + "startDateTime": "2022-02-17T16:24:23.6264005+05:30", + "endDateTime": "2121-02-17T16:24:23.6264377+05:30", + "keyId": "00000000-2d47-4fb2-8ed2-fed71a5c197b" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json index e9ec387880d0..d682f5fafeca 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetArcSetting.json @@ -26,14 +26,27 @@ "perNodeDetails": [ { "name": "Node-1", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-1", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", "state": "Connected" }, { "name": "Node-2", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", "state": "Disconnected" } + ], + "connectivityProperties": { + "enabled": false + }, + "defaultExtensions": [ + { + "category": "Telemetry", + "consentTime": "2023-01-01T17:18:19.1234567Z" + }, + { + "category": "Supportability", + "consentTime": null + } ] } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json index c4b00cdf95ff..a423c1a3e6fb 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetCluster.json @@ -30,7 +30,7 @@ "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", "desiredProperties": { "windowsServerSubscription": "Enabled", - "diagnosticLevel": "Required" + "diagnosticLevel": "Basic" }, "reportedProperties": { "clusterName": "cluster1", @@ -75,7 +75,8 @@ } ], "lastUpdated": "2020-03-11T19:24:42.1946017Z", - "imdsAttestation": "Disabled" + "imdsAttestation": "Disabled", + "diagnosticLevel": "Basic" }, "trialDaysRemaining": 30, "billingModel": "Trial", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json index 31685fdfd918..06c5fe6bafb3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetExtension.json @@ -27,6 +27,7 @@ "publisher": "Microsoft.Compute", "type": "string", "typeHandlerVersion": "1.10.3", + "enableAutomaticUpgrade": true, "autoUpgradeMinorVersion": false, "settings": { "workspaceId": "xx" @@ -36,15 +37,42 @@ "perNodeExtensionDetails": [ { "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", - "state": "Succeeded" + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1/Extensions/MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.0", + "state": "Succeeded", + "instanceView": { + "name": "MicrosoftMonitoringAgent", + "type": "MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.0", + "status": { + "code": "success", + "level": "Information", + "displayStatus": "Provisioning succeeded", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2019-08-08T20:42:10.999Z" + } + } }, { "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/MicrosoftMonitoringAgent", - "state": "Failed" + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2/Extensions/MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.3", + "state": "Failed", + "instanceView": { + "name": "MicrosoftMonitoringAgent", + "type": "MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "error", + "level": "Error", + "displayStatus": "Provisioning failed", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2019-08-08T20:42:10.999Z" + } + } } - ] + ], + "managedBy": "Azure" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json index df578c1b102a..a8a17d8905e8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGalleryImage.json @@ -2,15 +2,15 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "galleryimagesName": "test-gallery-image", + "galleryImageName": "test-gallery-image", "api-version": "2022-12-15-preview" }, "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", "name": "test-gallery-image", - "type": "Microsoft.AzureStackHCI/galleryimages", + "type": "Microsoft.AzureStackHCI/galleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json index a2ea7e27a01c..6cf15c448de1 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetGuestAgent.json @@ -9,9 +9,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/guestAgents/default", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/ContosoVm/guestAgents/default", "name": "default", - "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/guestAgents", + "type": "Microsoft.AzureStackHCI/virtualMachines/guestAgents", "properties": { "provisioningAction": "install", "status": "connected", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json index a1910b3b675e..f066a5afaa8d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetHybridIdentityMetadata.json @@ -9,11 +9,10 @@ "responses": { "200": { "body": { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/hybridIdentityMetadata/default", - "name": "testItem", - "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/hybridIdentityMetadata", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/ContosoVm/hybridIdentityMetadata/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachines/hybridIdentityMetadata", "properties": { - "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", "identity": { "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json index e2e6dfd65676..7dd3b7948c70 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMachineExtension.json @@ -11,7 +11,7 @@ "body": { "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", "name": "CustomScriptExtension", - "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "type": "Microsoft.AzureStackHCI/virtualMachines/extensions", "location": "eastus2euap", "properties": { "publisher": "Microsoft.Compute", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json index a61a9ad2bed7..7eb2f22a5177 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetMarketplaceGalleryImage.json @@ -2,15 +2,15 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "marketplacegalleryimagesName": "test-marketplace-gallery-image", + "marketplaceGalleryImageName": "test-marketplace-gallery-image", "api-version": "2022-12-15-preview" }, "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", "name": "test-marketplace-gallery-image", - "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json index 037b33b3d035..ee559f17292d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetNetworkInterface.json @@ -2,15 +2,15 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "networkinterfacesName": "test-nic", + "networkInterfaceName": "test-nic", "api-version": "2022-12-15-preview" }, "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/networkinterfaces", + "type": "Microsoft.AzureStackHCI/networkInterfaces", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetOffer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetOffer.json new file mode 100644 index 000000000000..d3340228cc29 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetOffer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "publisherName": "publisher1", + "offerName": "offer1", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/publishers/publisher1/offers/offer1", + "type": "Microsoft.AzureStackHCI/clusters/publishers/offers", + "name": "offer1", + "properties": { + "content": "{\"id\":\"canonical.ubuntuserver1404lts-arm-14.04.201808140\",\"displayName\":\"Ubuntu Server 14.04 LTS\",\"publisherId\":\"Canonical\",\"publisherName\":\"Canonical\",\"type\":\"VirtualMachine\",\"version\":\"14.04.201808140\",\"properties\":{\"description\":\"Ubuntu Server 14.04.5 LTS amd64. Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu 14.04 LTS will be available until 2019-04-17. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.

\"},\"extendedProperties\":{\"osType\":\"Linux\",\"offer\":\"UbuntuServer\",\"offerVersion\":\"1.0.52\",\"sku\":\"14.04.5-LTS\",\"galleryItemIdentity\":\"Canonical.UbuntuServer1404LTS-ARM.1.0.52\"},\"links\":[{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]}],\"iconUris\":{\"medium\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Medium.png\",\"wide\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Wide.png\",\"large\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Large.png\",\"small\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Small.png\"},\"payloadLength\":32212288276,\"compatibility\":{\"isCompatible\":true,\"message\":\"None\",\"description\":\"None\",\"issues\":[]}}", + "contentVersion": "2018-01-01", + "publisherId": "publisher1", + "provisioningState": "Succeeded", + "skuMappings": [ + { + "catalogPlanId": "microsoftsqlserver.sql2019-ubuntu2004enterprise-arm", + "marketplaceSkuId": "enterprise", + "marketplaceSkuVersions": [ + "15.0.220208" + ] + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetPublisher.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetPublisher.json new file mode 100644 index 000000000000..8eaccac3f4ad --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetPublisher.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "publisherName": "publisher1", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/publishers/publisher1", + "type": "Microsoft.AzureStackHCI/clusters/publishers", + "name": "publisher1" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetSku.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetSku.json new file mode 100644 index 000000000000..7a431e39b687 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetSku.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "publisherName": "publisher1", + "offerName": "offer1", + "skuName": "sku1", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/publishers/publisher1/offers/offer1/skus/sku1", + "type": "Microsoft.AzureStackHCI/clusters/publishers/offers/skus", + "name": "sku1", + "properties": { + "publisherId": "publisher1", + "offerId": "offer1", + "content": "{\"id\":\"canonical.ubuntuserver1404lts-arm-14.04.201808140\",\"displayName\":\"Ubuntu Server 14.04 LTS\",\"publisherId\":\"Canonical\",\"publisherName\":\"Canonical\",\"type\":\"VirtualMachine\",\"version\":\"14.04.201808140\",\"properties\":{\"description\":\"Ubuntu Server 14.04.5 LTS amd64. Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu 14.04 LTS will be available until 2019-04-17. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.

\"},\"extendedProperties\":{\"osType\":\"Linux\",\"offer\":\"UbuntuServer\",\"offerVersion\":\"1.0.52\",\"sku\":\"14.04.5-LTS\",\"galleryItemIdentity\":\"Canonical.UbuntuServer1404LTS-ARM.1.0.52\"},\"links\":[{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]}],\"iconUris\":{\"medium\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Medium.png\",\"wide\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Wide.png\",\"large\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Large.png\",\"small\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Small.png\"},\"payloadLength\":32212288276,\"compatibility\":{\"isCompatible\":true,\"message\":\"None\",\"description\":\"None\",\"issues\":[]}}", + "contentVersion": "2018-01-01", + "provisioningState": "Succeeded", + "skuMappings": [ + { + "catalogPlanId": "microsoftsqlserver.sql2019-ubuntu2004enterprise-arm", + "marketplaceSkuId": "enterprise", + "marketplaceSkuVersions": [ + "15.0.220208" + ] + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json index 63a3e67b5f3a..460eead9ccd8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetStorageContainer.json @@ -2,15 +2,15 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "storagecontainersName": "Default_Container", + "storageContainerName": "Default_Container", "api-version": "2022-12-15-preview" }, "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/Default_Container", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/Default_Container", "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", + "type": "Microsoft.AzureStackHCI/storageContainers", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdateRuns.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdateRuns.json new file mode 100644 index 000000000000..3cd42f6237c5 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdateRuns.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "updateName": "Microsoft4.2203.2.32", + "updateRunName": "23b779ba-0d52-4a80-8571-45ca74664ec3", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b8d594e5-51f3-4c11-9c54-a7771b81c712/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/clusters/testcluster/updates/Microsoft4.2203.2.32/updateRuns/23b779ba-0d52-4a80-8571-45ca74664ec3", + "name": "Microsoft4.2203.2.32/23b779ba-0d52-4a80-8571-45ca74664ec3", + "type": "Microsoft.AzureStackHCI/updates/updateRuns", + "location": "West US", + "properties": { + "progress": { + "name": "Unnamed step", + "description": "Update Azure Stack.", + "errorMessage": "", + "status": "Success", + "startTimeUtc": "2022-04-06T01:36:33.3876751+00:00", + "endTimeUtc": "2022-04-06T13:58:42.969006+00:00", + "lastUpdatedTimeUtc": "2022-04-06T13:58:42.969006+00:00", + "steps": [ + { + "name": "PreUpdate Cloud", + "description": "Prepare for SSU update", + "errorMessage": "", + "status": "Success", + "startTimeUtc": "2022-04-06T01:36:33.3876751+00:00", + "endTimeUtc": "2022-04-06T01:37:16.8728314+00:00", + "lastUpdatedTimeUtc": "2022-04-06T01:37:16.8728314+00:00", + "steps": [] + } + ] + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdateSummaries.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdateSummaries.json new file mode 100644 index 000000000000..f5215f138a5a --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdateSummaries.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b8d594e5-51f3-4c11-9c54-a7771b81c712/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/clusters/testcluster/updateSummaries/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/updateSummaries", + "location": "West US", + "properties": { + "oemFamily": "DellEMC", + "hardwareModel": "PowerEdge R730xd", + "packageVersions": [ + { + "packageType": "OEM", + "version": "2.2.2108.6", + "lastUpdated": "2022-04-07T18:04:07Z" + }, + { + "packageType": "Services", + "version": "4.2203.2.32", + "lastUpdated": "2022-04-07T18:04:07Z" + }, + { + "packageType": "Infrastructure", + "version": "4.2203.2.32", + "lastUpdated": "2022-04-07T18:04:07Z" + } + ], + "currentVersion": "4.2203.2.32", + "state": "AppliedSuccessfully" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdates.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdates.json new file mode 100644 index 000000000000..2f8521edb85d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetUpdates.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "updateName": "Microsoft4.2203.2.32", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b8d594e5-51f3-4c11-9c54-a7771b81c712/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/clusters/testcluster/updates/Microsoft4.2203.2.32", + "name": "Microsoft4.2203.2.32", + "type": "Microsoft.AzureStackHCI/updates", + "location": "West US", + "properties": { + "installedDate": "2022-04-06T14:08:18.254Z", + "description": "AzS Update 4.2203.2.32", + "state": "Installed", + "prerequisites": [ + { + "updateType": "update type", + "version": "prerequisite version", + "packageName": "update package name" + } + ], + "packagePath": "\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32", + "packageSizeInMb": 18858, + "displayName": "AzS Update - 4.2203.2.32", + "version": "4.2203.2.32", + "publisher": "Microsoft", + "releaseLink": "https://docs.microsoft.com/azure-stack/operator/release-notes?view=azs-2203", + "availabilityType": "Local", + "packageType": "Infrastructure", + "updateStateProperties": { + "notifyMessage": "Brief message with instructions for updates of AvailabilityType Notify", + "progressPercentage": 0 + }, + "additionalProperties": "additional properties" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json index 4301ad90e465..e4bef7b61f9a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualHardDisk.json @@ -2,22 +2,22 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualharddisksName": "test-vhd", + "virtualHardDiskName": "test-vhd", "api-version": "2022-12-15-preview" }, "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", "name": "test-vhd", - "type": "Microsoft.AzureStackHCI/virtualharddisks", + "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, + "diskSizeGB": 32, "blockSizeBytes": 0, "logicalSectorBytes": 512, "physicalSectorBytes": 512, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json index 85209cfea2d4..76db26a50fbd 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualMachine.json @@ -2,15 +2,15 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualmachinesName": "test-vm", + "virtualMachineName": "test-vm", "api-version": "2022-12-15-preview" }, "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "name": "test-vm", - "type": "Microsoft.AzureStackHCI/virtualmachines", + "type": "Microsoft.AzureStackHCI/virtualMachines", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -20,9 +20,9 @@ "provisioningState": "Accepted", "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json index ecd9aa293bb6..26107aaca109 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GetVirtualNetwork.json @@ -2,15 +2,15 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualnetworksName": "test-vnet", + "virtualNetworkName": "test-vnet", "api-version": "2022-12-15-preview" }, "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-vnet", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/virtualnetworks", + "type": "Microsoft.AzureStackHCI/virtualNetworks", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json index 5af4225495c2..f57fb6e11799 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/GuestAgent_ListByVirtualMachines.json @@ -10,9 +10,9 @@ "body": { "value": [ { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/guestAgents/default", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/ContosoVm/guestAgents/default", "name": "default", - "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/guestAgents", + "type": "Microsoft.AzureStackHCI/virtualMachines/guestAgents", "properties": { "provisioningAction": "install", "status": "connected", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json index 1067f15996eb..a65db0c6c712 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json @@ -10,11 +10,10 @@ "body": { "value": [ { - "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/VitualMachines/ContosoVm/hybridIdentityMetadata/default", - "name": "testItem", - "type": "Microsoft.AzureStackHCI/virtualMachines/VitualMachines/hybridIdentityMetadata", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachines/ContosoVm/hybridIdentityMetadata/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachines/hybridIdentityMetadata", "properties": { - "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", "identity": { "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/InitializeDisableProcess.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/InitializeDisableProcess.json new file mode 100644 index 000000000000..3b42cd1cbcd5 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/InitializeDisableProcess.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "api-version": "2022-12-15-preview" + }, + "responses": { + "202": { + "headers": { + "location": "https://foo.com/operationStatuses", + "Retry-After": 200, + "Azure-AsyncOperation": "https://foo.com/operationStatuses" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json index 8d2b7c64cf9f..bf46d1c939a5 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListArcSettingsByCluster.json @@ -27,14 +27,27 @@ "perNodeDetails": [ { "name": "Node-1", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-1", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", "state": "Connected" }, { "name": "Node-2", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", "state": "Disconnected" } + ], + "connectivityProperties": { + "enabled": false + }, + "defaultExtensions": [ + { + "category": "Telemetry", + "consentTime": "2023-01-01T17:18:19.1234567Z" + }, + { + "category": "Supportability", + "consentTime": null + } ] } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json index 56f18b00e0cc..756186af3ab6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersByResourceGroup.json @@ -31,7 +31,7 @@ "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", "desiredProperties": { "windowsServerSubscription": "Enabled", - "diagnosticLevel": "Required" + "diagnosticLevel": "Basic" }, "reportedProperties": {}, "trialDaysRemaining": 29, @@ -61,7 +61,7 @@ "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", "desiredProperties": { "windowsServerSubscription": "Enabled", - "diagnosticLevel": "Required" + "diagnosticLevel": "Basic" }, "reportedProperties": { "clusterName": "cluster1", @@ -106,7 +106,8 @@ } ], "lastUpdated": "2020-03-11T19:24:42.1946017Z", - "imdsAttestation": "Disabled" + "imdsAttestation": "Disabled", + "diagnosticLevel": "Basic" }, "trialDaysRemaining": 30, "billingModel": "Trial", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json index c8edcb1a40d6..7c1539c9deee 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListClustersBySubscription.json @@ -30,7 +30,7 @@ "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", "desiredProperties": { "windowsServerSubscription": "Enabled", - "diagnosticLevel": "Required" + "diagnosticLevel": "Basic" }, "reportedProperties": {}, "trialDaysRemaining": 29, @@ -60,7 +60,7 @@ "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", "desiredProperties": { "windowsServerSubscription": "Enabled", - "diagnosticLevel": "Required" + "diagnosticLevel": "Basic" }, "reportedProperties": { "clusterName": "cluster1", @@ -105,7 +105,8 @@ } ], "lastUpdated": "2020-03-11T19:24:42.1946017Z", - "imdsAttestation": "Disabled" + "imdsAttestation": "Disabled", + "diagnosticLevel": "Basic" }, "trialDaysRemaining": 30, "billingModel": "Trial", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json index 7ab95145f2a0..aebd2092d5b6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListExtensionsByArcSetting.json @@ -37,15 +37,16 @@ "perNodeExtensionDetails": [ { "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1/Extensions/MicrosoftMonitoringAgent", "state": "Connected" }, { "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2/Extensions/MicrosoftMonitoringAgent", "state": "Disconnected" } - ] + ], + "managedBy": "Azure" } }, { @@ -75,15 +76,16 @@ "perNodeExtensionDetails": [ { "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-1/Extensions/SecurityExtension", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1/Extensions/SecurityExtension", "state": "Succeeded" }, { "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/SecurityExtension", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2/Extensions/SecurityExtension", "state": "Failed" } - ] + ], + "managedBy": "User" } } ] diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json index 6f4708ce270d..7d0490a130d6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageByResourceGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", "name": "test-gallery-image", - "type": "Microsoft.AzureStackHCI/galleryimages", + "type": "Microsoft.AzureStackHCI/galleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json index 808b72c1b974..61a879bb294a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListGalleryImageBySubscription.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", "name": "test-gallery-image", - "type": "Microsoft.AzureStackHCI/galleryimages", + "type": "Microsoft.AzureStackHCI/galleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json index b9bec72f73bd..ebd41b97324d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMachineExtension.json @@ -13,7 +13,7 @@ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", "name": "CustomScriptExtension", "location": "eastus2euap", - "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "type": "Microsoft.AzureStackHCI/virtualMachines/extensions", "properties": { "publisher": "Microsoft.Compute", "type": "CustomScriptExtension", @@ -41,7 +41,7 @@ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/winosupdateextension", "name": "winosupdateextension", "location": "eastus2euap", - "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "type": "Microsoft.AzureStackHCI/virtualMachines/extensions", "properties": { "publisher": "microsoft.softwareupdatemanagement.test", "type": "windowsosupdateextension", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json index 6465eecc8dc0..2476bf5b49d8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", "name": "test-marketplace-gallery-image", - "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json index c4b750846359..0577ac419f01 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListMarketplaceGalleryImageBySubscription.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", "name": "test-marketplace-gallery-image", - "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json index 578629b45f2d..96d121eff4d6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "networkinterfacesName": "test-nic", + "networkInterfaceName": "test-nic", "api-version": "2022-12-15-preview" }, "responses": { @@ -10,9 +10,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/networkinterfaces", + "type": "Microsoft.AzureStackHCI/networkInterfaces", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json index 578629b45f2d..96d121eff4d6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListNetworkInterfaceBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "networkinterfacesName": "test-nic", + "networkInterfaceName": "test-nic", "api-version": "2022-12-15-preview" }, "responses": { @@ -10,9 +10,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/networkinterfaces", + "type": "Microsoft.AzureStackHCI/networkInterfaces", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOffersByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOffersByCluster.json new file mode 100644 index 000000000000..e55959611720 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOffersByCluster.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/publishers/publisher1/offers/offer1", + "type": "Microsoft.AzureStackHCI/clusters/publishers/offers", + "name": "offer1", + "properties": { + "content": "{\"id\":\"canonical.ubuntuserver1404lts-arm-14.04.201808140\",\"displayName\":\"Ubuntu Server 14.04 LTS\",\"publisherId\":\"Canonical\",\"publisherName\":\"Canonical\",\"type\":\"VirtualMachine\",\"version\":\"14.04.201808140\",\"properties\":{\"description\":\"Ubuntu Server 14.04.5 LTS amd64. Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu 14.04 LTS will be available until 2019-04-17. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.

\"},\"extendedProperties\":{\"osType\":\"Linux\",\"offer\":\"UbuntuServer\",\"offerVersion\":\"1.0.52\",\"sku\":\"14.04.5-LTS\",\"galleryItemIdentity\":\"Canonical.UbuntuServer1404LTS-ARM.1.0.52\"},\"links\":[{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]}],\"iconUris\":{\"medium\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Medium.png\",\"wide\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Wide.png\",\"large\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Large.png\",\"small\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Small.png\"},\"payloadLength\":32212288276,\"compatibility\":{\"isCompatible\":true,\"message\":\"None\",\"description\":\"None\",\"issues\":[]}}", + "contentVersion": "2018-01-01", + "publisherId": "publisher1", + "provisioningState": "Succeeded", + "skuMappings": [ + { + "catalogPlanId": "microsoftsqlserver.sql2019-ubuntu2004enterprise-arm", + "marketplaceSkuId": "enterprise", + "marketplaceSkuVersions": [ + "15.0.220208" + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOffersByPublisher.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOffersByPublisher.json new file mode 100644 index 000000000000..4789d1ae1557 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOffersByPublisher.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "publisherName": "publisher1", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/publishers/publisher1/offers/offer1", + "type": "Microsoft.AzureStackHCI/clusters/publishers/offers", + "name": "offer1", + "properties": { + "content": "{\"id\":\"canonical.ubuntuserver1404lts-arm-14.04.201808140\",\"displayName\":\"Ubuntu Server 14.04 LTS\",\"publisherId\":\"Canonical\",\"publisherName\":\"Canonical\",\"type\":\"VirtualMachine\",\"version\":\"14.04.201808140\",\"properties\":{\"description\":\"Ubuntu Server 14.04.5 LTS amd64. Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu 14.04 LTS will be available until 2019-04-17. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.

\"},\"extendedProperties\":{\"osType\":\"Linux\",\"offer\":\"UbuntuServer\",\"offerVersion\":\"1.0.52\",\"sku\":\"14.04.5-LTS\",\"galleryItemIdentity\":\"Canonical.UbuntuServer1404LTS-ARM.1.0.52\"},\"links\":[{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]}],\"iconUris\":{\"medium\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Medium.png\",\"wide\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Wide.png\",\"large\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Large.png\",\"small\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Small.png\"},\"payloadLength\":32212288276,\"compatibility\":{\"isCompatible\":true,\"message\":\"None\",\"description\":\"None\",\"issues\":[]}}", + "contentVersion": "2018-01-01", + "publisherId": "publisher1", + "provisioningState": "Succeeded", + "skuMappings": [ + { + "catalogPlanId": "microsoftsqlserver.sql2019-ubuntu2004enterprise-arm", + "marketplaceSkuId": "enterprise", + "marketplaceSkuVersions": [ + "15.0.220208" + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json deleted file mode 100644 index 6ba5774cfdc6..000000000000 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperationByCluster.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", - "resourceGroupName": "test-rg", - "clusterName": "myCluster", - "api-version": "2022-12-15-preview" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperations.json new file mode 100644 index 000000000000..ad7ff158f95f --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListOperations.json @@ -0,0 +1,453 @@ +{ + "parameters": { + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AzureStackHCI/Register/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Register", + "operation": "Registers the Azure Stack HCI Resource Provider", + "description": "Registers the subscription for the Azure Stack HCI resource provider and enables the creation of Azure Stack HCI resources." + } + }, + { + "name": "Microsoft.AzureStackHCI/Unregister/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Unregister", + "operation": "Unregisters the Azure Stack HCI Resource Provider", + "description": "Unregisters the subscription for the Azure Stack HCI resource provider." + } + }, + { + "name": "Microsoft.AzureStackHCI/Operations/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Operations", + "operation": "Gets/List operations resources", + "description": "Gets operations" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters", + "operation": "Gets/List cluster resources", + "description": "Gets clusters" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters", + "operation": "Create/update cluster resources", + "description": "Creates or updates a cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters", + "operation": "Deletes cluster resource", + "description": "Deletes cluster resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/ArcSettings/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/ArcSettings", + "operation": "Gets/List arc resources", + "description": "Gets arc resource of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/ArcSettings/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/ArcSettings", + "operation": "Create/Update arc resources", + "description": "Create or updates arc resource of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/ArcSettings/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/ArcSettings", + "operation": "Delete arc resources", + "description": "Delete arc resource of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/ArcSettings/Extensions/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/ArcSettings/Extensions", + "operation": "Gets/List extension resources of HCI cluster", + "description": "Gets extension resource of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/ArcSettings/Extensions/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/ArcSettings/Extensions", + "operation": "Create/Update extension resources of HCI cluster", + "description": "Create or update extension resource of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/ArcSettings/Extensions/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/ArcSettings/Extensions", + "operation": "Delete extension resources of HCI cluster", + "description": "Delete extension resources of HCI cluster" + } + }, + { + "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" + } + }, + { + "name": "Microsoft.AzureStackHCI/RegisteredSubscriptions/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "RegisteredSubscriptions", + "operation": "Gets/Lists registered subscriptions", + "description": "Reads registered subscriptions" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/Updates/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/Updates", + "operation": "Gets/List available updates for HCI cluster", + "description": "Gets available updates for HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/Updates/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/Updates", + "operation": "Create/Update updates resource of HCI cluster", + "description": "Create or update updates resource of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/Updates/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/Updates", + "operation": "Delete updates resources of HCI cluster", + "description": "Delete updates resources of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/UpdateSummaries/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/UpdateSummaries", + "operation": "Gets/List available update summaries for HCI cluster", + "description": "Gets available update summaries for HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/UpdateSummaries/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/UpdateSummaries", + "operation": "Create/Update update summaries resource of HCI cluster", + "description": "Create or update update summaries resource of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/UpdateSummaries/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/UpdateSummaries", + "operation": "Delete updates resource summaries of HCI cluster", + "description": "Delete update summaries resources of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/Updates/UpdateRuns/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/Updates/UpdateRuns", + "operation": "Gets/List available update runs for HCI cluster", + "description": "Gets available update runs for HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/Updates/UpdateRuns/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/Updates/UpdateRuns", + "operation": "Create/Update update runs resource of HCI cluster", + "description": "Create or update update runs resource of HCI cluster" + } + }, + { + "name": "Microsoft.AzureStackHCI/Clusters/Updates/UpdateRuns/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "Clusters/Updates/UpdateRuns", + "operation": "Delete updates resource runs of HCI cluster", + "description": "Delete update runs resources of HCI cluster" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListPublishersByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListPublishersByCluster.json new file mode 100644 index 000000000000..636394f9cec2 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListPublishersByCluster.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/publishers/publisher1", + "type": "Microsoft.AzureStackHCI/clusters/publishers", + "name": "publisher1" + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListSkusByOffer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListSkusByOffer.json new file mode 100644 index 000000000000..4901d1c0be37 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListSkusByOffer.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "publisherName": "publisher1", + "offerName": "offer1", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/publishers/publisher1/offers/offer1/skus/sku1", + "type": "Microsoft.AzureStackHCI/clusters/publishers/offers/skus", + "name": "sku1", + "properties": { + "content": "{\"id\":\"canonical.ubuntuserver1404lts-arm-14.04.201808140\",\"displayName\":\"Ubuntu Server 14.04 LTS\",\"publisherId\":\"Canonical\",\"publisherName\":\"Canonical\",\"type\":\"VirtualMachine\",\"version\":\"14.04.201808140\",\"properties\":{\"description\":\"Ubuntu Server 14.04.5 LTS amd64. Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu 14.04 LTS will be available until 2019-04-17. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.

\"},\"extendedProperties\":{\"osType\":\"Linux\",\"offer\":\"UbuntuServer\",\"offerVersion\":\"1.0.52\",\"sku\":\"14.04.5-LTS\",\"galleryItemIdentity\":\"Canonical.UbuntuServer1404LTS-ARM.1.0.52\"},\"links\":[{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]},{\"name\":[],\"uri\":[]}],\"iconUris\":{\"medium\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Medium.png\",\"wide\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Wide.png\",\"large\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Large.png\",\"small\":\"https://azstmktdfwcu001.blob.core.windows.net/icons/e5da743bb86d4d429320a75bfa5b96b8/Small.png\"},\"payloadLength\":32212288276,\"compatibility\":{\"isCompatible\":true,\"message\":\"None\",\"description\":\"None\",\"issues\":[]}}", + "contentVersion": "2018-01-01", + "publisherId": "publisher1", + "offerId": "offer1", + "skuMappings": [ + { + "catalogPlanId": "microsoftsqlserver.sql2019-ubuntu2004enterprise-arm", + "marketplaceSkuId": "enterprise", + "marketplaceSkuVersions": [ + "15.0.220208" + ] + } + ], + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json index c86aff2081b2..34ae827f341f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerByResourceGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/Default_Container", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/Default_Container", "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", + "type": "Microsoft.AzureStackHCI/storageContainers", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json index 702ad5dabbe2..98dfe5957130 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListStorageContainerBySubscription.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/Default_Container", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/Default_Container", "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", + "type": "Microsoft.AzureStackHCI/storageContainers", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdateRuns.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdateRuns.json new file mode 100644 index 000000000000..eae4eba99a37 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdateRuns.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "updateName": "Microsoft4.2203.2.32", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/b8d594e5-51f3-4c11-9c54-a7771b81c712/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/clusters/testcluster/updates/Microsoft4.2203.2.32/updateRuns/23b779ba-0d52-4a80-8571-45ca74664ec3", + "name": "Microsoft4.2203.2.32/23b779ba-0d52-4a80-8571-45ca74664ec3", + "type": "Microsoft.AzureStackHCI/updates/updateRuns", + "location": "West US", + "properties": { + "progress": { + "name": "Unnamed step", + "description": "Update Azure Stack.", + "errorMessage": "", + "status": "Success", + "startTimeUtc": "2022-04-06T01:36:33.3876751+00:00", + "endTimeUtc": "2022-04-06T13:58:42.969006+00:00", + "lastUpdatedTimeUtc": "2022-04-06T13:58:42.969006+00:00", + "steps": [ + { + "name": "PreUpdate Cloud", + "description": "Prepare for SSU update", + "errorMessage": "", + "status": "Success", + "startTimeUtc": "2022-04-06T01:36:33.3876751+00:00", + "endTimeUtc": "2022-04-06T01:37:16.8728314+00:00", + "lastUpdatedTimeUtc": "2022-04-06T01:37:16.8728314+00:00", + "steps": [] + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdateSummaries.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdateSummaries.json new file mode 100644 index 000000000000..a7bed5a066db --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdateSummaries.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/b8d594e5-51f3-4c11-9c54-a7771b81c712/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/clusters/testcluster/updateSummaries/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/updateSummaries", + "location": "West US", + "properties": { + "oemFamily": "DellEMC", + "hardwareModel": "PowerEdge R730xd", + "packageVersions": [ + { + "packageType": "OEM", + "version": "2.2.2108.6", + "lastUpdated": "2022-04-07T18:04:07Z" + }, + { + "packageType": "Services", + "version": "4.2203.2.32", + "lastUpdated": "2022-04-07T18:04:07Z" + }, + { + "packageType": "Infrastructure", + "version": "4.2203.2.32", + "lastUpdated": "2022-04-07T18:04:07Z" + } + ], + "currentVersion": "4.2203.2.32", + "state": "AppliedSuccessfully" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdates.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdates.json new file mode 100644 index 000000000000..06ac83473527 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListUpdates.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/b8d594e5-51f3-4c11-9c54-a7771b81c712/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/clusters/testcluster/updates/Microsoft4.2203.2.32", + "name": "Microsoft4.2203.2.32", + "type": " Microsoft. AzureStackHCI/updates", + "location": "West US", + "properties": { + "installedDate": "2022-04-06T14:08:18.254Z", + "description": "AzS Update 4.2203.2.32", + "state": "Installed", + "prerequisites": [ + { + "updateType": "update type", + "version": "prerequisite version", + "packageName": "update package name" + } + ], + "packagePath": "\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32", + "packageSizeInMb": 18858, + "displayName": "AzS Update - 4.2203.2.32", + "version": "4.2203.2.32", + "publisher": "Microsoft", + "releaseLink": "https://docs.microsoft.com/azure-stack/operator/release-notes?view=azs-2203", + "availabilityType": "Local", + "packageType": "Infrastructure", + "updateStateProperties": { + "notifyMessage": "Brief message with instructions for updates of AvailabilityType Notify", + "progressPercentage": 0 + }, + "additionalProperties": "additional properties" + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json index 50de15fd2e1a..d884ebe34841 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskByResourceGroup.json @@ -9,16 +9,16 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", "name": "test-vhd", - "type": "Microsoft.AzureStackHCI/virtualharddisks", + "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, + "diskSizeGB": 32, "blockSizeBytes": 0, "logicalSectorBytes": 512, "physicalSectorBytes": 512, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json index a2b08be1aeb8..da5b206138ea 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualHardDiskBySubscription.json @@ -8,16 +8,16 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", "name": "test-vhd", - "type": "Microsoft.AzureStackHCI/virtualharddisks", + "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, + "diskSizeGB": 32, "blockSizeBytes": 0, "logicalSectorBytes": 512, "physicalSectorBytes": 512, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json index f90451e699a3..2986b53f05a4 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineByResourceGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "name": "test-vm", - "type": "Microsoft.AzureStackHCI/virtualmachines", + "type": "Microsoft.AzureStackHCI/virtualMachines", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -21,9 +21,9 @@ "provisioningState": "Accepted", "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json index 444f14019119..43e83ec151ed 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualMachineBySubscription.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "name": "test-vm", - "type": "Microsoft.AzureStackHCI/virtualmachines", + "type": "Microsoft.AzureStackHCI/virtualMachines", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -20,9 +20,9 @@ "provisioningState": "Accepted", "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json index 829e0a124a44..08c0f1debbfc 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkByResourceGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-vnet", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/virtualnetworks", + "type": "Microsoft.AzureStackHCI/virtualNetworks", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json index e81e59e8de94..fee687b702a3 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/ListVirtualNetworkBySubscription.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-vnet", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/virtualnetworks", + "type": "Microsoft.AzureStackHCI/virtualNetworks", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchArcSetting.json new file mode 100644 index 000000000000..01bcd8c319bc --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchArcSetting.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "arcSettingName": "default", + "arcSetting": { + "properties": { + "connectivityProperties": { + "enabled": true + } + } + }, + "api-version": "2022-12-15-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", + "connectivityProperties": { + "enabled": true + }, + "perNodeDetails": [ + { + "name": "Node-1", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "state": "Creating" + }, + { + "name": "Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + "state": "Creating" + } + ], + "defaultExtensions": [ + { + "category": "Telemetry", + "consentTime": "2023-01-01T17:18:19.1234567Z" + }, + { + "category": "Supportability", + "consentTime": null + } + ] + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json index 4872e18ea15f..c11dd3cc4eda 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PatchExtension.json @@ -20,7 +20,7 @@ "api-version": "2022-12-15-preview" }, "responses": { - "201": { + "200": { "body": { "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent", "name": "MicrosoftMonitoringAgent", @@ -39,6 +39,7 @@ "publisher": "Microsoft.Compute", "type": "string", "typeHandlerVersion": "1.10.3", + "enableAutomaticUpgrade": false, "autoUpgradeMinorVersion": false, "settings": { "workspaceId": "xx" @@ -48,17 +49,25 @@ "perNodeExtensionDetails": [ { "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1/Extensions/MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.3", "state": "Connected" }, { "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2/Extensions/MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.3", "state": "Disconnected" } - ] + ], + "managedBy": "User" } } + }, + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PostUpdates.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PostUpdates.json new file mode 100644 index 000000000000..0721a1407e50 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PostUpdates.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "updateName": "Microsoft4.2203.2.32", + "api-version": "2022-12-15-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json index 96e48eaf7247..98b49bfee9f6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutArcSetting.json @@ -27,14 +27,23 @@ "perNodeDetails": [ { "name": "Node-1", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-1", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", "state": "Creating" }, { "name": "Node-2", - "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2", + "arcInstance": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", "state": "Creating" } + ], + "connectivityProperties": { + "enabled": false + }, + "defaultExtensions": [ + { + "category": "Telemetry", + "consentTime": "2023-01-01T17:18:19.1234567Z" + } ] } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json index b94b0fd9bf1a..654ba13a0e81 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutExtension.json @@ -10,6 +10,7 @@ "extensionParameters": { "publisher": "Microsoft.Compute", "typeHandlerVersion": "1.10", + "enableAutomaticUpgrade": false, "type": "MicrosoftMonitoringAgent", "settings": { "workspaceId": "xx" @@ -42,6 +43,7 @@ "publisher": "Microsoft.Compute", "type": "string", "typeHandlerVersion": "1.10.3", + "enableAutomaticUpgrade": false, "autoUpgradeMinorVersion": false, "settings": { "workspaceId": "xx" @@ -51,15 +53,18 @@ "perNodeExtensionDetails": [ { "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1/Extensions/MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.3", "state": "Succeeded" }, { "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2/Extensions/MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.3", "state": "Failed" } - ] + ], + "managedBy": "User" } } }, @@ -82,6 +87,7 @@ "publisher": "Microsoft.Compute", "type": "string", "typeHandlerVersion": "1.10.3", + "enableAutomaticUpgrade": false, "autoUpgradeMinorVersion": false, "settings": { "workspaceId": "xx" @@ -91,15 +97,18 @@ "perNodeExtensionDetails": [ { "name": "Node-1", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-1/Extensions/MicrosoftMonitoringAgent", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1/Extensions/MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.3", "state": "Succeeded" }, { "name": "Node-2", - "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/machine/Node-2/Extensions/MicrosoftMonitoringAgent", + "extension": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2/Extensions/MicrosoftMonitoringAgent", + "typeHandlerVersion": "1.10.3", "state": "Failed" } - ] + ], + "managedBy": "User" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json index c34b94c03af2..5c33d5ce9ab6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutGalleryImage.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "galleryimagesName": "test-gallery-image", + "galleryImageName": "test-gallery-image", "api-version": "2022-12-15-preview", - "galleryimages": { + "galleryImages": { "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -19,9 +19,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", "name": "test-gallery-image", - "type": "Microsoft.AzureStackHCI/galleryimages", + "type": "Microsoft.AzureStackHCI/galleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -57,9 +57,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-galimg3325", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325", "name": "test-gallery-image", - "type": "Microsoft.AzureStackHCI/galleryimages", + "type": "Microsoft.AzureStackHCI/galleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json index 6aca926f2a67..5a4afdfc31ab 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMachineExtension.json @@ -22,7 +22,7 @@ "body": { "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", "name": "CustomScriptExtension", - "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "type": "Microsoft.AzureStackHCI/virtualMachines/extensions", "location": "eastus2euap", "properties": { "publisher": "Microsoft.Compute", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json index 2d41a3fafd2b..890ad41da60e 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutMarketplaceGalleryImage.json @@ -2,9 +2,10 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "marketplacegalleryimagesName": "test-marketplace-gallery-image", + "marketplaceGalleryImageName": "test-marketplace-gallery-image", "api-version": "2022-12-15-preview", - "marketplacegalleryimages": { + "name": "test-marketplace-gallery-image", + "marketplaceGalleryImages": { "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -29,9 +30,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", "name": "test-marketplace-gallery-image", - "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -73,9 +74,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", "name": "test-marketplace-gallery-image", - "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json index e57eea2d1ff6..70ff99ed7a91 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutNetworkInterface.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "networkinterfacesName": "test-nic", + "networkInterfaceName": "test-nic", "api-version": "2022-12-15-preview", - "networkinterfaces": { + "networkInterfaces": { "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -27,9 +27,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", "name": "test-nic", - "type": "Microsoft.AzureStackHCI/networkinterfaces", + "type": "Microsoft.AzureStackHCI/networkInterfaces", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -52,9 +52,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", "name": "test-nic", - "type": "Microsoft.AzureStackHCI/networkinterfaces", + "type": "Microsoft.AzureStackHCI/networkInterfaces", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json index cd8dbc2e043f..8f578b1bf705 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutStorageContainer.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "storagecontainersName": "Default_Container", + "storageContainerName": "Default_Container", "api-version": "2022-12-15-preview", - "storagecontainers": { + "storageContainers": { "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -18,9 +18,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", + "type": "Microsoft.AzureStackHCI/storageContainers", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -34,9 +34,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", + "type": "Microsoft.AzureStackHCI/storageContainers", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdateRuns.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdateRuns.json new file mode 100644 index 000000000000..de460fe9e700 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdateRuns.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "updateName": "Microsoft4.2203.2.32", + "updateRunName": "23b779ba-0d52-4a80-8571-45ca74664ec3", + "api-version": "2022-12-15-preview", + "updateRunsProperties": { + "properties": { + "progress": { + "name": "Unnamed step", + "description": "Update Azure Stack.", + "errorMessage": "", + "status": "Success", + "startTimeUtc": "2022-04-06T01:36:33.3876751+00:00", + "endTimeUtc": "2022-04-06T13:58:42.969006+00:00", + "lastUpdatedTimeUtc": "2022-04-06T13:58:42.969006+00:00", + "steps": [ + { + "name": "PreUpdate Cloud", + "description": "Prepare for SSU update", + "errorMessage": "", + "status": "Success", + "startTimeUtc": "2022-04-06T01:36:33.3876751+00:00", + "endTimeUtc": "2022-04-06T01:37:16.8728314+00:00", + "lastUpdatedTimeUtc": "2022-04-06T01:37:16.8728314+00:00", + "steps": [] + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b8d594e5-51f3-4c11-9c54-a7771b81c712/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/clusters/testcluster/updates/Microsoft4.2203.2.32/updateRuns/23b779ba-0d52-4a80-8571-45ca74664ec3", + "name": "Microsoft4.2203.2.32/23b779ba-0d52-4a80-8571-45ca74664ec3", + "type": "Microsoft.AzureStackHCI/updates/updateRuns", + "location": "West US", + "properties": { + "progress": { + "name": "Unnamed step", + "description": "Update Azure Stack.", + "errorMessage": "", + "status": "Success", + "startTimeUtc": "2022-04-06T01:36:33.3876751+00:00", + "endTimeUtc": "2022-04-06T13:58:42.969006+00:00", + "lastUpdatedTimeUtc": "2022-04-06T13:58:42.969006+00:00", + "steps": [ + { + "name": "PreUpdate Cloud", + "description": "Prepare for SSU update", + "errorMessage": "", + "status": "Success", + "startTimeUtc": "2022-04-06T01:36:33.3876751+00:00", + "endTimeUtc": "2022-04-06T01:37:16.8728314+00:00", + "lastUpdatedTimeUtc": "2022-04-06T01:37:16.8728314+00:00", + "steps": [] + } + ] + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdateSummaries.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdateSummaries.json new file mode 100644 index 000000000000..6733af0ac8d1 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdateSummaries.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "updateName": "Microsoft4.2203.2.32", + "api-version": "2022-12-15-preview", + "updateLocationProperties": { + "properties": { + "oemFamily": "DellEMC", + "hardwareModel": "PowerEdge R730xd", + "lastChecked": "2022-04-07T18:04:07Z", + "currentVersion": "4.2203.2.32", + "lastUpdated": "2022-04-06T14:08:18.254Z", + "state": "AppliedSuccessfully" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b8d594e5-51f3-4c11-9c54-a7771b81c712/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/clusters/testcluster/updateSummaries/default", + "name": "default", + "type": "Microsoft.AzureStackHCI/updateSummaries", + "location": "West US", + "properties": { + "oemFamily": "DellEMC", + "hardwareModel": "PowerEdge R730xd", + "packageVersions": [ + { + "packageType": "OEM", + "version": "2.2.2108.6", + "lastUpdated": "2022-04-07T18:04:07Z" + }, + { + "packageType": "Services", + "version": "4.2203.2.32", + "lastUpdated": "2022-04-07T18:04:07Z" + }, + { + "packageType": "Infrastructure", + "version": "4.2203.2.32", + "lastUpdated": "2022-04-07T18:04:07Z" + } + ], + "currentVersion": "4.2203.2.32", + "state": "AppliedSuccessfully" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdates.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdates.json new file mode 100644 index 000000000000..825592244c1d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutUpdates.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "b8d594e5-51f3-4c11-9c54-a7771b81c712", + "resourceGroupName": "testrg", + "clusterName": "testcluster", + "updateName": "Microsoft4.2203.2.32", + "api-version": "2022-12-15-preview", + "updateProperties": { + "properties": { + "installedDate": "2022-04-06T14:08:18.254Z", + "description": "AzS Update 4.2203.2.32", + "state": "Installed", + "prerequisites": [ + { + "updateType": "update type", + "version": "prerequisite version", + "packageName": "update package name" + } + ], + "packagePath": "\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32", + "packageSizeInMb": 18858, + "displayName": "AzS Update - 4.2203.2.32", + "version": "4.2203.2.32", + "publisher": "Microsoft", + "releaseLink": "https://docs.microsoft.com/azure-stack/operator/release-notes?view=azs-2203", + "availabilityType": "Local", + "packageType": "Infrastructure", + "updateStateProperties": { + "notifyMessage": "Brief message with instructions for updates of AvailabilityType Notify", + "progressPercentage": 0 + }, + "additionalProperties": "additional properties" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b8d594e5-51f3-4c11-9c54-a7771b81c712/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/clusters/testcluster/updates/Microsoft4.2203.2.32", + "name": "Microsoft4.2203.2.32", + "type": "Microsoft.AzureStackHCI/updates", + "location": "West US", + "properties": { + "installedDate": "2022-04-06T14:08:18.254Z", + "description": "AzS Update 4.2203.2.32", + "state": "Installed", + "prerequisites": [ + { + "updateType": "update type", + "version": "prerequisite version", + "packageName": "update package name" + } + ], + "packagePath": "\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32", + "packageSizeInMb": 18858, + "displayName": "AzS Update - 4.2203.2.32", + "version": "4.2203.2.32", + "publisher": "Microsoft", + "releaseLink": "https://docs.microsoft.com/azure-stack/operator/release-notes?view=azs-2203", + "availabilityType": "Local", + "packageType": "Infrastructure", + "updateStateProperties": { + "notifyMessage": "Brief message with instructions for updates of AvailabilityType Notify", + "progressPercentage": 0 + }, + "additionalProperties": "additional properties" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json index 370c74168e67..abd15fb3d157 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualHardDisk.json @@ -2,32 +2,32 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualharddisksName": "test-vhd", + "virtualHardDiskName": "test-vhd", "api-version": "2022-12-15-preview", - "virtualharddisks": { + "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 + "diskSizeGB": 32 } } }, "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", "name": "test-vhd", - "type": "Microsoft.AzureStackHCI/virtualharddisks", + "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, + "diskSizeGB": 32, "blockSizeBytes": 0, "logicalSectorBytes": 512, "physicalSectorBytes": 512, @@ -40,16 +40,16 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", "name": "test-vhd", - "type": "Microsoft.AzureStackHCI/virtualharddisks", + "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, + "diskSizeGB": 32, "blockSizeBytes": 0, "logicalSectorBytes": 512, "physicalSectorBytes": 512, diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json index 2b9ee4a01f4f..dde8850999a4 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithGalleryImage.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualmachinesName": "test-vm", + "virtualMachineName": "test-vm", "api-version": "2022-12-15-preview", - "virtualmachines": { + "virtualMachines": { "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -13,9 +13,9 @@ "properties": { "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" @@ -44,7 +44,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -53,9 +53,9 @@ "properties": { "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" @@ -83,7 +83,7 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -92,9 +92,9 @@ "properties": { "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json index 8c56657de803..55558b3391dd 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualmachinesName": "test-vm", + "virtualMachineName": "test-vm", "api-version": "2022-12-15-preview", - "virtualmachines": { + "virtualMachines": { "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -13,9 +13,9 @@ "properties": { "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" @@ -44,7 +44,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -53,9 +53,9 @@ "properties": { "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" @@ -83,7 +83,7 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -92,9 +92,9 @@ "properties": { "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json index 28ac6577bfab..5bb563b81fd2 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualMachineWithOsDisk.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualmachinesName": "test-vm", + "virtualMachineName": "test-vm", "api-version": "2022-12-15-preview", - "virtualmachines": { + "virtualMachines": { "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -13,9 +13,9 @@ "properties": { "storageProfile": { "osDisk": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" @@ -39,7 +39,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -48,9 +48,9 @@ "properties": { "storageProfile": { "osDisk": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" @@ -74,7 +74,7 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -83,9 +83,9 @@ "properties": { "storageProfile": { "osDisk": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json index 7567aca18cbf..fb816f694443 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/PutVirtualNetwork.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualnetworksName": "test-vnet", + "virtualNetworkName": "test-vnet", "api-version": "2022-12-15-preview", - "virtualnetworks": { + "virtualNetworks": { "location": "West US2", "extendedLocation": { "type": "CustomLocation", @@ -18,9 +18,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualNetworks/test-vnet", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/virtualnetworks", + "type": "Microsoft.AzureStackHCI/virtualNetworks", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -34,9 +34,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualNetworks/test-vnet", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/virtualnetworks", + "type": "Microsoft.AzureStackHCI/virtualNetworks", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json index aa292288ea4d..a4645cf3ba8b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/RestartVirtualMachine.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualmachinesName": "test-vm", + "virtualMachineName": "test-vm", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json index aa292288ea4d..a4645cf3ba8b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StartVirtualMachine.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualmachinesName": "test-vm", + "virtualMachineName": "test-vm", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json index aa292288ea4d..a4645cf3ba8b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/StopVirtualMachine.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualmachinesName": "test-vm", + "virtualMachineName": "test-vm", "api-version": "2022-12-15-preview" }, "responses": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json index 3c0ef98d63a5..78e4d406ad43 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateCluster.json @@ -13,8 +13,11 @@ "cloudManagementEndpoint": "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com", "desiredProperties": { "windowsServerSubscription": "Enabled", - "diagnosticLevel": "Required" + "diagnosticLevel": "Basic" } + }, + "identity": { + "type": "SystemAssigned" } } }, @@ -25,6 +28,11 @@ "name": "myCluster", "type": "Microsoft.AzureStackHCI/clusters", "location": "East US", + "identity": { + "principalId": "87a834db-2e45-409e-911b-e16a44562ec3", + "tenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", + "type": "SystemAssigned" + }, "tags": { "tag1": "value1", "tag2": "value2" @@ -46,7 +54,7 @@ "aadTenantId": "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", "desiredProperties": { "windowsServerSubscription": "Enabled", - "diagnosticLevel": "Required" + "diagnosticLevel": "Basic" }, "reportedProperties": { "clusterName": "cluster1", @@ -91,7 +99,8 @@ } ], "lastUpdated": "2020-03-11T19:24:42.1946017Z", - "imdsAttestation": "Disabled" + "imdsAttestation": "Disabled", + "diagnosticLevel": "Basic" }, "trialDaysRemaining": 30, "billingModel": "Trial", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json index 8e4cd091bdf3..277fbf330d8b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "galleryimagesName": "test-gallery-image", + "galleryImageName": "test-gallery-image", "api-version": "2022-12-15-preview", - "galleryimages": { + "galleryImages": { "tags": { "additionalProperties": "sample" } @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-galimg3325", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325", "name": "test-gallery-image", - "type": "Microsoft.AzureStackHCI/galleryimages", + "type": "Microsoft.AzureStackHCI/galleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -54,9 +54,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-galimg3325", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325", "name": "test-gallery-image", - "type": "Microsoft.AzureStackHCI/galleryimages", + "type": "Microsoft.AzureStackHCI/galleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -92,6 +92,47 @@ } } } + }, + "202": { + "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", + "containerName": "Default_Container", + "osType": "Linux", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V2", + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json index ab075f01717b..5eaf4b06cbfe 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json @@ -21,7 +21,7 @@ "body": { "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", "name": "CustomScriptExtension", - "type": "Microsoft.AzureStackHCI/virtualMachines/VirtualMachines/extensions", + "type": "Microsoft.AzureStackHCI/virtualMachines/extensions", "location": "eastus2euap", "properties": { "publisher": "Microsoft.Compute", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json index 25cdfb33349c..467e000afdeb 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "marketplacegalleryimagesName": "test-marketplce-gallery-image", + "marketplaceGalleryImageName": "test-marketplce-gallery-image", "api-version": "2022-12-15-preview", - "marketplacegalleryimages": { + "marketplaceGalleryImages": { "tags": { "additionalProperties": "sample" } @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", "name": "test-marketplace-gallery-image", - "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -60,9 +60,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", "name": "test-marketplace-gallery-image", - "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -101,7 +101,54 @@ "downloadSizeInMB": 9383 } }, - "provisioningState": "Creating" + "provisioningState": "Accepted" + } + } + }, + "202": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "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": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + }, + "provisioningState": "Accepted" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json index eaf55365937e..32a508bd3f81 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "networkinterfacesName": "test-nic", + "networkInterfaceName": "test-nic", "api-version": "2022-12-15-preview", - "networkinterfaces": { + "networkInterfaces": { "tags": { "additionalProperties": "sample" } @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", "name": "test-nic", - "type": "Microsoft.AzureStackHCI/networkinterfaces", + "type": "Microsoft.AzureStackHCI/networkInterfaces", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -38,9 +38,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", "name": "test-nic", - "type": "Microsoft.AzureStackHCI/networkinterfaces", + "type": "Microsoft.AzureStackHCI/networkInterfaces", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -60,6 +60,31 @@ "provisioningState": "Succeeded" } } + }, + "202": { + "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" + } + } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json index 4535a6db7947..583162cc1f5f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "storagecontainersName": "Default_Container", + "storageContainerName": "Default_Container", "api-version": "2022-12-15-preview", - "storagecontainers": { + "storageContainers": { "tags": { "additionalProperties": "sample" } @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", + "type": "Microsoft.AzureStackHCI/storageContainers", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -32,9 +32,28 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storagecontainers/test-galimg3325", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", "name": "Default_Container", - "type": "Microsoft.AzureStackHCI/storagecontainers", + "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" + } + } + }, + "202": { + "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", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json index 5679b57b9918..0513400f3aeb 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualharddisksName": "test-vhd", + "virtualHardDiskName": "test-vhd", "api-version": "2022-12-15-preview", - "virtualharddisks": { + "virtualHardDisks": { "tags": { "additionalProperties": "sample" } @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", "name": "test-vhd", - "type": "Microsoft.AzureStackHCI/virtualharddisks", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -25,7 +25,7 @@ "additionalProperties": "sample" }, "properties": { - "diskSizeBytes": 32, + "diskSizeGB": 32, "blockSizeBytes": 0, "logicalSectorBytes": 512, "physicalSectorBytes": 512, @@ -38,9 +38,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", "name": "test-vhd", - "type": "Microsoft.AzureStackHCI/virtualharddisks", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -50,7 +50,7 @@ "additionalProperties": "sample" }, "properties": { - "diskSizeBytes": 32, + "diskSizeGB": 32, "blockSizeBytes": 0, "logicalSectorBytes": 512, "physicalSectorBytes": 512, @@ -60,6 +60,31 @@ "dynamic": true } } + }, + "202": { + "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": { + "diskSizeGB": 32, + "blockSizeBytes": 0, + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted", + "diskFileFormat": "vhdx", + "hyperVGeneration": "V2", + "dynamic": true + } + } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json index ca425597afcf..d9c2db02b6be 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualmachinesName": "test-vm", + "virtualMachineName": "test-vm", "api-version": "2022-12-15-preview", - "virtualmachines": { + "virtualMachines": { "tags": { "additionalProperties": "sample" } @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "name": "test-vm", - "type": "Microsoft.AzureStackHCI/virtualmachines", + "type": "Microsoft.AzureStackHCI/virtualMachines", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -28,7 +28,7 @@ "provisioningState": "Accepted", "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" } }, "hardwareProfile": { @@ -50,9 +50,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "name": "test-vm", - "type": "Microsoft.AzureStackHCI/virtualmachines", + "type": "Microsoft.AzureStackHCI/virtualMachines", "location": "West US2", "extendedLocation": { "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", @@ -65,9 +65,47 @@ "provisioningState": "Accepted", "storageProfile": { "imageReference": { - "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" }, - "vmConfigContainerName": "Default_Container" + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + } + } + } + }, + "202": { + "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": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" }, "hardwareProfile": { "vmSize": "Default" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json index 0d8b4aff7e70..e3f9688c8a69 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json @@ -2,9 +2,9 @@ "parameters": { "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "test-rg", - "virtualnetworksName": "test-vnet", + "virtualNetworkName": "test-vnet", "api-version": "2022-12-15-preview", - "virtualnetworks": { + "virtualNetworks": { "tags": { "additionalProperties": "sample" } @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualNetworks/test-vnet", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/virtualnetworks", + "type": "Microsoft.AzureStackHCI/virtualNetworks", "location": "West US2", "tags": { "additionalProperties": "sample" @@ -32,9 +32,9 @@ }, "201": { "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet", + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualNetworks/test-vnet", "name": "test-vnet", - "type": "Microsoft.AzureStackHCI/virtualnetworks", + "type": "Microsoft.AzureStackHCI/virtualNetworks", "location": "West US2", "tags": { "additionalProperties": "sample" @@ -48,6 +48,25 @@ "provisioningState": "Succeeded" } } + }, + "202": { + "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" + } + } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UploadCertificate.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UploadCertificate.json new file mode 100644 index 000000000000..e3f6b9d01b57 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UploadCertificate.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2022-12-15-preview", + "uploadCertificateRequest": { + "properties": { + "certificates": [ + "base64cert", + "base64cert" + ] + } + } + }, + "responses": { + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json index 1c72efd88250..6b67102106b6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json @@ -40,10 +40,10 @@ "description": "List all Extensions under ArcSetting resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" @@ -52,7 +52,7 @@ "$ref": "#/parameters/ArcSettingNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -65,7 +65,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -85,10 +85,10 @@ "description": "Get particular Arc Extension of HCI Cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" @@ -100,7 +100,7 @@ "$ref": "#/parameters/ExtensionNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -113,7 +113,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -128,10 +128,10 @@ "description": "Create Extension for HCI cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" @@ -152,7 +152,7 @@ "description": "Details of the Machine Extension to be created." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -171,7 +171,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -190,10 +190,10 @@ "description": "Update Extension for HCI cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" @@ -214,20 +214,23 @@ "description": "Details of the Machine Extension to be created." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { - "201": { + "200": { "description": "OK", "schema": { "$ref": "#/definitions/Extension" } }, + "202": { + "description": "Accepted" + }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -246,10 +249,10 @@ "description": "Delete particular Arc Extension of HCI Cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" @@ -261,7 +264,7 @@ "$ref": "#/parameters/ExtensionNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -277,7 +280,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -291,6 +294,61 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}/upgrade": { + "post": { + "operationId": "Extensions_Upgrade", + "description": "Upgrade a particular Arc Extension of HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ArcSettingNameParameter" + }, + { + "$ref": "#/parameters/ExtensionNameParameter" + }, + { + "name": "extensionUpgradeParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExtensionUpgradeParameters" + }, + "description": "Parameters supplied to the Upgrade Extensions operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/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": { + "Upgrade Machine Extensions": { + "$ref": "./examples/Extensions_Upgrade.json" + } + } + } } }, "definitions": { @@ -299,13 +357,13 @@ "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ], "properties": { "systemData": { "description": "System data of Extension resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "x-ms-client-flatten": true, "readOnly": true }, @@ -324,9 +382,21 @@ "description": "Provisioning state of the Extension proxy resource.", "type": "string", "enum": [ + "NotSpecified", + "Error", "Succeeded", "Failed", "Canceled", + "Connected", + "Disconnected", + "Deleted", + "Creating", + "Updating", + "Deleting", + "Moving", + "PartiallySucceeded", + "PartiallyConnected", + "InProgress", "Accepted", "Provisioning" ], @@ -359,7 +429,10 @@ "Moving", "PartiallySucceeded", "PartiallyConnected", - "InProgress" + "InProgress", + "Accepted", + "Provisioning", + "UpgradeFailedRollbackSucceeded" ], "x-ms-enum": { "name": "ExtensionAggregateState", @@ -374,6 +447,19 @@ "$ref": "#/definitions/PerNodeExtensionState" }, "readOnly": true + }, + "managedBy": { + "description": "Indicates if the extension is managed by azure or the user.", + "type": "string", + "enum": [ + "Azure", + "User" + ], + "x-ms-enum": { + "name": "ExtensionManagedBy", + "modelAsString": true + }, + "readOnly": true } } }, @@ -391,6 +477,11 @@ "type": "string", "readOnly": true }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler.", + "readOnly": true + }, "state": { "description": "State of Arc Extension in this node.", "type": "string", @@ -406,13 +497,23 @@ "Creating", "Updating", "Deleting", - "Moving" + "Moving", + "PartiallySucceeded", + "PartiallyConnected", + "InProgress", + "Accepted", + "Provisioning" ], "x-ms-enum": { "name": "NodeExtensionState", "modelAsString": true }, "readOnly": true + }, + "instanceView": { + "$ref": "#/definitions/ExtensionInstanceView", + "description": "The extension instance view.", + "readOnly": true } } }, @@ -453,7 +554,7 @@ }, "typeHandlerVersion": { "type": "string", - "description": "Specifies the version of the script handler." + "description": "Specifies the version of the script handler. Latest version would be used if not specified." }, "autoUpgradeMinorVersion": { "type": "boolean", @@ -467,6 +568,74 @@ "type": "object", "description": "Protected settings (may contain secrets).", "x-ms-secret": true + }, + "enableAutomaticUpgrade": { + "type": "boolean", + "description": "Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available." + } + } + }, + "ExtensionInstanceView": { + "type": "object", + "description": "Describes the Extension Instance View.", + "properties": { + "name": { + "type": "string", + "description": "The extension name." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"MicrosoftMonitoringAgent\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "status": { + "type": "object", + "description": "Instance view status.", + "properties": { + "code": { + "type": "string", + "description": "The status code." + }, + "level": { + "type": "string", + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": true + } + }, + "displayStatus": { + "type": "string", + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time of the status." + } + } + } + } + }, + "ExtensionUpgradeParameters": { + "type": "object", + "description": "Describes the parameters for Extension upgrade.", + "properties": { + "targetVersion": { + "type": "string", + "description": "Extension Upgrade Target Version." } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json index 99ba059a08b0..685bf016a4cb 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json @@ -37,10 +37,10 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryimages/{galleryimagesName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}": { "get": { - "operationId": "galleryimages_Retrieve", - "description": "Gets galleryimages by resource name", + "operationId": "GalleryImages_Get", + "description": "Gets a gallery image", "x-ms-examples": { "GetGalleryImage": { "$ref": "./examples/GetGalleryImage.json" @@ -48,36 +48,36 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/galleryimagesNameParameter" + "$ref": "#/parameters/GalleryImageNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Retrieved the gallery image resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/galleryimages" + "$ref": "#/definitions/GalleryImages" } } } }, "put": { - "operationId": "galleryimages_CreateOrUpdate", - "description": "Create or update a gallery image.", + "operationId": "GalleryImages_CreateOrUpdate", + "description": "The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.", "x-ms-examples": { "PutGalleryImage": { "$ref": "./examples/PutGalleryImage.json" @@ -89,23 +89,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/galleryimagesNameParameter" + "$ref": "#/parameters/GalleryImageNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "galleryimages", + "name": "galleryImages", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/galleryimages" + "$ref": "#/definitions/GalleryImages" } } ], @@ -113,26 +113,26 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the gallery image resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/galleryimages" + "$ref": "#/definitions/GalleryImages" } }, "201": { - "description": "Creates the gallery image resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/galleryimages" + "$ref": "#/definitions/GalleryImages" } } } }, "delete": { - "operationId": "galleryimages_Delete", - "description": "Delete a gallery image.", + "operationId": "GalleryImages_Delete", + "description": "The operation to delete a gallery image.", "x-ms-examples": { "DeleteGalleryImage": { "$ref": "./examples/DeleteGalleryImage.json" @@ -140,27 +140,27 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/galleryimagesNameParameter" + "$ref": "#/parameters/GalleryImageNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Deletes the gallery image resource." + "description": "OK" }, "204": { "description": "No content" @@ -168,8 +168,8 @@ } }, "patch": { - "operationId": "galleryimages_Update", - "description": "Update a gallery image.", + "operationId": "GalleryImages_Update", + "description": "The operation to update a gallery image.", "x-ms-examples": { "UpdateGalleryImage": { "$ref": "./examples/UpdateGalleryImage.json" @@ -177,23 +177,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/galleryimagesNameParameter" + "$ref": "#/parameters/GalleryImageNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "galleryimages", + "name": "galleryImages", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/galleryimagesPatch" + "$ref": "#/definitions/GalleryImagesUpdateRequest" } } ], @@ -201,28 +201,34 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the gallery image resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/galleryimages" + "$ref": "#/definitions/GalleryImages" } }, "201": { - "description": "Updates the gallery image resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/galleryimages" + "$ref": "#/definitions/GalleryImages" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryImages" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryimages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages": { "get": { - "operationId": "galleryimages_ListByResourceGroup", - "description": "Lists all galleryimages under the resource group.", + "operationId": "GalleryImages_ListByResourceGroup", + "description": "Lists all of the gallery images in the specified resource group. Use the nextLink property in the response to get the next page of gallery images.", "x-ms-examples": { "ListGalleryImageByResourceGroup": { "$ref": "./examples/ListGalleryImageByResourceGroup.json" @@ -230,26 +236,26 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all galleryimages under the resource group.", + "description": "OK", "schema": { - "$ref": "#/definitions/galleryimagesListResult" + "$ref": "#/definitions/GalleryImagesListResult" } } }, @@ -258,10 +264,10 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryimages": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryImages": { "get": { - "operationId": "galleryimages_ListBySubscription", - "description": "List all galleryimages under the subscription", + "operationId": "GalleryImages_ListBySubscription", + "description": "Lists all of the gallery images in the specified subscription. Use the nextLink property in the response to get the next page of gallery images.", "x-ms-examples": { "ListGalleryImageByResourceGroup": { "$ref": "./examples/ListGalleryImageBySubscription.json" @@ -269,23 +275,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all galleryimages under the subscription.", + "description": "OK", "schema": { - "$ref": "#/definitions/galleryimagesListResult" + "$ref": "#/definitions/GalleryImagesListResult" } } }, @@ -296,7 +302,7 @@ } }, "definitions": { - "galleryimagesProperties": { + "GalleryImageProperties": { "type": "object", "x-ms-client-flatten": true, "properties": { @@ -319,11 +325,11 @@ "name": "OperatingSystemTypes", "modelAsString": false }, - "description": "operating system type that the gallery image uses. Expected to be linux or windows" + "description": "Operating system type that the gallery image uses [Windows, Linux]" }, "cloudInitDataSource": { "type": "string", - "description": "Datasource for the gallery image when provisioning with cloud-init (Azure or NoCloud)", + "description": "Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]", "enum": [ "NoCloud", "Azure" @@ -346,10 +352,10 @@ } }, "identifier": { - "$ref": "#/definitions/galleryImageIdentifier" + "$ref": "#/definitions/GalleryImageIdentifier" }, "version": { - "$ref": "#/definitions/galleryImageVersion" + "$ref": "#/definitions/GalleryImageVersion" }, "provisioningState": { "type": "string", @@ -360,39 +366,33 @@ "Failed", "InProgress", "Accepted", - "Deleting" + "Deleting", + "Canceled" ], "x-ms-enum": { "name": "ProvisioningStateEnum", "modelAsString": true } }, - "resourceName": { - "type": "string", - "description": "name of the object to be used in moc" - }, "status": { "$ref": "#/definitions/GalleryImageStatus" } }, - "description": "Properties of a gallery image resource" + "description": "Properties under the gallery image resource" }, "GalleryImageStatus": { - "type": "object", "x-ms-client-flatten": true, "readOnly": true, "properties": { "errorCode": { "type": "string", - "description": "Gallery image provisioning error code" + "description": "GalleryImage provisioning error code" }, "errorMessage": { "type": "string", "description": "Descriptive error message" }, "provisioningStatus": { - "type": "object", - "description": "The provisioning status of the gallery image", "properties": { "operationId": { "type": "string", @@ -407,14 +407,13 @@ "InProgress" ], "x-ms-enum": { - "name": "ProvisioningStatusEnum", + "name": "Status", "modelAsString": true } } } }, "downloadStatus": { - "type": "object", "properties": { "downloadSizeInMB": { "type": "integer", @@ -430,10 +429,9 @@ "description": "The progress of the operation in percentage" } }, - "description": "GalleryImageStatus defines the observed state of galleryimages" + "description": "The observed state of gallery images" }, - "galleryImageIdentifier": { - "type": "object", + "GalleryImageIdentifier": { "properties": { "publisher": { "type": "string", @@ -455,8 +453,7 @@ ], "description": "This is the gallery image definition identifier." }, - "galleryImageVersion": { - "type": "object", + "GalleryImageVersion": { "properties": { "name": { "type": "string", @@ -464,16 +461,15 @@ }, "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/galleryImageVersionProperties" + "$ref": "#/definitions/GalleryImageVersionProperties" } }, "description": "Specifies information about the gallery image version that you want to create or update." }, - "galleryImageVersionProperties": { - "type": "object", + "GalleryImageVersionProperties": { "properties": { "storageProfile": { - "$ref": "#/definitions/galleryImageVersionStorageProfile" + "$ref": "#/definitions/GalleryImageVersionStorageProfile" } }, "required": [ @@ -481,25 +477,23 @@ ], "description": "Describes the properties of a gallery image version." }, - "galleryImageVersionStorageProfile": { - "type": "object", + "GalleryImageVersionStorageProfile": { "properties": { "osDiskImage": { - "$ref": "#/definitions/galleryOSDiskImage" + "$ref": "#/definitions/GalleryOSDiskImage" } }, "description": "This is the storage profile of a Gallery Image Version." }, - "galleryOSDiskImage": { + "GalleryOSDiskImage": { "allOf": [ { - "$ref": "#/definitions/galleryDiskImage" + "$ref": "#/definitions/GalleryDiskImage" } ], "description": "This is the OS disk image." }, - "galleryDiskImage": { - "type": "object", + "GalleryDiskImage": { "properties": { "sizeInMB": { "type": "integer", @@ -510,31 +504,27 @@ }, "description": "This is the disk image base class." }, - "galleryimages": { + "GalleryImages": { "type": "object", - "description": "The gallery image resource definition.", + "description": "The gallery images resource definition.", "x-ms-azure-resource": true, - "x-ms-client-flatten": true, "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/galleryimagesProperties" + "$ref": "#/definitions/GalleryImageProperties" }, "extendedLocation": { "$ref": "./common.json#/definitions/ExtendedLocation", "description": "The extendedLocation of the resource." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, - "galleryimagesPatch": { + "GalleryImagesUpdateRequest": { "type": "object", "properties": { "tags": { @@ -545,16 +535,16 @@ "description": "Resource tags" } }, - "description": "The gallery image resource patch definition." + "description": "The gallery images resource patch definition." }, - "galleryimagesListResult": { + "GalleryImagesListResult": { "type": "object", - "description": "List of galleryimages.", + "description": "List of gallery images.", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/galleryimages" + "$ref": "#/definitions/GalleryImages" } }, "nextLink": { @@ -566,14 +556,15 @@ } }, "parameters": { - "galleryimagesNameParameter": { - "name": "galleryimagesName", + "GalleryImageNameParameter": { + "name": "galleryImageName", "in": "path", "required": true, "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[a-zA-Z0-9]$", "x-ms-parameter-location": "method", - "maxLength": 64, - "minLength": 3, + "maxLength": 80, + "minLength": 1, "description": "Name of the gallery image" } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json index 9bf6c0162491..ec95ffa4c28b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json @@ -37,10 +37,10 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/{marketplacegalleryimagesName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}": { "get": { - "operationId": "marketplacegalleryimages_Get", - "description": "Gets marketplacegalleryimages by resource name", + "operationId": "MarketplaceGalleryImages_Get", + "description": "Gets a marketplace gallery image", "x-ms-examples": { "GetMarketplaceGalleryImage": { "$ref": "./examples/GetMarketplaceGalleryImage.json" @@ -48,36 +48,36 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + "$ref": "#/parameters/MarketplaceGalleryImageNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Retrieved the marketplace gallery image resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/marketplacegalleryimages" + "$ref": "#/definitions/MarketplaceGalleryImages" } } } }, "put": { - "operationId": "marketplacegalleryimages_CreateOrUpdate", - "description": "Creates or updates a marketplace gallery image", + "operationId": "MarketplaceGalleryImages_CreateOrUpdate", + "description": "The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.", "x-ms-examples": { "PutMarketplaceGalleryImage": { "$ref": "./examples/PutMarketplaceGalleryImage.json" @@ -89,23 +89,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + "$ref": "#/parameters/MarketplaceGalleryImageNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "marketplacegalleryimages", + "name": "marketplaceGalleryImages", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/marketplacegalleryimages" + "$ref": "#/definitions/MarketplaceGalleryImages" } } ], @@ -113,26 +113,26 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the marketplace gallery image resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/marketplacegalleryimages" + "$ref": "#/definitions/MarketplaceGalleryImages" } }, "201": { - "description": "Creates the marketplace gallery image resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/marketplacegalleryimages" + "$ref": "#/definitions/MarketplaceGalleryImages" } } } }, "delete": { - "operationId": "marketplacegalleryimages_Delete", - "description": "Deletes a marketplace gallery image", + "operationId": "MarketplaceGalleryImages_Delete", + "description": "The operation to delete a marketplace gallery image.", "x-ms-examples": { "DeleteMarketplaceGalleryImage": { "$ref": "./examples/DeleteMarketplaceGalleryImage.json" @@ -140,27 +140,27 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + "$ref": "#/parameters/MarketplaceGalleryImageNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Deletes the marketplace gallery image resource." + "description": "OK" }, "204": { "description": "No content" @@ -168,8 +168,8 @@ } }, "patch": { - "operationId": "marketplacegalleryimages_Update", - "description": "Updates a marketplace gallery image", + "operationId": "MarketplaceGalleryImages_Update", + "description": "The operation to update a marketplace gallery image.", "x-ms-examples": { "UpdateMarketplaceGalleryImage": { "$ref": "./examples/UpdateMarketplaceGalleryImage.json" @@ -177,23 +177,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + "$ref": "#/parameters/MarketplaceGalleryImageNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "marketplacegalleryimages", + "name": "marketplaceGalleryImages", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/marketplacegalleryimagesPatch" + "$ref": "#/definitions/MarketplaceGalleryImagesUpdateRequest" } } ], @@ -201,28 +201,34 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the marketplace gallery image resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/marketplacegalleryimages" + "$ref": "#/definitions/MarketplaceGalleryImages" } }, "201": { - "description": "Updates the marketplace gallery image resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/marketplacegalleryimages" + "$ref": "#/definitions/MarketplaceGalleryImages" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/MarketplaceGalleryImages" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplacegalleryimages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages": { "get": { - "operationId": "marketplacegalleryimages_ListByResourceGroup", - "description": "Lists all marketplacegalleryimages under the resource group", + "operationId": "MarketplaceGalleryImages_ListByResourceGroup", + "description": "Lists all of the marketplace gallery images in the specified resource group. Use the nextLink property in the response to get the next page of marketplace gallery images.", "x-ms-examples": { "ListMarketplaceGalleryImageByResourceGroup": { "$ref": "./examples/ListMarketplaceGalleryImageByResourceGroup.json" @@ -230,26 +236,26 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all marketplacegalleryimages under the resource group.", + "description": "OK", "schema": { - "$ref": "#/definitions/marketplacegalleryimagesListResult" + "$ref": "#/definitions/MarketplaceGalleryImagesListResult" } } }, @@ -258,34 +264,34 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/marketplacegalleryimages": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages": { "get": { - "operationId": "marketplacegalleryimages_ListBySubscription", - "description": "Lists all marketplacegalleryimages under the subscription", + "operationId": "MarketplaceGalleryImages_ListBySubscription", + "description": "Lists all of the marketplace gallery images in the specified subscription. Use the nextLink property in the response to get the next page of marketplace gallery images.", "x-ms-examples": { - "ListMarketplaceGalleryImageBySubscription": { + "ListMarketplaceGalleryImageByResourceGroup": { "$ref": "./examples/ListMarketplaceGalleryImageBySubscription.json" } }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all marketplacegalleryimages under the subscription.", + "description": "OK", "schema": { - "$ref": "#/definitions/marketplacegalleryimagesListResult" + "$ref": "#/definitions/MarketplaceGalleryImagesListResult" } } }, @@ -296,7 +302,7 @@ } }, "definitions": { - "marketplacegalleryimagesProperties": { + "MarketplaceGalleryImageProperties": { "type": "object", "x-ms-client-flatten": true, "properties": { @@ -314,11 +320,11 @@ "name": "OperatingSystemTypes", "modelAsString": false }, - "description": "operating system type that the gallery image uses. Expected to be linux or windows" + "description": "Operating system type that the gallery image uses [Windows, Linux]" }, "cloudInitDataSource": { "type": "string", - "description": "Datasource for the gallery image when provisioning with cloud-init [Azure, NoCloud]", + "description": "Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]", "enum": [ "NoCloud", "Azure" @@ -341,14 +347,14 @@ } }, "identifier": { - "$ref": "#/definitions/galleryImageIdentifier" + "$ref": "#/definitions/GalleryImageIdentifier" }, "version": { - "$ref": "#/definitions/galleryImageVersion" + "$ref": "#/definitions/GalleryImageVersion" }, "provisioningState": { "type": "string", - "description": "Provisioning state of the gallery image.", + "description": "Provisioning state of the marketplace gallery image.", "readOnly": true, "enum": [ "Succeeded", @@ -363,54 +369,46 @@ "modelAsString": true } }, - "resourceName": { - "type": "string", - "description": "name of the object to be used in moc" - }, "status": { "$ref": "#/definitions/MarketplaceGalleryImageStatus" } }, - "description": "Properties of a marketplace gallery image resource" + "description": "Properties under the marketplace gallery image resource" }, "MarketplaceGalleryImageStatus": { - "type": "object", "x-ms-client-flatten": true, "readOnly": true, "properties": { "errorCode": { "type": "string", - "description": "Marketplace gallery image provisioning error code" + "description": "MarketplaceGalleryImage provisioning error code" }, "errorMessage": { "type": "string", "description": "Descriptive error message" }, "provisioningStatus": { - "type": "object", - "description": "The provisioning status of the marketplace gallery image", "properties": { "operationId": { "type": "string", - "description": "The ID of the operation performed on the marketplace gallery image" + "description": "The ID of the operation performed on the gallery image" }, "status": { "type": "string", - "description": "The status of the operation performed on the marketplace gallery image [Succeeded, Failed, InProgress]", + "description": "The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]", "enum": [ "Succeeded", "Failed", "InProgress" ], "x-ms-enum": { - "name": "ProvisioningStatusEnum", + "name": "Status", "modelAsString": true } } } }, "downloadStatus": { - "type": "object", "properties": { "downloadSizeInMB": { "type": "integer", @@ -418,7 +416,7 @@ "description": "The downloaded sized of the image in MB" } }, - "description": "The download status of the marketplace gallery image" + "description": "The download status of the gallery image" }, "progressPercentage": { "type": "integer", @@ -426,10 +424,9 @@ "description": "The progress of the operation in percentage" } }, - "description": "MarketplaceGalleryImageStatus defines the observed state of marketplacegalleryimages" + "description": "The observed state of marketplace gallery images" }, - "galleryImageIdentifier": { - "type": "object", + "GalleryImageIdentifier": { "properties": { "publisher": { "type": "string", @@ -451,8 +448,7 @@ ], "description": "This is the gallery image definition identifier." }, - "galleryImageVersion": { - "type": "object", + "GalleryImageVersion": { "properties": { "name": { "type": "string", @@ -460,16 +456,15 @@ }, "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/galleryImageVersionProperties" + "$ref": "#/definitions/GalleryImageVersionProperties" } }, "description": "Specifies information about the gallery image version that you want to create or update." }, - "galleryImageVersionProperties": { - "type": "object", + "GalleryImageVersionProperties": { "properties": { "storageProfile": { - "$ref": "#/definitions/galleryImageVersionStorageProfile" + "$ref": "#/definitions/GalleryImageVersionStorageProfile" } }, "required": [ @@ -477,25 +472,23 @@ ], "description": "Describes the properties of a gallery image version." }, - "galleryImageVersionStorageProfile": { - "type": "object", + "GalleryImageVersionStorageProfile": { "properties": { "osDiskImage": { - "$ref": "#/definitions/galleryOSDiskImage" + "$ref": "#/definitions/GalleryOSDiskImage" } }, "description": "This is the storage profile of a Gallery Image Version." }, - "galleryOSDiskImage": { + "GalleryOSDiskImage": { "allOf": [ { - "$ref": "#/definitions/galleryDiskImage" + "$ref": "#/definitions/GalleryDiskImage" } ], "description": "This is the OS disk image." }, - "galleryDiskImage": { - "type": "object", + "GalleryDiskImage": { "properties": { "sizeInMB": { "type": "integer", @@ -506,31 +499,27 @@ }, "description": "This is the disk image base class." }, - "marketplacegalleryimages": { + "MarketplaceGalleryImages": { "type": "object", "description": "The marketplace gallery image resource definition.", "x-ms-azure-resource": true, - "x-ms-client-flatten": true, "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/marketplacegalleryimagesProperties" + "$ref": "#/definitions/MarketplaceGalleryImageProperties" }, "extendedLocation": { "$ref": "./common.json#/definitions/ExtendedLocation", "description": "The extendedLocation of the resource." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, - "marketplacegalleryimagesPatch": { + "MarketplaceGalleryImagesUpdateRequest": { "type": "object", "properties": { "tags": { @@ -543,34 +532,31 @@ }, "description": "The marketplace gallery image resource patch definition." }, - "marketplacegalleryimagesListResult": { + "MarketplaceGalleryImagesListResult": { "type": "object", - "description": "List of marketplacegalleryimages.", "properties": { "value": { "type": "array", - "description": "The itemed list of marketplacegalleryimages", "items": { - "$ref": "#/definitions/marketplacegalleryimages" + "$ref": "#/definitions/MarketplaceGalleryImages" } }, "nextLink": { - "type": "string", - "description": "Link to the next set of results.", - "readOnly": true + "type": "string" } } } }, "parameters": { - "marketplacegalleryimagesNameParameter": { - "name": "marketplacegalleryimagesName", + "MarketplaceGalleryImageNameParameter": { + "name": "marketplaceGalleryImageName", "in": "path", "required": true, "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[a-zA-Z0-9]$", "x-ms-parameter-location": "method", - "maxLength": 64, - "minLength": 3, + "maxLength": 80, + "minLength": 1, "description": "Name of the marketplace gallery image" } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json index d8716ae8e50f..88cdd27daa8f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json @@ -37,10 +37,10 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkinterfaces/{networkinterfacesName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}": { "get": { - "operationId": "networkinterfaces_Retrieve", - "description": "Gets network interfaces by resource name", + "operationId": "NetworkInterfaces_Get", + "description": "Gets a network interface", "x-ms-examples": { "GetNetworkInterface": { "$ref": "./examples/GetNetworkInterface.json" @@ -48,35 +48,36 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/networkinterfacesNameParameter" + "$ref": "#/parameters/NetworkInterfaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Retrieved the network interface resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/networkinterfaces" + "$ref": "#/definitions/NetworkInterfaces" } } } }, "put": { - "operationId": "networkinterfaces_CreateOrUpdate", + "operationId": "NetworkInterfaces_CreateOrUpdate", + "description": "The operation to create or update a network interface. Please note some properties can be set only during network interface creation.", "x-ms-examples": { "PutNetworkInterface": { "$ref": "./examples/PutNetworkInterface.json" @@ -88,23 +89,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/networkinterfacesNameParameter" + "$ref": "#/parameters/NetworkInterfaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "networkinterfaces", + "name": "networkInterfaces", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/networkinterfaces" + "$ref": "#/definitions/NetworkInterfaces" } } ], @@ -112,25 +113,26 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the network interface resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/networkinterfaces" + "$ref": "#/definitions/NetworkInterfaces" } }, "201": { - "description": "Creates the network interface resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/networkinterfaces" + "$ref": "#/definitions/NetworkInterfaces" } } } }, "delete": { - "operationId": "networkinterfaces_Delete", + "operationId": "NetworkInterfaces_Delete", + "description": "The operation to delete a network interface.", "x-ms-examples": { "DeleteNetworkInterface": { "$ref": "./examples/DeleteNetworkInterface.json" @@ -138,27 +140,27 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/networkinterfacesNameParameter" + "$ref": "#/parameters/NetworkInterfaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Deletes the network interface resource." + "description": "OK" }, "204": { "description": "No content" @@ -166,7 +168,8 @@ } }, "patch": { - "operationId": "networkinterfaces_Update", + "operationId": "NetworkInterfaces_Update", + "description": "The operation to update a network interface.", "x-ms-examples": { "UpdateNetworkInterface": { "$ref": "./examples/UpdateNetworkInterface.json" @@ -174,23 +177,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/networkinterfacesNameParameter" + "$ref": "#/parameters/NetworkInterfaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "networkinterfaces", + "name": "networkInterfaces", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/networkinterfacesPatch" + "$ref": "#/definitions/NetworkInterfacesUpdateRequest" } } ], @@ -198,27 +201,34 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the network interface resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/networkinterfaces" + "$ref": "#/definitions/NetworkInterfaces" } }, "201": { - "description": "Updates the network interface resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/networkinterfaces" + "$ref": "#/definitions/NetworkInterfaces" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/NetworkInterfaces" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkinterfaces": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces": { "get": { - "operationId": "networkinterfaces_ListByResourceGroup", + "operationId": "NetworkInterfaces_ListByResourceGroup", + "description": "Lists all of the network interfaces in the specified resource group. Use the nextLink property in the response to get the next page of network interfaces.", "x-ms-examples": { "ListNetworkInterfaceByResourceGroup": { "$ref": "./examples/ListNetworkInterfaceByResourceGroup.json" @@ -226,26 +236,26 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all network interfaces under the resource group.", + "description": "OK", "schema": { - "$ref": "#/definitions/networkinterfacesListResult" + "$ref": "#/definitions/NetworkInterfacesListResult" } } }, @@ -254,9 +264,10 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/networkinterfaces": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/networkInterfaces": { "get": { - "operationId": "networkinterfaces_ListBySubscription", + "operationId": "NetworkInterfaces_ListBySubscription", + "description": "Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces.", "x-ms-examples": { "ListNetworkInterfaceBySubscription": { "$ref": "./examples/ListNetworkInterfaceBySubscription.json" @@ -264,23 +275,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all network interfaces under the subscription.", + "description": "OK", "schema": { - "$ref": "#/definitions/networkinterfacesListResult" + "$ref": "#/definitions/NetworkInterfacesListResult" } } }, @@ -303,14 +314,14 @@ } } }, - "networkinterfacesProperties": { + "NetworkInterfaceProperties": { "type": "object", "x-ms-client-flatten": true, "properties": { "ipConfigurations": { "type": "array", "items": { - "$ref": "#/definitions/ipConfiguration" + "$ref": "#/definitions/IPConfiguration" }, "description": "IPConfigurations - A list of IPConfigurations of the network interface.", "x-ms-identifiers": [] @@ -325,6 +336,7 @@ }, "provisioningState": { "type": "string", + "description": "Provisioning state of the network interface.", "readOnly": true, "enum": [ "Succeeded", @@ -339,18 +351,13 @@ "modelAsString": true } }, - "resourceName": { - "type": "string", - "description": "name of the object to be used in moc" - }, "status": { "$ref": "#/definitions/NetworkInterfaceStatus" } }, - "description": "Properties of a network interface resource" + "description": "Properties under the network interface resource" }, "NetworkInterfaceStatus": { - "type": "object", "x-ms-client-flatten": true, "readOnly": true, "properties": { @@ -363,8 +370,6 @@ "description": "Descriptive error message" }, "provisioningStatus": { - "type": "object", - "description": "The provisioning status of the network interface", "properties": { "operationId": { "type": "string", @@ -379,21 +384,26 @@ "InProgress" ], "x-ms-enum": { - "name": "ProvisioningStatusEnum", + "name": "Status", "modelAsString": true } } } } }, - "description": "NetworkInterfaceStatus defines the observed state of network interfaces" + "description": "The observed state of network interfaces" }, - "ipConfiguration": { + "IPConfiguration": { "type": "object", "x-ms-client-flatten": true, "properties": { "name": { "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", + "x-ms-mutability": [ + "create", + "read" + ], "description": "Name - The name of the resource that is unique within a resource group. This name can be used to access the resource." }, "properties": { @@ -440,31 +450,27 @@ }, "description": "InterfaceIPConfiguration iPConfiguration in a network interface." }, - "networkinterfaces": { + "NetworkInterfaces": { "type": "object", "description": "The network interface resource definition.", "x-ms-azure-resource": true, - "x-ms-client-flatten": true, "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/networkinterfacesProperties" + "$ref": "#/definitions/NetworkInterfaceProperties" }, "extendedLocation": { "$ref": "./common.json#/definitions/ExtendedLocation", "description": "The extendedLocation of the resource." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, - "networkinterfacesPatch": { + "NetworkInterfacesUpdateRequest": { "type": "object", "properties": { "tags": { @@ -477,13 +483,13 @@ }, "description": "The network interface resource patch definition." }, - "networkinterfacesListResult": { + "NetworkInterfacesListResult": { "type": "object", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/networkinterfaces" + "$ref": "#/definitions/NetworkInterfaces" } }, "nextLink": { @@ -493,14 +499,16 @@ } }, "parameters": { - "networkinterfacesNameParameter": { - "name": "networkinterfacesName", + "NetworkInterfaceNameParameter": { + "name": "networkInterfaceName", "in": "path", "required": true, "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", "x-ms-parameter-location": "method", - "maxLength": 64, - "minLength": 3 + "maxLength": 80, + "minLength": 1, + "description": "Name of the network interface" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/offers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/offers.json new file mode 100644 index 000000000000..9f9bbbf5bfe8 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/offers.json @@ -0,0 +1,302 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-12-15-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}/publishers/{publisherName}/offers": { + "get": { + "operationId": "Offers_ListByPublisher", + "description": "List Offers available for a publisher within the HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PublisherNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ODataExpandParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OfferList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Offer resources by publisher for the HCI Cluster": { + "$ref": "./examples/ListOffersByPublisher.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/offers": { + "get": { + "operationId": "Offers_ListByCluster", + "description": "List Offers available across publishers for the HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ODataExpandParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OfferList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Offer resources by HCI Cluster": { + "$ref": "./examples/ListOffersByCluster.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}/offers/{offerName}": { + "get": { + "operationId": "Offers_Get", + "description": "Get Offer resource details within a publisher of HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PublisherNameParameter" + }, + { + "$ref": "#/parameters/OfferNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ODataExpandParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Offer" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Offer": { + "$ref": "./examples/GetOffer.json" + } + } + } + } + }, + "definitions": { + "OfferList": { + "description": "List of Offer proxy resources for the HCI cluster.", + "type": "object", + "properties": { + "value": { + "description": "List of Offer proxy resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Offer" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "Offer": { + "description": "Offer details.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Offer properties.", + "$ref": "#/definitions/OfferProperties", + "x-ms-client-flatten": true + } + } + }, + "OfferProperties": { + "description": "Publisher properties.", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning State", + "type": "string", + "readOnly": true + }, + "publisherId": { + "type": "string", + "description": "Identifier of the Publisher for the offer" + }, + "content": { + "type": "string", + "description": "JSON serialized catalog content of the offer" + }, + "contentVersion": { + "type": "string", + "description": "The API version of the catalog service used to serve the catalog content" + }, + "skuMappings": { + "type": "array", + "description": "Array of SKU mappings", + "items": { + "$ref": "#/definitions/SkuMappings" + }, + "x-ms-identifiers": [] + } + } + }, + "SkuMappings": { + "description": "SKU Mapping details.", + "type": "object", + "properties": { + "catalogPlanId": { + "type": "string", + "description": "Identifier of the CatalogPlan for the sku" + }, + "marketplaceSkuId": { + "type": "string", + "description": "Identifier for the sku" + }, + "marketplaceSkuVersions": { + "type": "array", + "description": "Array of SKU versions available", + "items": { + "type": "string" + } + } + } + } + }, + "parameters": { + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cluster.", + "x-ms-parameter-location": "method" + }, + "PublisherNameParameter": { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the publisher available within HCI cluster.", + "x-ms-parameter-location": "method" + }, + "OfferNameParameter": { + "name": "offerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the offer available within HCI cluster.", + "x-ms-parameter-location": "method" + }, + "ODataExpandParameter": { + "name": "$expand", + "in": "query", + "description": "Specify $expand=content,contentVersion to populate additional fields related to the marketplace offer.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json index 9919bc6d009e..c0f4031f62c6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json @@ -40,30 +40,30 @@ "Operations" ], "operationId": "Operations_List", + "x-ms-examples": { + "Create cluster": { + "$ref": "./examples/ListOperations.json" + } + }, "description": "List all available Microsoft.AzureStackHCI provider operations", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-examples": { - "List operation resources": { - "$ref": "./examples/ListOperationByCluster.json" - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/publishers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/publishers.json new file mode 100644 index 000000000000..a8016204d83f --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/publishers.json @@ -0,0 +1,188 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-12-15-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}/publishers": { + "get": { + "operationId": "Publishers_ListByCluster", + "description": "List Publishers available for the HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PublisherList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Publisher resources by HCI Cluster": { + "$ref": "./examples/ListPublishersByCluster.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}": { + "get": { + "operationId": "Publishers_Get", + "description": "Get Publisher resource details of HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PublisherNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Publisher" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Publisher": { + "$ref": "./examples/GetPublisher.json" + } + } + } + } + }, + "definitions": { + "PublisherList": { + "description": "List of Publisher proxy resources for the HCI cluster.", + "type": "object", + "properties": { + "value": { + "description": "List of Publisher proxy resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Publisher" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "Publisher": { + "description": "Publisher details.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Publisher properties.", + "$ref": "#/definitions/PublisherProperties", + "x-ms-client-flatten": true + } + } + }, + "PublisherProperties": { + "description": "Publisher properties.", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning State", + "type": "string", + "readOnly": true + } + } + } + }, + "parameters": { + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cluster.", + "x-ms-parameter-location": "method" + }, + "PublisherNameParameter": { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the publisher available within HCI cluster.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/skus.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/skus.json new file mode 100644 index 000000000000..4af61a840749 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/skus.json @@ -0,0 +1,275 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-12-15-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}/publishers/{publisherName}/offers/{offerName}/skus": { + "get": { + "operationId": "Skus_ListByOffer", + "description": "List Skus available for a offer within the HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PublisherNameParameter" + }, + { + "$ref": "#/parameters/OfferNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ODataExpandParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SkuList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List SKU resources by offer for the HCI Cluster": { + "$ref": "./examples/ListSkusByOffer.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}/offers/{offerName}/skus/{skuName}": { + "get": { + "operationId": "Skus_Get", + "description": "Get SKU resource details within a offer of HCI Cluster.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/PublisherNameParameter" + }, + { + "$ref": "#/parameters/OfferNameParameter" + }, + { + "$ref": "#/parameters/SkuNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ODataExpandParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Sku" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Sku": { + "$ref": "./examples/GetSku.json" + } + } + } + } + }, + "definitions": { + "SkuList": { + "description": "List of SKU proxy resources for the HCI cluster.", + "type": "object", + "properties": { + "value": { + "description": "List of SKU proxy resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Sku" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "Sku": { + "description": "Sku details.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "SKU properties.", + "$ref": "#/definitions/SkuProperties", + "x-ms-client-flatten": true + } + } + }, + "SkuProperties": { + "description": "SKU properties.", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning State", + "type": "string", + "readOnly": true + }, + "publisherId": { + "type": "string", + "description": "Identifier of the Publisher for the offer" + }, + "offerId": { + "type": "string", + "description": "Identifier of the Offer for the sku" + }, + "content": { + "type": "string", + "description": "JSON serialized catalog content of the sku offer" + }, + "contentVersion": { + "type": "string", + "description": "The API version of the catalog service used to serve the catalog content" + }, + "skuMappings": { + "type": "array", + "description": "Array of SKU mappings", + "items": { + "$ref": "#/definitions/SkuMappings" + }, + "x-ms-identifiers": [] + } + } + }, + "SkuMappings": { + "description": "SKU Mapping details.", + "type": "object", + "properties": { + "catalogPlanId": { + "type": "string", + "description": "Identifier of the CatalogPlan for the sku" + }, + "marketplaceSkuId": { + "type": "string", + "description": "Identifier for the sku" + }, + "marketplaceSkuVersions": { + "type": "array", + "description": "Array of SKU versions available", + "items": { + "type": "string" + } + } + } + } + }, + "parameters": { + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cluster.", + "x-ms-parameter-location": "method" + }, + "PublisherNameParameter": { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the publisher available within HCI cluster.", + "x-ms-parameter-location": "method" + }, + "OfferNameParameter": { + "name": "offerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the offer available within HCI cluster.", + "x-ms-parameter-location": "method" + }, + "SkuNameParameter": { + "name": "skuName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the SKU available within HCI cluster.", + "x-ms-parameter-location": "method" + }, + "ODataExpandParameter": { + "name": "$expand", + "in": "query", + "description": "Specify $expand=content,contentVersion to populate additional fields related to the marketplace offer.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json index c10c39982ad3..71b442a7d15a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json @@ -37,10 +37,10 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storagecontainers/{storagecontainersName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}": { "get": { - "operationId": "storagecontainers_Retrieve", - "description": "Gets storagecontainers by resource name", + "operationId": "StorageContainers_Get", + "description": "Gets a storage container", "x-ms-examples": { "GetStorageContainer": { "$ref": "./examples/GetStorageContainer.json" @@ -48,35 +48,36 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/storagecontainersNameParameter" + "$ref": "#/parameters/StorageContainerNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Retrieved the storage container resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/storagecontainers" + "$ref": "#/definitions/StorageContainers" } } } }, "put": { - "operationId": "storagecontainers_CreateOrUpdate", + "operationId": "StorageContainers_CreateOrUpdate", + "description": "The operation to create or update a storage container. Please note some properties can be set only during storage container creation.", "x-ms-examples": { "PutStorageContainer": { "$ref": "./examples/PutStorageContainer.json" @@ -88,23 +89,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/storagecontainersNameParameter" + "$ref": "#/parameters/StorageContainerNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "storagecontainers", + "name": "storageContainers", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/storagecontainers" + "$ref": "#/definitions/StorageContainers" } } ], @@ -112,25 +113,26 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the storage container resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/storagecontainers" + "$ref": "#/definitions/StorageContainers" } }, "201": { - "description": "Creates the storage container resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/storagecontainers" + "$ref": "#/definitions/StorageContainers" } } } }, "delete": { - "operationId": "storagecontainers_Delete", + "operationId": "StorageContainers_Delete", + "description": "The operation to delete a storage container.", "x-ms-examples": { "DeleteStorageContainer": { "$ref": "./examples/DeleteStorageContainer.json" @@ -138,27 +140,27 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/storagecontainersNameParameter" + "$ref": "#/parameters/StorageContainerNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Deletes the storage container resource." + "description": "OK" }, "204": { "description": "No content" @@ -166,7 +168,8 @@ } }, "patch": { - "operationId": "storagecontainers_Update", + "operationId": "StorageContainers_Update", + "description": "The operation to update a storage container.", "x-ms-examples": { "UpdateStorageContainer": { "$ref": "./examples/UpdateStorageContainer.json" @@ -174,23 +177,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/storagecontainersNameParameter" + "$ref": "#/parameters/StorageContainerNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "storagecontainers", + "name": "storageContainers", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/storagecontainersPatch" + "$ref": "#/definitions/StorageContainersUpdateRequest" } } ], @@ -198,27 +201,34 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the storage container resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/storagecontainers" + "$ref": "#/definitions/StorageContainers" } }, "201": { - "description": "Updates the storage container resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/storagecontainers" + "$ref": "#/definitions/StorageContainers" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/StorageContainers" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storagecontainers": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers": { "get": { - "operationId": "storagecontainers_ListByResourceGroup", + "operationId": "StorageContainers_ListByResourceGroup", + "description": "Lists all of the storage containers in the specified resource group. Use the nextLink property in the response to get the next page of storage containers.", "x-ms-examples": { "ListStorageContainerByResourceGroup": { "$ref": "./examples/ListStorageContainerByResourceGroup.json" @@ -226,26 +236,26 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all storagecontainers under the resource group.", + "description": "OK", "schema": { - "$ref": "#/definitions/storagecontainersListResult" + "$ref": "#/definitions/StorageContainersListResult" } } }, @@ -254,9 +264,10 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/storagecontainers": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/storageContainers": { "get": { - "operationId": "storagecontainers_ListBySubscription", + "operationId": "StorageContainers_ListBySubscription", + "description": "Lists all of the storage containers in the specified subscription. Use the nextLink property in the response to get the next page of storage containers.", "x-ms-examples": { "ListStorageContainerByResourceGroup": { "$ref": "./examples/ListStorageContainerBySubscription.json" @@ -264,23 +275,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all storagecontainers under the subscription.", + "description": "OK", "schema": { - "$ref": "#/definitions/storagecontainersListResult" + "$ref": "#/definitions/StorageContainersListResult" } } }, @@ -291,7 +302,7 @@ } }, "definitions": { - "storagecontainersProperties": { + "StorageContainerProperties": { "type": "object", "x-ms-client-flatten": true, "properties": { @@ -300,32 +311,29 @@ "description": "Path of the storage container on the disk" }, "provisioningState": { - "type": "string" - }, - "resourceName": { "type": "string", - "description": "name of the object to be used in moc" - }, - "availableSizeMB": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "Amount of space available on the disk in MB" - }, - "containerSizeMB": { - "type": "integer", - "format": "int64", + "description": "Provisioning state of the storage container.", "readOnly": true, - "description": "Total size of the disk in MB" + "enum": [ + "Succeeded", + "Failed", + "InProgress", + "Accepted", + "Deleting", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } }, "status": { - "$ref": "#/definitions/storageContainerStatus" + "$ref": "#/definitions/StorageContainerStatus" } }, - "description": "Properties of a storage container resource" + "description": "Properties under the storage container resource" }, - "storageContainerStatus": { - "type": "object", + "StorageContainerStatus": { "x-ms-client-flatten": true, "readOnly": true, "properties": { @@ -348,8 +356,6 @@ "description": "Total size of the disk in MB" }, "provisioningStatus": { - "type": "object", - "description": "The provisioning status of the storage container", "properties": { "operationId": { "type": "string", @@ -364,73 +370,36 @@ "InProgress" ], "x-ms-enum": { - "name": "ProvisioningStatusEnum", + "name": "Status", "modelAsString": true } } } } }, - "description": "storageContainerStatus defines the observed state of storagecontainers" + "description": "The observed state of storage containers" }, - "storagecontainers": { + "StorageContainers": { "type": "object", + "description": "The storage container resource definition.", "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" + "$ref": "#/definitions/StorageContainerProperties" }, "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." } }, - "required": [ - "location" - ], - "description": "The storage container resource definition." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, - "storagecontainersPatch": { + "StorageContainersUpdateRequest": { "type": "object", "properties": { "tags": { @@ -443,13 +412,13 @@ }, "description": "The storage container resource patch definition." }, - "storagecontainersListResult": { + "StorageContainersListResult": { "type": "object", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/storagecontainers" + "$ref": "#/definitions/StorageContainers" } }, "nextLink": { @@ -459,14 +428,16 @@ } }, "parameters": { - "storagecontainersNameParameter": { - "name": "storagecontainersName", + "StorageContainerNameParameter": { + "name": "storageContainerName", "in": "path", "required": true, "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", "x-ms-parameter-location": "method", - "maxLength": 64, - "minLength": 3 + "maxLength": 80, + "minLength": 1, + "description": "Name of the storage container" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateRuns.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateRuns.json new file mode 100644 index 000000000000..9a057763be1f --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateRuns.json @@ -0,0 +1,412 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-12-15-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}/updates/{updateName}/updateRuns": { + "get": { + "operationId": "UpdateRuns_List", + "description": "List all Update runs for a specified update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/UpdateNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateRunList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Update runs under cluster resource": { + "$ref": "./examples/ListUpdateRuns.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}/updateRuns/{updateRunName}": { + "delete": { + "operationId": "UpdateRuns_Delete", + "description": "Delete specified Update Run", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/UpdateNameParameter" + }, + { + "$ref": "#/parameters/UpdateRunNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "ACCEPTED", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/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 an Update": { + "$ref": "./examples/DeleteUpdateRuns.json" + } + } + }, + "put": { + "operationId": "UpdateRuns_Put", + "description": "Put Update runs for a specified update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/UpdateNameParameter" + }, + { + "$ref": "#/parameters/UpdateRunNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateRunsProperties", + "in": "body", + "description": "Properties of the updateRuns object", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateRun" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateRun" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Update runs under cluster resource": { + "$ref": "./examples/PutUpdateRuns.json" + } + } + }, + "get": { + "operationId": "UpdateRuns_Get", + "description": "Get the Update run for a specified update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/UpdateNameParameter" + }, + { + "$ref": "#/parameters/UpdateRunNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateRun" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Update runs under cluster resource": { + "$ref": "./examples/GetUpdateRuns.json" + } + } + } + } + }, + "definitions": { + "UpdateRunList": { + "description": "List of Update runs", + "type": "object", + "properties": { + "value": { + "description": "List of Update runs", + "type": "array", + "items": { + "$ref": "#/definitions/UpdateRun" + } + }, + "nextLink": { + "description": "Link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "UpdateRun": { + "description": "Details of an Update run", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives" + }, + "properties": { + "description": "Describes Update Run Properties.", + "$ref": "#/definitions/UpdateRunProperties", + "x-ms-client-flatten": true + } + } + }, + "UpdateRunProperties": { + "description": "Details of an Update run", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the UpdateRuns proxy resource.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "readOnly": true + }, + "timeStarted": { + "description": "Timestamp of the update run was started.", + "type": "string", + "format": "date-time" + }, + "lastUpdatedTime": { + "description": "Timestamp of the most recently completed step in the update run.", + "type": "string", + "format": "date-time" + }, + "duration": { + "description": "Duration of the update run.", + "type": "string" + }, + "state": { + "description": "State of the update run.", + "type": "string", + "enum": [ + "Unknown", + "Succeeded", + "InProgress", + "Failed" + ], + "x-ms-enum": { + "name": "updateRunPropertiesState", + "modelAsString": true + } + }, + "progress": { + "description": "Progress representation of the update run steps.", + "$ref": "#/definitions/Step", + "x-ms-client-flatten": true + } + } + }, + "Step": { + "description": "Progress representation of the update run steps.", + "type": "object", + "properties": { + "name": { + "description": "Name of the step.", + "type": "string" + }, + "description": { + "description": "More detailed description of the step.", + "type": "string" + }, + "errorMessage": { + "description": "Error message, specified if the step is in a failed state.", + "type": "string" + }, + "status": { + "description": "Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.", + "type": "string" + }, + "startTimeUtc": { + "description": "When the step started, or empty if it has not started executing.", + "type": "string", + "format": "date-time" + }, + "endTimeUtc": { + "description": "When the step reached a terminal state.", + "type": "string", + "format": "date-time" + }, + "lastUpdatedTimeUtc": { + "description": "Completion time of this step or the last completed sub-step.", + "type": "string", + "format": "date-time" + }, + "expectedExecutionTime": { + "description": "Expected execution time of a given step. This is optionally authored in the update action plan and can be empty.", + "type": "string" + }, + "steps": { + "description": "Recursive model for child steps of this step.", + "type": "array", + "items": { + "$ref": "#/definitions/Step" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + } + }, + "parameters": { + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cluster.", + "x-ms-parameter-location": "method" + }, + "UpdateNameParameter": { + "name": "updateName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Update", + "x-ms-parameter-location": "method" + }, + "UpdateRunNameParameter": { + "name": "updateRunName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Update Run", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateSummaries.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateSummaries.json new file mode 100644 index 000000000000..276e875fdfa8 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateSummaries.json @@ -0,0 +1,488 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-12-15-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}/updateSummaries": { + "get": { + "operationId": "UpdateSummaries_List", + "description": "List all Update summaries under the HCI cluster", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateSummariesList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Update summaries under cluster resource": { + "$ref": "./examples/ListUpdateSummaries.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updateSummaries/default": { + "delete": { + "operationId": "UpdateSummaries_Delete", + "description": "Delete Update Summaries", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "ACCEPTED", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/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 an Update": { + "$ref": "./examples/DeleteUpdateSummaries.json" + } + } + }, + "put": { + "operationId": "UpdateSummaries_Put", + "description": "Put Update summaries under the HCI cluster", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateLocationProperties", + "in": "body", + "description": "Properties of the UpdateSummaries resource", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateSummaries" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateSummaries" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Put Update summaries under cluster resource": { + "$ref": "./examples/PutUpdateSummaries.json" + } + } + }, + "get": { + "operationId": "UpdateSummaries_Get", + "description": "Get all Update summaries under the HCI cluster", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateSummaries" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Update summaries under cluster resource": { + "$ref": "./examples/GetUpdateSummaries.json" + } + } + } + } + }, + "definitions": { + "UpdateSummariesList": { + "description": "List of Update Summaries", + "type": "object", + "properties": { + "value": { + "description": "List of Update Summaries", + "type": "array", + "items": { + "$ref": "#/definitions/UpdateSummaries" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "UpdateSummaries": { + "description": "Get the update summaries for the cluster", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives" + }, + "properties": { + "description": "Update summaries properties", + "type": "object", + "$ref": "#/definitions/UpdateSummariesProperties", + "x-ms-client-flatten": true + } + } + }, + "UpdateSummariesProperties": { + "description": "Properties of Update summaries", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the UpdateSummaries proxy resource.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "readOnly": true + }, + "oemFamily": { + "description": "OEM family name.", + "type": "string" + }, + "currentOemVersion": { + "description": "Current OEM Version.", + "type": "string" + }, + "hardwareModel": { + "description": "Name of the hardware model.", + "type": "string" + }, + "packageVersions": { + "description": "Current version of each updatable component.", + "type": "array", + "items": { + "$ref": "#/definitions/PackageVersionInfo" + }, + "x-ms-client-flatten": true, + "x-ms-identifiers": [ + "version" + ] + }, + "currentVersion": { + "description": "Current Solution Bundle version of the stamp.", + "type": "string" + }, + "lastUpdated": { + "description": "Last time an update installation completed successfully.", + "type": "string", + "format": "date-time" + }, + "lastChecked": { + "description": "Last time the update service successfully checked for updates", + "type": "string", + "format": "date-time" + }, + "healthState": { + "description": "Overall health state for update-specific health checks.", + "type": "object", + "$ref": "#/definitions/HealthState", + "x-ms-client-flatten": true + }, + "healthCheckResult": { + "description": "An array of pre-check result objects.", + "type": "array", + "items": { + "$ref": "#/definitions/PrecheckResult" + }, + "x-ms-client-flatten": true, + "x-ms-identifiers": [ + "name" + ] + }, + "healthCheckDate": { + "description": "Last time the package-specific checks were run.", + "type": "string", + "format": "date-time" + }, + "state": { + "description": "Overall update state of the stamp.", + "type": "string", + "enum": [ + "Unknown", + "AppliedSuccessfully", + "UpdateAvailable", + "UpdateInProgress", + "UpdateFailed", + "NeedsAttention", + "PreparationInProgress", + "PreparationFailed" + ], + "x-ms-enum": { + "name": "updateSummariesPropertiesState", + "modelAsString": true + } + } + } + }, + "PackageVersionInfo": { + "description": "Current version of each updatable component.", + "type": "object", + "properties": { + "packageType": { + "description": "Package type", + "type": "string" + }, + "version": { + "description": "Package version", + "type": "string" + }, + "lastUpdated": { + "description": "Last time this component was updated.", + "type": "string", + "format": "date-time" + } + } + }, + "HealthState": { + "type": "string", + "enum": [ + "Unknown", + "Success", + "Failure", + "Warning", + "Error", + "InProgress" + ], + "x-ms-enum": { + "name": "HealthState", + "modelAsString": true + } + }, + "PrecheckResult": { + "properties": { + "name": { + "description": "Name of the individual test/rule/alert that was executed. Unique, not exposed to the customer.", + "type": "string" + }, + "tags": { + "description": "Key-value pairs that allow grouping/filtering individual tests.", + "type": "object", + "properties": { + "key": { + "description": "Key that allow grouping/filtering individual tests.", + "type": "string" + }, + "value": { + "description": "Value of the key that allow grouping/filtering individual tests.", + "type": "string" + } + } + }, + "healthCheckTags": { + "description": "Key-value pairs that allow grouping/filtering individual tests.", + "type": "object" + }, + "title": { + "description": "User-facing name; one or more sentences indicating the direct issue.", + "type": "string" + }, + "status": { + "description": "The status of the check running (i.e. Failed, Succeeded, In Progress). This answers whether the check ran, and passed or failed.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "status", + "modelAsString": true + } + }, + "severity": { + "description": "Severity of the result (Critical, Warning, Informational, Hidden). This answers how important the result is. Critical is the only update-blocking severity.", + "type": "string", + "x-ms-enum": { + "name": "severity", + "modelAsString": true + } + }, + "description": { + "description": "Detailed overview of the issue and what impact the issue has on the stamp.", + "type": "string" + }, + "remediation": { + "description": "Set of steps that can be taken to resolve the issue found.", + "type": "string" + }, + "targetResourceID": { + "description": "The unique identifier for the affected resource (such as a node or drive).", + "type": "string" + }, + "targetResourceName": { + "description": "The name of the affected resource.", + "type": "string" + }, + "targetResourceType": { + "description": "The type of resource being referred to (well-known set of nouns in infrastructure, aligning with Monitoring).", + "type": "string" + }, + "timestamp": { + "description": "The Time in which the HealthCheck was called.", + "type": "string", + "format": "date-time" + }, + "additionalData": { + "description": "Property bag of key value pairs for additional information.", + "type": "string" + }, + "healthCheckSource": { + "description": "The name of the services called for the HealthCheck (I.E. Test-AzureStack, Test-Cluster).", + "type": "string" + } + } + } + }, + "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/2022-12-15-preview/updates.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updates.json new file mode 100644 index 000000000000..ec031493e7c5 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/updates.json @@ -0,0 +1,668 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-12-15-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}/updates/{updateName}/apply": { + "post": { + "operationId": "Updates_Post", + "description": "Apply Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/UpdateNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "ACCEPTED", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List available updates": { + "$ref": "./examples/PostUpdates.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates": { + "get": { + "operationId": "Updates_List", + "description": "List all Updates", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List available updates": { + "$ref": "./examples/ListUpdates.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}": { + "delete": { + "operationId": "Updates_Delete", + "description": "Delete specified Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/UpdateNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "ACCEPTED", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/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 an Update": { + "$ref": "./examples/DeleteUpdates.json" + } + } + }, + "put": { + "operationId": "Updates_Put", + "description": "Put specified Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/UpdateNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateProperties", + "in": "body", + "description": "Properties of the Updates object", + "required": true, + "schema": { + "$ref": "#/definitions/Update" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Update" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Put a specific update": { + "$ref": "./examples/PutUpdates.json" + } + } + }, + "get": { + "operationId": "Updates_Get", + "description": "Get specified Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/UpdateNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Update" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a specific update": { + "$ref": "./examples/GetUpdates.json" + } + } + } + } + }, + "definitions": { + "UpdateList": { + "description": "List of Updates", + "type": "object", + "properties": { + "value": { + "description": "List of Updates", + "type": "array", + "items": { + "$ref": "#/definitions/Update" + } + }, + "nextLink": { + "description": "Link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "UpdatePrerequisite": { + "description": "If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty.", + "type": "object", + "properties": { + "updateType": { + "description": "Updatable component type.", + "type": "string" + }, + "version": { + "description": "Version of the prerequisite.", + "type": "string" + }, + "packageName": { + "description": "Friendly name of the prerequisite.", + "type": "string" + } + } + }, + "Update": { + "description": "Update details", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives" + }, + "systemData": { + "description": "System data of Updates resource.", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "x-ms-client-flatten": true, + "readOnly": true + }, + "properties": { + "description": "Update properties", + "type": "object", + "$ref": "#/definitions/UpdateProperties", + "x-ms-client-flatten": true + } + } + }, + "UpdateProperties": { + "description": "Details of a singular Update in HCI Cluster", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the Updates proxy resource.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "readOnly": true + }, + "installedDate": { + "description": "Date that the update was installed.", + "type": "string", + "format": "date-time" + }, + "description": { + "description": "Description of the update.", + "type": "string" + }, + "state": { + "description": "State of the update as it relates to this stamp.", + "type": "string", + "enum": [ + "HasPrerequisite", + "Obsolete", + "Ready", + "NotApplicableBecauseAnotherUpdateIsInProgress", + "Preparing", + "Installing", + "Installed", + "PreparationFailed", + "InstallationFailed", + "Invalid", + "Recalled", + "Downloading", + "DownloadFailed", + "HealthChecking", + "HealthCheckFailed", + "ReadyToInstall", + "ScanInProgress", + "ScanFailed" + ], + "x-ms-enum": { + "name": "state", + "modelAsString": true + } + }, + "prerequisites": { + "description": "If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty.", + "type": "array", + "items": { + "$ref": "#/definitions/UpdatePrerequisite" + }, + "x-ms-identifiers": [ + "packageName" + ] + }, + "componentVersions": { + "description": "An array of component versions for a Solution Bundle update, and an empty array otherwise. ", + "type": "array", + "items": { + "$ref": "#/definitions/PackageVersionInfo" + }, + "x-ms-client-flatten": true, + "x-ms-identifiers": [ + "version" + ] + }, + "rebootRequired": { + "type": "object", + "$ref": "#/definitions/RebootRequirement", + "x-ms-client-flatten": true + }, + "healthState": { + "description": "Overall health state for update-specific health checks.", + "type": "object", + "$ref": "#/definitions/HealthState", + "x-ms-client-flatten": true + }, + "healthCheckResult": { + "description": "An array of PrecheckResult objects.", + "type": "array", + "items": { + "$ref": "#/definitions/PrecheckResult" + }, + "x-ms-client-flatten": true + }, + "healthCheckDate": { + "description": "Last time the package-specific checks were run.", + "type": "string", + "format": "date-time" + }, + "packagePath": { + "description": "Path where the update package is available.", + "type": "string" + }, + "packageSizeInMb": { + "description": "Size of the package. This value is a combination of the size from update metadata and size of the payload that results from the live scan operation for OS update content.", + "type": "number" + }, + "displayName": { + "description": "Display name of the Update", + "type": "string" + }, + "version": { + "description": "Version of the update.", + "type": "string" + }, + "publisher": { + "description": "Publisher of the update package.", + "type": "string" + }, + "releaseLink": { + "description": "Link to release notes for the update.", + "type": "string" + }, + "availabilityType": { + "description": "Indicates the way the update content can be downloaded.", + "type": "string", + "enum": [ + "Local", + "Online", + "Notify" + ], + "x-ms-enum": { + "name": "availabilityType", + "modelAsString": true + } + }, + "packageType": { + "description": "Customer-visible type of the update.", + "type": "string" + }, + "additionalProperties": { + "description": "Extensible KV pairs serialized as a string. This is currently used to report the stamp OEM family and hardware model information when an update is flagged as Invalid for the stamp based on OEM type.", + "type": "string" + }, + "updateStateProperties": { + "description": "Additional information regarding the state of the update. See definition of UpdateStateProperties type below for more details on this property.", + "type": "object", + "$ref": "#/definitions/UpdateStateProperties", + "x-ms-client-flatten": true + } + } + }, + "UpdateStateProperties": { + "description": "Additional information regarding the state of the update. See definition of UpdateStateProperties type below for more details on this property.", + "type": "object", + "properties": { + "progressPercentage": { + "description": "Progress percentage of ongoing operation. Currently this property is only valid when the update is in the Downloading state, where it maps to how much of the update content has been downloaded.", + "type": "number" + }, + "notifyMessage": { + "description": "Brief message with instructions for updates of AvailabilityType Notify.", + "type": "string" + } + } + }, + "PackageVersionInfo": { + "description": "Current version of each updatable component.", + "type": "object", + "properties": { + "packageType": { + "description": "Package type", + "type": "string" + }, + "version": { + "description": "Package version", + "type": "string" + }, + "lastUpdated": { + "description": "Last time this component was updated.", + "type": "string", + "format": "date-time" + } + } + }, + "RebootRequirement": { + "type": "string", + "enum": [ + "Unknown", + "True", + "False" + ], + "x-ms-enum": { + "name": "RebootRequirement", + "modelAsString": true + } + }, + "HealthState": { + "type": "string", + "enum": [ + "Unknown", + "Success", + "Failure", + "Warning", + "Error", + "InProgress" + ], + "x-ms-enum": { + "name": "HealthState", + "modelAsString": true + } + }, + "PrecheckResult": { + "properties": { + "name": { + "description": "Name of the individual test/rule/alert that was executed. Unique, not exposed to the customer.", + "type": "string" + }, + "tags": { + "description": "Key-value pairs that allow grouping/filtering individual tests.", + "type": "object", + "properties": { + "key": { + "description": "Key that allow grouping/filtering individual tests.", + "type": "string" + }, + "value": { + "description": "Value of the key that allow grouping/filtering individual tests.", + "type": "string" + } + } + }, + "healthCheckTags": { + "description": "Key-value pairs that allow grouping/filtering individual tests.", + "type": "object" + }, + "title": { + "description": "User-facing name; one or more sentences indicating the direct issue.", + "type": "string" + }, + "status": { + "description": "The status of the check running (i.e. Failed, Succeeded, In Progress). This answers whether the check ran, and passed or failed.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "status", + "modelAsString": true + } + }, + "severity": { + "description": "Severity of the result (Critical, Warning, Informational, Hidden). This answers how important the result is. Critical is the only update-blocking severity.", + "type": "string", + "enum": [ + "Critical", + "Warning", + "Informational", + "Hidden" + ], + "x-ms-enum": { + "name": "severity", + "modelAsString": true + } + }, + "description": { + "description": "Detailed overview of the issue and what impact the issue has on the stamp.", + "type": "string" + }, + "remediation": { + "description": "Set of steps that can be taken to resolve the issue found.", + "type": "string" + }, + "targetResourceID": { + "description": "The unique identifier for the affected resource (such as a node or drive).", + "type": "string" + }, + "targetResourceName": { + "description": "The name of the affected resource.", + "type": "string" + }, + "targetResourceType": { + "description": "The type of resource being referred to (well-known set of nouns in infrastructure, aligning with Monitoring).", + "type": "string" + }, + "timestamp": { + "description": "The Time in which the HealthCheck was called.", + "type": "string", + "format": "date-time" + }, + "additionalData": { + "description": "Property bag of key value pairs for additional information.", + "type": "string" + }, + "healthCheckSource": { + "description": "The name of the services called for the HealthCheck (I.E. Test-AzureStack, Test-Cluster).", + "type": "string" + } + } + } + }, + "parameters": { + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cluster.", + "x-ms-parameter-location": "method" + }, + "UpdateNameParameter": { + "name": "updateName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Update", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json index 0ee5726f742d..14497a40e1da 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json @@ -37,10 +37,10 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualharddisks/{virtualharddisksName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}": { "get": { - "operationId": "virtualharddisks_Retrieve", - "description": "Gets virtualharddisks by resource name", + "operationId": "VirtualHardDisks_Get", + "description": "Gets a virtual hard disk", "x-ms-examples": { "GetVirtualHardDisk": { "$ref": "./examples/GetVirtualHardDisk.json" @@ -48,35 +48,36 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualharddisksNameParameter" + "$ref": "#/parameters/VirtualHardDiskNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Retrieved the virtual hard disk resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualharddisks" + "$ref": "#/definitions/VirtualHardDisks" } } } }, "put": { - "operationId": "virtualharddisks_CreateOrUpdate", + "operationId": "VirtualHardDisks_CreateOrUpdate", + "description": "The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.", "x-ms-examples": { "PutVirtualHardDisk": { "$ref": "./examples/PutVirtualHardDisk.json" @@ -88,23 +89,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualharddisksNameParameter" + "$ref": "#/parameters/VirtualHardDiskNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "virtualharddisks", + "name": "virtualHardDisks", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/virtualharddisks" + "$ref": "#/definitions/VirtualHardDisks" } } ], @@ -112,25 +113,26 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the virtual hard disk resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualharddisks" + "$ref": "#/definitions/VirtualHardDisks" } }, "201": { - "description": "Creates the virtual hard disk resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/virtualharddisks" + "$ref": "#/definitions/VirtualHardDisks" } } } }, "delete": { - "operationId": "virtualharddisks_Delete", + "operationId": "VirtualHardDisks_Delete", + "description": "The operation to delete a virtual hard disk.", "x-ms-examples": { "DeleteVirtualHardDisk": { "$ref": "./examples/DeleteVirtualHardDisk.json" @@ -138,27 +140,27 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualharddisksNameParameter" + "$ref": "#/parameters/VirtualHardDiskNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Deletes the virtual hard disk resource." + "description": "OK" }, "204": { "description": "No content" @@ -166,7 +168,8 @@ } }, "patch": { - "operationId": "virtualharddisks_Update", + "operationId": "VirtualHardDisks_Update", + "description": "The operation to update a virtual hard disk.", "x-ms-examples": { "UpdateVirtualHardDisk": { "$ref": "./examples/UpdateVirtualHardDisk.json" @@ -174,23 +177,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualharddisksNameParameter" + "$ref": "#/parameters/VirtualHardDiskNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "virtualharddisks", + "name": "virtualHardDisks", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/virtualharddisksPatch" + "$ref": "#/definitions/VirtualHardDisksUpdateRequest" } } ], @@ -198,27 +201,34 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the virtual hard disk resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualharddisks" + "$ref": "#/definitions/VirtualHardDisks" } }, "201": { - "description": "Updates the virtual hard disk resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/virtualharddisks" + "$ref": "#/definitions/VirtualHardDisks" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/VirtualHardDisks" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualharddisks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks": { "get": { - "operationId": "virtualharddisks_ListByResourceGroup", + "operationId": "VirtualHardDisks_ListByResourceGroup", + "description": "Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in the response to get the next page of virtual hard disks.", "x-ms-examples": { "ListVirtualHardDiskByResourceGroup": { "$ref": "./examples/ListVirtualHardDiskByResourceGroup.json" @@ -226,26 +236,26 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all virtualharddisks under the resource group.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualharddisksListResult" + "$ref": "#/definitions/VirtualHardDisksListResult" } } }, @@ -254,9 +264,10 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualharddisks": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualHardDisks": { "get": { - "operationId": "virtualharddisks_ListBySubscription", + "operationId": "VirtualHardDisks_ListBySubscription", + "description": "Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.", "x-ms-examples": { "ListVirtualHardDiskByResourceGroup": { "$ref": "./examples/ListVirtualHardDiskBySubscription.json" @@ -264,23 +275,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all virtualharddisks under the subscription.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualharddisksListResult" + "$ref": "#/definitions/VirtualHardDisksListResult" } } }, @@ -291,17 +302,17 @@ } }, "definitions": { - "virtualharddisksProperties": { + "VirtualHardDiskProperties": { "type": "object", "properties": { "blockSizeBytes": { "type": "integer", "format": "int32" }, - "diskSizeBytes": { + "diskSizeGB": { "type": "integer", "format": "int64", - "description": "diskSizeBytes - size of the disk in GB" + "description": "Size of the disk in GB" }, "dynamic": { "type": "boolean", @@ -341,13 +352,15 @@ }, "provisioningState": { "type": "string", + "description": "Provisioning state of the virtual hard disk.", "readOnly": true, "enum": [ "Succeeded", "Failed", "InProgress", "Accepted", - "Deleting" + "Deleting", + "Canceled" ], "x-ms-enum": { "name": "ProvisioningStateEnum", @@ -358,18 +371,13 @@ "type": "string", "description": "Storage ContainerID of the storage container to be used for VHD" }, - "resourceName": { - "type": "string", - "description": "name of the object to be used in moc" - }, "status": { "$ref": "#/definitions/VirtualHardDiskStatus" } }, - "description": "Properties of a virtual hard disk resource" + "description": "Properties under the virtual hard disk resource" }, "VirtualHardDiskStatus": { - "type": "object", "x-ms-client-flatten": true, "readOnly": true, "properties": { @@ -382,8 +390,6 @@ "description": "Descriptive error message" }, "provisioningStatus": { - "type": "object", - "description": "The provisioning status of the virtual hard disk", "properties": { "operationId": { "type": "string", @@ -398,40 +404,36 @@ "InProgress" ], "x-ms-enum": { - "name": "ProvisioningStatusEnum", + "name": "Status", "modelAsString": true } } } } }, - "description": "VirtualHardDiskStatus defines the observed state of virtualharddisks" + "description": "The observed state of virtual hard disks" }, - "virtualharddisks": { + "VirtualHardDisks": { "type": "object", "description": "The virtual hard disk resource definition.", "x-ms-azure-resource": true, - "x-ms-client-flatten": true, "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/virtualharddisksProperties" + "$ref": "#/definitions/VirtualHardDiskProperties" }, "extendedLocation": { "$ref": "./common.json#/definitions/ExtendedLocation", "description": "The extendedLocation of the resource." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, - "virtualharddisksPatch": { + "VirtualHardDisksUpdateRequest": { "type": "object", "properties": { "tags": { @@ -444,13 +446,13 @@ }, "description": "The virtual hard disk resource patch definition." }, - "virtualharddisksListResult": { + "VirtualHardDisksListResult": { "type": "object", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/virtualharddisks" + "$ref": "#/definitions/VirtualHardDisks" } }, "nextLink": { @@ -460,14 +462,16 @@ } }, "parameters": { - "virtualharddisksNameParameter": { - "name": "virtualharddisksName", + "VirtualHardDiskNameParameter": { + "name": "virtualHardDiskName", "in": "path", "required": true, "type": "string", + "pattern": "^[-_a-zA-Z0-9]{1,80}$", "x-ms-parameter-location": "method", - "maxLength": 64, - "minLength": 3 + "maxLength": 80, + "minLength": 1, + "description": "Name of the virtual hard disk" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json index 66a241a7959d..5803dd4badd6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json @@ -37,10 +37,10 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{virtualMachineName}": { "get": { - "operationId": "virtualmachines_Retrieve", - "description": "Gets virtual machines by resource name", + "operationId": "VirtualMachines_Get", + "description": "Gets a virtual machine", "x-ms-examples": { "GetVirtualMachine": { "$ref": "./examples/GetVirtualMachine.json" @@ -48,35 +48,36 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualmachinesNameParameter" + "$ref": "#/parameters/VirtualMachineNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Retrieved the virtual machine resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualmachines" + "$ref": "#/definitions/VirtualMachines" } } } }, "put": { - "operationId": "virtualmachines_CreateOrUpdate", + "operationId": "VirtualMachines_CreateOrUpdate", + "description": "The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.", "x-ms-examples": { "PutVirtualMachineWithGalleryImage": { "$ref": "./examples/PutVirtualMachineWithGalleryImage.json" @@ -94,23 +95,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualmachinesNameParameter" + "$ref": "#/parameters/VirtualMachineNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "virtualmachines", + "name": "virtualMachines", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/virtualmachines" + "$ref": "#/definitions/VirtualMachines" } } ], @@ -118,25 +119,26 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the virtual machine resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualmachines" + "$ref": "#/definitions/VirtualMachines" } }, "201": { - "description": "Creates the virtual machine resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/virtualmachines" + "$ref": "#/definitions/VirtualMachines" } } } }, "delete": { - "operationId": "virtualmachines_Delete", + "operationId": "VirtualMachines_Delete", + "description": "The operation to delete a virtual machine.", "x-ms-examples": { "DeleteVirtualMachine": { "$ref": "./examples/DeleteVirtualMachine.json" @@ -144,27 +146,27 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualmachinesNameParameter" + "$ref": "#/parameters/VirtualMachineNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Deletes the virtual machine resource." + "description": "OK" }, "204": { "description": "No content" @@ -172,7 +174,8 @@ } }, "patch": { - "operationId": "virtualmachines_Update", + "operationId": "VirtualMachines_Update", + "description": "The operation to update a virtual machine.", "x-ms-examples": { "UpdateVirtualMachine": { "$ref": "./examples/UpdateVirtualMachine.json" @@ -180,23 +183,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualmachinesNameParameter" + "$ref": "#/parameters/VirtualMachineNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "virtualmachines", + "name": "virtualMachines", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/virtualmachinesPatch" + "$ref": "#/definitions/VirtualMachinesUpdateRequest" } } ], @@ -204,27 +207,34 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the virtual machine resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualmachines" + "$ref": "#/definitions/VirtualMachines" } }, "201": { - "description": "Updates the virtual machine resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/virtualmachines" + "$ref": "#/definitions/VirtualMachines" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/VirtualMachines" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}/start": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{virtualMachineName}/start": { "post": { - "operationId": "virtualmachines_Start", + "operationId": "VirtualMachines_Start", + "description": "The operation to start a virtual machine.", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -236,37 +246,38 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualmachinesNameParameter" + "$ref": "#/parameters/VirtualMachineNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Ok." + "description": "OK" }, "202": { - "description": "Accepted." + "description": "Accepted" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}/stop": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{virtualMachineName}/stop": { "post": { - "operationId": "virtualmachines_Stop", + "operationId": "VirtualMachines_Stop", + "description": "The operation to stop a virtual machine.", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -278,37 +289,38 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualmachinesNameParameter" + "$ref": "#/parameters/VirtualMachineNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Ok." + "description": "OK" }, "202": { - "description": "Accepted." + "description": "Accepted" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}/restart": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{virtualMachineName}/restart": { "post": { - "operationId": "virtualmachines_Restart", + "operationId": "VirtualMachines_Restart", + "description": "The operation to restart a virtual machine.", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -320,37 +332,38 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualmachinesNameParameter" + "$ref": "#/parameters/VirtualMachineNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Ok." + "description": "OK" }, "202": { - "description": "Accepted." + "description": "Accepted" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines": { "get": { - "operationId": "virtualmachines_ListByResourceGroup", + "operationId": "VirtualMachines_ListByResourceGroup", + "description": "Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.", "x-ms-examples": { "ListVirtualMachineByResourceGroup": { "$ref": "./examples/ListVirtualMachineByResourceGroup.json" @@ -358,26 +371,26 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all virtualmachines under the resource group.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualmachinesListResult" + "$ref": "#/definitions/VirtualMachinesListResult" } } }, @@ -386,9 +399,10 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualmachines": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualMachines": { "get": { - "operationId": "virtualmachines_ListBySubscription", + "operationId": "VirtualMachines_ListBySubscription", + "description": "Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.", "x-ms-examples": { "ListVirtualMachineBySubscription": { "$ref": "./examples/ListVirtualMachineBySubscription.json" @@ -396,23 +410,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all virtualmachines under the subscription.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualmachinesListResult" + "$ref": "#/definitions/VirtualMachinesListResult" } } }, @@ -442,10 +456,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -462,7 +476,7 @@ "description": "Name of the hybridIdentityMetadata." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -475,7 +489,7 @@ ], "responses": { "200": { - "description": "Success", + "description": "OK", "schema": { "$ref": "#/definitions/HybridIdentityMetadata" } @@ -483,7 +497,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -505,10 +519,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -525,12 +539,12 @@ "description": "Name of the HybridIdentityMetadata." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success", + "description": "OK", "schema": { "$ref": "#/definitions/HybridIdentityMetadata" } @@ -538,7 +552,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -548,7 +562,7 @@ "HybridIdentityMetadata" ], "operationId": "HybridIdentityMetadata_Delete", - "summary": "Deletes an HybridIdentityMetadata.", + "summary": "Deleted an HybridIdentityMetadata.", "description": "Implements HybridIdentityMetadata DELETE method.", "x-ms-examples": { "DeleteHybridIdentityMetadata": { @@ -560,10 +574,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -580,12 +594,12 @@ "description": "Name of the HybridIdentityMetadata." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success" + "description": "OK" }, "204": { "description": "No Content" @@ -593,7 +607,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -617,10 +631,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -630,12 +644,12 @@ "description": "Name of the vm." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success", + "description": "OK", "schema": { "$ref": "#/definitions/HybridIdentityMetadataList" } @@ -643,7 +657,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -661,13 +675,13 @@ "description": "The operation to create or update the extension.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "name", @@ -701,7 +715,7 @@ } }, "201": { - "description": "HTTP 201 (Created) if the operation was successfully started and will complete asynchronously.", + "description": "Created", "schema": { "$ref": "#/definitions/MachineExtension" } @@ -709,7 +723,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -731,13 +745,13 @@ "description": "The operation to update the extension.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "name", @@ -779,7 +793,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -798,13 +812,13 @@ "description": "The operation to delete the extension.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "name", @@ -834,7 +848,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -853,13 +867,13 @@ "description": "The operation to get the extension.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "name", @@ -886,7 +900,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -906,13 +920,13 @@ "description": "The operation to get all extensions of a non-Azure machine", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "name", @@ -939,7 +953,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -974,10 +988,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -994,7 +1008,7 @@ "description": "Name of the guestAgents." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -1007,7 +1021,7 @@ ], "responses": { "200": { - "description": "Success", + "description": "OK", "schema": { "$ref": "#/definitions/GuestAgent" } @@ -1021,7 +1035,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -1047,10 +1061,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1067,12 +1081,12 @@ "description": "Name of the GuestAgent." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success", + "description": "OK", "schema": { "$ref": "#/definitions/GuestAgent" } @@ -1080,7 +1094,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -1090,7 +1104,7 @@ "GuestAgents" ], "operationId": "GuestAgent_Delete", - "summary": "Deletes an GuestAgent.", + "summary": "Deleted an GuestAgent.", "description": "Implements GuestAgent DELETE method.", "x-ms-examples": { "DeleteGuestAgent": { @@ -1102,10 +1116,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1122,12 +1136,12 @@ "description": "Name of the GuestAgent." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success" + "description": "OK" }, "202": { "description": "Accepted" @@ -1138,7 +1152,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -1163,10 +1177,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1176,12 +1190,12 @@ "description": "Name of the vm." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success", + "description": "OK", "schema": { "$ref": "#/definitions/GuestAgentList" } @@ -1189,7 +1203,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -1200,7 +1214,7 @@ } }, "definitions": { - "virtualmachinesProperties": { + "VirtualMachineProperties": { "type": "object", "x-ms-client-flatten": true, "properties": { @@ -1208,31 +1222,62 @@ "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" + ], + "default": "Default", + "x-ms-enum": { + "name": "VmSizeEnum", + "modelAsString": true + } }, "processors": { "type": "integer", "format": "int32", "description": "number of processors for the virtual machine" }, - "memoryGB": { + "memoryMB": { "type": "integer", - "format": "int32", - "description": "RAM in gb for the virtual machine" + "format": "int64", + "description": "RAM in MB for the virtual machine" }, "dynamicMemoryConfig": { "type": "object", "properties": { - "maximumMemoryGB": { + "maximumMemoryMB": { "type": "integer", "format": "int64" }, - "minimumMemoryGB": { + "minimumMemoryMB": { "type": "integer", "format": "int64" }, "targetMemoryBuffer": { "type": "integer", + "description": "Defines the amount of extra memory that should be reserved for a virtual machine at runtime, as a percentage of the total memory that the virtual machine is thought to need. This only applies to virtual systems with dynamic memory enabled. This property can be in the range of 5 to 2000.", "format": "int32" } } @@ -1295,7 +1340,6 @@ "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": { @@ -1346,7 +1390,6 @@ "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": { @@ -1375,10 +1418,6 @@ }, "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": { @@ -1405,22 +1444,24 @@ "items": { "type": "object", "properties": { - "name": { - "type": "string" + "id": { + "type": "string", + "description": "Resource ID of the data disk" } } }, - "description": "adds data disks to the virtual machine", - "x-ms-identifiers": [ - "name" - ] + "description": "adds data disks to the virtual machine" }, "imageReference": { "type": "object", "properties": { - "name": { + "id": { "type": "string", - "description": "Name - Name of the image" + "x-ms-mutability": [ + "create", + "read" + ], + "description": "Resource ID of the image" } }, "description": "Which Image to use for the virtual machine" @@ -1430,20 +1471,21 @@ "properties": { "id": { "type": "string", - "description": "Specifies the virtual hard disk's ID" + "description": "Resource ID of the OS disk" } }, "description": "VHD to attach as OS disk" }, - "vmConfigContainerName": { + "vmConfigStoragePathId": { "type": "string", - "description": "Name of the storage container that hosts the VM configuration file" + "description": "Id of the storage container that hosts the VM configuration file" } }, "description": "StorageProfile - contains information about the disks and storage information for the virtual machine" }, "provisioningState": { "type": "string", + "description": "Provisioning state of the virtual machine.", "readOnly": true, "enum": [ "Succeeded", @@ -1471,10 +1513,9 @@ "readOnly": true } }, - "description": "Properties of a virtual machine resource" + "description": "Properties under the virtual machine resource" }, "VirtualMachineStatus": { - "type": "object", "x-ms-client-flatten": true, "readOnly": true, "properties": { @@ -1504,8 +1545,6 @@ } }, "provisioningStatus": { - "type": "object", - "description": "The provisioning status of the virtual machine", "properties": { "operationId": { "type": "string", @@ -1520,43 +1559,39 @@ "InProgress" ], "x-ms-enum": { - "name": "ProvisioningStatusEnum", + "name": "Status", "modelAsString": true } } } } }, - "description": "VirtualMachineStatus defines the observed state of virtualmachines" + "description": "The observed state of virtual machines" }, - "virtualmachines": { + "VirtualMachines": { "type": "object", - "x-ms-client-flatten": true, "x-ms-azure-resource": true, "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/virtualmachinesProperties" + "$ref": "#/definitions/VirtualMachineProperties" }, "extendedLocation": { "$ref": "./common.json#/definitions/ExtendedLocation", "description": "The extendedLocation of the resource." }, "identity": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Identity" - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity" } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ], "description": "The virtual machine resource definition." }, - "hardwareProfileUpdate": { + "HardwareProfileUpdate": { "type": "object", "properties": { "vmSize": { @@ -1586,6 +1621,7 @@ "Standard_K8S5_v1", "Custom" ], + "default": "Default", "x-ms-enum": { "name": "VmSizeEnum", "modelAsString": true @@ -1596,15 +1632,15 @@ "format": "int32", "description": "number of processors for the virtual machine" }, - "memoryGB": { + "memoryMB": { "type": "integer", - "format": "int32", - "description": "RAM in gb for the virtual machine" + "format": "int64", + "description": "RAM in MB for the virtual machine" } }, "description": "HardwareProfile - Specifies the hardware settings for the virtual machine." }, - "networkProfileUpdate": { + "NetworkProfileUpdate": { "type": "object", "properties": { "networkInterfaces": { @@ -1623,7 +1659,7 @@ }, "description": "NetworkProfile - describes the network update configuration the virtual machine" }, - "storageProfileUpdate": { + "StorageProfileUpdate": { "type": "object", "properties": { "dataDisks": { @@ -1631,38 +1667,35 @@ "items": { "type": "object", "properties": { - "name": { + "id": { "type": "string" } } }, - "description": "adds data disks to the virtual machine for the update call", - "x-ms-identifiers": [ - "name" - ] + "description": "adds data disks to the virtual machine for the update call" } } }, - "virtualMachineUpdateProperties": { + "VirtualMachineUpdateProperties": { "description": "Defines the resource properties for the update.", "type": "object", "properties": { "hardwareProfile": { - "$ref": "#/definitions/hardwareProfileUpdate" + "$ref": "#/definitions/HardwareProfileUpdate" }, "storageProfile": { - "$ref": "#/definitions/storageProfileUpdate" + "$ref": "#/definitions/StorageProfileUpdate" }, "networkProfile": { - "$ref": "#/definitions/networkProfileUpdate" + "$ref": "#/definitions/NetworkProfileUpdate" } } }, - "virtualmachinesPatch": { + "VirtualMachinesUpdateRequest": { "type": "object", "properties": { "properties": { - "$ref": "#/definitions/virtualMachineUpdateProperties" + "$ref": "#/definitions/VirtualMachineUpdateProperties" }, "tags": { "type": "object", @@ -1674,13 +1707,13 @@ }, "description": "The virtual machine resource patch definition." }, - "virtualmachinesListResult": { + "VirtualMachinesListResult": { "type": "object", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/virtualmachines" + "$ref": "#/definitions/VirtualMachines" } }, "nextLink": { @@ -1726,10 +1759,9 @@ "readOnly": true, "type": "array", "items": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorDetail" }, - "description": "Details about the error state.", - "x-ms-identifiers": [] + "description": "Details about the error state." } } }, @@ -1761,7 +1793,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource", "description": "The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags." } ], @@ -1772,7 +1804,7 @@ "$ref": "#/definitions/HybridIdentityMetadataProperties" }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "description": "The system data." } }, @@ -1791,7 +1823,7 @@ "type": "string" }, "identity": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Identity", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity", "readOnly": true }, "provisioningState": { @@ -1824,7 +1856,7 @@ "description": "Describes Machine Extension Properties." }, "location": { - "description": "The geo-location where the resource lives", + "description": "The location.", "type": "string", "x-ms-mutability": [ "read", @@ -1832,23 +1864,23 @@ ] }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "description": "The system data." }, "tags": { - "description": "Resource tags.", + "description": "The Resource tags.", "type": "object", "additionalProperties": { "type": "string" } }, "name": { - "description": "The name of the resource", + "description": "The name.", "type": "string", "readOnly": true }, "id": { - "description": "Fully qualified resource ID for the resource.", + "description": "The Id.", "type": "string", "readOnly": true }, @@ -2066,7 +2098,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource", "description": "The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags." } ], @@ -2077,7 +2109,7 @@ "$ref": "#/definitions/GuestAgentProperties" }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", "description": "The system data." } }, @@ -2156,14 +2188,16 @@ } }, "parameters": { - "virtualmachinesNameParameter": { - "name": "virtualmachinesName", + "VirtualMachineNameParameter": { + "name": "virtualMachineName", "in": "path", "required": true, "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$", "x-ms-parameter-location": "method", "maxLength": 64, - "minLength": 3 + "minLength": 1, + "description": "Name of the virtual machine" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json index 6e813d0b32e3..d7c4133f412d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json @@ -37,9 +37,9 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualnetworks/{virtualnetworksName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualNetworks/{virtualNetworkName}": { "get": { - "operationId": "virtualnetworks_Retrieve", + "operationId": "VirtualNetworks_Get", "x-ms-examples": { "GetVirtualNetwork": { "$ref": "./examples/GetVirtualNetwork.json" @@ -47,35 +47,36 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualnetworksNameParameter" + "$ref": "#/parameters/VirtualNetworkNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Retrieved the virtual network resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualnetworks" + "$ref": "#/definitions/VirtualNetworks" } } } }, "put": { - "operationId": "virtualnetworks_CreateOrUpdate", + "operationId": "VirtualNetworks_CreateOrUpdate", + "description": "The operation to create or update a virtual network. Please note some properties can be set only during virtual network creation.", "x-ms-examples": { "PutVirtualNetwork": { "$ref": "./examples/PutVirtualNetwork.json" @@ -87,23 +88,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualnetworksNameParameter" + "$ref": "#/parameters/VirtualNetworkNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "virtualnetworks", + "name": "virtualNetworks", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/virtualnetworks" + "$ref": "#/definitions/VirtualNetworks" } } ], @@ -111,25 +112,26 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the virtualnetworks resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualnetworks" + "$ref": "#/definitions/VirtualNetworks" } }, "201": { - "description": "Creates the virtual networks resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/virtualnetworks" + "$ref": "#/definitions/VirtualNetworks" } } } }, "delete": { - "operationId": "virtualnetworks_Delete", + "operationId": "VirtualNetworks_Delete", + "description": "The operation to delete a virtual network.", "x-ms-examples": { "DeleteVirtualNetwork": { "$ref": "./examples/DeleteVirtualNetwork.json" @@ -137,27 +139,27 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualnetworksNameParameter" + "$ref": "#/parameters/VirtualNetworkNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Deletes the virtual network resource." + "description": "OK" }, "204": { "description": "No content" @@ -165,7 +167,8 @@ } }, "patch": { - "operationId": "virtualnetworks_Update", + "operationId": "VirtualNetworks_Update", + "description": "The operation to update a virtual network.", "x-ms-examples": { "UpdateVirtualNetwork": { "$ref": "./examples/UpdateVirtualNetwork.json" @@ -173,23 +176,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/virtualnetworksNameParameter" + "$ref": "#/parameters/VirtualNetworkNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "virtualnetworks", + "name": "virtualNetworks", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/virtualnetworksPatch" + "$ref": "#/definitions/VirtualNetworksUpdateRequest" } } ], @@ -197,27 +200,34 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Updates the virtual network resource.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualnetworks" + "$ref": "#/definitions/VirtualNetworks" } }, "201": { - "description": "Updates the virtual network resource.", + "description": "Created", "schema": { - "$ref": "#/definitions/virtualnetworks" + "$ref": "#/definitions/VirtualNetworks" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/VirtualNetworks" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualnetworks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualNetworks": { "get": { - "operationId": "virtualnetworks_ListByResourceGroup", + "operationId": "VirtualNetworks_ListByResourceGroup", + "description": "Lists all of the virtual networks in the specified resource group. Use the nextLink property in the response to get the next page of virtual networks.", "x-ms-examples": { "ListVirtualNetworkByResourceGroup": { "$ref": "./examples/ListVirtualNetworkByResourceGroup.json" @@ -225,26 +235,26 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all virtual networks under the resource group.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualnetworksListResult" + "$ref": "#/definitions/VirtualNetworksListResult" } } }, @@ -253,9 +263,10 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualnetworks": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualNetworks": { "get": { - "operationId": "virtualnetworks_ListBySubscription", + "operationId": "VirtualNetworks_ListBySubscription", + "description": "Lists all of the virtual networks in the specified subscription. Use the nextLink property in the response to get the next page of virtual networks.", "x-ms-examples": { "ListVirtualNetworkBySubscription": { "$ref": "./examples/ListVirtualNetworkBySubscription.json" @@ -263,23 +274,23 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "200": { - "description": "Lists all virtual networks under the subscription.", + "description": "OK", "schema": { - "$ref": "#/definitions/virtualnetworksListResult" + "$ref": "#/definitions/VirtualNetworksListResult" } } }, @@ -290,10 +301,22 @@ } }, "definitions": { - "virtualnetworksProperties": { + "VirtualNetworkProperties": { "type": "object", "x-ms-client-flatten": true, "properties": { + "dhcpOptions": { + "description": "DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.", + "properties": { + "dnsServers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of DNS servers IP addresses." + } + } + }, "networkType": { "type": "string", "description": "Type of the network", @@ -320,6 +343,7 @@ "properties": { "name": { "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", "description": "Name - The name of the resource that is unique within a resource group. This name can be used to access the resource." }, "properties": { @@ -386,6 +410,7 @@ "properties": { "name": { "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", "description": "Name - name of the subnet" }, "properties": { @@ -443,6 +468,7 @@ }, "provisioningState": { "type": "string", + "description": "Provisioning state of the virtual network.", "readOnly": true, "enum": [ "Succeeded", @@ -457,18 +483,17 @@ "modelAsString": true } }, - "resourceName": { + "vmSwitchName": { "type": "string", - "description": "name of the object to be used in moc" + "description": "name of the network switch to be used for VMs" }, "status": { "$ref": "#/definitions/VirtualNetworkStatus" } }, - "description": "Properties of a virtual network resource" + "description": "Properties under the virtual network resource" }, "VirtualNetworkStatus": { - "type": "object", "x-ms-client-flatten": true, "readOnly": true, "properties": { @@ -481,8 +506,6 @@ "description": "Descriptive error message" }, "provisioningStatus": { - "type": "object", - "description": "The provisioning status of the virtual network", "properties": { "operationId": { "type": "string", @@ -497,14 +520,14 @@ "InProgress" ], "x-ms-enum": { - "name": "ProvisioningStatusEnum", + "name": "Status", "modelAsString": true } } } } }, - "description": "VirtualNetworkStatus defines the observed state of virtual networks" + "description": "The observed state of virtual networks" }, "IPPoolInfo": { "type": "object", @@ -549,31 +572,27 @@ } } }, - "virtualnetworks": { + "VirtualNetworks": { "type": "object", "description": "The virtual network resource definition.", "x-ms-azure-resource": true, - "x-ms-client-flatten": true, "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/virtualnetworksProperties" + "$ref": "#/definitions/VirtualNetworkProperties" }, "extendedLocation": { "$ref": "./common.json#/definitions/ExtendedLocation", "description": "The extendedLocation of the resource." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, - "virtualnetworksPatch": { + "VirtualNetworksUpdateRequest": { "type": "object", "properties": { "tags": { @@ -586,13 +605,13 @@ }, "description": "The virtual network resource patch definition." }, - "virtualnetworksListResult": { + "VirtualNetworksListResult": { "type": "object", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/virtualnetworks" + "$ref": "#/definitions/VirtualNetworks" } }, "nextLink": { @@ -602,14 +621,16 @@ } }, "parameters": { - "virtualnetworksNameParameter": { - "name": "virtualnetworksName", + "VirtualNetworkNameParameter": { + "name": "virtualNetworkName", "in": "path", "required": true, "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[_a-zA-Z0-9]$", "x-ms-parameter-location": "method", "maxLength": 64, - "minLength": 3 + "minLength": 2, + "description": "Name of the virtual network" } } } From eb6c85947e0af7eb3b0b3e85bb34b4a961259101 Mon Sep 17 00:00:00 2001 From: Patricia Huang Date: Wed, 22 Mar 2023 15:16:36 -0700 Subject: [PATCH 5/9] update readme --- .../azurestackhci/resource-manager/readme.md | 48 +++++++++++-------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/specification/azurestackhci/resource-manager/readme.md b/specification/azurestackhci/resource-manager/readme.md index 85873a1dd91a..d01c4483b256 100644 --- a/specification/azurestackhci/resource-manager/readme.md +++ b/specification/azurestackhci/resource-manager/readme.md @@ -29,7 +29,7 @@ title: AzureStackHCIClient description: Azure Stack HCI management service openapi-type: arm openapi-subtype: rpaas -tag: package-preview-2022-12 +tag: package-preview-2022-12-15 ``` ## Suppression @@ -42,6 +42,7 @@ directive: - clusters.json - extensions.json - galleryImages.json + - marketplaceGalleryImages.json - networkInterfaces.json - operations.json - storageContainers.json @@ -58,25 +59,6 @@ directive: ``` -### Tag: package-preview-2022-12 - -These settings apply only when `--tag=package-preview-2022-12` is specified on the command line. - -```yaml $(tag) == 'package-preview-2022-12' -input-file: - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json - - Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json -``` ### Tag: package-2023-02 These settings apply only when `--tag=package-2023-02` is specified on the command line. @@ -95,6 +77,32 @@ input-file: - Microsoft.AzureStackHCI/stable/2023-02-01/updates.json ``` +### Tag: package-preview-2022-12-15 + +These settings apply only when `--tag=package-preview-2022-12-15` is specified on the command line. + +``` yaml $(tag) == 'package-preview-2022-12-15' +input-file: + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/arcSettings.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/clusters.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/common.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/extensions.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/offers.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/operations.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/publishers.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/skus.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateRuns.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/updateSummaries.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/updates.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json + - Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json +``` + ### Tag: package-2022-12 These settings apply only when `--tag=package-2022-12` is specified on the command line. From 3528c6eccffb4f455c6c8d97bb3f5a5cccc6c42d Mon Sep 17 00:00:00 2001 From: Patricia Huang Date: Mon, 27 Mar 2023 13:37:28 -0700 Subject: [PATCH 6/9] add vhdx --- custom-words.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/custom-words.txt b/custom-words.txt index 69908e02d77d..52065e63cbce 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2357,6 +2357,7 @@ versionid Vertica Vfyc vhds +vhdx videosearch viewp vippool From 1b6390904e2d68fcbd3fa1ef3dfada9c12a3cd16 Mon Sep 17 00:00:00 2001 From: Patricia Huang Date: Wed, 17 May 2023 14:28:05 -0700 Subject: [PATCH 7/9] backport changes from https://github.com/Azure/azure-rest-api-specs-pr/pull/12162 --- .../examples/UpdateGalleryImage.json | 44 ++-------------- .../examples/UpdateMachineExtension.json | 5 +- .../UpdateMarketplaceGalleryImage.json | 50 ++----------------- .../examples/UpdateNetworkInterface.json | 28 ++--------- .../examples/UpdateStorageContainer.json | 22 ++------ .../examples/UpdateVirtualHardDisk.json | 28 ++--------- .../examples/UpdateVirtualMachine.json | 41 ++------------- .../examples/UpdateVirtualNetwork.json | 22 ++------ .../2022-12-15-preview/galleryImages.json | 10 ++-- .../marketplaceGalleryImages.json | 10 ++-- .../2022-12-15-preview/networkInterfaces.json | 10 ++-- .../2022-12-15-preview/storageContainers.json | 10 ++-- .../2022-12-15-preview/virtualHardDisks.json | 10 ++-- .../2022-12-15-preview/virtualMachines.json | 14 +++--- .../2022-12-15-preview/virtualNetworks.json | 10 ++-- 15 files changed, 55 insertions(+), 259 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json index 277fbf330d8b..4b4a39a92fd1 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json @@ -52,48 +52,10 @@ } } }, - "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": "Succeeded", - "containerName": "Default_Container", - "osType": "Linux", - "cloudInitDataSource": "NoCloud", - "hyperVGeneration": "V2", - "version": { - "properties": { - "storageProfile": { - "osDiskImage": { - "sizeInMB": 30270 - } - } - } - }, - "status": { - "provisioningStatus": { - "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", - "status": "Succeeded" - }, - "progressPercentage": 100, - "downloadStatus": { - "downloadSizeInMB": 9383 - } - } - } - } - }, "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + }, "body": { "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325", "name": "test-gallery-image", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json index 5eaf4b06cbfe..b5a003989a40 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json @@ -44,7 +44,10 @@ } } }, - "201": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + }, "body": { "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", "name": "CustomScriptExtension", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json index 467e000afdeb..45b5e49b2363 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json @@ -58,54 +58,10 @@ } } }, - "201": { - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", - "name": "test-marketplace-gallery-image", - "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", - "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": { - "containerName": "Default_Container", - "osType": "Windows", - "cloudInitDataSource": "Azure", - "hyperVGeneration": "V1", - "identifier": { - "publisher": "myPublisherName", - "offer": "myOfferName", - "sku": "mySkuName" - }, - "version": { - "name": "1.0.0", - "properties": { - "storageProfile": { - "osDiskImage": { - "sizeInMB": 30270 - } - } - } - }, - "status": { - "provisioningStatus": { - "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", - "status": "Succeeded" - }, - "progressPercentage": 100, - "downloadStatus": { - "downloadSizeInMB": 9383 - } - }, - "provisioningState": "Accepted" - } - } - }, "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + }, "body": { "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", "name": "test-marketplace-gallery-image", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json index 32a508bd3f81..2d09c88dc050 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json @@ -36,32 +36,10 @@ } } }, - "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": "Succeeded" - } - } - }, "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + }, "body": { "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", "name": "test-nic", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json index 583162cc1f5f..19f249be5b90 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json @@ -30,26 +30,10 @@ } } }, - "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" - } - } - }, "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + }, "body": { "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", "name": "Default_Container", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json index 0513400f3aeb..6d1bc7c2b50b 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json @@ -36,32 +36,10 @@ } } }, - "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": { - "diskSizeGB": 32, - "blockSizeBytes": 0, - "logicalSectorBytes": 512, - "physicalSectorBytes": 512, - "provisioningState": "Succeeded", - "diskFileFormat": "vhdx", - "hyperVGeneration": "V2", - "dynamic": true - } - } - }, "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + }, "body": { "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", "name": "test-vhd", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json index d9c2db02b6be..7f2130ba55d8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json @@ -48,45 +48,10 @@ } } }, - "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": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" - }, - "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" - }, - "hardwareProfile": { - "vmSize": "Default" - }, - "osProfile": { - "computerName": "luamaster", - "adminUsername": "localadmin" - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "test-nic" - } - ] - } - } - } - }, "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + }, "body": { "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachines/test-vm", "name": "test-vm", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json index e3f9688c8a69..6858ec3c3a29 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json @@ -30,26 +30,10 @@ } } }, - "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": "Succeeded" - } - } - }, "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + }, "body": { "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualNetworks/test-vnet", "name": "test-vnet", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json index 685bf016a4cb..58cf8d0bedf6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json @@ -175,6 +175,10 @@ "$ref": "./examples/UpdateGalleryImage.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/v3/types.json#/parameters/SubscriptionIdParameter" @@ -210,12 +214,6 @@ "$ref": "#/definitions/GalleryImages" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/GalleryImages" - } - }, "202": { "description": "Accepted", "schema": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json index ec95ffa4c28b..992c48c9b317 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json @@ -175,6 +175,10 @@ "$ref": "./examples/UpdateMarketplaceGalleryImage.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/v3/types.json#/parameters/SubscriptionIdParameter" @@ -210,12 +214,6 @@ "$ref": "#/definitions/MarketplaceGalleryImages" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MarketplaceGalleryImages" - } - }, "202": { "description": "Accepted", "schema": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json index 88cdd27daa8f..d400e3ca8df2 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json @@ -175,6 +175,10 @@ "$ref": "./examples/UpdateNetworkInterface.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/v3/types.json#/parameters/SubscriptionIdParameter" @@ -210,12 +214,6 @@ "$ref": "#/definitions/NetworkInterfaces" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/NetworkInterfaces" - } - }, "202": { "description": "Accepted", "schema": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json index 71b442a7d15a..87d9aa12a386 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json @@ -175,6 +175,10 @@ "$ref": "./examples/UpdateStorageContainer.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/v3/types.json#/parameters/SubscriptionIdParameter" @@ -210,12 +214,6 @@ "$ref": "#/definitions/StorageContainers" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StorageContainers" - } - }, "202": { "description": "Accepted", "schema": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json index 14497a40e1da..64e7f0c8a428 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json @@ -175,6 +175,10 @@ "$ref": "./examples/UpdateVirtualHardDisk.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/v3/types.json#/parameters/SubscriptionIdParameter" @@ -210,12 +214,6 @@ "$ref": "#/definitions/VirtualHardDisks" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/VirtualHardDisks" - } - }, "202": { "description": "Accepted", "schema": { diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json index 5803dd4badd6..1b8658564f95 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json @@ -181,6 +181,10 @@ "$ref": "./examples/UpdateVirtualMachine.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/v3/types.json#/parameters/SubscriptionIdParameter" @@ -216,12 +220,6 @@ "$ref": "#/definitions/VirtualMachines" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/VirtualMachines" - } - }, "202": { "description": "Accepted", "schema": { @@ -784,8 +782,8 @@ "$ref": "#/definitions/MachineExtension" } }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { "$ref": "#/definitions/MachineExtension" } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json index d7c4133f412d..c9256c5811ce 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json @@ -174,6 +174,10 @@ "$ref": "./examples/UpdateVirtualNetwork.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/v3/types.json#/parameters/SubscriptionIdParameter" @@ -209,12 +213,6 @@ "$ref": "#/definitions/VirtualNetworks" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/VirtualNetworks" - } - }, "202": { "description": "Accepted", "schema": { From 60c2a9c269caa55fccbda0e5f8c77fd38aede163 Mon Sep 17 00:00:00 2001 From: Patricia Huang Date: Tue, 23 May 2023 12:02:17 -0700 Subject: [PATCH 8/9] Remove response schema from patch 202 response --- .../preview/2022-12-15-preview/galleryImages.json | 5 +---- .../2022-12-15-preview/marketplaceGalleryImages.json | 5 +---- .../preview/2022-12-15-preview/networkInterfaces.json | 5 +---- .../preview/2022-12-15-preview/storageContainers.json | 5 +---- .../preview/2022-12-15-preview/virtualHardDisks.json | 5 +---- .../preview/2022-12-15-preview/virtualMachines.json | 10 ++-------- .../preview/2022-12-15-preview/virtualNetworks.json | 5 +---- 7 files changed, 8 insertions(+), 32 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json index 58cf8d0bedf6..7649abc6cb1d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/galleryImages.json @@ -215,10 +215,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/GalleryImages" - } + "description": "Accepted" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json index 992c48c9b317..55e94cf02433 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/marketplaceGalleryImages.json @@ -215,10 +215,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/MarketplaceGalleryImages" - } + "description": "Accepted" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json index d400e3ca8df2..7fa9be4e9173 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/networkInterfaces.json @@ -215,10 +215,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/NetworkInterfaces" - } + "description": "Accepted" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json index 87d9aa12a386..07ef3a9db687 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/storageContainers.json @@ -215,10 +215,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/StorageContainers" - } + "description": "Accepted" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json index 64e7f0c8a428..bfc091488d5d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualHardDisks.json @@ -215,10 +215,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/VirtualHardDisks" - } + "description": "Accepted" } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json index 1b8658564f95..a1421591550d 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualMachines.json @@ -221,10 +221,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/VirtualMachines" - } + "description": "Accepted" } } } @@ -783,10 +780,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/MachineExtension" - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json index c9256c5811ce..798815c177b8 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/virtualNetworks.json @@ -214,10 +214,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/VirtualNetworks" - } + "description": "Accepted" } } } From 7ba1ee37429ea334ddd44981f1a335231effd0da Mon Sep 17 00:00:00 2001 From: Patricia Huang Date: Tue, 23 May 2023 12:04:12 -0700 Subject: [PATCH 9/9] update patch example --- .../examples/UpdateGalleryImage.json | 39 ---------------- .../examples/UpdateMachineExtension.json | 20 --------- .../UpdateMarketplaceGalleryImage.json | 45 ------------------- .../examples/UpdateNetworkInterface.json | 23 ---------- .../examples/UpdateStorageContainer.json | 17 ------- .../examples/UpdateVirtualHardDisk.json | 23 ---------- .../examples/UpdateVirtualMachine.json | 36 --------------- .../examples/UpdateVirtualNetwork.json | 17 ------- 8 files changed, 220 deletions(-) diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json index 4b4a39a92fd1..c58887c5626a 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateGalleryImage.json @@ -55,45 +55,6 @@ "202": { "headers": { "azure-asyncoperation": "http://azure.async.operation/status" - }, - "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", - "containerName": "Default_Container", - "osType": "Linux", - "cloudInitDataSource": "NoCloud", - "hyperVGeneration": "V2", - "version": { - "properties": { - "storageProfile": { - "osDiskImage": { - "sizeInMB": 30270 - } - } - } - }, - "status": { - "provisioningStatus": { - "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", - "status": "Succeeded" - }, - "progressPercentage": 100, - "downloadStatus": { - "downloadSizeInMB": 9383 - } - } - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json index b5a003989a40..b60078583fb6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMachineExtension.json @@ -47,26 +47,6 @@ "202": { "headers": { "azure-asyncoperation": "http://azure.async.operation/status" - }, - "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/virtualMachines/myVirtualMachine/Extensions/CustomScriptExtension", - "name": "CustomScriptExtension", - "type": "Microsoft.AzureStackHCI/VirtualMachines/extensions", - "location": "eastus2euap", - "properties": { - "publisher": "Microsoft.Compute", - "type": "string", - "typeHandlerVersion": "1.10.3", - "autoUpgradeMinorVersion": false, - "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"}", - "provisioningState": "Succeeded", - "instanceView": { - "name": "CustomScriptExtension", - "type": "CustomScriptExtension", - "typeHandlerVersion": "1.10.3", - "status": {} - } - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json index 45b5e49b2363..be9fe235693c 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateMarketplaceGalleryImage.json @@ -61,51 +61,6 @@ "202": { "headers": { "azure-asyncoperation": "http://azure.async.operation/status" - }, - "body": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", - "name": "test-marketplace-gallery-image", - "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", - "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": { - "containerName": "Default_Container", - "osType": "Windows", - "cloudInitDataSource": "Azure", - "hyperVGeneration": "V1", - "identifier": { - "publisher": "myPublisherName", - "offer": "myOfferName", - "sku": "mySkuName" - }, - "version": { - "name": "1.0.0", - "properties": { - "storageProfile": { - "osDiskImage": { - "sizeInMB": 30270 - } - } - } - }, - "status": { - "provisioningStatus": { - "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", - "status": "Succeeded" - }, - "progressPercentage": 100, - "downloadStatus": { - "downloadSizeInMB": 9383 - } - }, - "provisioningState": "Accepted" - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json index 2d09c88dc050..ff4a19c3153f 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateNetworkInterface.json @@ -39,29 +39,6 @@ "202": { "headers": { "azure-asyncoperation": "http://azure.async.operation/status" - }, - "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" - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json index 19f249be5b90..e12f5bcf1315 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateStorageContainer.json @@ -33,23 +33,6 @@ "202": { "headers": { "azure-asyncoperation": "http://azure.async.operation/status" - }, - "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/2022-12-15-preview/examples/UpdateVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json index 6d1bc7c2b50b..a0b460308377 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualHardDisk.json @@ -39,29 +39,6 @@ "202": { "headers": { "azure-asyncoperation": "http://azure.async.operation/status" - }, - "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": { - "diskSizeGB": 32, - "blockSizeBytes": 0, - "logicalSectorBytes": 512, - "physicalSectorBytes": 512, - "provisioningState": "Accepted", - "diskFileFormat": "vhdx", - "hyperVGeneration": "V2", - "dynamic": true - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json index 7f2130ba55d8..34c1febc0394 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualMachine.json @@ -51,42 +51,6 @@ "202": { "headers": { "azure-asyncoperation": "http://azure.async.operation/status" - }, - "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": { - "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" - }, - "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" - }, - "hardwareProfile": { - "vmSize": "Default" - }, - "osProfile": { - "computerName": "luamaster", - "adminUsername": "localadmin" - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "test-nic" - } - ] - } - } } } } diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json index 6858ec3c3a29..769f31da93c6 100644 --- a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2022-12-15-preview/examples/UpdateVirtualNetwork.json @@ -33,23 +33,6 @@ "202": { "headers": { "azure-asyncoperation": "http://azure.async.operation/status" - }, - "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" - } } } }