Skip to content

Commit 6f498e0

Browse files
authored
Spot PlacementScores API Swagger update (#29196)
* New API version and Spot PlacementScores path. * Update ListDiagnostics.json * Update RegisterStorageConfiguration.json * Update diagnostic.json * Update readme.md * Update diagnostic.json * Copy files from preview/2024-03-01-preview Copied the files in a separate commit. This allows reviewers to easily diff subsequent changes against the previous spec. * Update version to preview/2024-06-01-preview Updated the API version from preview/2024-03-01-preview to preview/2024-06-01-preview. * Added tag for 2024-06-01-preview in readme file * Revert "Added tag for 2024-06-01-preview in readme file" This reverts commit b1d7ca3. * Adding Spot placement scores definitions. * Removing extra char fixing json parsing. * Resolving lintdiff error for duplicate json key. * Fixing json parse error. * Fix validation errors. * Fixing prettier validation errors. * Fixing SpellCheck errors * Adding suppressions.yaml * Moving suppressions.yml * Adding location based routing. * Removing the preview-only tag
1 parent 3c1fe1c commit 6f498e0

File tree

13 files changed

+1219
-0
lines changed

13 files changed

+1219
-0
lines changed

specification/compute/resource-manager/Microsoft.Compute/DiagnosticRP/preview/2024-06-01-preview/diagnostic.json

Lines changed: 839 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus",
5+
"api-version": "2024-06-01-preview",
6+
"spotPlacementScoresInput": {
7+
"desiredLocations": [
8+
"eastus",
9+
"eastus2"
10+
],
11+
"desiredSizes": [
12+
{
13+
"sku": "Standard_D2_v2"
14+
}
15+
],
16+
"desiredCount": 1,
17+
"availabilityZones": true
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"desiredLocations": [
24+
"eastus",
25+
"eastus2"
26+
],
27+
"desiredSizes": [
28+
{
29+
"sku": "Standard_D2_v2"
30+
}
31+
],
32+
"desiredCount": 1,
33+
"availabilityZones": true,
34+
"placementScores": [
35+
{
36+
"sku": "Standard_D2_v2",
37+
"region": "eastus",
38+
"availabilityZone": "1",
39+
"score": "High",
40+
"isQuotaAvailable": true
41+
},
42+
{
43+
"sku": "Standard_D2_v2",
44+
"region": "eastus",
45+
"availabilityZone": "2",
46+
"score": "High",
47+
"isQuotaAvailable": true
48+
},
49+
{
50+
"sku": "Standard_D2_v2",
51+
"region": "eastus",
52+
"availabilityZone": "3",
53+
"score": "High",
54+
"isQuotaAvailable": true
55+
},
56+
{
57+
"sku": "Standard_D2_v2",
58+
"region": "eastus2",
59+
"availabilityZone": "1",
60+
"score": "DataNotFoundOrStale",
61+
"isQuotaAvailable": true
62+
},
63+
{
64+
"sku": "Standard_D2_v2",
65+
"region": "eastus2",
66+
"availabilityZone": "2",
67+
"score": "High",
68+
"isQuotaAvailable": true
69+
},
70+
{
71+
"sku": "Standard_D2_v2",
72+
"region": "eastus2",
73+
"availabilityZone": "3",
74+
"score": "High",
75+
"isQuotaAvailable": true
76+
}
77+
]
78+
},
79+
"headers": {
80+
"x-ms-request-id": "57b891ab-1fb7-4f5a-b002-71eb6854961f",
81+
"location": "https://management.azure.com/subscriptions/be23ca13-8eb4-4d0e-be10-b00451817956/providers/Microsoft.Compute/locations/eastus/placementScores/spot/generate?api-version=2024-06-01-preview"
82+
}
83+
}
84+
}
85+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus",
5+
"operationId": "{operation-id}",
6+
"api-version": "2024-06-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"message": "DiskInspection for selected resource succeeded.",
12+
"createdUTC": "2024-03-05T22:15:44.2986354Z",
13+
"resultStatus": "Success",
14+
"errorDetail": null
15+
},
16+
"headers": {
17+
"x-ms-request-id": "57b891ab-1fb7-4f5a-b002-71eb6854961f",
18+
"location": "https://westcentralus.diagnostic.compute.azure.com/subscriptions/88fd8cb2-8248-499e-9a2d-4929a4b0133c/providers/Microsoft.Compute/locations/southcentralus/diagnosticOperations/57b891ab-1fb7-4f5a-b002-71eb6854961f"
19+
}
20+
},
21+
"202": {
22+
"headers": {
23+
"Retry-After": "120000",
24+
"x-ms-request-id": "57b891ab-1fb7-4f5a-b002-71eb6854961f",
25+
"location": "https://westcentralus.diagnostic.compute.azure.com/subscriptions/88fd8cb2-8248-499e-9a2d-4929a4b0133c/providers/Microsoft.Compute/locations/southcentralus/diagnosticOperations/57b891ab-1fb7-4f5a-b002-71eb6854961f"
26+
}
27+
}
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {
9+
"x-ms-request-id": "27b7c568-16ec-46f3-bcf1-5bea3f2529b1"
10+
},
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/diagnostics/diskInspection",
13+
"name": "diskInspection",
14+
"type": "Microsoft.Compute/locations/diagnostics",
15+
"properties": {
16+
"supportedResourceTypes": [
17+
"Microsoft.Compute/virtualMachines"
18+
]
19+
}
20+
}
21+
}
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {
9+
"x-ms-request-id": "27b7c568-16ec-46f3-bcf1-5bea3f2529b1"
10+
},
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/diagnostics/spotPlacementRecommender",
13+
"name": "spotPlacementRecommender",
14+
"type": "Microsoft.Compute/locations/diagnostics",
15+
"properties": {
16+
"supportedResourceTypes": [
17+
"Microsoft.Compute/virtualMachines"
18+
]
19+
}
20+
}
21+
}
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {
9+
"x-ms-request-id": "27b7c568-16ec-46f3-bcf1-5bea3f2529b1"
10+
},
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/placementScores/spot",
13+
"name": "spotPlacementScores",
14+
"type": "Microsoft.Compute/placementScores",
15+
"properties": {
16+
"supportedResourceTypes": [
17+
"Microsoft.Compute/virtualMachines"
18+
]
19+
}
20+
}
21+
}
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {
9+
"x-ms-request-id": "27b7c568-16ec-46f3-bcf1-5bea3f2529b1"
10+
},
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/diagnostics/diskInspection",
15+
"name": "diskInspection",
16+
"type": "Microsoft.Compute/locations/diagnostics",
17+
"properties": {
18+
"supportedResourceTypes": [
19+
"Microsoft.Compute/virtualMachines"
20+
]
21+
}
22+
},
23+
{
24+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/{location}/diagnostics/spotPlacementRecommender",
25+
"name": "spotPlacementRecommender",
26+
"type": "Microsoft.Compute/locations/diagnostics",
27+
"properties": {
28+
"supportedResourceTypes": [
29+
"Microsoft.Compute/virtualMachines"
30+
]
31+
}
32+
},
33+
{
34+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/{location}/placementScores/spot",
35+
"name": "spotPlacementRecommender",
36+
"type": "Microsoft.Compute/placementScores",
37+
"properties": {
38+
"supportedResourceTypes": [
39+
"Microsoft.Compute/virtualMachines"
40+
]
41+
}
42+
}
43+
]
44+
}
45+
}
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus",
5+
"api-version": "2024-06-01-preview",
6+
"storageConfigurationInput": {
7+
"storageAccountId": "/subscriptions/88fd8cb2-8248-499e-9a2d-4929a4b0133c/resourceGroups/az-iid-blobtest/providers/Microsoft.Storage/storageAccounts/aziidblobtest"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {
13+
"x-ms-request-id": "fa55b700-8218-42b1-a3e3-1794cfd37629"
14+
}
15+
}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus",
5+
"api-version": "2024-06-01-preview",
6+
"runDiskInspectionInput": {
7+
"resourceId": "/subscriptions/88fd8cb2-8248-499e-9a2d-4929a4b0133c/resourceGroups/cladtest1/providers/Microsoft.Compute/virtualMachines/adVM",
8+
"manifest": "diagnostic",
9+
"uploadSasUri": "testSasUri"
10+
}
11+
},
12+
"responses": {
13+
"202": {
14+
"headers": {
15+
"x-ms-request-id": "57b891ab-1fb7-4f5a-b002-71eb6854961f",
16+
"location": "https://westcentralus.diagnostic.compute.azure.com/subscriptions/88fd8cb2-8248-499e-9a2d-4929a4b0133c/providers/Microsoft.Compute/locations/southcentralus/diagnosticOperations/57b891ab-1fb7-4f5a-b002-71eb6854961f"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus",
5+
"api-version": "2024-06-01-preview",
6+
"spotPlacementRecommenderInput": {
7+
"desiredLocations": [
8+
"eastus",
9+
"eastus2"
10+
],
11+
"desiredSizes": [
12+
{
13+
"sku": "Standard_D2_v2"
14+
}
15+
],
16+
"desiredCount": 1,
17+
"availabilityZones": true
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"desiredLocations": [
24+
"eastus",
25+
"eastus2"
26+
],
27+
"desiredSizes": [
28+
{
29+
"sku": "Standard_D2_v2"
30+
}
31+
],
32+
"desiredCount": 1,
33+
"availabilityZones": true,
34+
"placementScores": [
35+
{
36+
"sku": "Standard_D2_v2",
37+
"region": "eastus",
38+
"availabilityZone": "1",
39+
"score": "High",
40+
"isQuotaAvailable": true
41+
},
42+
{
43+
"sku": "Standard_D2_v2",
44+
"region": "eastus",
45+
"availabilityZone": "2",
46+
"score": "High",
47+
"isQuotaAvailable": true
48+
},
49+
{
50+
"sku": "Standard_D2_v2",
51+
"region": "eastus",
52+
"availabilityZone": "3",
53+
"score": "High",
54+
"isQuotaAvailable": true
55+
},
56+
{
57+
"sku": "Standard_D2_v2",
58+
"region": "eastus2",
59+
"availabilityZone": "1",
60+
"score": "DataNotFoundOrStale",
61+
"isQuotaAvailable": true
62+
},
63+
{
64+
"sku": "Standard_D2_v2",
65+
"region": "eastus2",
66+
"availabilityZone": "2",
67+
"score": "High",
68+
"isQuotaAvailable": true
69+
},
70+
{
71+
"sku": "Standard_D2_v2",
72+
"region": "eastus2",
73+
"availabilityZone": "3",
74+
"score": "High",
75+
"isQuotaAvailable": true
76+
}
77+
]
78+
},
79+
"headers": {
80+
"x-ms-request-id": "57b891ab-1fb7-4f5a-b002-71eb6854961f",
81+
"location": "https://management.azure.com/subscriptions/be23ca13-8eb4-4d0e-be10-b00451817956/providers/Microsoft.Compute/locations/eastus/diagnostics/spotplacementrecommender/generate?api-version=2024-06-01-preview"
82+
}
83+
}
84+
}
85+
}

0 commit comments

Comments
 (0)