From 21ffb64fdcbc0da039117af64f13c028c20d1286 Mon Sep 17 00:00:00 2001 From: Rahul Singh <53578268+rahuls-microsoft@users.noreply.github.com> Date: Mon, 30 Aug 2021 19:32:26 -0700 Subject: [PATCH] [QuotaRP] Split QuotaLimits API to - Usages and Quotas API (#15416) * 1.Breaking Change - Removing duplicate autoQuotaIncreaseState from supportTicketAction. 2. Removing state=enabledForPreview. 3. Updating Example. * Updating Provider name in example. * Capacity RP Quota APIs for GA * Adding preview version to stable dir as base files. * Files from preview version, which will be removed. * Updating to GA Version. * 1. Updated reservation version tag to - Microsoft.Capacity/preview/2020-10-01-preview/reservations.json, which matches the previous SDK release. 2. Documentation changes. * Documentation updates for put and patch request, which includes only ONE quota request, so changing quotas to quota. * Update documenation for put. * Doc update. * Adding -preview tag for GO sdk. * Updating Go settings for output folder to be -preview. * Adding preview subdir for GO package. * Adding preview subdir to Go sdk path. * Removing tag - tag: package-2020-10-25-preview * introduce a new tag to keep the go sdk package unchanged * Revert "introduce a new tag to keep the go sdk package unchanged" This reverts commit 8f58d3451e9ae5a4746d2a5883911f14ca261f1b. * Adding Azure CLI readme configuration. * Updating the ReadMe configurations. * Updating readme.md * Removing duplicate cli: tag. * Fixing build issues. * Removing Parameter alias. * cli config changes. * Updating the package name to reservation. * Updates - removin .az.md. * Updating Example names to be unique for Get PUT * Adding operations and python-sdk-output-folder. * Updates. * Removing unused file. * Revert "Removing unused file." This reverts commit 4f763bdb14240a3f1ba8e1dce6c7f0b643ee6a9e. * Revert "Revert "Removing unused file."" This reverts commit 60c520e5b50bc13c42d8227624f32031c7ca7694. * Add reference to python readme.md file. * Adding python readme file. * Adding Operations for test-scenario * Adding split * Disabling few operation, which is not needed. * Removing split for Operation * Disabling the reservation Operations. * Disable reservation operations. * Revert "Disable reservation operations." This reverts commit d98cbcbafeb855395f9de45292dfc9db2f5aea9d. * Adding client-subscription-bound: false * Adding Network RP examples and references. * Updating Network Put and Patch requests. * Updating GetQuotaRequests example. * Fixing formatting. * Updating examples. * Adding error details for the quota request status. * Updating examples * Fixing formatting * Fixing model definition. * Revert "Fixing model definition." This reverts commit cef9f52f142cf6c420a5f89bd0e2d806e29530c1. * Updating example. * Making ResoureType as String, as it will change with different RPs and all possible values cannot be added in advance. * Adding Location header to Put and Path calls 200 response. * Adding example for Network StandardSkuPublicIpAddresses * Fixing spelling * Adding error code to Failed requests and updating examples. * Updating error message and code. * Updating example for Network - StandardSkuPublicIpAddresses * Adding oneOf construct. If supported, then I will update the examples. * Adding discriminator for Limit. * Adding discriminator to limit. * Updating network UsagesValue example for discriminator * Adding limitType definition. * Adding type to the Limit objects. * Updating type and example for discriminator * Updating type for discriminator * fixinf type definition for discriminator * Updating schema for discriminator and example. * Update network example. * Fixing network example. * Fixing schema. * Fixing network example. * Fix example. * Updating schema. * Updating schema and example. * Update example. * Examples update. * Update * Updated schema for discriminator * Adding value as required. * Schema Update. * Replace Limt with LimitObject to fix reference. * Updates. * Updates. * Updating Put/Ptach examples. * Updating erxamples. * Schema updated for requestStatus. * Schema Update. * Updates to QuotaRequestStatus example. Change api to quota. Add usages API and update examples reference. * 1. Split quotas and usages apis. 2. Add and update examples for quotas and usages. * Updating example filename references * Update Put example and operations id. * Updating limiType field to limitObjectType * Updating "limitType" to "limitObjectType" * Updating Get Examples. Adding extra property to quotas/limit object. * 1. Updating tags for usages. 2. Rename LimitObjectType to LimitObjectTypes. * Adding "limitType": "Independent" * Updating Operations Tag. * Updating subscription ids. * Updating Operations Name. * Updating the documentations and examples. * Updates. * Updates. * Updating Quota reference to base object type. * Updating examples and restoring the api name to quotaLimitsProviders. * Updating usages model and examples. * Update quotaLimitProviders to remove resourceQuery. * Revert "Update quotaLimitProviders to remove resourceQuery." This reverts commit 301092d496b2834d2e5110aa7b7f32c6f9802951. * Updating Operation API example for quotaLimitProviders rename. * Removing quotaLimitProviders API, as it's not needed by the azure portal. There wasn't a use case for the end user, that's why our team decided to remove it from public API. * 1. Removing unused models for quotaLimitProviders. 2. Update operations example. * Remove allof from usages. * 1. Updating 202 response schema. 2. Adding location header as per - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#updating-using-patch * Updating Patch 202 response model type. * Updating description of put and API api to check location header for detailed status. * Updates to description. * Update quota.json * Update quota.json Text scrub up to line 256 * Update quota.json Scrubbed all text strings. * Running prettier. * Updating Network examples to include resourceType. * Updating Networking Examples. * Remove 202 response body for Put and Patch. * preRemove example - putMachineLearningServicesQuotaRequestDedicated.json * Remove example - putMachineLearningServicesQuotaRequestDedicated.json Co-authored-by: Arcturus Zhang Co-authored-by: Pilar Ackerman --- .../examples/GetOperations.json | 32 +- .../examples/getComputeOneSkuQuotaLimit.json | 29 + .../examples/getComputeOneSkuUsages.json | 9 +- .../examples/getComputeQuotaLimits.json | 219 ++++++ .../examples/getComputeUsages.json | 108 +-- ...getMachineLearningServicesQuotaLimits.json | 48 ++ .../getMachineLearningServicesUsages.json | 20 +- .../examples/getNetworkOneSkuQuotaLimit.json | 29 + .../examples/getNetworkOneSkuUsages.json | 28 + .../examples/getNetworkQuotaLimits.json | 699 ++++++++++++++++++ .../examples/getNetworkUsages.json | 372 ++++++++++ .../examples/getQuotaRequestStatusById.json | 18 +- .../examples/getQuotaRequestStatusFailed.json | 23 +- .../getQuotaRequestStatusInProgress.json | 14 +- .../examples/getQuotaRequestsHistory.json | 65 +- .../examples/metadata/getQuotaRPMetadata.json | 137 ---- .../examples/patchComputeQuotaRequest.json | 31 +- .../patchNetworkOneSkuQuotaRequest.json | 47 ++ .../putComputeOneSkuQuotaRequest.json | 31 +- ...LearningServicesQuotaRequestDedicated.json | 48 -- ...arningServicesQuotaRequestLowPriority.json | 30 +- .../putNetworkOneSkuQuotaRequest.json | 47 ++ ...taRequestStandardSkuPublicIpAddresses.json | 47 ++ .../preview/2021-03-15-preview/quota.json | 676 +++++++++-------- 24 files changed, 2100 insertions(+), 707 deletions(-) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeOneSkuQuotaLimit.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeQuotaLimits.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getMachineLearningServicesQuotaLimits.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkOneSkuQuotaLimit.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkOneSkuUsages.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkQuotaLimits.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkUsages.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/metadata/getQuotaRPMetadata.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/patchNetworkOneSkuQuotaRequest.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putMachineLearningServicesQuotaRequestDedicated.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putNetworkOneSkuQuotaRequest.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/GetOperations.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/GetOperations.json index 514f00c4ca1e..d0543cc9d74d 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/GetOperations.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/GetOperations.json @@ -7,39 +7,39 @@ "body": { "value": [ { - "name": "Microsoft.Quota/quotaLimits/read", + "name": "Microsoft.Quota/usages/read", "display": { "provider": "Microsoft Quota", - "resource": "Resource service limit", - "operation": "Get resource service limit", - "description": "Get the current service limit or quota of the specified resource and location" + "resource": "Resource current usages", + "operation": "Get resource usages", + "description": "Get the current usages of the specified resource and location" } }, { - "name": "Microsoft.Quota/quotaLimits/write", + "name": "Microsoft.Quota/quotas/read", "display": { "provider": "Microsoft Quota", - "resource": "Resource service limit", - "operation": "Create resource service limit", - "description": "Create service limit or quota for the specified resource and location" + "resource": "Resource quota limit", + "operation": "Get resource quota limit", + "description": "Get the current service limit or quota of the specified resource and location" } }, { - "name": "Microsoft.Quota/quotaLimitProviders/read", + "name": "Microsoft.Quota/quotas/write", "display": { "provider": "Microsoft Quota", - "resource": "Quota limits provider metadata", - "operation": "Get quota limit providers metadata", - "description": "Get quota limit resource providers metadata" + "resource": "Resource quota limit", + "operation": "Create resource quota limit", + "description": "Create service limit or quota for the specified resource and location" } }, { - "name": "Microsoft.Quota/quotaLimitsRequests/read", + "name": "Microsoft.Quota/quotaRequests/read", "display": { "provider": "Microsoft Quota", - "resource": "Resource service limit request", - "operation": "Get service limit request", - "description": "Get any service limit request for the specified resource and location" + "resource": "Resource quota request", + "operation": "Get quota request", + "description": "Get any quota request for the specified resource and location" } } ] diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeOneSkuQuotaLimit.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeOneSkuQuotaLimit.json new file mode 100644 index 000000000000..8d1a32ee2d97 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeOneSkuQuotaLimit.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus", + "resourceName": "standardNDSFamily", + "api-version": "2021-03-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNDSFamily", + "type": "Microsoft.Quota/Quotas", + "name": "standardNDSFamily", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 100, + "limitType": "Independent" + }, + "unit": "Count", + "name": { + "value": "standardNDSFamily", + "localizedValue": "Standard NDS Family vCPUs" + }, + "isQuotaApplicable": true + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeOneSkuUsages.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeOneSkuUsages.json index b43e5c6eac1c..e63da0fb4ab6 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeOneSkuUsages.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeOneSkuUsages.json @@ -7,11 +7,14 @@ "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNDSFamily", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardNDSFamily", + "type": "Microsoft.Quota/Usages", "name": "standardNDSFamily", "properties": { - "limit": 10, + "usages": { + "usagesType": "Individual", + "value": 10 + }, "unit": "Count", "name": { "value": "standardNDSFamily", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeQuotaLimits.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeQuotaLimits.json new file mode 100644 index 000000000000..b4718dd2c564 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeQuotaLimits.json @@ -0,0 +1,219 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus", + "api-version": "2021-03-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardFSv2Family", + "type": "Microsoft.Quota/Quotas", + "name": "standardFSv2Family", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardFSv2Family", + "localizedValue": "Standard FSv2 Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNDSFamily", + "type": "Microsoft.Quota/Quotas", + "name": "standardNDSFamily", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardNDSFamily", + "localizedValue": "Standard NDS Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNCSv2Family", + "type": "Microsoft.Quota/Quotas", + "name": "standardNCSv2Family", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardNCSv2Family", + "localizedValue": "Standard NCSv2 Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNCSv3Family", + "type": "Microsoft.Quota/Quotas", + "name": "standardNCSv3Family", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardNCSv3Family", + "localizedValue": "Standard NCSv3 Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardLSv2Family", + "type": "Microsoft.Quota/Quotas", + "name": "standardLSv2Family", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardLSv2Family", + "localizedValue": "Standard LSv2 Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardPBSFamily", + "type": "Microsoft.Quota/Quotas", + "name": "standardPBSFamily", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardPBSFamily", + "localizedValue": "Standard PBS Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardEIv3Family", + "type": "Microsoft.Quota/Quotas", + "name": "standardEIv3Family", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardEIv3Family", + "localizedValue": "Standard EIv3 Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardEISv3Family", + "type": "Microsoft.Quota/Quotas", + "name": "standardEISv3Family", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardEISv3Family", + "localizedValue": "Standard EISv3 Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardDCSFamily", + "type": "Microsoft.Quota/Quotas", + "name": "standardDCSFamily", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardDCSFamily", + "localizedValue": "Standard DCS Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNVSv2Family", + "type": "Microsoft.Quota/Quotas", + "name": "standardNVSv2Family", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardNVSv2Family", + "localizedValue": "Standard NVSv2 Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardMSv2Family", + "type": "Microsoft.Quota/Quotas", + "name": "standardMSv2Family", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": true, + "name": { + "value": "standardMSv2Family", + "localizedValue": "Standard MSv2 Family vCPUs" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/availabilitySets", + "type": "Microsoft.Quota/Quotas", + "name": "availabilitySets", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "isQuotaApplicable": false, + "name": { + "value": "availabilitySets", + "localizedValue": "Availability Sets" + } + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeUsages.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeUsages.json index 905d034e2952..1e1fbf14ee67 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeUsages.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeUsages.json @@ -8,13 +8,14 @@ "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardFSv2Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardFSv2Family", + "type": "Microsoft.Quota/Usages", "name": "standardFSv2Family", "properties": { - "limit": 100, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardFSv2Family", @@ -23,13 +24,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNDSFamily", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardNDSFamily", + "type": "Microsoft.Quota/Usages", "name": "standardNDSFamily", "properties": { - "limit": 0, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardNDSFamily", @@ -38,13 +40,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNCSv2Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardNCSv2Family", + "type": "Microsoft.Quota/Usages", "name": "standardNCSv2Family", "properties": { - "limit": 0, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardNCSv2Family", @@ -53,13 +56,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNCSv3Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardNCSv3Family", + "type": "Microsoft.Quota/Usages", "name": "standardNCSv3Family", "properties": { - "limit": 0, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardNCSv3Family", @@ -68,13 +72,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardLSv2Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardLSv2Family", + "type": "Microsoft.Quota/Usages", "name": "standardLSv2Family", "properties": { - "limit": 100, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardLSv2Family", @@ -83,13 +88,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardPBSFamily", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardPBSFamily", + "type": "Microsoft.Quota/Usages", "name": "standardPBSFamily", "properties": { - "limit": 6, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardPBSFamily", @@ -98,13 +104,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardEIv3Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardEIv3Family", + "type": "Microsoft.Quota/Usages", "name": "standardEIv3Family", "properties": { - "limit": 100, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardEIv3Family", @@ -113,13 +120,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardEISv3Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardEISv3Family", + "type": "Microsoft.Quota/Usages", "name": "standardEISv3Family", "properties": { - "limit": 100, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardEISv3Family", @@ -128,13 +136,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardDCSFamily", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardDCSFamily", + "type": "Microsoft.Quota/Usages", "name": "standardDCSFamily", "properties": { - "limit": 8, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardDCSFamily", @@ -143,13 +152,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNVSv2Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardNVSv2Family", + "type": "Microsoft.Quota/Usages", "name": "standardNVSv2Family", "properties": { - "limit": 0, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardNVSv2Family", @@ -158,13 +168,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardMSv2Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardMSv2Family", + "type": "Microsoft.Quota/Usages", "name": "standardMSv2Family", "properties": { - "limit": 0, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": true, "name": { "value": "standardMSv2Family", @@ -173,13 +184,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/availabilitySets", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/availabilitySets", + "type": "Microsoft.Quota/Usages", "name": "availabilitySets", "properties": { - "limit": 0, + "usages": { + "value": 10 + }, "unit": "Count", - "currentValue": 0, "isQuotaApplicable": false, "name": { "value": "availabilitySets", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getMachineLearningServicesQuotaLimits.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getMachineLearningServicesQuotaLimits.json new file mode 100644 index 000000000000..b9a82b25fcc2 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getMachineLearningServicesQuotaLimits.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus", + "api-version": "2021-03-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/Quotas/standardDv2Family", + "type": "Microsoft.Quota/Quotas", + "name": "standardDv2Family", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "standardDv2Family", + "localizedValue": "Standard Dv2 Family vCPUs" + }, + "resourceType": "dedicated" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/Quotas/totalLowPriorityCores", + "type": "Microsoft.Quota/Quotas", + "name": "totalLowPriorityCores", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "totalLowPriorityCores", + "localizedValue": "Total Regional Low-priority vCPUs" + }, + "resourceType": "lowPriority" + } + } + ] + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getMachineLearningServicesUsages.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getMachineLearningServicesUsages.json index b080dc729c8f..cd01234f7fb2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getMachineLearningServicesUsages.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getMachineLearningServicesUsages.json @@ -8,12 +8,14 @@ "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardDv2Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/usages/standardDv2Family", + "type": "Microsoft.Quota/usages", "name": "standardDv2Family", "properties": { - "currentValue": 15, - "limit": 20, + "usages": { + "value": 10 + }, + "unit": "Count", "name": { "value": "standardDv2Family", "localizedValue": "Standard Dv2 Family vCPUs" @@ -22,12 +24,14 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotaLimits/totalLowPriorityCores", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/usages/totalLowPriorityCores", + "type": "Microsoft.Quota/usages", "name": "totalLowPriorityCores", "properties": { - "currentValue": 49, - "limit": 600, + "usages": { + "value": 10 + }, + "unit": "Count", "name": { "value": "totalLowPriorityCores", "localizedValue": "Total Regional Low-priority vCPUs" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkOneSkuQuotaLimit.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkOneSkuQuotaLimit.json new file mode 100644 index 000000000000..b5d0d9eecca3 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkOneSkuQuotaLimit.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus", + "resourceName": "MinPublicIpInterNetworkPrefixLength", + "api-version": "2021-03-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/MinPublicIpInterNetworkPrefixLength", + "type": "Microsoft.Quota/Quotas", + "name": "MinPublicIpInterNetworkPrefixLength", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "MinPublicIpInterNetworkPrefixLength", + "localizedValue": "Min Public Ip InterNetwork Prefix Length" + }, + "unit": "Count", + "isQuotaApplicable": true, + "resourceType": "MinPublicIpInterNetworkPrefixLength" + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkOneSkuUsages.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkOneSkuUsages.json new file mode 100644 index 000000000000..9ad0cac2e833 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkOneSkuUsages.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus", + "resourceName": "MinPublicIpInterNetworkPrefixLength", + "api-version": "2021-03-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/MinPublicIpInterNetworkPrefixLength", + "type": "Microsoft.Quota/usages", + "name": "MinPublicIpInterNetworkPrefixLength", + "properties": { + "usages": { + "value": 10 + }, + "name": { + "value": "MinPublicIpInterNetworkPrefixLength", + "localizedValue": "Min Public Ip InterNetwork Prefix Length" + }, + "unit": "Count", + "isQuotaApplicable": true, + "resourceType": "MinPublicIpInterNetworkPrefixLength" + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkQuotaLimits.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkQuotaLimits.json new file mode 100644 index 000000000000..bfa5fb9cfe6c --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkQuotaLimits.json @@ -0,0 +1,699 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus", + "api-version": "2021-03-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "VirtualNetworks", + "localizedValue": "Virtual Networks" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "VirtualNetworks" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "StaticPublicIPAddresses", + "localizedValue": "Static Public IP Addresses" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "StaticPublicIPAddresses" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "NetworkSecurityGroups", + "localizedValue": "Network Security Groups" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "NetworkSecurityGroups" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PublicIPAddresses", + "localizedValue": "Public IP Addresses - Basic" + }, + "properties": {}, + "isQuotaApplicable": true + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "PublicIPAddresses" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PublicIpPrefixes", + "localizedValue": "Public Ip Prefixes" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "PublicIpPrefixes" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "NatGateways", + "localizedValue": "Nat Gateways" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "NatGateways" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "NetworkInterfaces", + "localizedValue": "Network Interfaces" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "NetworkInterfaces" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PrivateEndpoints", + "localizedValue": "Private Endpoints" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "PrivateEndpoints" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PrivateEndpointRedirectMaps", + "localizedValue": "Private Endpoint Redirect Maps" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "PrivateEndpointRedirectMaps" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "LoadBalancers", + "localizedValue": "Load Balancers" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "LoadBalancers" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PrivateLinkServices", + "localizedValue": "Private Link Services" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "PrivateLinkServices" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "ApplicationGateways", + "localizedValue": "Application Gateways" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "ApplicationGateways" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "RouteTables", + "localizedValue": "Route Tables" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "RouteTables" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "RouteFilters", + "localizedValue": "Route Filters" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "RouteFilters" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "NetworkWatchers", + "localizedValue": "Network Watchers" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "NetworkWatchers" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PacketCaptures", + "localizedValue": "Packet Captures" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "PacketCaptures" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "ApplicationSecurityGroups", + "localizedValue": "Application Security Groups." + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "ApplicationSecurityGroups" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "DdosProtectionPlans", + "localizedValue": "DDoS Protection Plans." + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "DdosProtectionPlans" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "DdosCustomPolicies", + "localizedValue": "DDoS customized policies" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "DdosCustomPolicies" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "ServiceEndpointPolicies", + "localizedValue": "Service Endpoint Policies" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "ServiceEndpointPolicies" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "NetworkIntentPolicies", + "localizedValue": "Network Intent Policies" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "NetworkIntentPolicies" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "StandardSkuLoadBalancers", + "localizedValue": "Standard Sku Load Balancers" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "StandardSkuLoadBalancers" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "StandardSkuPublicIpAddresses", + "localizedValue": "Public IP Addresses - Standard" + }, + "properties": {}, + "isQuotaApplicable": true + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "StandardSkuPublicIpAddresses" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "DnsServersPerVirtualNetwork", + "localizedValue": "DNS servers per Virtual Network" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "DnsServersPerVirtualNetwork" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "CustomDnsServersPerP2SVpnGateway", + "localizedValue": "Custom DNS servers per P2SVpnGateway" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "CustomDnsServersPerP2SVpnGateway" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "SubnetsPerVirtualNetwork", + "localizedValue": "Subnets per Virtual Network" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "SubnetsPerVirtualNetwork" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "IPConfigurationsPerVirtualNetwork", + "localizedValue": "IP Configurations per Virtual Network" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "IPConfigurationsPerVirtualNetwork" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PeeringsPerVirtualNetwork", + "localizedValue": "Peerings per Virtual Network" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "PeeringsPerVirtualNetwork" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "SecurityRulesPerNetworkSecurityGroup", + "localizedValue": "Security rules per Network Security Group" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "SecurityRulesPerNetworkSecurityGroup" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "SecurityRulesPerNetworkIntentPolicy", + "localizedValue": "Security rules per Network Intent Policy" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "SecurityRulesPerNetworkIntentPolicy" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "RoutesPerNetworkIntentPolicy", + "localizedValue": "Routes per Network Intent Policy" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "RoutesPerNetworkIntentPolicy" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "SecurityRuleAddressesOrPortsPerNetworkSecurityGroup", + "localizedValue": "Security rules addresses or ports per Network Security Group" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "SecurityRuleAddressesOrPortsPerNetworkSecurityGroup" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "InboundRulesPerLoadBalancer", + "localizedValue": "Inbound Rules per Load Balancer" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "InboundRulesPerLoadBalancer" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "FrontendIPConfigurationPerLoadBalancer", + "localizedValue": "Frontend IP Configurations per Load Balancer" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "FrontendIPConfigurationPerLoadBalancer" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "OutboundRulesPerLoadBalancer", + "localizedValue": "Outbound Rules per Load Balancer" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "OutboundRulesPerLoadBalancer" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "RoutesPerRouteTable", + "localizedValue": "Routes per Route Table" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "RoutesPerRouteTable" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "RoutesWithServiceTagPerRouteTable", + "localizedValue": "Routes with service tag per Route Table" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "RoutesWithServiceTagPerRouteTable" + }, + { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "unit": "Count", + "name": { + "value": "MinPublicIpInterNetworkPrefixLength", + "localizedValue": "Min Public Ip InterNetwork Prefix Length" + }, + "properties": {}, + "isQuotaApplicable": true, + "resourceType": "MinPublicIpInterNetworkPrefixLength" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/", + "type": "Microsoft.Quota/Quotas", + "name": "MinPublicIpInterNetworkPrefixLength" + } + ] + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkUsages.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkUsages.json new file mode 100644 index 000000000000..d96c10c13931 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getNetworkUsages.json @@ -0,0 +1,372 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus", + "api-version": "2021-03-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "VirtualNetworks", + "localizedValue": "Virtual Networks" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "VirtualNetworks" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "StaticPublicIPAddresses", + "localizedValue": "Static Public IP Addresses" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "StaticPublicIPAddresses" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "NetworkSecurityGroups", + "localizedValue": "Network Security Groups" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "NetworkSecurityGroups" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PublicIPAddresses", + "localizedValue": "Public IP Addresses - Basic" + }, + "isQuotaApplicable": true, + "resourceType": "PublicIpAddresses", + "properties": {} + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "PublicIPAddresses" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PublicIpPrefixes", + "localizedValue": "Public Ip Prefixes" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "PublicIpPrefixes" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "NatGateways", + "localizedValue": "Nat Gateways" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "NatGateways" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "NetworkInterfaces", + "localizedValue": "Network Interfaces" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "NetworkInterfaces" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PrivateEndpoints", + "localizedValue": "Private Endpoints" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "PrivateEndpoints" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PrivateEndpointRedirectMaps", + "localizedValue": "Private Endpoint Redirect Maps" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "PrivateEndpointRedirectMaps" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "LoadBalancers", + "localizedValue": "Load Balancers" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "LoadBalancers" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PrivateLinkServices", + "localizedValue": "Private Link Services" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "PrivateLinkServices" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "ApplicationGateways", + "localizedValue": "Application Gateways" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "ApplicationGateways" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "RouteTables", + "localizedValue": "Route Tables" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "RouteTables" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "RouteFilters", + "localizedValue": "Route Filters" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "RouteFilters" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "NetworkWatchers", + "localizedValue": "Network Watchers" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "NetworkWatchers" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "PacketCaptures", + "localizedValue": "Packet Captures" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "PacketCaptures" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "ApplicationSecurityGroups", + "localizedValue": "Application Security Groups." + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "ApplicationSecurityGroups" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "StandardSkuLoadBalancers", + "localizedValue": "Standard Sku Load Balancers" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "StandardSkuLoadBalancers" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "StandardSkuPublicIpAddresses", + "localizedValue": "Public IP Addresses - Standard" + }, + "isQuotaApplicable": true, + "resourceType": "PublicIpAddresses" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "StandardSkuPublicIpAddresses" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "DnsServersPerVirtualNetwork", + "localizedValue": "DNS servers per Virtual Network" + }, + "properties": {}, + "isQuotaApplicable": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "DnsServersPerVirtualNetwork" + }, + { + "properties": { + "usages": { + "value": 10 + }, + "unit": "Count", + "name": { + "value": "MinPublicIpInterNetworkPrefixLength", + "localizedValue": "Min Public Ip InterNetwork Prefix Length" + }, + "properties": {}, + "isQuotaApplicable": true + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/usages/", + "type": "Microsoft.Quota/usages", + "name": "MinPublicIpInterNetworkPrefixLength" + } + ] + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusById.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusById.json index 2e632f45f217..6a7b6d9adefd 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusById.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusById.json @@ -7,8 +7,8 @@ "responses": { "200": { "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "type": "Microsoft.Quota/serviceLimitsRequests", + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Quota/quotaRequests", "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", "properties": { "requestSubmitTime": "2019-08-19T19:23:17.904Z", @@ -16,17 +16,11 @@ "provisioningState": "Succeeded", "value": [ { - "limit": 200, - "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", - "name": { - "value": "standardHCSFamily", - "localizedValue": "Standard HCS Family vCPUs" + "limit": { + "limitObjectType": "LimitValue", + "value": 50 }, - "message": "Request completed", - "provisioningState": "Succeeded" - }, - { - "limit": 50, + "unit": "Count", "name": { "value": "standardNCPromoFamily", "localizedValue": "Standard NC Promo Family vCPUs" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusFailed.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusFailed.json index 84f1d6a02fc0..8fcae8d59825 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusFailed.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusFailed.json @@ -7,32 +7,29 @@ "responses": { "200": { "body": { - "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "type": "Microsoft.Quota/serviceLimitsRequests", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Quota/quotaRequests", "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", "properties": { "requestSubmitTime": "2019-08-19T19:23:17.904Z", "message": "Request failed, please contact support.", "provisioningState": "Failed", + "error": { + "code": "ContactSupport", + "message": "Request failed, please contact support." + }, "value": [ { - "limit": 200, - "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", - "name": { - "value": "standardHCSFamily", - "localizedValue": "Standard HCS Family vCPUs" + "limit": { + "limitObjectType": "LimitValue", + "value": 50 }, - "message": "Request completed", - "provisioningState": "Succeeded" - }, - { - "limit": 50, "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", "name": { "value": "standardNCPromoFamily", "localizedValue": "Standard NC Promo Family vCPUs" }, - "message": "RRequest failed, please contact support.", + "message": "Request failed, please contact support.", "provisioningState": "Failed" } ] diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusInProgress.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusInProgress.json index f5aa8ae85698..e58063760cc6 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusInProgress.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestStatusInProgress.json @@ -7,8 +7,8 @@ "responses": { "200": { "body": { - "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "type": "Microsoft.Quota/serviceLimitsRequests", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Quota/quotaRequests", "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", "properties": { "requestSubmitTime": "2019-08-19T19:23:17.904Z", @@ -16,7 +16,10 @@ "provisioningState": "InProgress", "value": [ { - "limit": 200, + "limit": { + "limitObjectType": "LimitValue", + "value": 50 + }, "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", "name": { "value": "standardHCSFamily", @@ -26,7 +29,10 @@ "provisioningState": "Succeeded" }, { - "limit": 50, + "limit": { + "limitObjectType": "LimitValue", + "value": 50 + }, "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", "name": { "value": "standardNCPromoFamily", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestsHistory.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestsHistory.json index 23b2f766af56..4ffdc4bb0f32 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestsHistory.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getQuotaRequestsHistory.json @@ -6,11 +6,11 @@ "responses": { "200": { "body": { - "nextLink": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/microsoft.Quota/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests?api-version=2021-03-15&$top=3", + "nextLink": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/microsoft.Quota/resourceProviders/Microsoft.Compute/locations/eastus/quotaRequests?api-version=2021-03-15&$top=3", "value": [ { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "type": "Microsoft.Quota/serviceLimitsRequests", + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Quota/quotaRequests", "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", "properties": { "requestSubmitTime": "2019-08-19T19:23:17.904Z", @@ -18,17 +18,10 @@ "provisioningState": "Success", "value": [ { - "limit": 200, - "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", - "name": { - "value": "standardHCSFamily", - "localizedValue": "Standard HCS Family vCPUs" + "limit": { + "limitObjectType": "LimitValue", + "value": 50 }, - "message": "Request completed", - "provisioningState": "Success" - }, - { - "limit": 50, "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", "name": { "value": "standardNCPromoFamily", @@ -41,8 +34,8 @@ } }, { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/serviceLimitsRequests/7E73A85C-83BB-4DE4-903F-076F1A2B91D6", - "type": "Microsoft.Quota/serviceLimitsRequests", + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaRequests/7E73A85C-83BB-4DE4-903F-076F1A2B91D6", + "type": "Microsoft.Quota/quotaRequests", "name": "7E73A85C-83BB-4DE4-903F-076F1A2B91D6", "properties": { "requestSubmitTime": "2019-08-18T19:23:17.904Z", @@ -50,17 +43,10 @@ "provisioningState": "Succeeded", "value": [ { - "limit": 100, - "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", - "name": { - "value": "standardNVSv3Family", - "localizedValue": "Standard NVSv3 Family vCPUs" + "limit": { + "limitObjectType": "LimitValue", + "value": 150 }, - "message": "Request completed", - "provisioningState": "Success" - }, - { - "limit": 150, "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", "name": { "value": "standardNVPromoFamily", @@ -73,33 +59,30 @@ } }, { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/serviceLimitsRequests/5E460077-AB53-4802-8997-A6940E0B7649", - "type": "Microsoft.Quota/serviceLimitsRequests", + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaRequests/5E460077-AB53-4802-8997-A6940E0B7649", + "type": "Microsoft.Quota/quotaRequests", "name": "5E460077-AB53-4802-8997-A6940E0B7649", "properties": { "requestSubmitTime": "2019-08-17T19:23:17.904Z", - "message": "Request completed", - "provisioningState": "Succeeded", + "message": "The resource is currently unavailable in the location for the offer type.", + "provisioningState": "Failed", + "error": { + "code": "ResourceNotAvailableForOffer", + "message": "The resource is currently unavailable in the location for the offer type." + }, "value": [ { - "limit": 70, - "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", - "name": { - "value": "standardNCPromoFamily", - "localizedValue": "Standard NC Promo Family vCPUs" + "limit": { + "limitObjectType": "LimitValue", + "value": 52 }, - "message": "Request completed", - "provisioningState": "Succeeded" - }, - { - "limit": 52, "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", "name": { "value": "standardHBSFamily", "localizedValue": "Standard HBS Family vCPUs" }, - "message": "Request completed", - "provisioningState": "Succeeded" + "message": "Request failed, please contact support.", + "provisioningState": "Failed" } ] } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/metadata/getQuotaRPMetadata.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/metadata/getQuotaRPMetadata.json deleted file mode 100644 index 7468a0537840..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/metadata/getQuotaRPMetadata.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-15-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "resourceProviderName": "Microsoft.Compute", - "properties": { - "value": [ - { - "resourceType": "virtualMachines", - "resourceQuery": { - "resourceQueryType": "", - "resourceQueryMethod": "", - "resourceQueryUri": "", - "resourceQueryPostTemplate": "" - }, - "resourceUsagesQuery": { - "resourceQueryType": "RestAPI", - "resourceQueryMethod": "GET", - "resourceQueryUri": "subscriptions/{{subscriptionId}}/providers/Microsoft.Compute/locations/{{location}}/usages?api-version=2020-12-01", - "resourceQueryPostTemplate": "" - }, - "dimensions": [ - { - "name": "subscriptionId", - "displayName": "SubscriptionId" - }, - { - "name": "location", - "displayName": "Location" - } - ] - } - ] - } - }, - { - "resourceProviderName": "Microsoft.Batch", - "properties": { - "value": [ - { - "resourceType": "batchAccounts/pool", - "resourceQuery": { - "resourceQueryType": "ARG", - "resourceQueryMethod": "POST", - "resourceQueryUri": "providers/Microsoft.ResourceGraph/resources?api-version=2019-04-01", - "resourceQueryPostTemplate": "{ \"subscriptions\": [ {{subscriptipnId}} ], \"query\": \"where type contains 'batchAccounts' and isnotempty(properties.batchAccountName)\" }" - }, - "resourceUsagesQuery": { - "resourceQueryType": "RestAPI", - "resourceQueryMethod": "GET", - "resourceQueryUri": "subscriptions/{{subscriptionId}}/providers/Microsoft.Batch/locations/{{location}}/batchAccounts/{{batchAccountName}}/usages?api-version=2020-12-01", - "resourceQueryPostTemplate": "" - }, - "dimensions": [ - { - "name": "subscriptionId", - "displayName": "SubscriptionId" - }, - { - "name": "location", - "displayName": "Location" - }, - { - "name": "batchAccounts", - "displayName": "BatchAccount Name" - } - ] - }, - { - "resourceType": "batchAccounts", - "resourceQuery": { - "resourceQueryType": "ARG", - "resourceQueryMethod": "POST", - "resourceQueryUri": "providers/Microsoft.ResourceGraph/resources?api-version=2019-04-01", - "resourceQueryPostTemplate": "{ \"subscriptions\": [ {{subscriptipnId}} ], \"query\": \"where type contains 'batchAccounts'\" }" - }, - "resourceUsagesQuery": { - "resourceQueryType": "RestAPI", - "resourceQueryMethod": "GET", - "resourceQueryUri": "subscriptions/{{subscriptionId}}/providers/Microsoft.Batch/locations/{{location}}/usages?api-version=2020-12-01", - "resourceQueryPostTemplate": "" - }, - "dimensions": [ - { - "name": "subscriptionId", - "displayName": "SubscriptionId" - }, - { - "name": "location", - "displayName": "Location" - } - ] - } - ] - } - }, - { - "resourceProviderName": "Microsoft.Network", - "properties": { - "value": [ - { - "resourceType": "PublicIpAddresses", - "resourceQuery": { - "resourceQueryType": "ARG", - "resourceQueryMethod": "POST", - "resourceQueryUri": "providers/Microsoft.ResourceGraph/resources?api-version=2019-04-01", - "resourceQueryPostTemplate": "{ \"subscriptions\": [ {{subscriptipnId}} ], \"query\": \"where type contains 'publicIPAddresses' and isnotempty(properties.ipAddress)\" }" - }, - "resourceUsagesQuery": { - "resourceQueryType": "RestAPI", - "resourceQueryMethod": "GET", - "resourceQueryUri": "subscriptions/{{subscriptionId}}/providers/Microsoft.Network/locations/{{location}}/usages?api-version=2020-12-01" - }, - "dimensions": [ - { - "name": "subscriptions", - "displayName": "Subscription" - }, - { - "name": "locations", - "displayName": "Location" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/patchComputeQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/patchComputeQuotaRequest.json index 74d800f2906b..228a4ee7c406 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/patchComputeQuotaRequest.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/patchComputeQuotaRequest.json @@ -5,7 +5,10 @@ "api-version": "2021-03-15-preview", "createQuotaRequest": { "properties": { - "limit": 200, + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, "name": { "value": "standardFSv2Family" } @@ -15,29 +18,23 @@ "responses": { "202": { "headers": { - "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview", "Retry-After": "30", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" - }, - "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardFSv2Family", - "type": "Microsoft.Quota/quotaLimits", - "name": "standardFSv2Family", - "properties": { - "limit": 200, - "name": { - "value": "standardFSv2Family" - } - } + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" } }, "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" + }, "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardFSv2Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotas/standardFSv2Family", + "type": "Microsoft.Quota/quotas", "name": "standardFSv2Family", "properties": { - "limit": 200, + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, "name": { "value": "standardFSv2Family", "localizedValue": "Standard FSv2 Family vCPUs" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/patchNetworkOneSkuQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/patchNetworkOneSkuQuotaRequest.json new file mode 100644 index 000000000000..de67a65dcbc0 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/patchNetworkOneSkuQuotaRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus", + "resourceName": "MinPublicIpInterNetworkPrefixLength", + "api-version": "2021-03-15-preview", + "createQuotaRequest": { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "MinPublicIpInterNetworkPrefixLength" + }, + "resourceType": "MinPublicIpInterNetworkPrefixLength" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" + } + }, + "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" + }, + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Quota/quotas", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "MinPublicIpInterNetworkPrefixLength" + }, + "resourceType": "MinPublicIpInterNetworkPrefixLength" + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putComputeOneSkuQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putComputeOneSkuQuotaRequest.json index e7686efd7de2..1b21eca08edd 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putComputeOneSkuQuotaRequest.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putComputeOneSkuQuotaRequest.json @@ -5,7 +5,10 @@ "api-version": "2021-03-15-preview", "createQuotaRequest": { "properties": { - "limit": 200, + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, "name": { "value": "standardFSv2Family" } @@ -15,29 +18,23 @@ "responses": { "202": { "headers": { - "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview", "Retry-After": "30", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" - }, - "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardFSv2Family", - "type": "Microsoft.Quota/quotaLimits", - "name": "standardFSv2Family", - "properties": { - "limit": 200, - "name": { - "value": "standardFSv2Family" - } - } + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" } }, "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" + }, "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardFSv2Family", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotas/standardFSv2Family", + "type": "Microsoft.Quota/quotas", "name": "standardFSv2Family", "properties": { - "limit": 200, + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, "name": { "value": "standardFSv2Family" } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putMachineLearningServicesQuotaRequestDedicated.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putMachineLearningServicesQuotaRequestDedicated.json deleted file mode 100644 index e7686efd7de2..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putMachineLearningServicesQuotaRequestDedicated.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus", - "resourceName": "standardFSv2Family", - "api-version": "2021-03-15-preview", - "createQuotaRequest": { - "properties": { - "limit": 200, - "name": { - "value": "standardFSv2Family" - } - } - } - }, - "responses": { - "202": { - "headers": { - "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview", - "Retry-After": "30", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" - }, - "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardFSv2Family", - "type": "Microsoft.Quota/quotaLimits", - "name": "standardFSv2Family", - "properties": { - "limit": 200, - "name": { - "value": "standardFSv2Family" - } - } - } - }, - "200": { - "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardFSv2Family", - "type": "Microsoft.Quota/quotaLimits", - "name": "standardFSv2Family", - "properties": { - "limit": 200, - "name": { - "value": "standardFSv2Family" - } - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putMachineLearningServicesQuotaRequestLowPriority.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putMachineLearningServicesQuotaRequestLowPriority.json index f263e23c189a..f00fc14f86e1 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putMachineLearningServicesQuotaRequestLowPriority.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putMachineLearningServicesQuotaRequestLowPriority.json @@ -5,7 +5,10 @@ "api-version": "2021-03-15-preview", "createQuotaRequest": { "properties": { - "limit": 200, + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, "name": { "value": "TotalLowPriorityCores" }, @@ -15,29 +18,24 @@ }, "responses": { "202": { - "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotaLimits/TotalLowPriorityCores", - "type": "Microsoft.Quota/quotaLimits", - "name": "TotalLowPriorityCores", - "properties": { - "name": { - "value": "TotalLowPriorityCores" - }, - "resourceType": "lowPriority" - } + "headers": { + "Retry-After": "30", + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" } }, "200": { "headers": { - "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview", - "Retry-After": "30", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" }, "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotaLimits/TotalLowPriorityCores", - "type": "Microsoft.Quota/quotaLimits", + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotas/TotalLowPriorityCores", + "type": "Microsoft.Quota/quotas", "name": "TotalLowPriorityCores", "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, "name": { "value": "TotalLowPriorityCores" }, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putNetworkOneSkuQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putNetworkOneSkuQuotaRequest.json new file mode 100644 index 000000000000..de67a65dcbc0 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putNetworkOneSkuQuotaRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus", + "resourceName": "MinPublicIpInterNetworkPrefixLength", + "api-version": "2021-03-15-preview", + "createQuotaRequest": { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "MinPublicIpInterNetworkPrefixLength" + }, + "resourceType": "MinPublicIpInterNetworkPrefixLength" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" + } + }, + "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" + }, + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Quota/quotas", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "MinPublicIpInterNetworkPrefixLength" + }, + "resourceType": "MinPublicIpInterNetworkPrefixLength" + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json new file mode 100644 index 000000000000..31b960611ce5 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus", + "resourceName": "StandardSkuPublicIpAddresses", + "api-version": "2021-03-15-preview", + "createQuotaRequest": { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "StandardSkuPublicIpAddresses" + }, + "resourceType": "PublicIpAddresses" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/operationsStatus/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" + } + }, + "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequest/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2021-03-15-preview" + }, + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Quota/quotas", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "StandardSkuPublicIpAddresses" + }, + "resourceType": "PublicIpAddresses" + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/quota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/quota.json index a0edfe706850..f2c1233112d8 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/quota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/quota.json @@ -27,23 +27,125 @@ "flow": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { - "user_impersonation": "impersonate your user account" + "user_impersonation": "Impersonate your user account." }, "type": "oauth2", "description": "Azure Active Directory OAuth 2.0 authorization" } }, "paths": { - "/{scope}/providers/Microsoft.Quota/quotaLimits/{resourceName}": { + "/{scope}/providers/Microsoft.Quota/usages/{resourceName}": { + "get": { + "tags": [ + "UsagesInformation" + ], + "description": "Get the current usage of a resource.", + "operationId": "Usages_Get", + "x-ms-examples": { + "Quotas_UsagesRequest_ForNetwork": { + "$ref": "./examples/getNetworkOneSkuUsages.json" + }, + "Quotas_UsagesRequest_ForCompute": { + "$ref": "./examples/getComputeOneSkuUsages.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceNameInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ScopeInPath" + } + ], + "responses": { + "200": { + "description": "OK. The usage information will be returned in the response.", + "schema": { + "$ref": "#/definitions/CurrentUsagesBase" + }, + "headers": { + "ETag": { + "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Quota/usages": { + "get": { + "tags": [ + "UsagesInformation" + ], + "description": "Get a list of current usage for all resources for the scope specified.", + "operationId": "Usages_List", + "x-ms-examples": { + "Quotas_listUsagesForNetwork": { + "$ref": "./examples/getNetworkUsages.json" + }, + "Quotas_listUsagesForCompute": { + "$ref": "./examples/getComputeUsages.json" + }, + "Quotas_listUsagesMachineLearningServices": { + "$ref": "./examples/getMachineLearningServicesUsages.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ScopeInPath" + } + ], + "responses": { + "200": { + "description": "OK. Usage information will be returned in the response with pagination.", + "schema": { + "$ref": "#/definitions/UsagesLimits" + }, + "headers": { + "ETag": { + "description": "Current entity state version. It should be treated as opaque and used to make conditional HTTP requests.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Quota/quotas/{resourceName}": { "get": { "tags": [ "QuotaInformation" ], - "description": "Gets the quota limit and current quota usage of a resource. The response can be used to determine the remaining quota and calculate a new quota limit that can be submitted with a PUT request.", + "description": "Get the quota limit of a resource. The response can be used to determine the remaining quota to calculate a new quota limit that can be submitted with a PUT request.", "operationId": "Quota_Get", "x-ms-examples": { - "Quotas_Request_ForCompute": { - "$ref": "./examples/getComputeOneSkuUsages.json" + "Quotas_UsagesRequest_ForNetwork": { + "$ref": "./examples/getNetworkOneSkuQuotaLimit.json" + }, + "Quotas_Get_Request_ForCompute": { + "$ref": "./examples/getComputeOneSkuQuotaLimit.json" } }, "parameters": [ @@ -82,17 +184,20 @@ "tags": [ "QuotaInformation" ], - "description": "Create or update the quota limit for the specified resource to the requested value. To update the quota, follow these steps:\n1. Use the GET operation to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit.", + "description": "Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.", "operationId": "Quota_CreateOrUpdate", "x-ms-examples": { - "Quotas_Request_ForCompute": { - "$ref": "./examples/putComputeOneSkuQuotaRequest.json" + "Quotas_PutRequest_ForNetwork": { + "$ref": "./examples/putNetworkOneSkuQuotaRequest.json" }, - "Quotas_Request_ForMachineLearningServices_DedicatedResource": { - "$ref": "./examples/putMachineLearningServicesQuotaRequestDedicated.json" + "Quotas_Put_Request_ForCompute": { + "$ref": "./examples/putComputeOneSkuQuotaRequest.json" }, "Quotas_Request_ForMachineLearningServices_LowPriorityResource": { "$ref": "./examples/putMachineLearningServicesQuotaRequestLowPriority.json" + }, + "Quotas_PutRequest_ForNetwork_StandardSkuPublicIpAddressesResource": { + "$ref": "./examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json" } }, "x-ms-long-running-operation": true, @@ -112,7 +217,7 @@ { "name": "createQuotaRequest", "in": "body", - "description": "Quota requests payload.", + "description": "Quota request payload.", "required": true, "schema": { "$ref": "#/definitions/CurrentQuotaLimitBase" @@ -127,10 +232,7 @@ } }, "202": { - "description": "The request is accepted and is being processed. To check the status for this request, use the value for the quota request ID **id** obtained in the response of a [Quota Request Status](https://docs.microsoft.com/en-us/rest/api/reserved-vm-instances/quotarequeststatus/get) GET operation.", - "schema": { - "$ref": "#/definitions/CurrentQuotaLimitBase" - } + "description": "The request is accepted and is being processed. To check the status for this request, use the value for the quota request ID **id** obtained in the response of a [Quota Request Status](https://docs.microsoft.com/en-us/rest/api/reserved-vm-instances/quotarequeststatus/get) GET operation." }, "default": { "description": "Error response describing why the operation failed.", @@ -144,9 +246,12 @@ "tags": [ "QuotaInformation" ], - "description": "Update the quota limit for a specific resource to the specified value:\n1. Use the GET operation to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit.", + "description": "Update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.", "operationId": "Quota_Update", "x-ms-examples": { + "Quotas_Request_PatchForNetwork": { + "$ref": "./examples/patchNetworkOneSkuQuotaRequest.json" + }, "Quotas_Request_PatchForCompute": { "$ref": "./examples/patchComputeQuotaRequest.json" } @@ -183,10 +288,7 @@ } }, "202": { - "description": "The request is accepted and is being processed. To check the status for this request, use the value for the quota request ID **id** in a [Quota Request Status](https://docs.microsoft.com/en-us/rest/api/reserved-vm-instances/quotarequeststatus/get) GET operation.", - "schema": { - "$ref": "#/definitions/CurrentQuotaLimitBase" - } + "description": "The request is accepted and is being processed. To check the status for this request, use the value for the quota request ID **id** in a [Quota Request Status](https://docs.microsoft.com/en-us/rest/api/reserved-vm-instances/quotarequeststatus/get) GET operation." }, "default": { "description": "Error response describing why the operation failed.", @@ -197,19 +299,22 @@ } } }, - "/{scope}/providers/Microsoft.Quota/quotaLimits": { + "/{scope}/providers/Microsoft.Quota/quotas": { "get": { "tags": [ "QuotaInformation" ], - "description": "Get a list of current quota limits and usages of all resources. The response from this GET operation can be leveraged to submit requests to update a quota.", + "description": "Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can be leveraged to submit requests to update a quota.", "operationId": "Quota_List", "x-ms-examples": { - "Quotas_listUsagesForCompute": { - "$ref": "./examples/getComputeUsages.json" + "Quotas_listQuotaLimitsForNetwork": { + "$ref": "./examples/getNetworkQuotaLimits.json" }, - "Quotas_listUsagesMachineLearningServices": { - "$ref": "./examples/getMachineLearningServicesUsages.json" + "Quotas_listQuotaLimitsForCompute": { + "$ref": "./examples/getComputeQuotaLimits.json" + }, + "Quotas_listQuotaLimitsMachineLearningServices": { + "$ref": "./examples/getMachineLearningServicesQuotaLimits.json" } }, "parameters": [ @@ -245,7 +350,7 @@ } } }, - "/{scope}/providers/Microsoft.Quota/quotaLimitsRequests/{id}": { + "/{scope}/providers/Microsoft.Quota/quotaRequests/{id}": { "get": { "tags": [ "QuotaRequests" @@ -261,7 +366,7 @@ "$ref": "./examples/getQuotaRequestStatusFailed.json" } }, - "description": "Gets the quota request details and status by quota request ID for the resources of the resource provider at a specific location. The quota request ID **id** is returned in the response of the PUT operation.", + "description": "Get the quota request details and status by quota request ID for the resources of the resource provider at a specific location. The quota request ID **id** is returned in the response of the PUT operation.", "operationId": "QuotaRequestStatus_Get", "parameters": [ { @@ -290,7 +395,7 @@ } } }, - "/{scope}/providers/Microsoft.Quota/quotaLimitsRequests": { + "/{scope}/providers/Microsoft.Quota/quotaRequests": { "get": { "tags": [ "QuotaRequests" @@ -300,7 +405,7 @@ "$ref": "./examples/getQuotaRequestsHistory.json" } }, - "description": "For the specified location and resource provider, gets the current quota requests under the subscription for a one year period ending at the time is made. Use the **oData** filter can be used to select quota requests.", + "description": "For the specified scope, get the current quota requests for a one year period ending at the time is made. Use the **oData** filter to select quota requests.", "operationId": "QuotaRequestStatus_List", "parameters": [ { @@ -342,43 +447,10 @@ } } }, - "/providers/Microsoft.Quota/quotaLimitProviders": { - "get": { - "tags": [ - "QuotaMetadata" - ], - "description": "Gets the list of current resource providers supported by the Microsoft.Quota resource provider.\r\nFor each resource provider, the resource templates the resource provider supports are be provided. \r\nFor each resource template, the resource dimensions are listed. The resource dimensions are the name-value pairs in the resource URI.\r\nExample: Microsoft.Compute Resource Provider\r\nThe URI template is '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{locationId}/quotaBucket'. The actual dimensions vary depending on the resource provider.\r\nThe resource dimensions are {subscriptions},{locations},{quotaBucket}.", - "operationId": "QuotaResourceProviders_List", - "x-ms-examples": { - "Quotas_listMetadataForRPs": { - "$ref": "./examples/metadata/getQuotaRPMetadata.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. Quota limits type information.", - "schema": { - "$ref": "#/definitions/resourceProvidersList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ExceptionResponse" - } - } - } - } - }, "/providers/Microsoft.Quota/operations": { "get": { "summary": "GET operations.", - "description": "List all GET operations.", + "description": "List all the operations supported by the Microsoft.Quota resource provider.", "operationId": "Operation_List", "x-ms-examples": { "GetOperations": { @@ -394,11 +466,11 @@ } ], "tags": [ - "Operation" + "Operations" ], "responses": { "200": { - "description": "List all GET operations.", + "description": "List all the operations.", "schema": { "$ref": "#/definitions/OperationList" } @@ -469,7 +541,7 @@ "description": "Resource properties.", "properties": { "id": { - "description": "Resource ID.", + "description": "Resource ID", "type": "string", "readOnly": true }, @@ -481,7 +553,87 @@ "type": { "type": "string", "readOnly": true, - "description": "Resource type. \"Microsoft.Quota/quotaLimits\"" + "description": "Resource type. Example: \"Microsoft.Quota/quotas\"" + } + } + }, + "CurrentUsagesBase": { + "type": "object", + "description": "Resource usage.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The resource type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Usage properties for the specified resource.", + "$ref": "#/definitions/UsagesProperties" + } + } + }, + "UsagesProperties": { + "description": "Usage properties for the specified resource.", + "type": "object", + "properties": { + "usages": { + "description": "The quota limit properties for this resource.", + "$ref": "#/definitions/UsagesObject" + }, + "unit": { + "description": " The units for the quota usage, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name provided by the resource provider. Use this property name when requesting quota.", + "$ref": "#/definitions/ResourceName" + }, + "resourceType": { + "description": "The name of the resource type.", + "$ref": "#/definitions/ResourceTypesName" + }, + "quotaPeriod": { + "description": "The time period for the summary of the quota usage values. For example:\r\n*P1D (per one day)\n*PT1M (per one minute)\n*PT1S (per one second).\r\nThis parameter is optional because it is not relevant for all resources such as compute.", + "type": "string", + "readOnly": true + }, + "isQuotaApplicable": { + "description": "States if quota can be requested for this resource.", + "type": "boolean", + "readOnly": true + }, + "properties": { + "description": "Additional properties for the specific resource provider.", + "type": "object" + } + } + }, + "UsagesLimits": { + "type": "object", + "description": "Quota limits.", + "properties": { + "value": { + "description": "List of quota limits.", + "type": "array", + "items": { + "$ref": "#/definitions/CurrentUsagesBase" + } + }, + "nextLink": { + "description": "The URI used to fetch the next page of quota limits. When there are no more pages, this is null.", + "type": "string" } } }, @@ -491,7 +643,7 @@ "x-ms-azure-resource": true, "properties": { "id": { - "description": "The resource Id.", + "description": "The resource ID.", "type": "string", "readOnly": true }, @@ -506,7 +658,7 @@ "readOnly": true }, "properties": { - "description": "Quota properties for the specified resource.", + "description": "Quota properties for the specified resource, based on the API called, Quotas or Usages.", "$ref": "#/definitions/QuotaProperties" } } @@ -516,19 +668,11 @@ "type": "object", "properties": { "limit": { - "description": "Quota limit.", - "type": "integer", - "format": "int32", - "readOnly": false - }, - "currentValue": { - "description": "Usage information for the current resource.", - "type": "integer", - "format": "int32", - "readOnly": true + "description": "Resource quota limit properties.", + "$ref": "#/definitions/LimitJsonObject" }, "unit": { - "description": " The quota limit units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", + "description": " The quota units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", "type": "string", "readOnly": true }, @@ -584,7 +728,7 @@ } }, "nextLink": { - "description": "The URI used to fetch the next page of quota limits. When there are no more pages, this is null.", + "description": "The URI used to fetch the next page of quota limits. When there are no more pages, this string is null.", "type": "string" } } @@ -623,18 +767,12 @@ "type": "object", "description": "Request property.", "properties": { - "limit": { - "description": "Resource quota limit.", - "type": "integer", - "format": "int32", - "readOnly": true - }, "name": { "description": "Resource name.", "$ref": "#/definitions/ResourceName" }, "resourceType": { - "description": "Resource type for which the quota check was made.", + "description": "Resource type for which the quota properties were requested.", "type": "string", "readOnly": true }, @@ -655,9 +793,111 @@ "description": "Quota request ID.", "type": "string", "readOnly": true + }, + "limit": { + "description": "Resource quota limit properties.", + "$ref": "#/definitions/LimitJsonObject" + } + } + }, + "LimitObjectTypes": { + "description": "The limit object type.", + "enum": [ + "LimitValue" + ], + "type": "string", + "x-ms-enum": { + "name": "limitType", + "modelAsString": true + } + }, + "LimitTypes": { + "description": "The quota or usages limit types.", + "enum": [ + "Independent", + "Shared" + ], + "type": "string", + "x-ms-enum": { + "name": "quotaLimitTypes", + "modelAsString": true + } + }, + "LimitJsonObject": { + "description": "LimitJson abstract class.", + "required": [ + "limitObjectType" + ], + "type": "object", + "properties": { + "limitObjectType": { + "$ref": "#/definitions/LimitObjectTypes" } + }, + "discriminator": "limitObjectType" + }, + "UsagesTypes": { + "description": "The quota or usages limit types.", + "enum": [ + "Individual", + "Combined" + ], + "type": "string", + "x-ms-enum": { + "name": "usagesTypes", + "modelAsString": true } }, + "UsagesObject": { + "description": "The resource usages value.", + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int32", + "description": "The usages value." + }, + "usagesType": { + "$ref": "#/definitions/UsagesTypes" + } + }, + "required": [ + "value" + ] + }, + "LimitObject": { + "description": "The resource quota limit value.", + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int32", + "description": "The quota/limit value" + }, + "limitObjectType": { + "$ref": "#/definitions/LimitObjectTypes" + }, + "limitType": { + "$ref": "#/definitions/LimitTypes" + } + }, + "required": [ + "value" + ] + }, + "LimitValue": { + "x-ms-discriminator-value": "LimitValue", + "type": "object", + "description": "The resource quota limit.", + "allOf": [ + { + "$ref": "#/definitions/LimitJsonObject" + }, + { + "$ref": "#/definitions/LimitObject" + } + ] + }, "QuotaRequestOneResourceSubmitResponse": { "description": "Quota request response.", "type": "object", @@ -701,14 +941,14 @@ "readOnly": true }, "properties": { - "description": "The quota request details.", + "description": "Quota request details.", "type": "object", "$ref": "#/definitions/QuotaRequestProperties" }, "type": { "type": "string", "readOnly": true, - "description": "Resource type. \"Microsoft.Quota/quotaLimits\"" + "description": "Resource type. \"Microsoft.Quota/quotas\"." } } }, @@ -753,16 +993,8 @@ "readOnly": true }, "limit": { - "description": "Quota limit.", - "type": "integer", - "format": "int32", - "readOnly": false - }, - "currentValue": { - "description": "Usage information for the current resource.", - "type": "integer", - "format": "int32", - "readOnly": true + "description": "Resource quota limit properties.", + "$ref": "#/definitions/LimitObject" }, "unit": { "description": " The quota limit units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", @@ -805,7 +1037,7 @@ "type": { "type": "string", "readOnly": true, - "description": "Resource type. \"Microsoft.Quota/quotaLimits\"" + "description": "Resource type. \"Microsoft.Quota/quotas\"." }, "properties": { "description": "Quota request details.", @@ -826,7 +1058,7 @@ } }, "nextLink": { - "description": "The URI for fetching the next page of quota limits. When there are no more pages, this is null.", + "description": "The URI for fetching the next page of quota limits. When there are no more pages, this string is null.", "type": "string" } } @@ -844,6 +1076,10 @@ "type": "string", "readOnly": true }, + "error": { + "description": "Error details of the quota request.", + "$ref": "#/definitions/ServiceErrorDetail" + }, "requestSubmitTime": { "description": "The quota request submission time. The date conforms to the following format specified by the ISO 8601 standard: yyyy-MM-ddTHH:mm:ssZ", "type": "string", @@ -880,10 +1116,8 @@ "format": "date-time" }, "limit": { - "description": "Quota limit.", - "type": "integer", - "format": "int32", - "readOnly": false + "description": "Resource quota limit properties.", + "$ref": "#/definitions/LimitObject" }, "currentValue": { "description": "Usage information for the current resource.", @@ -914,6 +1148,10 @@ "type": "boolean", "readOnly": true }, + "error": { + "description": "Error details of the quota request.", + "$ref": "#/definitions/ServiceErrorDetail" + }, "properties": { "description": "Additional properties for the specific resource provider.", "type": "object" @@ -938,19 +1176,8 @@ }, "ResourceTypesName": { "description": "Resource types. For extensibility, it is a string.", - "enum": [ - "standard", - "dedicated", - "lowPriority", - "shared", - "serviceSpecific" - ], "readOnly": false, - "type": "string", - "x-ms-enum": { - "name": "ResourceType", - "modelAsString": true - } + "type": "string" }, "ExceptionResponse": { "type": "object", @@ -962,211 +1189,6 @@ }, "description": "Error." }, - "quotaBucketProperties": { - "type": "object", - "description": "quotaBucket provider properties.", - "properties": { - "name": { - "type": "string", - "description": "Property name." - }, - "displayName": { - "description": "Display name.", - "type": "string" - } - } - }, - "ResourceProviderDimension": { - "type": "object", - "description": "Resource provider resource dimension.", - "properties": { - "name": { - "type": "string", - "description": "Resource dimension name." - }, - "displayName": { - "description": "Display name.", - "type": "string" - } - } - }, - "ResourceProviderTemplate": { - "type": "object", - "description": "Resource template details for the resource provider.", - "properties": { - "resourceType": { - "type": "string", - "description": "Resource type." - }, - "resourceQuery": { - "description": "Resource query for dimension values.", - "$ref": "#/definitions/resourceQueryDetails" - }, - "resourceUsagesQuery": { - "description": "Resource usages query.", - "$ref": "#/definitions/resourceQueryDetails" - }, - "dimensions": { - "description": "Resource provider dimensions.", - "type": "array", - "items": { - "$ref": "#/definitions/ResourceProviderDimension" - } - } - } - }, - "ResourceProviderTemplates": { - "type": "object", - "description": "List of resource provider templates", - "properties": { - "value": { - "description": "The resource provider templates", - "type": "array", - "items": { - "$ref": "#/definitions/ResourceProviderTemplate" - } - } - } - }, - "ResourceProviderInformation": { - "type": "object", - "description": "Resource provider information.", - "properties": { - "resourceProviderName": { - "type": "string", - "description": "Resource provider name." - }, - "properties": { - "description": "Resource provider quota dimensions.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ResourceProviderTemplates" - } - } - }, - "resourceProvidersList": { - "type": "object", - "description": "Resource providers list.", - "properties": { - "value": { - "description": "Resource provider information.", - "type": "array", - "items": { - "$ref": "#/definitions/ResourceProviderInformation" - } - } - } - }, - "QuotaTypeInformationDimensionList": { - "description": "Quota types information list.", - "type": "object", - "properties": { - "resourceType": { - "type": "string", - "description": "Resource type" - }, - "value": { - "description": "Quota type information.", - "type": "array", - "items": { - "$ref": "#/definitions/QuotaTypeDimensionInformation" - } - } - } - }, - "QuotaTypeDimensionInformation": { - "type": "object", - "description": "Quota type information.", - "properties": { - "name": { - "type": "string", - "description": "Property name." - }, - "displayName": { - "type": "string", - "description": "Display name." - }, - "id": { - "type": "string", - "description": "Dimension ID." - } - } - }, - "QuotaTemplateDetails": { - "type": "object", - "description": "Quota template details.", - "properties": { - "resourceType": { - "type": "string", - "description": "Resource type." - }, - "properties": { - "description": "Quota type properties for the resource ID.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/QuotaTypeInformationDimensionList" - } - } - }, - "resourceQueryDetails": { - "type": "object", - "description": "Resource query details.", - "properties": { - "resourceQueryType": { - "description": "Resource query type.", - "$ref": "#/definitions/ResourceQueryType" - }, - "resourceQueryMethod": { - "description": "Resource query method.", - "$ref": "#/definitions/ResourceQueryMethod" - }, - "resourceQueryUri": { - "type": "string", - "description": "Base URI for for resource query." - }, - "resourceQueryPostTemplate": { - "description": "Template to create the resource query.", - "type": "string" - } - } - }, - "ResourceQueryType": { - "description": "Resource query types. For extensibility, it is a string.", - "enum": [ - "ARG", - "RestAPI" - ], - "readOnly": false, - "type": "string", - "x-ms-enum": { - "name": "ResourceQueryType", - "modelAsString": true - } - }, - "ResourceQueryMethod": { - "description": "The resource query method.", - "enum": [ - "GET", - "POST" - ], - "readOnly": false, - "type": "string", - "x-ms-enum": { - "name": "ResourceQueryMethod", - "modelAsString": true - } - }, - "QuotaTemplatesDetails": { - "type": "object", - "description": "Quota templates details.", - "properties": { - "value": { - "description": "Quota templates information.", - "type": "array", - "items": { - "$ref": "#/definitions/QuotaTemplateDetails" - } - } - } - }, "ServiceError": { "description": "API error details.", "type": "object", @@ -1228,7 +1250,7 @@ "in": "path", "required": true, "type": "string", - "description": "Resource name for a given resource provider. For example:\r\n- SKU name for Microsoft.Compute\r\n- Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices", + "description": "Resource name for a given resource provider. For example:\r\n- SKU name for Microsoft.Compute\r\n- SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\r\n For Microsoft.Network PublicIPAddresses.", "x-ms-parameter-location": "method" }, "ResourceDimensionTypeInParameter": { @@ -1262,12 +1284,12 @@ "in": "query", "type": "string", "required": false, - "description": "The **Skiptoken** parameter is used only if a previous operation returned a partial result. If a previous response contains a **nextLink** element, the value of the **nextLink** element includes a **skiptoken** parameter that specifies a starting point to use for subsequent calls.", + "description": "The **Skiptoken** parameter is used only if a previous operation returned a partial result. If a previous response contains a **nextLink** element, its value includes a **skiptoken** parameter that specifies a starting point to use for subsequent calls.", "x-ms-parameter-location": "method" }, "ScopeInPath": { "name": "scope", - "description": "The target Azure resource URI. For example, `/subscriptions/9f6cce51-6baf-4de5-a3c4-6f58b85315b9/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`. This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added after `/quotaLimits`, then it's the target Azure resource URI in the GET operation for the specific resource.", + "description": "The target Azure resource URI. For example, `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`. This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific resource.", "in": "path", "required": true, "type": "string",