Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List SKUs API update for ExtendedLocation #15372

Merged
merged 11 commits into from
Jul 29, 2021
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"api-version": "2020-10-01",
"includeExtendedLocations": "true"
},
"responses": {
"200": {
"body": {
"value": [
{
"resourceType": "virtualMachines",
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "20480"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "0.75"
},
{
"name": "MaxDataDiskCount",
"value": "1"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "50"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus",
"zones": [
"2",
"1"
],
"zoneDetails": [
{
"name": [
"2"
],
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"name": "Standard_A0",
"tier": "Standard",
"size": "A0",
"family": "standardA0_A7Family"
},
{
"resourceType": "virtualMachines",
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "71680"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "1.75"
},
{
"name": "MaxDataDiskCount",
"value": "2"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "100"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus",
"zones": [
"1",
"2",
"3"
]
},
{
"location": "westus",
"extendedLocations": [
"Las Vegas",
"Seattle",
"Portland"
],
"type": "EdgeZone"
}
],
"name": "Standard_A1",
"tier": "Standard",
"size": "A1",
"family": "standardA0_A7Family"
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
"required": false,
"type": "string",
"description": "The filter to apply on the operation. Only **location** filter is supported currently."
},
{
"$ref": "#/parameters/IncludeExtendedLocationsParameter"
}
],
"responses": {
Expand All @@ -74,6 +77,9 @@
},
"Lists all available Resource SKUs for the specified region": {
"$ref": "./examples/skus/ListAvailableResourceSkusForARegion.json"
},
"Lists all available Resource SKUs with Extended Location information": {
"$ref": "./examples/skus/ListAvailableResourceSkusWithExtendedLocations.json"
}
}
}
Expand Down Expand Up @@ -328,8 +334,29 @@
"$ref": "#/definitions/ResourceSkuZoneDetails"
},
"description": "Details of capabilities available to a SKU in specific zones."
},
"extendedLocations": {
"readOnly": true,
"type": "array",
"items": {
"type": "string"
},
"description": "The names of extended locations."
},
"type": {
"type": "string",
"readOnly": true,
"description": "The type of the extended location.",
"enum": [
"EdgeZone"
],
"x-ms-enum": {
"name": "ExtendedLocationType",
"modelAsString": true
}
}
}
},
"description": "Describes an available Compute SKU Location Information."
},
"ResourceSkuRestrictionInfo": {
"properties": {
Expand All @@ -349,7 +376,8 @@
},
"description": "List of availability zones where the SKU is restricted."
}
}
},
"description": "Describes an available Compute SKU Restriction Information."
},
"ResourceSkusResult": {
"properties": {
Expand Down Expand Up @@ -385,6 +413,14 @@
"required": true,
"type": "string",
"description": "Client Api Version."
},
"IncludeExtendedLocationsParameter": {
"name": "includeExtendedLocations",
"in": "query",
"required": false,
"type": "string",
"description": "To Include Extended Locations information or not in the response.",
"x-ms-parameter-location": "method"
}
}
}
1 change: 1 addition & 0 deletions specification/compute/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ These settings apply only when `--tag=package-2021-07-01-only` is specified on t
input-file:
- Microsoft.Compute/stable/2021-07-01/compute.json
- Microsoft.Compute/stable/2021-07-01/runCommands.json
- Microsoft.Compute/stable/2021-07-01/skus.json
- Microsoft.Compute/stable/2021-07-01/gallery.json
- Microsoft.Compute/stable/2021-07-01/sharedGallery.json
```
Expand Down