From 89500937887bcd5112145f6ba20233232a3d29b9 Mon Sep 17 00:00:00 2001 From: allison-inman <70279908+allison-inman@users.noreply.github.com> Date: Tue, 21 Mar 2023 17:58:06 -0700 Subject: [PATCH] [Hub Generated] Review request for Microsoft.Quota to add version stable/2023-02-01 (#22367) * Adds base for updating Microsoft.Quota from version preview/2021-03-15-preview to version 2023-02-01 * Updates readme * Updates API version in new specs and examples * Fix version in readme * Remove stale version, update readme * Mark parameter as optional --- .../2021-03-15/examples/GetOperations.json | 49 -- .../examples/metadata/getQuotaRPMetadata.json | 137 ---- .../examples/patchComputeQuotaRequest.json | 49 -- .../putComputeOneSkuQuotaRequest.json | 48 -- ...LearningServicesQuotaRequestDedicated.json | 48 -- .../2023-02-01/examples/GetOperations.json | 49 ++ .../examples/getComputeOneSkuQuotaLimit.json | 29 + .../examples/getComputeOneSkuUsages.json | 11 +- .../examples/getComputeQuotaLimits.json | 219 ++++++ .../examples/getComputeUsages.json | 110 +-- ...getMachineLearningServicesQuotaLimits.json | 48 ++ .../getMachineLearningServicesUsages.json | 22 +- .../examples/getNetworkOneSkuQuotaLimit.json | 29 + .../examples/getNetworkOneSkuUsages.json | 28 + .../examples/getNetworkQuotaLimits.json | 699 ++++++++++++++++++ .../2023-02-01/examples/getNetworkUsages.json | 372 ++++++++++ .../examples/getQuotaRequestStatusById.json | 20 +- .../examples/getQuotaRequestStatusFailed.json | 25 +- .../getQuotaRequestStatusInProgress.json | 16 +- .../examples/getQuotaRequestsHistory.json | 67 +- .../examples/patchComputeQuotaRequest.json | 46 ++ .../patchNetworkOneSkuQuotaRequest.json | 47 ++ .../putComputeOneSkuQuotaRequest.json | 45 ++ ...arningServicesQuotaRequestLowPriority.json | 32 +- .../putNetworkOneSkuQuotaRequest.json | 47 ++ ...taRequestStandardSkuPublicIpAddresses.json | 47 ++ .../{2021-03-15 => 2023-02-01}/quota.json | 697 ++++++++--------- .../quota/resource-manager/readme.md | 18 +- 28 files changed, 2224 insertions(+), 830 deletions(-) delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/GetOperations.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/metadata/getQuotaRPMetadata.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/patchComputeQuotaRequest.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/putComputeOneSkuQuotaRequest.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/putMachineLearningServicesQuotaRequestDedicated.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/GetOperations.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeOneSkuQuotaLimit.json rename specification/quota/resource-manager/Microsoft.Quota/stable/{2021-03-15 => 2023-02-01}/examples/getComputeOneSkuUsages.json (60%) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeQuotaLimits.json rename specification/quota/resource-manager/Microsoft.Quota/stable/{2021-03-15 => 2023-02-01}/examples/getComputeUsages.json (54%) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getMachineLearningServicesQuotaLimits.json rename specification/quota/resource-manager/Microsoft.Quota/stable/{2021-03-15 => 2023-02-01}/examples/getMachineLearningServicesUsages.json (55%) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkOneSkuQuotaLimit.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkOneSkuUsages.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkQuotaLimits.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkUsages.json rename specification/quota/resource-manager/Microsoft.Quota/stable/{2021-03-15 => 2023-02-01}/examples/getQuotaRequestStatusById.json (63%) rename specification/quota/resource-manager/Microsoft.Quota/stable/{2021-03-15 => 2023-02-01}/examples/getQuotaRequestStatusFailed.json (59%) rename specification/quota/resource-manager/Microsoft.Quota/stable/{2021-03-15 => 2023-02-01}/examples/getQuotaRequestStatusInProgress.json (70%) rename specification/quota/resource-manager/Microsoft.Quota/stable/{2021-03-15 => 2023-02-01}/examples/getQuotaRequestsHistory.json (57%) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/patchComputeQuotaRequest.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/patchNetworkOneSkuQuotaRequest.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putComputeOneSkuQuotaRequest.json rename specification/quota/resource-manager/Microsoft.Quota/stable/{2021-03-15 => 2023-02-01}/examples/putMachineLearningServicesQuotaRequestLowPriority.json (50%) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequest.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json rename specification/quota/resource-manager/Microsoft.Quota/stable/{2021-03-15 => 2023-02-01}/quota.json (72%) diff --git a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/GetOperations.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/GetOperations.json deleted file mode 100644 index a0ee24dd7dc2..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/GetOperations.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-15" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Quota/quotaLimits/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" - } - }, - { - "name": "Microsoft.Quota/quotaLimits/write", - "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" - } - }, - { - "name": "Microsoft.Quota/quotaLimitProviders/read", - "display": { - "provider": "Microsoft Quota", - "resource": "Quota limits provider metadata", - "operation": "Get quota limit providers metadata", - "description": "Get quota limit resource providers metadata" - } - }, - { - "name": "Microsoft.Quota/quotaLimitsRequests/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" - } - } - ] - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/metadata/getQuotaRPMetadata.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/metadata/getQuotaRPMetadata.json deleted file mode 100644 index dbe102fdf738..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/metadata/getQuotaRPMetadata.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-15" - }, - "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/stable/2021-03-15/examples/patchComputeQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/patchComputeQuotaRequest.json deleted file mode 100644 index eb1bbeeab119..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/patchComputeQuotaRequest.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus", - "resourceName": "standardFSv2Family", - "api-version": "2021-03-15", - "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", - "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" - }, - "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", - "localizedValue": "Standard FSv2 Family vCPUs" - } - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/putComputeOneSkuQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/putComputeOneSkuQuotaRequest.json deleted file mode 100644 index 03242d60c745..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/putComputeOneSkuQuotaRequest.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", - "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", - "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" - }, - "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/stable/2021-03-15/examples/putMachineLearningServicesQuotaRequestDedicated.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/putMachineLearningServicesQuotaRequestDedicated.json deleted file mode 100644 index 03242d60c745..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/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", - "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", - "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" - }, - "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/stable/2023-02-01/examples/GetOperations.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/GetOperations.json new file mode 100644 index 000000000000..79671d56360b --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/GetOperations.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2023-02-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Quota/usages/read", + "display": { + "provider": "Microsoft Quota", + "resource": "Resource current usages", + "operation": "Get resource usages", + "description": "Get the current usages of the specified resource and location" + } + }, + { + "name": "Microsoft.Quota/quotas/read", + "display": { + "provider": "Microsoft Quota", + "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/quotas/write", + "display": { + "provider": "Microsoft Quota", + "resource": "Resource quota limit", + "operation": "Create resource quota limit", + "description": "Create service limit or quota for the specified resource and location" + } + }, + { + "name": "Microsoft.Quota/quotaRequests/read", + "display": { + "provider": "Microsoft Quota", + "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/stable/2023-02-01/examples/getComputeOneSkuQuotaLimit.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeOneSkuQuotaLimit.json new file mode 100644 index 000000000000..812f253e7e07 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeOneSkuQuotaLimit.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus", + "resourceName": "standardNDSFamily", + "api-version": "2023-02-01" + }, + "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/stable/2021-03-15/examples/getComputeOneSkuUsages.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeOneSkuUsages.json similarity index 60% rename from specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getComputeOneSkuUsages.json rename to specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeOneSkuUsages.json index 9efbd14bfdd2..644cd23d49e5 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getComputeOneSkuUsages.json +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeOneSkuUsages.json @@ -2,16 +2,19 @@ "parameters": { "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus", "resourceName": "standardNDSFamily", - "api-version": "2021-03-15" + "api-version": "2023-02-01" }, "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/stable/2023-02-01/examples/getComputeQuotaLimits.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeQuotaLimits.json new file mode 100644 index 000000000000..ac78a4ecdf80 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeQuotaLimits.json @@ -0,0 +1,219 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus", + "api-version": "2023-02-01" + }, + "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/stable/2021-03-15/examples/getComputeUsages.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeUsages.json similarity index 54% rename from specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getComputeUsages.json rename to specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeUsages.json index adf15b58a729..13f250f82d96 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getComputeUsages.json +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getComputeUsages.json @@ -1,20 +1,21 @@ { "parameters": { "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus", - "api-version": "2021-03-15" + "api-version": "2023-02-01" }, "responses": { "200": { "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/stable/2023-02-01/examples/getMachineLearningServicesQuotaLimits.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getMachineLearningServicesQuotaLimits.json new file mode 100644 index 000000000000..f58492076b78 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getMachineLearningServicesQuotaLimits.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus", + "api-version": "2023-02-01" + }, + "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/stable/2021-03-15/examples/getMachineLearningServicesUsages.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getMachineLearningServicesUsages.json similarity index 55% rename from specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getMachineLearningServicesUsages.json rename to specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getMachineLearningServicesUsages.json index 827ec295282a..021c005afb1b 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getMachineLearningServicesUsages.json +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getMachineLearningServicesUsages.json @@ -1,19 +1,21 @@ { "parameters": { "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus", - "api-version": "2021-03-15" + "api-version": "2023-02-01" }, "responses": { "200": { "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/stable/2023-02-01/examples/getNetworkOneSkuQuotaLimit.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkOneSkuQuotaLimit.json new file mode 100644 index 000000000000..a3d204863e09 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkOneSkuQuotaLimit.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus", + "resourceName": "MinPublicIpInterNetworkPrefixLength", + "api-version": "2023-02-01" + }, + "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/stable/2023-02-01/examples/getNetworkOneSkuUsages.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkOneSkuUsages.json new file mode 100644 index 000000000000..2da0364bd32f --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkOneSkuUsages.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus", + "resourceName": "MinPublicIpInterNetworkPrefixLength", + "api-version": "2023-02-01" + }, + "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/stable/2023-02-01/examples/getNetworkQuotaLimits.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkQuotaLimits.json new file mode 100644 index 000000000000..bceef87d0be2 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkQuotaLimits.json @@ -0,0 +1,699 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus", + "api-version": "2023-02-01" + }, + "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/stable/2023-02-01/examples/getNetworkUsages.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkUsages.json new file mode 100644 index 000000000000..5d9fdea0aa2d --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getNetworkUsages.json @@ -0,0 +1,372 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus", + "api-version": "2023-02-01" + }, + "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/stable/2021-03-15/examples/getQuotaRequestStatusById.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestStatusById.json similarity index 63% rename from specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getQuotaRequestStatusById.json rename to specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestStatusById.json index 036cc2f22b1e..1b0d94f07c3b 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getQuotaRequestStatusById.json +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestStatusById.json @@ -2,13 +2,13 @@ "parameters": { "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus", "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "api-version": "2021-03-15" + "api-version": "2023-02-01" }, "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/stable/2021-03-15/examples/getQuotaRequestStatusFailed.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestStatusFailed.json similarity index 59% rename from specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getQuotaRequestStatusFailed.json rename to specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestStatusFailed.json index 93cda8f02d0e..e1171fb81cfc 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getQuotaRequestStatusFailed.json +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestStatusFailed.json @@ -2,37 +2,34 @@ "parameters": { "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus", "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "api-version": "2021-03-15" + "api-version": "2023-02-01" }, "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/stable/2021-03-15/examples/getQuotaRequestStatusInProgress.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestStatusInProgress.json similarity index 70% rename from specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getQuotaRequestStatusInProgress.json rename to specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestStatusInProgress.json index 6feb49fab18e..c1f5546d3f7f 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getQuotaRequestStatusInProgress.json +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestStatusInProgress.json @@ -2,13 +2,13 @@ "parameters": { "scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus", "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "api-version": "2021-03-15" + "api-version": "2023-02-01" }, "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/stable/2021-03-15/examples/getQuotaRequestsHistory.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestsHistory.json similarity index 57% rename from specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getQuotaRequestsHistory.json rename to specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestsHistory.json index 340983dfdd0b..221bb19a864e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/getQuotaRequestsHistory.json +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/getQuotaRequestsHistory.json @@ -1,16 +1,16 @@ { "parameters": { "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus", - "api-version": "2021-03-15" + "api-version": "2023-02-01" }, "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/stable/2023-02-01/examples/patchComputeQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/patchComputeQuotaRequest.json new file mode 100644 index 000000000000..193432867fd3 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/patchComputeQuotaRequest.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus", + "resourceName": "standardFSv2Family", + "api-version": "2023-02-01", + "createQuotaRequest": { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "standardFSv2Family" + } + } + } + }, + "responses": { + "202": { + "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=2023-02-01" + } + }, + "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=2023-02-01" + }, + "body": { + "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": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "standardFSv2Family", + "localizedValue": "Standard FSv2 Family vCPUs" + } + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/patchNetworkOneSkuQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/patchNetworkOneSkuQuotaRequest.json new file mode 100644 index 000000000000..bcab64944dc4 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/patchNetworkOneSkuQuotaRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus", + "resourceName": "MinPublicIpInterNetworkPrefixLength", + "api-version": "2023-02-01", + "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=2023-02-01" + } + }, + "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=2023-02-01" + }, + "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/stable/2023-02-01/examples/putComputeOneSkuQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putComputeOneSkuQuotaRequest.json new file mode 100644 index 000000000000..34d57f8057dc --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putComputeOneSkuQuotaRequest.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus", + "resourceName": "standardFSv2Family", + "api-version": "2023-02-01", + "createQuotaRequest": { + "properties": { + "limit": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "standardFSv2Family" + } + } + } + }, + "responses": { + "202": { + "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=2023-02-01" + } + }, + "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=2023-02-01" + }, + "body": { + "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": { + "limitObjectType": "LimitValue", + "value": 10 + }, + "name": { + "value": "standardFSv2Family" + } + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/putMachineLearningServicesQuotaRequestLowPriority.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putMachineLearningServicesQuotaRequestLowPriority.json similarity index 50% rename from specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/putMachineLearningServicesQuotaRequestLowPriority.json rename to specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putMachineLearningServicesQuotaRequestLowPriority.json index ec36e6e591c4..ef97c707323e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/examples/putMachineLearningServicesQuotaRequestLowPriority.json +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putMachineLearningServicesQuotaRequestLowPriority.json @@ -2,10 +2,13 @@ "parameters": { "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.MachineLearningServices/locations/eastus", "resourceName": "TotalLowPriorityCores", - "api-version": "2021-03-15", + "api-version": "2023-02-01", "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=2023-02-01" } }, "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", - "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" + "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=2023-02-01" }, "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/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequest.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequest.json new file mode 100644 index 000000000000..bcab64944dc4 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus", + "resourceName": "MinPublicIpInterNetworkPrefixLength", + "api-version": "2023-02-01", + "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=2023-02-01" + } + }, + "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=2023-02-01" + }, + "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/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json new file mode 100644 index 000000000000..fda230a8a087 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Network/locations/eastus", + "resourceName": "StandardSkuPublicIpAddresses", + "api-version": "2023-02-01", + "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=2023-02-01" + } + }, + "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=2023-02-01" + }, + "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/stable/2021-03-15/quota.json b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/quota.json similarity index 72% rename from specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/quota.json rename to specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/quota.json index d276a378ae11..3e520057bc4b 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/stable/2021-03-15/quota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/quota.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-03-15", + "version": "2023-02-01", "title": "Azure Quota Extension API", "description": "Microsoft Azure Quota Resource Provider" }, @@ -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,22 +184,25 @@ "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, "x-ms-long-running-operation-options": { - "final-state-via": "location" + "final-state-via": "original-uri" }, "parameters": [ { @@ -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,16 +246,19 @@ "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" } }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "location" + "final-state-via": "original-uri" }, "parameters": [ { @@ -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,44 +447,11 @@ } } }, - "/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.", - "operationId": "Operation_List", + "summary": "GET quota operations.", + "description": "List all the operations supported by the Microsoft.Quota resource provider.", + "operationId": "QuotaOperation_List", "x-ms-examples": { "GetOperations": { "$ref": "./examples/GetOperations.json" @@ -394,11 +466,11 @@ } ], "tags": [ - "Operation" + "Operations" ], "responses": { "200": { - "description": "List all GET operations.", + "description": "List all the operations.", "schema": { "$ref": "#/definitions/OperationList" } @@ -421,7 +493,10 @@ "type": "array", "items": { "$ref": "#/definitions/OperationResponse" - } + }, + "x-ms-identifiers": [ + "name" + ] }, "nextLink": { "type": "string", @@ -469,7 +544,7 @@ "description": "Resource properties.", "properties": { "id": { - "description": "Resource ID.", + "description": "Resource ID", "type": "string", "readOnly": true }, @@ -481,7 +556,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. Optional field.", + "$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 +646,7 @@ "x-ms-azure-resource": true, "properties": { "id": { - "description": "The resource Id.", + "description": "The resource ID.", "type": "string", "readOnly": true }, @@ -506,7 +661,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 +671,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 }, @@ -537,7 +684,7 @@ "$ref": "#/definitions/ResourceName" }, "resourceType": { - "description": "Resource type name.", + "description": "The name of the resource type. Optional field.", "$ref": "#/definitions/ResourceTypesName" }, "quotaPeriod": { @@ -584,7 +731,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 +770,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 +796,101 @@ "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", + "x-ms-discriminator-value": "LimitValue", + "allOf": [ + { + "$ref": "#/definitions/LimitJsonObject" + } + ], + "properties": { + "value": { + "type": "integer", + "format": "int32", + "description": "The quota/limit value" + }, + "limitType": { + "$ref": "#/definitions/LimitTypes" + } + }, + "required": [ + "value" + ] + }, "QuotaRequestOneResourceSubmitResponse": { "description": "Quota request response.", "type": "object", @@ -701,14 +934,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 +986,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.", @@ -774,7 +999,7 @@ "$ref": "#/definitions/ResourceName" }, "resourceType": { - "description": "Resource type name.", + "description": "The name of the resource type. Optional field.", "$ref": "#/definitions/ResourceTypesName" }, "quotaPeriod": { @@ -805,7 +1030,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 +1051,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 +1069,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", @@ -855,7 +1084,10 @@ "type": "array", "items": { "$ref": "#/definitions/SubRequest" - } + }, + "x-ms-identifiers": [ + "subRequestId" + ] } } }, @@ -880,10 +1112,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.", @@ -901,7 +1131,7 @@ "$ref": "#/definitions/ResourceName" }, "resourceType": { - "description": "Resource type name.", + "description": "The name of the resource type. Optional field.", "$ref": "#/definitions/ResourceTypesName" }, "quotaPeriod": { @@ -914,6 +1144,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" @@ -937,20 +1171,9 @@ } }, "ResourceTypesName": { - "description": "Resource types. For extensibility, it is a string.", - "enum": [ - "standard", - "dedicated", - "lowPriority", - "shared", - "serviceSpecific" - ], + "description": "Resource types. For extensibility, it is a string. Optional field.", "readOnly": false, - "type": "string", - "x-ms-enum": { - "name": "ResourceType", - "modelAsString": true - } + "type": "string" }, "ExceptionResponse": { "type": "object", @@ -962,211 +1185,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", @@ -1184,6 +1202,9 @@ "items": { "$ref": "#/definitions/ServiceErrorDetail" }, + "x-ms-identifiers": [ + "code" + ], "description": "List of error details.", "readOnly": true } @@ -1228,7 +1249,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 +1283,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", diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index fb57bcc983d4..11779280581c 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -26,23 +26,24 @@ These are the global settings for the Quota API. ``` yaml openapi-type: arm -tag: package-2021-03-15-preview +tag: package-2023-02-01 ``` -### Tag: package-2021-03-15 -These settings apply only when `--tag=package-2021-03-15` is specified on the command line. +### Tag: package-2023-02-01 -```yaml $(tag) == 'package-2021-03-15' +These settings apply only when `--tag=package-2023-02-01` is specified on the command line. + +```yaml $(tag) == 'package-2023-02-01' input-file: - - Microsoft.Quota/stable/2021-03-15/quota.json + - Microsoft.Quota/stable/2023-02-01/quota.json ``` ### Tag: package-2021-03-15-preview These settings apply only when `--tag=package-2021-03-15-preview` is specified on the command line. -```yaml $(tag) == 'package-2021-03-15-preview' +``` yaml $(tag) == 'package-2021-03-15-preview' input-file: - Microsoft.Quota/preview/2021-03-15-preview/quota.json ``` @@ -58,7 +59,9 @@ directive: ``` --- + --- + # Code Generation ## Swagger to SDK @@ -105,7 +108,7 @@ See configuration in [readme.cli.md](./readme.cli.md) ## AZ - See configuration in [readme.az.md](./readme.az.md) +See configuration in [readme.az.md](./readme.az.md) ## Go @@ -118,4 +121,3 @@ See configuration in [readme.java.md](./readme.java.md) ## Ruby See configuration in [readme.ruby.md](./readme.ruby.md) -