forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added files for new api version 2017-03-31 (#1) (Azure#1054)
* added files for new api version 2017-03-31 * renamed folder * added files for new api version 2017-03-31 (#1) * added files for new api version 2017-03-31 * renamed folder * address PR comments * PR revision
- Loading branch information
1 parent
dfd0ac4
commit f431986
Showing
9 changed files
with
847 additions
and
0 deletions.
There are no files selected for viewing
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,29 @@ | ||
{ | ||
"parameters": { | ||
"resourceUri": "resourceUri", | ||
"recommendationId": "recommendationId", | ||
"name": "suppressionName1", | ||
"suppressionContract": { | ||
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1", | ||
"name": "suppressionName1", | ||
"type": "Microsoft.Advisor/suppressions", | ||
"properties": { | ||
"ttl": "07:00:00:00" | ||
} | ||
}, | ||
"api-version": "2017-03-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1", | ||
"name": "suppressionName1", | ||
"type": "Microsoft.Advisor/suppressions", | ||
"properties": { | ||
"suppressionId": "suppresionId", | ||
"ttl": "07:00:00:00" | ||
} | ||
} | ||
} | ||
} | ||
} |
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,12 @@ | ||
{ | ||
"parameters": { | ||
"resourceUri": "resourceUri", | ||
"recommendationId": "recommendationId", | ||
"name": "suppressionName1", | ||
"api-version": "2017-03-31" | ||
}, | ||
"responses": { | ||
"204": { | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
arm-advisor/2017-03-31/examples/GenerateRecommendations.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,14 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"api-version": "2017-03-31" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.Microsoft.Advisor/generateRecommendations/recGUID?api-version=2017-03-31", | ||
"Retry-After": "60" | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
arm-advisor/2017-03-31/examples/GetRecommendationDetail.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,28 @@ | ||
{ | ||
"parameters": { | ||
"resourceUri": "resourceUri", | ||
"recommendationId": "recommendationId", | ||
"api-version": "2017-03-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId", | ||
"name": "recommendationId", | ||
"properties": { | ||
"category": "HighAvailability", | ||
"impact": "Medium", | ||
"impactedField": "Microsoft.Compute/availabilitySets", | ||
"impactedValue": "armavset", | ||
"lastUpdated": "2017-02-24T22:24:43.3216408Z", | ||
"risk": "Warning", | ||
"shortDescription": { | ||
"problem": "This availability set is not configured for fault tolerance", | ||
"solution": "To ensure high availability add one or more virtual machines to this availability set" | ||
} | ||
}, | ||
"type": "Microsoft.Advisor/recommendations" | ||
} | ||
} | ||
} | ||
} |
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,21 @@ | ||
{ | ||
"parameters": { | ||
"resourceUri": "resourceUri", | ||
"recommendationId": "recommendationId", | ||
"name": "suppressionName1", | ||
"api-version": "2017-03-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1", | ||
"name": "suppressionName1", | ||
"type": "Microsoft.Advisor/suppressions", | ||
"properties": { | ||
"suppressionId": "suppressionId1", | ||
"ttl": "7.00:00:00" | ||
} | ||
} | ||
} | ||
} | ||
} |
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,33 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"$top": 10, | ||
"api-version": "2017-03-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nextLink": "https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.Advisor/recommendations?api-version=2017-03-31&$top=10&$skiptoken=skiptoken", | ||
"value": [ | ||
{ | ||
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recGUID", | ||
"name": "recGUID", | ||
"properties": { | ||
"category": "HighAvailability", | ||
"impact": "Medium", | ||
"impactedField": "Microsoft.Compute/availabilitySets", | ||
"impactedValue": "armavset", | ||
"lastUpdated": "2017-02-24T22:24:43.3216408Z", | ||
"risk": "Warning", | ||
"shortDescription": { | ||
"problem": "This availability set is not configured for fault tolerance", | ||
"solution": "To ensure high availability add one or more virtual machines to this availability set" | ||
} | ||
}, | ||
"type": "Microsoft.Advisor/recommendations" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId1", | ||
"api-version": "2017-03-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": [ | ||
{ | ||
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1", | ||
"name": "suppressionName1", | ||
"type": "Microsoft.Advisor/suppressions", | ||
"properties": { | ||
"suppressionId": "suppressionId1", | ||
"ttl": "7.00:00:00" | ||
} | ||
}, | ||
{ | ||
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName2", | ||
"name": "suppressionName2", | ||
"type": "Microsoft.Advisor/suppressions", | ||
"properties": { | ||
"suppressionId": "suppressionId2", | ||
"ttl": "7.00:00:00" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
arm-advisor/2017-03-31/examples/PollGenerateRecommendationsStatus.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,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"operationId": "operationGUID", | ||
"api-version": "2017-03-31" | ||
}, | ||
"responses": { | ||
"202": { | ||
}, | ||
"204": { | ||
} | ||
} | ||
} |
Oops, something went wrong.