forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nithin/action group webhooks with azure active directory integration (A…
…zure#6218) * updating the swagger doc for action webhook recivers with azure active directory integration * 1)fixed the api version 2)updated with emoty array when no recievers are in the response * fixing the read me with references to 2019-06-01 version
- Loading branch information
1 parent
c7fa3ca
commit 94ba84b
Showing
9 changed files
with
1,574 additions
and
1 deletion.
There are no files selected for viewing
879 changes: 879 additions & 0 deletions
879
...ation/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json
Large diffs are not rendered by default.
Oops, something went wrong.
345 changes: 345 additions & 0 deletions
345
...urce-manager/Microsoft.Insights/stable/2019-06-01/examples/createOrUpdateActionGroup.json
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...tor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/deleteActionGroup.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,18 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "Default-NotificationRules", | ||
"actionGroupName": "SampleActionGroup", | ||
"api-version": "2019-06-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": null | ||
}, | ||
"204": { | ||
"headers": {}, | ||
"body": null | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...onitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/enableReceiver.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,21 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "Default-NotificationRules", | ||
"actionGroupName": "SampleActionGroup", | ||
"api-version": "2019-06-01", | ||
"enableRequest": { | ||
"receiverName": "John Doe's mobile" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": null | ||
}, | ||
"409": { | ||
"headers": {}, | ||
"body": null | ||
} | ||
} | ||
} |
75 changes: 75 additions & 0 deletions
75
...onitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/getActionGroup.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,75 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "Default-NotificationRules", | ||
"actionGroupName": "SampleActionGroup", | ||
"api-version": "2019-06-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", | ||
"type": "Microsoft.Insights/ActionGroups", | ||
"name": "SampleActionGroup", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"groupShortName": "sample", | ||
"enabled": true, | ||
"emailReceivers": [ | ||
{ | ||
"name": "John Doe's email", | ||
"emailAddress": "[email protected]", | ||
"status": "Enabled", | ||
"useCommonAlertSchema": true | ||
}, | ||
{ | ||
"name": "Jane Smith's email", | ||
"emailAddress": "[email protected]", | ||
"status": "Disabled", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"smsReceivers": [ | ||
{ | ||
"name": "John Doe's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "1234567890", | ||
"status": "Disabled" | ||
}, | ||
{ | ||
"name": "Jane Smith's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "0987654321", | ||
"status": "Enabled" | ||
} | ||
], | ||
"webhookReceivers": [ | ||
{ | ||
"name": "Sample webhook", | ||
"serviceUri": "http://www.example.com/webhook", | ||
"useCommonAlertSchema": false | ||
}, | ||
{ | ||
"name": "Sample webhook 2", | ||
"serviceUri": "http://www.example.com/webhook2", | ||
"useCommonAlertSchema": true, | ||
"useAadAuth": true, | ||
"objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", | ||
"identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", | ||
"tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" | ||
} | ||
], | ||
"itsmReceivers":[], | ||
"azureAppPushReceivers":[], | ||
"automationRunbookReceivers":[], | ||
"voiceReceivers":[], | ||
"logicAppReceivers":[], | ||
"azureFunctionReceivers":[], | ||
"armRoleReceivers":[] | ||
} | ||
} | ||
} | ||
} | ||
} |
113 changes: 113 additions & 0 deletions
113
...itor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/listActionGroups.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,113 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "Default-NotificationRules", | ||
"api-version": "2019-06-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", | ||
"type": "Microsoft.Insights/ActionGroups", | ||
"name": "SampleActionGroup", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"groupShortName": "sample", | ||
"enabled": true, | ||
"emailReceivers": [ | ||
{ | ||
"name": "John Doe's email", | ||
"emailAddress": "[email protected]", | ||
"status": "Enabled", | ||
"useCommonAlertSchema": true | ||
}, | ||
{ | ||
"name": "Jane Smith's email", | ||
"emailAddress": "[email protected]", | ||
"status": "Disabled", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"smsReceivers": [ | ||
{ | ||
"name": "John Doe's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "1234567890", | ||
"status": "Disabled" | ||
}, | ||
{ | ||
"name": "Jane Smith's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "0987654321", | ||
"status": "Enabled" | ||
} | ||
], | ||
"webhookReceivers": [ | ||
{ | ||
"name": "Sample webhook", | ||
"serviceUri": "http://www.example.com/webhook", | ||
"useCommonAlertSchema": false | ||
}, | ||
{ | ||
"name": "Sample webhook 2", | ||
"serviceUri": "http://www.example.com/webhook2", | ||
"useCommonAlertSchema": true, | ||
"useAadAuth": true, | ||
"objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", | ||
"identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", | ||
"tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" | ||
} | ||
], | ||
"itsmReceivers":[], | ||
"azureAppPushReceivers":[], | ||
"automationRunbookReceivers":[], | ||
"voiceReceivers":[], | ||
"logicAppReceivers":[], | ||
"azureFunctionReceivers":[], | ||
"armRoleReceivers":[] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", | ||
"type": "Microsoft.Insights/ActionGroups", | ||
"name": "SampleActionGroup2", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"groupShortName": "sample2", | ||
"enabled": false, | ||
"emailReceivers": [ | ||
{ | ||
"name": "John Doe's email", | ||
"emailAddress": "[email protected]", | ||
"status": "Enabled", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"smsReceivers": [ | ||
{ | ||
"name": "Jane Smith's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "0987654321", | ||
"status": "Enabled" | ||
} | ||
], | ||
"webhookReceivers": [], | ||
"itsmReceivers":[], | ||
"azureAppPushReceivers":[], | ||
"automationRunbookReceivers":[], | ||
"voiceReceivers":[], | ||
"logicAppReceivers":[], | ||
"azureFunctionReceivers":[], | ||
"armRoleReceivers":[] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
81 changes: 81 additions & 0 deletions
81
...itor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/patchActionGroup.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,81 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "Default-NotificationRules", | ||
"actionGroupName": "SampleActionGroup", | ||
"api-version": "2019-06-01", | ||
"actionGroupPatch": { | ||
"tags": { "key1": "value1", "key2": "value2" }, | ||
"properties": { | ||
"enabled": false | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { }, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", | ||
"type": "Microsoft.Insights/ActionGroups", | ||
"name": "SampleActionGroup", | ||
"location": "Global", | ||
"tags": { "key1": "value1", "key2": "value2" }, | ||
"properties": { | ||
"groupShortName": "sample", | ||
"enabled": true, | ||
"emailReceivers": [ | ||
{ | ||
"name": "John Doe's email", | ||
"emailAddress": "[email protected]", | ||
"status": "Enabled", | ||
"useCommonAlertSchema": true | ||
}, | ||
{ | ||
"name": "Jane Smith's email", | ||
"emailAddress": "[email protected]", | ||
"status": "Enabled", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"smsReceivers":[ | ||
{ | ||
"name": "John Doe's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "1234567890", | ||
"status": "Enabled" | ||
}, | ||
{ | ||
"name": "Jane Smith's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "0987654321", | ||
"status": "Enabled" | ||
} | ||
], | ||
"webhookReceivers":[ | ||
{ | ||
"name": "Sample webhook", | ||
"serviceUri": "http://www.example.com/webhook", | ||
"useCommonAlertSchema": false | ||
}, | ||
{ | ||
"name": "Sample webhook 2", | ||
"serviceUri": "http://www.example.com/webhook2", | ||
"useCommonAlertSchema": true, | ||
"useAadAuth": true, | ||
"objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", | ||
"identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", | ||
"tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" | ||
} | ||
], | ||
"itsmReceivers":[], | ||
"azureAppPushReceivers":[], | ||
"automationRunbookReceivers":[], | ||
"voiceReceivers":[], | ||
"logicAppReceivers":[], | ||
"azureFunctionReceivers":[], | ||
"armRoleReceivers":[] | ||
} | ||
} | ||
} | ||
} | ||
} |
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