Skip to content

Commit

Permalink
added files for new api version 2017-03-31 (#1)
Browse files Browse the repository at this point in the history
* added files for new api version 2017-03-31

* renamed folder
  • Loading branch information
kejiun authored Mar 21, 2017
1 parent c570e39 commit 5ab3279
Show file tree
Hide file tree
Showing 9 changed files with 849 additions and 0 deletions.
25 changes: 25 additions & 0 deletions arm-advisor/2017-03-31/examples/CreateSuppression.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"resourceUri": "resourceUri",
"recommendationId": "recommendationId",
"name": "suppressionName1",
"suppressionContract": {
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1",
"name": "suppressionName1",
"type": "Microsoft.Advisor/suppressions",
"ttl": "07:00:00:00"
},
"api-version": "2017-03-31"
},
"responses": {
"200": {
"body": {
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1",
"suppressionId": "suppresionId",
"name": "suppressionName1",
"type": "Microsoft.Advisor/suppressions",
"ttl": "07:00:00:00"
}
}
}
}
12 changes: 12 additions & 0 deletions arm-advisor/2017-03-31/examples/DeleteSuppression.json
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 arm-advisor/2017-03-31/examples/GenerateRecommendations.json
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 arm-advisor/2017-03-31/examples/GetRecommendationDetail.json
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"
}
}
}
}
19 changes: 19 additions & 0 deletions arm-advisor/2017-03-31/examples/GetSuppressionDetail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"resourceUri": "resourceUri",
"recommendationId": "recommendationId",
"name": "suppressionName1",
"api-version": "2017-03-31"
},
"responses": {
"200": {
"body": {
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1",
"suppressionId": "suppressionId1",
"name": "suppressionName1",
"type": "Microsoft.Advisor/suppressions",
"ttl": "7.00:00:00"
}
}
}
}
33 changes: 33 additions & 0 deletions arm-advisor/2017-03-31/examples/ListRecommendations.json
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"
}
]
}
}
}
}
26 changes: 26 additions & 0 deletions arm-advisor/2017-03-31/examples/ListSuppressions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "subscriptionId1",
"api-version": "2017-03-31"
},
"responses": {
"200": {
"body": [
{
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1",
"suppressionId": "suppressionId1",
"name": "suppressionName1",
"type": "Microsoft.Advisor/suppressions",
"ttl": "7.00:00:00"
},
{
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName2",
"suppressionId": "suppressionId2",
"name": "suppressionName2",
"type": "Microsoft.Advisor/suppressions",
"ttl": "7.00:00:00"
}
]
}
}
}
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": {
}
}
}
Loading

0 comments on commit 5ab3279

Please sign in to comment.