Skip to content

Commit

Permalink
Add checkQuotaAvailability to vmwarevirtustream 2019-08-09-preview sw…
Browse files Browse the repository at this point in the history
…agger spec (Azure#9244)

* Add checkQuotaAvailability to vmwarevirtustream 2019-08-09-preview

* fix missing/invalid types

* update tags

* updated to use location based routing

* change description for host quotas

* Update QuotaGet definition

* make checkQuotaAvailability subscription level

Co-authored-by: David Ricciardi <dariccia@microsoft.com>
  • Loading branch information
2 people authored and 00Kai0 committed Oct 12, 2020
1 parent 213a89c commit e15ff6e
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"api-version": "2019-08-09-preview",
"location": "eastus"
},
"responses": {
"200": {
"body": {
"hostsRemaining": {
"gp": 0,
"he": 999
},
"quotaEnabled": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
{
"name": "Clusters",
"description": ""
},
{
"name": "Operations",
"description": ""
},
{
"name": "Quota",
"description": ""
}
],
"parameters": {
Expand Down Expand Up @@ -120,6 +128,49 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.VMwareVirtustream/locations/{location}/checkQuotaAvailability": {
"post": {
"tags": [
"Quota"
],
"description": "Return quota for subscription by region",
"operationId": "Quota_Get",
"parameters": [
{
"$ref": "#/parameters/subscriptionId"
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "Azure region"
},
{
"$ref": "#/parameters/apiVersion"
}
],
"responses": {
"200": {
"description": "Request has succeeded",
"schema": {
"$ref": "#/definitions/QuotaGet"
}
},
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/ApiError"
}
}
},
"x-ms-examples": {
"Quota_Get": {
"$ref": "./examples/Quota_Get.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareVirtustream/privateClouds": {
"get": {
"operationId": "PrivateClouds_List",
Expand Down Expand Up @@ -702,6 +753,25 @@
}
},
"definitions": {
"QuotaGet": {
"description": "Subscription quotas",
"properties": {
"hostsRemaining": {
"description": "Remaining hosts quota by sku type",
"type": "object",
"readOnly": true,
"additionalProperties": {
"type": "integer",
"readOnly": true
}
},
"quotaEnabled": {
"description": "Host quota is active for current subscription",
"type": "boolean",
"readOnly": true
}
}
},
"Resource": {
"description": "The core properties of ARM resources",
"properties": {
Expand Down

0 comments on commit e15ff6e

Please sign in to comment.