Action Groups - Get Test Notifications At Resource Group Level
Hämta testmeddelandena med meddelande-ID:t
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/notificationStatus/{notificationId}?api-version=2021-09-01
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
notification
|
path | True |
string |
Meddelande-ID |
resource
|
path | True |
string |
Namnet på resursgruppen. Namnet är skiftlägesokänsligt. |
subscription
|
path | True |
string |
ID för målprenumerationen. |
api-version
|
query | True |
string |
Den API-version som ska användas för den här åtgärden. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Meddelandeinformationen |
|
Other Status Codes |
Ett fel uppstod när testmeddelandena skulle skickas |
Säkerhet
azure_auth
Azure Active Directory OAuth2 Flow
Typ:
oauth2
Flow:
implicit
Auktoriseringswebbadress:
https://login.microsoftonline.com/common/oauth2/authorize
Omfattningar
Name | Description |
---|---|
user_impersonation | personifiera ditt användarkonto |
Exempel
Get notification details at resource group level
Exempelbegäran
GET https://management.azure.com/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-TestNotifications/providers/Microsoft.Insights/notificationStatus/11000222191287?api-version=2021-09-01
Exempelsvar
{
"context": {
"notificationSource": "Microsoft.Insights/TestNotification",
"contextType": "Microsoft.Insights/Budget"
},
"state": "Completed",
"completedTime": "0001-01-01T00:00:00+00:00",
"createdTime": "2021-09-21T04:52:29.5091168+00:00",
"actionDetails": [
{
"MechanismType": "AzureAppPush",
"Name": "AzureAppPush-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:42.8620629+00:00",
"Detail": null
},
{
"MechanismType": "AzureFunction",
"Name": "AzureFunction-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:42.0623319+00:00",
"Detail": null
},
{
"MechanismType": "Email",
"Name": "Email-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:40.7480368+00:00",
"Detail": null
},
{
"MechanismType": "LogicApp",
"Name": "LogicApp-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:42.2473419+00:00",
"Detail": null
},
{
"MechanismType": "Webhook",
"Name": "Webhook-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:42.0723479+00:00",
"Detail": null
},
{
"MechanismType": "SecureWebhook",
"Name": "SecureWebhook-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:42.0723479+00:00",
"Detail": null
},
{
"MechanismType": "Sms",
"Name": "Sms-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:41.353015+00:00",
"Detail": null
},
{
"MechanismType": "Voice",
"Name": "Voice-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:41.6330734+00:00",
"Detail": null
},
{
"MechanismType": "EventHub",
"Name": "EventHub-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:42.0723479+00:00",
"Detail": null
},
{
"MechanismType": "AutomationRunbook",
"Name": "AutomationRunbook-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:42.0723479+00:00",
"Detail": null
},
{
"MechanismType": "Itsm",
"Name": "Itsm-name",
"Status": "Completed",
"SubState": "Default",
"SendTime": "2021-09-21T04:52:42.0723479+00:00",
"Detail": null
}
]
}
Definitioner
Name | Description |
---|---|
Action |
Åtgärdsinformationen |
Context |
Kontextinformationen |
Error |
Beskriver formatet för felsvar. |
Test |
Information om testmeddelanderesultatet. |
ActionDetail
Åtgärdsinformationen
Name | Typ | Description |
---|---|---|
Detail |
string |
Information om det egna felmeddelandet |
MechanismType |
string |
Mekanismtypen |
Name |
string |
Namnet på åtgärden |
SendTime |
string |
Sändningstiden |
Status |
string |
Status för åtgärden |
SubState |
string |
Understatus för åtgärden |
Context
Kontextinformationen
Name | Typ | Description |
---|---|---|
contextType |
string |
Kontext-ID-typen |
notificationSource |
string |
Källan för meddelandebegäran |
ErrorResponse
Beskriver formatet för felsvar.
Name | Typ | Description |
---|---|---|
code |
string |
Felkod |
message |
string |
Felmeddelande som anger varför åtgärden misslyckades. |
TestNotificationDetailsResponse
Information om testmeddelanderesultatet.
Name | Typ | Description |
---|---|---|
actionDetails |
Listan över åtgärdsinformation |
|
completedTime |
string |
Den slutförda tiden |
context |
Kontextinformationen |
|
createdTime |
string |
Den skapade tiden |
state |
string |
Det övergripande tillståndet |