Skip to content

Commit

Permalink
Swagger change for getting all availability sets in a subscription an…
Browse files Browse the repository at this point in the history
…d StandardSSD (#3302)

* First commit

* Small change

* Added an example for listing all the availability sets in a subscription

* Addressed comments - added missing StandardSSD_LRS in 2018-04-01, updated name to ListAll, and removed the change from 2015-06-15

* Added nextLink to AvailabilitySetListResult
  • Loading branch information
dochung4 authored and lmazuel committed Jun 30, 2018
1 parent 8688c28 commit 3e46d85
Show file tree
Hide file tree
Showing 11 changed files with 382 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,34 @@
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets": {
"get": {
"tags": [
"AvailabilitySets"
],
"operationId": "AvailabilitySets_ListBySubscription",
"description": "Lists all availability sets in a subscription.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AvailabilitySetListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets": {
"get": {
Expand Down Expand Up @@ -191,7 +219,7 @@
}
},
"x-ms-pageable": {
"nextLinkName": null
"nextLinkName": "nextLink"
}
}
},
Expand Down Expand Up @@ -3189,8 +3217,15 @@
"$ref": "#/definitions/AvailabilitySet"
},
"description": "The list of availability sets"
},
"nextLink": {
"type": "string",
"description": "The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets."
}
},
"required": [
"value"
],
"description": "The List Availability Set operation response."
},
"VirtualMachineSize": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2016-04-30-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"platformUpdateDomainCount": 5,
"platformFaultDomainCount": 2
},
"type": "Microsoft.Compute/availabilitySets",
"location": "centralus",
"tags": {
"{tagName}": "{tagValue}"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
"name": "{availabilitySetName}",
"sku": {
"name": "Aligned"
}
},
{
"properties": {
"platformUpdateDomainCount": 3,
"platformFaultDomainCount": 2
},
"type": "Microsoft.Compute/availabilitySets",
"location": "westus",
"tags": {
"{tagName}": "{tagValue}"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
"name": "{availabilitySetName}",
"sku": {
"name": "Classic"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
}
},
"x-ms-pageable": {
"nextLinkName": null
"nextLinkName": "nextLink"
}
}
},
Expand Down Expand Up @@ -2746,8 +2746,15 @@
"$ref": "#/definitions/AvailabilitySet"
},
"description": "The list of availability sets"
},
"nextLink": {
"type": "string",
"description": "The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets."
}
},
"required": [
"value"
],
"description": "The List Availability Set operation response."
},
"VirtualMachineSize": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,34 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets": {
"get": {
"tags": [
"AvailabilitySets"
],
"operationId": "AvailabilitySets_ListBySubscription",
"description": "Lists all availability sets in a subscription.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AvailabilitySetListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets": {
"get": {
"tags": [
Expand Down Expand Up @@ -191,7 +219,7 @@
}
},
"x-ms-pageable": {
"nextLinkName": null
"nextLinkName": "nextLink"
}
}
},
Expand Down Expand Up @@ -2792,8 +2820,15 @@
"$ref": "#/definitions/AvailabilitySet"
},
"description": "The list of availability sets"
},
"nextLink": {
"type": "string",
"description": "The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets."
}
},
"required": [
"value"
],
"description": "The List Availability Set operation response."
},
"VirtualMachineSize": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,34 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets": {
"get": {
"tags": [
"AvailabilitySets"
],
"operationId": "AvailabilitySets_ListBySubscription",
"description": "Lists all availability sets in a subscription.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AvailabilitySetListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets": {
"get": {
"tags": [
Expand Down Expand Up @@ -195,7 +223,7 @@
}
},
"x-ms-pageable": {
"nextLinkName": null
"nextLinkName": "nextLink"
}
}
},
Expand Down Expand Up @@ -3771,8 +3799,15 @@
"$ref": "#/definitions/AvailabilitySet"
},
"description": "The list of availability sets"
},
"nextLink": {
"type": "string",
"description": "The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets."
}
},
"required": [
"value"
],
"description": "The List Availability Set operation response."
},
"VirtualMachineSize": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2017-03-30"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"platformUpdateDomainCount": 5,
"platformFaultDomainCount": 2
},
"type": "Microsoft.Compute/availabilitySets",
"location": "centralus",
"tags": {
"{tagName}": "{tagValue}"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
"name": "{availabilitySetName}",
"sku": {
"name": "Aligned"
}
},
{
"properties": {
"platformUpdateDomainCount": 3,
"platformFaultDomainCount": 2
},
"type": "Microsoft.Compute/availabilitySets",
"location": "westus",
"tags": {
"{tagName}": "{tagValue}"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
"name": "{availabilitySetName}",
"sku": {
"name": "Classic"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,34 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets": {
"get": {
"tags": [
"AvailabilitySets"
],
"operationId": "AvailabilitySets_ListBySubscription",
"description": "Lists all availability sets in a subscription.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AvailabilitySetListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets": {
"get": {
"tags": [
Expand Down Expand Up @@ -266,7 +294,7 @@
}
},
"x-ms-pageable": {
"nextLinkName": null
"nextLinkName": "nextLink"
}
}
},
Expand Down Expand Up @@ -4466,8 +4494,15 @@
"$ref": "#/definitions/AvailabilitySet"
},
"description": "The list of availability sets"
},
"nextLink": {
"type": "string",
"description": "The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets."
}
},
"required": [
"value"
],
"description": "The List Availability Set operation response."
},
"VirtualMachineSize": {
Expand Down
Loading

0 comments on commit 3e46d85

Please sign in to comment.