diff --git a/custom-words.txt b/custom-words.txt index b28a5362f721..86c004c47426 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -654,6 +654,8 @@ EIRP eirpd Einsteinweg Ekaterinburg +ElasticSan +ElasticSans ekus Eloqua enableautoscale @@ -1987,6 +1989,7 @@ storageimportexport storagesources storagesync storagetarget +storagetargetinfo storageuri storsimple streamanalytics @@ -2009,6 +2012,7 @@ sublists submount subnames subnet +subnetid subnetname subnets subnet's @@ -2310,6 +2314,13 @@ vnetid Vnets voip Volapük +volume +volumes +volumename +volumesize +volumegroup +volumegroupname +volumegroups Vpnclient vpnconfiguration vpndeviceconfigurationscript diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/elasticsan.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/elasticsan.json new file mode 100644 index 000000000000..01a269a1c598 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/elasticsan.json @@ -0,0 +1,2106 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-11-20-preview", + "title": "ElasticSanManagement" + }, + "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" + } + } + }, + "tags": [ + { + "name": "ElasticSans", + "description": "APIs for ElasticSan operations." + }, + { + "name": "ElasticSanOperations", + "description": "APIs for ElasticSan operations," + }, + { + "name": "VolumeGroups", + "description": "APIs for Volume Group operations." + }, + { + "name": "Volumes", + "description": "APIs for Volume operations." + } + ], + "paths": { + "/providers/Microsoft.ElasticSan/operations": { + "get": { + "tags": [ + "Elastic San Operations" + ], + "operationId": "Operations_List", + "description": "Gets a list of ElasticSan operations.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ElasticSanOperationListResult" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Operations_List_MaximumSet_Gen": { + "$ref": "./examples/Operations_List_MaximumSet_Gen.json" + }, + "Operations_List_MinimumSet_Gen": { + "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + } + } + } + }, + "/providers/Microsoft.ElasticSan/skus": { + "get": { + "tags": [ + "Elastic San Skus" + ], + "summary": "List all the available Skus in the region and information related to them", + "operationId": "Skus_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "Specify $filter='location eq ' to filter on location.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Lists the available SKUs supported by Microsoft.Storage for given subscription.", + "schema": { + "$ref": "#/definitions/SkuInformationList" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Skus_List_MaximumSet_Gen": { + "$ref": "./examples/Skus_List_MaximumSet_Gen.json" + }, + "Skus_List_MinimumSet_Gen": { + "$ref": "./examples/Skus_List_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/elasticSans": { + "get": { + "tags": [ + "ElasticSans" + ], + "operationId": "ElasticSans_ListBySubscription", + "description": "Gets a list of ElasticSans 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 -- Operation completed successfully; retrieved Elastic San by subscription", + "schema": { + "$ref": "#/definitions/ElasticSanList" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ElasticSans_ListBySubscription_MaximumSet_Gen": { + "$ref": "./examples/ElasticSans_ListBySubscription_MaximumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans": { + "get": { + "tags": [ + "ElasticSan" + ], + "operationId": "ElasticSans_ListByResourceGroup", + "description": "Gets a list of ElasticSan in a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Operation completed successfully; retrieved elasticSans by resource group", + "schema": { + "$ref": "#/definitions/ElasticSanList" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ElasticSans_ListByResourceGroup_MaximumSet_Gen": { + "$ref": "./examples/ElasticSans_ListByResourceGroup_MaximumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}": { + "put": { + "tags": [ + "ElasticSans" + ], + "operationId": "ElasticSans_Create", + "description": "Create ElasticSan.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ElasticSan" + }, + "description": "Elastic San object." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Returned when the create operation is successfully completed.", + "schema": { + "$ref": "#/definitions/ElasticSan" + } + }, + "202": { + "description": "Accepted -- Create request accepted; operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ElasticSan" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ElasticSans_Create_MaximumSet_Gen": { + "$ref": "./examples/ElasticSans_Create_MaximumSet_Gen.json" + } + } + }, + "patch": { + "tags": [ + "ElasticSans" + ], + "operationId": "ElasticSans_Update", + "description": "Update a Elastic San.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ElasticSanUpdate" + }, + "description": "Elastic San object." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- ElasticSAN properties updated successfully.", + "schema": { + "$ref": "#/definitions/ElasticSan" + } + }, + "202": { + "description": "Accepted -- Update request accepted; operation will complete asynchronously." + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ElasticSans_Update_MaximumSet_Gen": { + "$ref": "./examples/ElasticSans_Update_MaximumSet_Gen.json" + } + } + }, + "delete": { + "tags": [ + "ElasticSans" + ], + "operationId": "ElasticSans_Delete", + "description": "Delete a Elastic San.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/ForceDeleteVolumeGroupsParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Delete operation completed successfully." + }, + "202": { + "description": "Accepted -- Delete request accepted; operation will complete asynchronously." + }, + "204": { + "description": "NoContent --ElasticSAN does not exist in the subscription." + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ElasticSans_Delete_MaximumSet_Gen": { + "$ref": "./examples/ElasticSans_Delete_MaximumSet_Gen.json" + }, + "ElasticSans_Delete_MinimumSet_Gen": { + "$ref": "./examples/ElasticSans_Delete_MinimumSet_Gen.json" + } + } + }, + "get": { + "tags": [ + "ElasticSans" + ], + "operationId": "ElasticSans_Get", + "description": "Get a ElasticSan.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Operation completed successfully; retrieved ElasticSan.", + "schema": { + "$ref": "#/definitions/ElasticSan" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "ElasticSans_Get_MaximumSet_Gen": { + "$ref": "./examples/ElasticSans_Get_MaximumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumeGroups": { + "get": { + "tags": [ + "VolumeGroups" + ], + "description": "List VolumeGroups.", + "operationId": "VolumeGroups_ListByElasticSan", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Operation completed successfully; retrieved Volume Group List.", + "schema": { + "$ref": "#/definitions/VolumeGroupList" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "VolumeGroups_ListByElasticSan_MaximumSet_Gen": { + "$ref": "./examples/VolumeGroups_ListByElasticSan_MaximumSet_Gen.json" + }, + "VolumeGroups_ListByElasticSan_MinimumSet_Gen": { + "$ref": "./examples/VolumeGroups_ListByElasticSan_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}": { + "put": { + "tags": [ + "VolumeGroups" + ], + "description": "Create a Volume Group.", + "operationId": "VolumeGroups_Create", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/VolumeGroupNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VolumeGroup" + }, + "description": "Volume Group object." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Returned when the create operation is successfully completed.", + "schema": { + "$ref": "#/definitions/VolumeGroup" + } + }, + "202": { + "description": "Accepted -- Create request accepted; operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/VolumeGroup" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "VolumeGroups_Create_MaximumSet_Gen": { + "$ref": "./examples/VolumeGroups_Create_MaximumSet_Gen.json" + }, + "VolumeGroups_Create_MinimumSet_Gen": { + "$ref": "./examples/VolumeGroups_Create_MinimumSet_Gen.json" + } + } + }, + "patch": { + "tags": [ + "VolumeGroups" + ], + "description": "Update an VolumeGroup.", + "operationId": "VolumeGroups_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/VolumeGroupNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VolumeGroupUpdate" + }, + "description": "Volume Group object." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Returned when the update operation is successfully completed.", + "schema": { + "$ref": "#/definitions/VolumeGroup" + } + }, + "202": { + "description": "Accepted -- Update request accepted; operation will complete asynchronously." + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "VolumeGroups_Update_MaximumSet_Gen": { + "$ref": "./examples/VolumeGroups_Update_MaximumSet_Gen.json" + }, + "VolumeGroups_Update_MinimumSet_Gen": { + "$ref": "./examples/VolumeGroups_Update_MinimumSet_Gen.json" + } + } + }, + "delete": { + "tags": [ + "VolumeGroups" + ], + "description": "Delete an VolumeGroup.", + "operationId": "VolumeGroups_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/VolumeGroupNameParameter" + }, + { + "$ref": "#/parameters/ForceDeleteVolumesParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Delete operation completed successfully." + }, + "202": { + "description": "Accepted -- Delete request accepted; operation will complete asynchronously." + }, + "204": { + "description": "NoContent -- Resource does not exist in the subscription." + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "VolumeGroups_Delete_MaximumSet_Gen": { + "$ref": "./examples/VolumeGroups_Delete_MaximumSet_Gen.json" + }, + "VolumeGroups_Delete_MinimumSet_Gen": { + "$ref": "./examples/VolumeGroups_Delete_MinimumSet_Gen.json" + } + } + }, + "get": { + "tags": [ + "VolumeGroups" + ], + "description": "Get an VolumeGroups.", + "operationId": "VolumeGroups_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/VolumeGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation completed successfully; retrieved iSCSI Target.", + "schema": { + "$ref": "#/definitions/VolumeGroup" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "VolumeGroups_Get_MaximumSet_Gen": { + "$ref": "./examples/VolumeGroups_Get_MaximumSet_Gen.json" + }, + "VolumeGroups_Get_MinimumSet_Gen": { + "$ref": "./examples/VolumeGroups_Get_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}": { + "put": { + "tags": [ + "Volumes" + ], + "description": "Create a Volume.", + "operationId": "Volumes_Create", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/VolumeGroupNameParameter" + }, + { + "$ref": "#/parameters/VolumeNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Volume" + }, + "description": "Volume object." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Returned when the create operation is successfully completed.", + "schema": { + "$ref": "#/definitions/Volume" + } + }, + "202": { + "description": "Accepted -- Create request accepted; operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/Volume" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Volumes_Create_MaximumSet_Gen": { + "$ref": "./examples/Volumes_Create_MaximumSet_Gen.json" + }, + "Volumes_Create_MinimumSet_Gen": { + "$ref": "./examples/Volumes_Create_MinimumSet_Gen.json" + } + } + }, + "patch": { + "tags": [ + "Volumes" + ], + "description": "Update an Volume.", + "operationId": "Volumes_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/VolumeGroupNameParameter" + }, + { + "$ref": "#/parameters/VolumeNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VolumeUpdate" + }, + "description": "Volume object." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Returned when the update operation is successfully completed.", + "schema": { + "$ref": "#/definitions/Volume" + } + }, + "202": { + "description": "Accepted -- Update request accepted; operation will complete asynchronously." + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Volumes_Update_MaximumSet_Gen": { + "$ref": "./examples/Volumes_Update_MaximumSet_Gen.json" + }, + "Volumes_Update_MinimumSet_Gen": { + "$ref": "./examples/Volumes_Update_MinimumSet_Gen.json" + } + } + }, + "delete": { + "tags": [ + "Volumes" + ], + "description": "Delete an Volume.", + "operationId": "Volumes_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/VolumeGroupNameParameter" + }, + { + "$ref": "#/parameters/VolumeNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed successfully." + }, + "202": { + "description": "Delete request accepted; operation will complete asynchronously." + }, + "204": { + "description": "Resource does not exist in the subscription." + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Volumes_Delete_MaximumSet_Gen": { + "$ref": "./examples/Volumes_Delete_MaximumSet_Gen.json" + }, + "Volumes_Delete_MinimumSet_Gen": { + "$ref": "./examples/Volumes_Delete_MinimumSet_Gen.json" + } + } + }, + "get": { + "tags": [ + "Volumes" + ], + "description": "Get an Volume.", + "operationId": "Volumes_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/VolumeGroupNameParameter" + }, + { + "$ref": "#/parameters/VolumeNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation completed successfully; retrieved Volume.", + "schema": { + "$ref": "#/definitions/Volume" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "Volumes_Get_MaximumSet_Gen": { + "$ref": "./examples/Volumes_Get_MaximumSet_Gen.json" + }, + "Volumes_Get_MinimumSet_Gen": { + "$ref": "./examples/Volumes_Get_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes": { + "get": { + "tags": [ + "Volumes" + ], + "description": "List Volumes in a VolumeGroup.", + "operationId": "Volumes_ListByVolumeGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ElasticSanNameParameter" + }, + { + "$ref": "#/parameters/VolumeGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation completed successfully; retrieved volumes in a volume group.", + "schema": { + "$ref": "#/definitions/VolumeList" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Volumes_ListByVolumeGroup_MaximumSet_Gen": { + "$ref": "./examples/Volumes_ListByVolumeGroup_MaximumSet_Gen.json" + }, + "Volumes_ListByVolumeGroup_MinimumSet_Gen": { + "$ref": "./examples/Volumes_ListByVolumeGroup_MinimumSet_Gen.json" + } + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription.", + "minLength": 1 + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation.", + "minLength": 1 + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._]*[0-9A-Za-z]$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "ElasticSanNameParameter": { + "name": "elasticSanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ElasticSan.", + "pattern": "^[A-Za-z0-9]+((-|_)[a-z0-9A-Z]+)*$", + "minLength": 3, + "maxLength": 24, + "x-ms-parameter-location": "method" + }, + "VolumeGroupNameParameter": { + "name": "volumeGroupName", + "type": "string", + "required": true, + "in": "path", + "description": "The name of the VolumeGroup.", + "pattern": "^[A-Za-z0-9]+((-|_)[a-z0-9A-Z]+)*$", + "minLength": 3, + "maxLength": 63, + "x-ms-parameter-location": "method" + }, + "VolumeNameParameter": { + "name": "volumeName", + "type": "string", + "required": true, + "in": "path", + "description": "The name of the Volume.", + "pattern": "^[a-z0-9]+(-[a-z0-9A-Z]+)*$", + "minLength": 3, + "maxLength": 63, + "x-ms-parameter-location": "method" + }, + "ForceDeleteVolumesParameter": { + "name": "x-ms-delete-volumes", + "x-ms-client-name": "forceDeleteVolumes", + "description": "Required if the Volume Group has associated volumes", + "x-ms-parameter-location": "method", + "in": "header", + "required": false, + "type": "boolean" + }, + "ForceDeleteVolumeGroupsParameter": { + "name": "x-ms-delete-volumegroups", + "x-ms-client-name": "forceDeleteVolumeGroups", + "description": "Required if the San has associated Volume Groups", + "x-ms-parameter-location": "method", + "in": "header", + "required": false, + "type": "boolean" + } + }, + "definitions": { + "ElasticSanOperationDisplay": { + "type": "object", + "required": [ + "provider", + "resource", + "operation", + "description" + ], + "description": "Metadata about an operation.", + "additionalProperties": false, + "properties": { + "provider": { + "type": "string", + "description": "Localized friendly form of the resource provider name." + }, + "resource": { + "type": "string", + "description": "Localized friendly form of the resource type related to this action/operation." + }, + "operation": { + "type": "string", + "description": "Localized friendly name for the operation, as it should be shown to the user." + }, + "description": { + "type": "string", + "description": "Localized friendly description for the operation, as it should be shown to the user." + } + } + }, + "ElasticSanRPOperation": { + "type": "object", + "required": [ + "name" + ], + "description": "Description of a ElasticSan RP Operation", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "description": "The name of the operation being performed on this particular object" + }, + "isDataAction": { + "type": "boolean", + "description": "Indicates whether the operation applies to data-plane.", + "readOnly": true + }, + "display": { + "description": "Additional metadata about RP operation.", + "$ref": "#/definitions/ElasticSanOperationDisplay", + "readOnly": true + } + } + }, + "ElasticSanOperationListResult": { + "type": "object", + "required": [ + "value" + ], + "description": "List of operations supported by the RP.", + "additionalProperties": false, + "properties": { + "value": { + "type": "array", + "description": "An array of operations supported by the ElasticSan RP.", + "items": { + "$ref": "#/definitions/ElasticSanRPOperation" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "URI to fetch the next section of the paginated response.", + "type": "string" + } + } + }, + "ElasticSanList": { + "type": "object", + "required": [ + "value" + ], + "description": "List of Elastic Sans", + "additionalProperties": false, + "properties": { + "value": { + "description": "An array of Elastic San objects.", + "type": "array", + "items": { + "$ref": "#/definitions/ElasticSan" + } + }, + "nextLink": { + "description": "URI to fetch the next section of the paginated response.", + "type": "string", + "readOnly": true + } + } + }, + "ElasticSan": { + "type": "object", + "description": "Response for ElasticSan request.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties of ElasticSan.", + "$ref": "#/definitions/ElasticSanProperties" + }, + "systemData": { + "description": "Resource metadata required by ARM RPC", + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ] + }, + "ElasticSanProperties": { + "type": "object", + "description": "Elastic San response properties.", + "required": [ + "availabilityZones", + "baseSizeTiB", + "extendedCapacitySizeTiB" + ], + "properties": { + "sku": { + "description": "resource sku", + "$ref": "#/definitions/Sku" + }, + "availabilityZones": { + "type": "array", + "description": "Logical zone for Elastic San resource; example: [\"1\"].", + "items": { + "$ref": "#/definitions/AvailabilityZone" + } + }, + "provisioningState": { + "description": "State of the operation on the resource.", + "$ref": "#/definitions/ProvisioningState", + "readOnly": true + }, + "baseSizeTiB": { + "description": "Base size of the Elastic San appliance in TiB.", + "type": "integer", + "format": "int64", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedCapacitySizeTiB": { + "description": "Extended size of the Elastic San appliance in TiB.", + "type": "integer", + "format": "int64", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "totalVolumeSizeGiB": { + "description": "Total size of the provisioned Volumes in GiB.", + "type": "integer", + "format": "int64", + "readOnly": true + }, + "volumeGroupCount": { + "description": "Total number of volume groups in this Elastic San appliance.", + "type": "integer", + "format": "int64", + "readOnly": true + }, + "totalIops": { + "description": "Total Provisioned IOPS of the Elastic San appliance.", + "type": "integer", + "format": "int64", + "readOnly": true + }, + "totalMBps": { + "description": "Total Provisioned MBps Elastic San appliance.", + "type": "integer", + "format": "int64", + "readOnly": true + }, + "provisionedMBps": { + "description": "Provisioned MBps Elastic San appliance.", + "type": "integer", + "format": "int64", + "readOnly": true + } + } + }, + "ElasticSanUpdate": { + "type": "object", + "description": "Response for ElasticSan update request.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties of ElasticSan.", + "$ref": "#/definitions/ElasticSanUpdateProperties" + }, + "tags": { + "type": "object", + "description": "Update tags", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ElasticSanUpdateProperties": { + "type": "object", + "description": "Elastic San update properties.", + "required": [ + "baseSizeTiB", + "extendedCapacitySizeTiB" + ], + "properties": { + "baseSizeTiB": { + "description": "Base size of the Elastic San appliance in TiB.", + "type": "integer", + "format": "int64", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedCapacitySizeTiB": { + "description": "Extended size of the Elastic San appliance in TiB.", + "type": "integer", + "format": "int64", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "AvailabilityZone": { + "type": "string", + "description": "Availability zone." + }, + "SkuInformationList": { + "description": "List of SKU Information objects", + "type": "object", + "properties": { + "value": { + "description": "List of ResourceType Sku", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceTypeSku" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "nextLink": { + "description": "Links to the next set of results", + "type": "string", + "readOnly": true + } + } + }, + "ResourceTypeSku": { + "description": "SkuInformation object", + "type": "object", + "properties": { + "sku": { + "description": "The Sku tier", + "$ref": "#/definitions/Sku" + }, + "locationInfo": { + "description": "Availability of the SKU for the location/zone", + "type": "array", + "items": { + "$ref": "#/definitions/SkuLocationInfo" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "san": { + "description": "Scalability targets for the San account for a given tier", + "type": "object", + "$ref": "#/definitions/SanTierInfo" + }, + "volumeGroup": { + "description": "Volume Group targets for the San account for a given tier", + "type": "object", + "$ref": "#/definitions/VolumeGroupTierInfo" + }, + "volume": { + "description": "Volume targets for the San account for a given tier", + "type": "object", + "$ref": "#/definitions/VolumeTierInfo" + } + } + }, + "SanTierInfo": { + "description": "San scalability target", + "type": "object", + "properties": { + "maxSizeTiB": { + "type": "integer", + "format": "int64", + "description": "Maximum San account capacity in TiB", + "readOnly": true + }, + "minSizeTiB": { + "type": "integer", + "format": "int64", + "description": "Minimum San account capacity in TiB", + "readOnly": true + }, + "minIncrementSizeTiB": { + "type": "integer", + "format": "int64", + "description": "Increment the San capacity in TiB", + "readOnly": true + }, + "iopsPerBaseTiB": { + "type": "integer", + "format": "int64", + "description": "Maximum IOPS per BaseTiB", + "readOnly": true + }, + "mbpsPerBaseTiB": { + "type": "integer", + "format": "int64", + "description": "Maximum MBps per BaseTiB", + "readOnly": true + }, + "maxIops": { + "type": "integer", + "format": "int64", + "description": "Maximum IOPS", + "readOnly": true + }, + "maxMBps": { + "type": "integer", + "format": "int64", + "description": "Maximum MBps", + "readOnly": true + }, + "maxVolumeGroupCount": { + "type": "integer", + "format": "int64", + "description": "Maximum number of volume groups per San account", + "readOnly": true + } + } + }, + "VolumeGroupTierInfo": { + "description": "Volume Group scalability target", + "type": "object", + "properties": { + "maxVolumeCount": { + "type": "integer", + "format": "int64", + "description": "Maximum number of Volumes per Volume Groups per San account", + "readOnly": true + } + } + }, + "VolumeTierInfo": { + "description": "Volume scalability target", + "type": "object", + "properties": { + "maxSizeGiB": { + "type": "integer", + "format": "int64", + "description": "Maximum volume capacity in GiB", + "readOnly": true + }, + "minSizeGiB": { + "type": "integer", + "format": "int64", + "description": "Minimum volume capacity in GiB", + "readOnly": true + }, + "minIncrementSizeGiB": { + "type": "integer", + "format": "int64", + "description": "Increment volume capacity in GiB", + "readOnly": true + }, + "maxIopsPerGiB": { + "type": "integer", + "format": "int64", + "description": "Maximum IOPS per GiB", + "readOnly": true + }, + "maxMBpsPerGiB": { + "type": "integer", + "format": "int64", + "description": "Maximum MBps", + "readOnly": true + }, + "maxIops": { + "type": "integer", + "format": "int64", + "description": "Maximum IOPS", + "readOnly": true + }, + "maxMBps": { + "type": "integer", + "format": "int64", + "description": "Maximum MBps", + "readOnly": true + }, + "maxConnectedClientCount": { + "type": "integer", + "format": "int64", + "description": "Maximum number of connected clients count per Volume", + "readOnly": true + } + } + }, + "SkuLocationInfo": { + "description": "The location info.", + "type": "object", + "properties": { + "location": { + "description": "The location.", + "type": "string", + "readOnly": true + }, + "zones": { + "description": "The zones.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "enum": [ + "Standard_LRS", + "Premium_LRS", + "Standard_ZRS" + ], + "x-ms-enum": { + "name": "name", + "modelAsString": true, + "values": [ + { + "value": "Standard_LRS", + "description": "Standard locally redundant storage" + }, + { + "value": "Premium_LRS", + "description": "Premium locally redundant storage" + }, + { + "value": "Standard_ZRS", + "description": "Standard zone redundant storage" + } + ] + }, + "description": "The sku name." + }, + "tier": { + "type": "string", + "enum": [ + "Standard" + ], + "x-ms-enum": { + "name": "tier", + "modelAsString": true, + "values": [ + { + "value": "Hero", + "description": "Hero" + }, + { + "value": "Satellite", + "description": "Satellite" + }, + { + "value": "Hub", + "description": "Hub" + } + ] + }, + "description": "The sku tier." + } + }, + "description": "The SKU name. Required for account creation; optional for update." + }, + "IscsiTargetInfo": { + "type": "object", + "description": "Iscsi target information", + "readOnly": true, + "properties": { + "targetIqn": { + "type": "string", + "description": "iSCSI Target IQN (iSCSI Qualified Name); example: \"iqn.2005-03.org.iscsi:server\".", + "readOnly": true + }, + "targetPortalHostname": { + "type": "string", + "description": "iSCSI Target Portal Host Name", + "readOnly": true + }, + "targetPortalPort": { + "type": "integer", + "format": "int32", + "description": "iSCSI Target Portal Port", + "readOnly": true + }, + "provisioningState": { + "description": "State of the operation on the resource.", + "$ref": "#/definitions/ProvisioningState" + }, + "status": { + "$ref": "#/definitions/OperationalStatus", + "description": "Operational status of the iSCSI Target." + } + } + }, + "VolumeGroup": { + "type": "object", + "description": "Response for Volume Group request.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties of VolumeGroup.", + "$ref": "#/definitions/VolumeGroupProperties" + }, + "systemData": { + "description": "Resource metadata required by ARM RPC", + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ] + }, + "VolumeGroupList": { + "type": "object", + "required": [ + "value" + ], + "description": "List of Volume Groups", + "additionalProperties": false, + "properties": { + "value": { + "description": "An array of Volume Groups objects.", + "type": "array", + "items": { + "$ref": "#/definitions/VolumeGroup" + } + }, + "nextLink": { + "description": "URI to fetch the next section of the paginated response.", + "type": "string", + "readOnly": true + } + } + }, + "VolumeGroupProperties": { + "type": "object", + "description": "VolumeGroup response properties.", + "required": [ + "protocolType", + "encryption" + ], + "properties": { + "provisioningState": { + "description": "State of the operation on the resource.", + "$ref": "#/definitions/ProvisioningState" + }, + "protocolType": { + "description": "Type of storage target", + "$ref": "#/definitions/StorageTargetType" + }, + "encryption": { + "description": "Type of encryption", + "$ref": "#/definitions/EncryptionType" + }, + "networkAcls": { + "$ref": "#/definitions/NetworkRuleSet", + "description": "A collection of rules governing the accessibility from specific network locations.", + "x-ms-mutability": [ + "create", + "read" + ] + } + } + }, + "VolumeGroupUpdate": { + "type": "object", + "description": "Volume Group request.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties of VolumeGroup.", + "$ref": "#/definitions/VolumeGroupUpdateProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + } + }, + "VolumeGroupUpdateProperties": { + "type": "object", + "description": "VolumeGroup response properties.", + "required": [ + "protocolType", + "encryption" + ], + "properties": { + "protocolType": { + "description": "Type of storage target", + "$ref": "#/definitions/StorageTargetType" + }, + "encryption": { + "description": "Type of encryption", + "$ref": "#/definitions/EncryptionType" + }, + "networkAcls": { + "$ref": "#/definitions/NetworkRuleSet", + "description": "A collection of rules governing the accessibility from specific network locations.", + "x-ms-mutability": [ + "create", + "read" + ] + } + } + }, + "Volume": { + "type": "object", + "description": "Response for Volume request.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties of Volume.", + "$ref": "#/definitions/VolumeProperties" + }, + "systemData": { + "description": "Resource metadata required by ARM RPC", + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ] + }, + "VolumeList": { + "type": "object", + "required": [ + "value" + ], + "description": "List of Volumes", + "additionalProperties": false, + "properties": { + "value": { + "description": "An array of Volume objects.", + "type": "array", + "items": { + "$ref": "#/definitions/Volume" + } + }, + "nextLink": { + "description": "URI to fetch the next section of the paginated response.", + "type": "string", + "readOnly": true + } + } + }, + "VolumeProperties": { + "type": "object", + "description": "Volume response properties.", + "properties": { + "volumeId": { + "description": "Unique Id of the volume in GUID format", + "type": "string", + "readOnly": true + }, + "creationData": { + "description": "State of the operation on the resource.", + "$ref": "#/definitions/SourceCreationData" + }, + "sizeGiB": { + "description": "Volume size.", + "type": "integer", + "format": "int64" + }, + "storageTarget": { + "description": "Storage target information", + "$ref": "#/definitions/IscsiTargetInfo" + } + } + }, + "VolumeUpdate": { + "type": "object", + "description": "Response for Volume request.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties of Volume.", + "$ref": "#/definitions/VolumeUpdateProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + } + }, + "VolumeUpdateProperties": { + "type": "object", + "description": "Volume response properties.", + "properties": { + "sizeGiB": { + "description": "Volume size.", + "type": "integer", + "format": "int64" + } + } + }, + "SourceCreationData": { + "type": "object", + "description": "Data used when creating a disk.", + "required": [ + "createSource" + ], + "properties": { + "createSource": { + "type": "string", + "enum": [ + "None", + "FromVolume", + "FromDiskSnapshot", + "Export" + ], + "x-ms-enum": { + "name": "VolumeCreateOption", + "modelAsString": false + }, + "description": "This enumerates the possible sources of a volume creation." + }, + "sourceUri": { + "type": "string", + "description": "If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point." + } + } + }, + "TargetCreationData": { + "type": "object", + "description": "Data used when creating a disk.", + "required": [ + "targetUri" + ], + "properties": { + "targetUri": { + "type": "string", + "description": "Target location for the source to be copied or exported" + } + } + }, + "Error": { + "type": "object", + "description": "The resource management error response.", + "properties": { + "error": { + "description": "RP error response.", + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "ProvisioningState": { + "type": "string", + "enum": [ + "Invalid", + "Succeeded", + "Failed", + "Canceled", + "Pending", + "Creating", + "Updating", + "Deleting" + ], + "x-ms-enum": { + "name": "ProvisioningStates", + "modelAsString": true + }, + "description": "Provisioning state of the iSCSI Target.", + "readOnly": true + }, + "OperationalStatus": { + "type": "string", + "enum": [ + "Invalid", + "Unknown", + "Healthy", + "Unhealthy", + "Updating", + "Running", + "Stopped", + "Stopped (deallocated)" + ], + "x-ms-enum": { + "name": "OperationalStatus", + "modelAsString": true + }, + "description": "Operational status of the resource." + }, + "StorageTargetType": { + "type": "string", + "enum": [ + "Iscsi", + "None" + ], + "x-ms-enum": { + "name": "StorageTargetType", + "modelAsString": true + }, + "description": "Storage Target type." + }, + "EncryptionType": { + "type": "string", + "description": "The type of key used to encrypt the data of the disk.", + "enum": [ + "EncryptionAtRestWithPlatformKey", + "EncryptionAtRestWithCustomerKey", + "EncryptionAtRestWithPlatformAndCustomerKeys" + ], + "x-ms-enum": { + "name": "EncryptionType", + "modelAsString": true, + "values": [ + { + "value": "EncryptionAtRestWithPlatformKey", + "description": "Volume is encrypted at rest with Platform managed key. It is the default encryption type. This is not a valid encryption type for disk encryption sets." + }, + { + "value": "EncryptionAtRestWithCustomerKey", + "description": "Volume is encrypted at rest with Customer managed key that can be changed and revoked by a customer." + }, + { + "value": "EncryptionAtRestWithPlatformAndCustomerKeys", + "description": "Volume is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed." + } + ] + } + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked top level resource.", + "type": "object", + "properties": { + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "Resource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Azure resource identifier.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Azure resource name.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Azure resource type.", + "readOnly": true + }, + "tags": { + "type": "object", + "description": "Azure resource tags.", + "additionalProperties": { + "type": "string" + } + } + }, + "description": "The resource model definition.", + "x-ms-azure-resource": true + }, + "ErrorAdditionalInfo": { + "description": "The resource management error additional info.", + "type": "object", + "x-ms-identifiers": [], + "properties": { + "type": { + "readOnly": true, + "type": "string", + "description": "The additional info type." + }, + "info": { + "readOnly": true, + "type": "object", + "description": "The additional info." + } + } + }, + "ErrorResponse": { + "type": "object", + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The error code." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message." + }, + "target": { + "readOnly": true, + "type": "string", + "description": "The error target." + }, + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorResponse" + }, + "x-ms-identifiers": [], + "description": "The error details." + }, + "additionalInfo": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorAdditionalInfo" + }, + "x-ms-identifiers": [], + "description": "The error additional info." + } + }, + "description": "The resource management error response." + }, + "NetworkRuleSet": { + "type": "object", + "properties": { + "virtualNetworkRules": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + }, + "description": "The list of virtual network rules." + } + }, + "description": "A set of rules governing the network accessibility." + }, + "VirtualNetworkRule": { + "type": "object", + "properties": { + "id": { + "type": "string", + "x-ms-client-name": "VirtualNetworkResourceId", + "description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}." + }, + "action": { + "type": "string", + "enum": [ + "Allow" + ], + "x-ms-enum": { + "name": "Action", + "modelAsString": false + }, + "default": "Allow", + "description": "The action of virtual network rule." + }, + "state": { + "type": "string", + "readOnly": true, + "enum": [ + "provisioning", + "deprovisioning", + "succeeded", + "failed", + "networkSourceDeleted" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": false + }, + "description": "Gets the state of virtual network rule." + } + }, + "required": [ + "id" + ], + "description": "Virtual Network rule." + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Create_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Create_MaximumSet_Gen.json new file mode 100644 index 000000000000..5d516b41609b --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Create_MaximumSet_Gen.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "parameters": { + "properties": { + "sku": { + "name": "Standard_LRS", + "tier": "Standard" + }, + "availabilityZones": [ + "aaaaaaaaaaaaaaaaaaaaaaaaa" + ], + "baseSizeTiB": 26, + "extendedCapacitySizeTiB": 4 + }, + "location": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "tags": { + "key3875": "aaaaaaaaa" + } + }, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "sku": { + "name": "Standard_LRS", + "tier": "Standard" + }, + "availabilityZones": [ + "aaaaaaaaaaaaaaaaaaaaaaaaa" + ], + "provisioningState": "Invalid", + "baseSizeTiB": 26, + "extendedCapacitySizeTiB": 4, + "totalVolumeSizeGiB": 24, + "volumeGroupCount": 13, + "totalIops": 3, + "totalMBps": 8, + "provisionedMBps": 19 + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o", + "name": "33zg-7s_4_7L2_65o", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3875": "aaaaaaaaa" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + }, + "body": { + "properties": { + "sku": { + "name": "Standard_LRS", + "tier": "Standard" + }, + "availabilityZones": [ + "aaaaaaaaaaaaaaaaaaaaaaaaa" + ], + "provisioningState": "Invalid", + "baseSizeTiB": 26, + "extendedCapacitySizeTiB": 4, + "totalVolumeSizeGiB": 24, + "volumeGroupCount": 13, + "totalIops": 3, + "totalMBps": 8, + "provisionedMBps": 19 + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o", + "name": "33zg-7s_4_7L2_65o", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3875": "aaaaaaaaa" + } + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Delete_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..387047ac5358 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Delete_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "x-ms-delete-volumegroups": true, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Delete_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Delete_MinimumSet_Gen.json new file mode 100644 index 000000000000..afe0f508b147 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Delete_MinimumSet_Gen.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Get_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..1b9e412482ec --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Get_MaximumSet_Gen.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "sku": { + "name": "Standard_LRS", + "tier": "Standard" + }, + "availabilityZones": [ + "aaaaaaaaaaaaaaaaaaaaaaaaa" + ], + "provisioningState": "Invalid", + "baseSizeTiB": 26, + "extendedCapacitySizeTiB": 4, + "totalVolumeSizeGiB": 24, + "volumeGroupCount": 13, + "totalIops": 3, + "totalMBps": 8, + "provisionedMBps": 19 + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o", + "name": "33zg-7s_4_7L2_65o", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3875": "aaaaaaaaa" + } + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_ListByResourceGroup_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_ListByResourceGroup_MaximumSet_Gen.json new file mode 100644 index 000000000000..4c5898983877 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_ListByResourceGroup_MaximumSet_Gen.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "sku": { + "name": "Standard_LRS", + "tier": "Standard" + }, + "availabilityZones": [ + "aaaaaaaaaaaaaaaaaaaaaaaaa" + ], + "provisioningState": "Invalid", + "baseSizeTiB": 26, + "extendedCapacitySizeTiB": 4, + "totalVolumeSizeGiB": 24, + "volumeGroupCount": 13, + "totalIops": 3, + "totalMBps": 8, + "provisionedMBps": 19 + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/aaaaaaaaaaaa", + "name": "aaaaaaaaaaaa", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3875": "aaaaaaaaa" + } + } + ], + "nextLink": "aaaaaaaaaaaaaaaaa" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_ListBySubscription_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..9e40de49c442 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "sku": { + "name": "Standard_LRS", + "tier": "Standard" + }, + "availabilityZones": [ + "aaaaaaaaaaaaaaaaaaaaaaaaa" + ], + "provisioningState": "Invalid", + "baseSizeTiB": 26, + "extendedCapacitySizeTiB": 4, + "totalVolumeSizeGiB": 24, + "volumeGroupCount": 13, + "totalIops": 3, + "totalMBps": 8, + "provisionedMBps": 19 + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/{resourcegroup}/providers/Microsoft.ElasticSan/elasticSans/aaaaaaaaaaaa", + "name": "aaaaaaaaaaaa", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3875": "aaaaaaaaa" + } + } + ], + "nextLink": "aaaaaaaaaaaaaaaaa" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Update_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..aa5e86f75ba5 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Update_MaximumSet_Gen.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "parameters": { + "properties": { + "baseSizeTiB": 2, + "extendedCapacitySizeTiB": 28 + }, + "tags": { + "key337": "aaaa" + } + }, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "sku": { + "name": "Standard_LRS", + "tier": "Standard" + }, + "availabilityZones": [ + "aaaaaaaaaaaaaaaaaaaaaaaaa" + ], + "provisioningState": "Invalid", + "baseSizeTiB": 26, + "extendedCapacitySizeTiB": 4, + "totalVolumeSizeGiB": 24, + "volumeGroupCount": 13, + "totalIops": 3, + "totalMBps": 8, + "provisionedMBps": 19 + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o", + "name": "33zg-7s_4_7L2_65o", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3875": "aaaaaaaaa" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..a49bdad05e93 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "aaaaaaaaaaaaaaaaaa", + "isDataAction": true, + "display": { + "provider": "aaaaaaaaaaaaaaaaaaaa", + "resource": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "operation": "aa", + "description": "aaaaaaaaaaaaaa" + } + } + ], + "nextLink": "aaaaaaaaaaaaaaaaaaaaaaaaaaa" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..d3e8e88cc1fc --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "aaaaaaaaaaaaaaaaaa" + } + ] + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..f04faa6c1cb6 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MaximumSet_Gen.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2021-11-20-preview", + "$filter": "aaaaaaaaaaaa" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "sku": { + "name": "Standard_LRS", + "tier": "Standard" + }, + "locationInfo": [ + { + "location": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "zones": [ + "aaaaaaaaaaaaaaaaaaaaaaaaaaa" + ] + } + ], + "san": { + "maxSizeTiB": 2, + "minSizeTiB": 20, + "minIncrementSizeTiB": 24, + "iopsPerBaseTiB": 29, + "mbpsPerBaseTiB": 18, + "maxIops": 26, + "maxMBps": 12, + "maxVolumeGroupCount": 26 + }, + "volumeGroup": { + "maxVolumeCount": 2 + }, + "volume": { + "maxSizeGiB": 29, + "minSizeGiB": 10, + "minIncrementSizeGiB": 17, + "maxIopsPerGiB": 6, + "maxMBpsPerGiB": 30, + "maxIops": 17, + "maxMBps": 21, + "maxConnectedClientCount": 15 + } + } + ], + "nextLink": "aaaaaaaaaaaaaaaaaaaa" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..cb31672e77cd --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MinimumSet_Gen.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MaximumSet_Gen.json new file mode 100644 index 000000000000..e976e86005bc --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MaximumSet_Gen.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "parameters": { + "properties": { + "protocolType": "Iscsi", + "encryption": "EncryptionAtRestWithPlatformKey", + "networkAcls": { + "virtualNetworkRules": [ + { + "id": "aa", + "action": "Allow" + } + ] + } + }, + "location": "aaaaaaaaaaaaaaaaaaaaaa", + "tags": { + "key3582": "a" + } + }, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Invalid", + "protocolType": "Iscsi", + "encryption": "EncryptionAtRestWithPlatformKey", + "networkAcls": { + "virtualNetworkRules": [ + { + "id": "aa", + "action": "Allow", + "state": "provisioning" + } + ] + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/9_67U25-1f2gR3-b6L-4T5", + "name": "9_67U25-1f2gR3-b6L-4T5", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3582": "a" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Invalid", + "protocolType": "Iscsi", + "encryption": "EncryptionAtRestWithPlatformKey", + "networkAcls": { + "virtualNetworkRules": [ + { + "id": "aa", + "action": "Allow", + "state": "provisioning" + } + ] + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/9_67U25-1f2gR3-b6L-4T5", + "name": "9_67U25-1f2gR3-b6L-4T5", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3582": "a" + } + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MinimumSet_Gen.json new file mode 100644 index 000000000000..7ef4699ccf0f --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "parameters": {}, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": {} + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + }, + "body": {} + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..16a6f2a610ee --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "x-ms-delete-volumes": true, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MinimumSet_Gen.json new file mode 100644 index 000000000000..0c00b3281ce2 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MinimumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..5e69b18d4a8c --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MaximumSet_Gen.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Invalid", + "protocolType": "Iscsi", + "encryption": "EncryptionAtRestWithPlatformKey", + "networkAcls": { + "virtualNetworkRules": [ + { + "id": "aa", + "action": "Allow", + "state": "provisioning" + } + ] + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/9_67U25-1f2gR3-b6L-4T5", + "name": "9_67U25-1f2gR3-b6L-4T5", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3582": "a" + } + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MinimumSet_Gen.json new file mode 100644 index 000000000000..2e3465a5d409 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MinimumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MaximumSet_Gen.json new file mode 100644 index 000000000000..1ab43780ccfc --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MaximumSet_Gen.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Invalid", + "protocolType": "Iscsi", + "encryption": "EncryptionAtRestWithPlatformKey", + "networkAcls": { + "virtualNetworkRules": [ + { + "id": "aa", + "action": "Allow", + "state": "provisioning" + } + ] + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/aaaaaaaaaaaaaaaaaaaaa", + "name": "aaaaaaaaaaaaaaaaaaaaa", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3582": "a" + } + } + ], + "nextLink": "aa" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MinimumSet_Gen.json new file mode 100644 index 000000000000..b0c16994590e --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MinimumSet_Gen.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + {} + ] + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..71a6b7053084 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MaximumSet_Gen.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "parameters": { + "properties": { + "protocolType": "Iscsi", + "encryption": "EncryptionAtRestWithPlatformKey", + "networkAcls": { + "virtualNetworkRules": [ + { + "id": "aa", + "action": "Allow" + } + ] + } + }, + "tags": { + "key7736": "aa" + } + }, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Invalid", + "protocolType": "Iscsi", + "encryption": "EncryptionAtRestWithPlatformKey", + "networkAcls": { + "virtualNetworkRules": [ + { + "id": "aa", + "action": "Allow", + "state": "provisioning" + } + ] + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaaaaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/9_67U25-1f2gR3-b6L-4T5", + "name": "9_67U25-1f2gR3-b6L-4T5", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key3582": "a" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MinimumSet_Gen.json new file mode 100644 index 000000000000..fa51f907d808 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "parameters": {}, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": {} + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MaximumSet_Gen.json new file mode 100644 index 000000000000..40595ac07e67 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MaximumSet_Gen.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "volumeName": "vt-h45-18D68-j3sg8", + "parameters": { + "properties": { + "creationData": { + "createSource": "None", + "sourceUri": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "sizeGiB": 30 + }, + "location": "aaaaaaaaaaa", + "tags": { + "key9122": "aaaaaaaaaaaaaaaaaaaaaaaaaa" + } + }, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "volumeId": "aaaaaaaaaaaaaaaaaaaaaaa", + "creationData": { + "createSource": "None", + "sourceUri": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "sizeGiB": 30, + "storageTarget": { + "targetIqn": "aaaaaaaaaaaaaaaaaaaaa", + "targetPortalHostname": "aaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "targetPortalPort": 6, + "provisioningState": "Invalid", + "status": "Invalid" + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/9_67U25-1f2gR3-b6L-4T5/volumes/vt-h45-18D68-j3sg8", + "name": "9_67U25-1f2gR3-b6L-4T5", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key9122": "aaaaaaaaaaaaaaaaaaaaaaaaaa" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + }, + "body": { + "properties": { + "volumeId": "aaaaaaaaaaaaaaaaaaaaaaa", + "creationData": { + "createSource": "None", + "sourceUri": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "sizeGiB": 30, + "storageTarget": { + "targetIqn": "aaaaaaaaaaaaaaaaaaaaa", + "targetPortalHostname": "aaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "targetPortalPort": 6, + "provisioningState": "Invalid", + "status": "Invalid" + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/9_67U25-1f2gR3-b6L-4T5/volumes/vt-h45-18D68-j3sg8", + "name": "9_67U25-1f2gR3-b6L-4T5", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key9122": "aaaaaaaaaaaaaaaaaaaaaaaaaa" + } + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MinimumSet_Gen.json new file mode 100644 index 000000000000..74e7223122ef --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MinimumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "volumeName": "vt-h45-18D68-j3sg8", + "parameters": {}, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": {} + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + }, + "body": {} + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..451e27cd9f1f --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "volumeName": "vt-h45-18D68-j3sg8", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MinimumSet_Gen.json new file mode 100644 index 000000000000..451e27cd9f1f --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MinimumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "volumeName": "vt-h45-18D68-j3sg8", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Get_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..f99ae01e3ad4 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Get_MaximumSet_Gen.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "volumeName": "vt-h45-18D68-j3sg8", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "volumeId": "aaaaaaaaaaaaaaaaaaaaaaa", + "creationData": { + "createSource": "None", + "sourceUri": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "sizeGiB": 30, + "storageTarget": { + "targetIqn": "aaaaaaaaaaaaaaaaaaaaa", + "targetPortalHostname": "aaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "targetPortalPort": 6, + "provisioningState": "Invalid", + "status": "Invalid" + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/9_67U25-1f2gR3-b6L-4T5/volumes/vt-h45-18D68-j3sg8", + "name": "9_67U25-1f2gR3-b6L-4T5", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key9122": "aaaaaaaaaaaaaaaaaaaaaaaaaa" + } + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Get_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Get_MinimumSet_Gen.json new file mode 100644 index 000000000000..2361f27c43ab --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Get_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "volumeName": "vt-h45-18D68-j3sg8", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_ListByVolumeGroup_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_ListByVolumeGroup_MaximumSet_Gen.json new file mode 100644 index 000000000000..4ba768a4234e --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_ListByVolumeGroup_MaximumSet_Gen.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "volumeId": "aaaaaaaaaaaaaaaaaaaaaaa", + "creationData": { + "createSource": "None", + "sourceUri": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "sizeGiB": 30, + "storageTarget": { + "targetIqn": "aaaaaaaaaaaaaaaaaaaaa", + "targetPortalHostname": "aaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "targetPortalPort": 6, + "provisioningState": "Invalid", + "status": "Invalid" + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/9_67U25-1f2gR3-b6L-4T5/volumes/aaaaaaaaa", + "name": "aaaaaaaaa", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key9122": "aaaaaaaaaaaaaaaaaaaaaaaaaa" + } + } + ], + "nextLink": "aaaaaaaaaaa" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_ListByVolumeGroup_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_ListByVolumeGroup_MinimumSet_Gen.json new file mode 100644 index 000000000000..f1a4499b7268 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_ListByVolumeGroup_MinimumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + {} + ] + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Update_MaximumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..73a5c71e4250 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Update_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "volumeName": "vt-h45-18D68-j3sg8", + "parameters": { + "properties": { + "sizeGiB": 23 + }, + "tags": { + "key4653": "aaaaaaaaa" + } + }, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "volumeId": "aaaaaaaaaaaaaaaaaaaaaaa", + "creationData": { + "createSource": "None", + "sourceUri": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "sizeGiB": 30, + "storageTarget": { + "targetIqn": "aaaaaaaaaaaaaaaaaaaaa", + "targetPortalHostname": "aaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "targetPortalPort": 6, + "provisioningState": "Invalid", + "status": "Invalid" + } + }, + "systemData": { + "createdBy": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "createdByType": "User", + "createdAt": "2022-04-08T10:28:01.097Z", + "lastModifiedBy": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-04-08T10:28:01.098Z" + }, + "location": "aaaaaaaaaaa", + "id": "/subscriptions/aaaaaaaaaaaaaaaaaaa/resourceGroups/rgelasticsan/providers/Microsoft.ElasticSan/elasticSans/33zg-7s_4_7L2_65o/volumeGroups/9_67U25-1f2gR3-b6L-4T5/volumes/vt-h45-18D68-j3sg8", + "name": "9_67U25-1f2gR3-b6L-4T5", + "type": "Microsoft.ElasticSan/ElasticSans", + "tags": { + "key9122": "aaaaaaaaaaaaaaaaaaaaaaaaaa" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Update_MinimumSet_Gen.json b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Update_MinimumSet_Gen.json new file mode 100644 index 000000000000..f603b94bcd37 --- /dev/null +++ b/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Update_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "aaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgelasticsan", + "elasticSanName": "33zg-7s_4_7L2_65o", + "volumeGroupName": "9_67U25-1f2gR3-b6L-4T5", + "volumeName": "vt-h45-18D68-j3sg8", + "parameters": {}, + "api-version": "2021-11-20-preview" + }, + "responses": { + "200": { + "body": {} + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/elasticsan/resource-manager/readme.az.md b/specification/elasticsan/resource-manager/readme.az.md new file mode 100644 index 000000000000..66253be65f8c --- /dev/null +++ b/specification/elasticsan/resource-manager/readme.az.md @@ -0,0 +1,34 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +``` yaml $(az) +az: + extensions: diskpool + namespace: azure.mgmt.storagepool + package-name: azure-mgmt-storagepool +az-output-folder: $(azure-cli-extension-folder)/src/diskpool +python-sdk-output-folder: "$(az-output-folder)/azext_diskpool/vendored_sdks/storagepool" +# add additinal configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + +## Az.DiskPool + +``` yaml +cli: + cli-directive: + - where: + param: disks + set: + positional: true + positionalKeys: + - id + - where: + group: DiskPools + parameter: additionalCapabilities + alias: + - additional_capabilities + - a + +``` \ No newline at end of file diff --git a/specification/elasticsan/resource-manager/readme.cli.md b/specification/elasticsan/resource-manager/readme.cli.md new file mode 100644 index 000000000000..fd8c342f63af --- /dev/null +++ b/specification/elasticsan/resource-manager/readme.cli.md @@ -0,0 +1,21 @@ +``` yaml +# add any configuration here for all CLI languages +# refer to the faq.md for more details +#directive: +# - where: +# group: diskpool disk-pool +# set: +# group: disk-pool +# - where: +# group: diskpool iscsi-target +# set: +# group: disk-pool iscsi-target +# - where: +# command: disk-pool deallocate +# set: +# command: disk-pool stop +# - where: +# command: disk-pool-zone list +# set: +# command: disk-pool list-skus +``` \ No newline at end of file diff --git a/specification/elasticsan/resource-manager/readme.csharp.md b/specification/elasticsan/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..abc86225331e --- /dev/null +++ b/specification/elasticsan/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.Azure.Management.ElasticSan + output-folder: $(csharp-sdks-folder)/ElasticSans/Microsoft.Azure.Management.ElasticSan/src/Generated +``` diff --git a/specification/elasticsan/resource-manager/readme.go.md b/specification/elasticsan/resource-manager/readme.go.md new file mode 100644 index 000000000000..85973b36f676 --- /dev/null +++ b/specification/elasticsan/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/elasticsans/armelasticsans +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` \ No newline at end of file diff --git a/specification/elasticsan/resource-manager/readme.md b/specification/elasticsan/resource-manager/readme.md new file mode 100644 index 000000000000..12d422d2e8f6 --- /dev/null +++ b/specification/elasticsan/resource-manager/readme.md @@ -0,0 +1,74 @@ +# storagepool + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for storagepool. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the storagepool. + +```yaml +openapi-type: arm +tag: package-2021-11-20-preview +``` + +### Tag: package-2021-08-22-preview + +These settings apply only when `--tag=package-2021-11-20-preview` is specified on the command line. + +```yaml $(tag) == 'package-2021-11-20-preview' +input-file: + - Microsoft.ElasticSan/preview/2021-11-20-preview/elasticsan.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go-track2 + - repo: azure-sdk-for-js + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_storagepool'] +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) diff --git a/specification/elasticsan/resource-manager/readme.python.md b/specification/elasticsan/resource-manager/readme.python.md new file mode 100644 index 000000000000..61a0e4c88e31 --- /dev/null +++ b/specification/elasticsan/resource-manager/readme.python.md @@ -0,0 +1,23 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-elasticsan +no-namespace-folders: true +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/elasticsans/azure-mgmt-elasticsan/azure/mgmt/elasticsan +``` + +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/elasticsans/azure-mgmt-elasticsan +``` diff --git a/specification/elasticsan/resource-manager/readme.typescript.md b/specification/elasticsan/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..10bc066af217 --- /dev/null +++ b/specification/elasticsan/resource-manager/readme.typescript.md @@ -0,0 +1,13 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +```yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-elasticsan" + output-folder: "$(typescript-sdks-folder)/sdk/elasticsans/arm-elasticsan" + payload-flattening-threshold: 1 + generate-metadata: true +```