-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Examples and Updated Comments for SKU and Computer APIs in the …
…swagger (#6294) * Added diffDiskSettings property as part of Swagger changes needed for Ephemeral VM\VMSS * updated comment * updated swagger specs for diffdisksettings property * updated swagger spec comments for diff disk settings [property * added example to create Diff OS disk scaleset * updated 2018-10-01 version specs with diffdisk property * added example file for creating VM with diffdisksettings property * updated swagger changes for reimage operation in single vm * update examples * udpated examples * fixed validation errors * updated comments for reimage operation documentation * Updated examples and documentation for APIs in swagger * updated examples as per review comments * updated swagger documentation * updated swagger documentation with zone details in the sku example * updated swagger documentation and reverted the breaking changes * updated examples as per swagger model * updated swagger to remove the model validation errors for existing examples where we are passing read only parameter in the request
- Loading branch information
1 parent
60509af
commit c7373f4
Showing
43 changed files
with
521 additions
and
68 deletions.
There are no files selected for viewing
176 changes: 176 additions & 0 deletions
176
...ource-manager/Microsoft.Compute/stable/2017-09-01/examples/ListAvailableResourceSkus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"api-version": "2017-09-01" | ||
}, | ||
"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": [ | ||
"westus-AZ01" | ||
] | ||
} | ||
], | ||
"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": [ | ||
"westus-AZ02", | ||
"westus-AZ01" | ||
] | ||
} | ||
], | ||
"name": "Standard_A1", | ||
"tier": "Standard", | ||
"size": "A1", | ||
"family": "standardA0_A7Family" | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,7 @@ | |
} | ||
] | ||
} | ||
}, | ||
"name": "myVM" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,8 +59,7 @@ | |
} | ||
] | ||
} | ||
}, | ||
"name": "myVM" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,8 +38,7 @@ | |
} | ||
] | ||
} | ||
}, | ||
"name": "myVM" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,8 +47,7 @@ | |
"enabled": true | ||
} | ||
} | ||
}, | ||
"name": "myVM" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,7 @@ | |
} | ||
] | ||
} | ||
}, | ||
"name": "myVM" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,8 +41,7 @@ | |
} | ||
] | ||
} | ||
}, | ||
"name": "myVM" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,8 +41,7 @@ | |
} | ||
] | ||
} | ||
}, | ||
"name": "myVM" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,8 +51,7 @@ | |
} | ||
] | ||
} | ||
}, | ||
"name": "myVM" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
|
32 changes: 32 additions & 0 deletions
32
...er/Microsoft.Compute/stable/2018-06-01/examples/ListAvailableVmSizes_VirtualMachines.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"vmName": "myVmName", | ||
"api-version": "2018-06-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Standard_A1_V2", | ||
"numberOfCores": 1, | ||
"osDiskSizeInMB": 1047552, | ||
"resourceDiskSizeInMB": 10240, | ||
"memoryInMB": 2048, | ||
"maxDataDiskCount": 2 | ||
}, | ||
{ | ||
"name": "Standard_A2_V2", | ||
"numberOfCores": 2, | ||
"osDiskSizeInMB": 1047552, | ||
"resourceDiskSizeInMB": 20480, | ||
"memoryInMB": 4096, | ||
"maxDataDiskCount": 4 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.