Skip to content

Commit

Permalink
added files for new api version 2017-03-31 (#1) (Azure#1054)
Browse files Browse the repository at this point in the history
* 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
kejiun authored and sarangan12 committed Mar 27, 2017
1 parent dfd0ac4 commit f431986
Show file tree
Hide file tree
Showing 9 changed files with 847 additions and 0 deletions.
29 changes: 29 additions & 0 deletions arm-advisor/2017-03-31/examples/CreateSuppression.json
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"
}
}
}
}
}
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"
}
}
}
}
21 changes: 21 additions & 0 deletions arm-advisor/2017-03-31/examples/GetSuppressionDetail.json
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"
}
}
}
}
}
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"
}
]
}
}
}
}
30 changes: 30 additions & 0 deletions arm-advisor/2017-03-31/examples/ListSuppressions.json
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"
}
}
]
}
}
}
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 f431986

Please sign in to comment.