Skip to content

Commit c058c9c

Browse files
rohinisharmaRohini Sharma
andauthored
Release web 2023 01 01 (#25157)
* Adding locations/usages endpoint and example * Revert "Adding locations/usages endpoint and example" This reverts commit 4a11107. * Adding back usages changes with up to date branch * Updates based on verification tools * Fixing spacing, adding missing comma * ran prettier-fix for formatting * Update for new QMS requirements with ZR * Using prettier to fix linter error * Adding ZR endpoint * Fixing duplicate operationId * QMS Usages * Validation changes * Updating schema * Updating for collection * fixing pr comments * Resolving comments * Updating description * Resolving comments --------- Co-authored-by: Rohini Sharma <[email protected]>
1 parent e5d4af1 commit c058c9c

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed

specification/web/resource-manager/Microsoft.Web/stable/2023-01-01/ResourceProvider.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,53 @@
507507
}
508508
}
509509
},
510+
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/quotaType/{quotaType}/usages": {
511+
"get": {
512+
"summary": "Lists subscription core usages for all skus used in a location, for a given type of quota.",
513+
"description": "List usages in cores for all skus used by a subscription in a given location, for a specific quota type.",
514+
"operationId": "GetUsagesInLocation_list",
515+
"parameters": [
516+
{
517+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter"
518+
},
519+
{
520+
"name": "quotaType",
521+
"description": "The type of quota to get usages for",
522+
"in": "path",
523+
"required": true,
524+
"type": "string"
525+
},
526+
{
527+
"$ref": "#/parameters/subscriptionIdParameter"
528+
},
529+
{
530+
"$ref": "#/parameters/apiVersionParameter"
531+
}
532+
],
533+
"responses": {
534+
"200": {
535+
"description": "OK",
536+
"schema": {
537+
"$ref": "./CommonDefinitions.json#/definitions/CsmUsageQuotaCollection"
538+
}
539+
},
540+
"default": {
541+
"description": "App Service error response.",
542+
"schema": {
543+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
544+
}
545+
}
546+
},
547+
"x-ms-examples": {
548+
"Get usages in location for subscription": {
549+
"$ref": "./examples/GetUsagesInLocation.json"
550+
}
551+
},
552+
"x-ms-pageable": {
553+
"nextLinkName": "nextLink"
554+
}
555+
}
556+
},
510557
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/verifyHostingEnvironmentVnet": {
511558
"post": {
512559
"summary": "Verifies if this VNET is compatible with an App Service Environment by analyzing the Network Security Group rules.",
@@ -1492,6 +1539,15 @@
14921539
"required": false,
14931540
"type": "string",
14941541
"x-ms-parameter-location": "method"
1542+
},
1543+
"LocationParameter": {
1544+
"name": "location",
1545+
"in": "path",
1546+
"required": true,
1547+
"type": "string",
1548+
"description": "The name of the Azure region.",
1549+
"minLength": 1,
1550+
"x-ms-parameter-location": "method"
14951551
}
14961552
},
14971553
"securityDefinitions": {
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
4+
"location": "West US",
5+
"quotaType": "regional",
6+
"api-version": "2023-01-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"value": [
13+
{
14+
"unit": "Core Count",
15+
"currentValue": 55,
16+
"limit": 250,
17+
"name": {
18+
"value": "Cores usage in West US",
19+
"localizedValue": "Cores usage in West US"
20+
}
21+
}
22+
],
23+
"nextLink": null
24+
}
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)