Action Groups - Get Test Notifications At Action Group Resource Level
Obter as notificações de teste pela ID de notificação
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/notificationStatus/{notificationId}?api-version=2021-09-01
Parâmetros de URI
| Nome | Em | Obrigatório | Tipo | Description |
|---|---|---|---|---|
|
action
|
path | True |
string |
O nome do grupo de ações. |
|
notification
|
path | True |
string |
A ID de notificação |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas. |
|
subscription
|
path | True |
string minLength: 1 |
A ID da assinatura de destino. |
|
api-version
|
query | True |
string minLength: 1 |
A versão da API a ser usada para esta operação. |
Respostas
| Nome | Tipo | Description |
|---|---|---|
| 200 OK |
Os detalhes da notificação |
|
| Other Status Codes |
Erro ao enviar as notificações de teste |
Segurança
azure_auth
Fluxo OAuth2 do Azure Active Directory
Tipo:
oauth2
Flow:
implicit
URL de Autorização:
https://login.microsoftonline.com/common/oauth2/authorize
Escopos
| Nome | Description |
|---|---|
| user_impersonation | representar sua conta de usuário |
Exemplos
Get notification details at resource group level
Solicitação de exemplo
GET https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/TestRgName/providers/Microsoft.Insights/actionGroups/TestAgName/notificationStatus/11000222191287?api-version=2021-09-01
Resposta de exemplo
{
"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
}
]
}
Definições
| Nome | Description |
|---|---|
|
Action |
Os detalhes da ação |
| Context |
As informações de contexto |
|
Error |
Descreve o formato da resposta de erro. |
|
Test |
Os detalhes dos resultados da notificação de teste. |
ActionDetail
Os detalhes da ação
| Nome | Tipo | Description |
|---|---|---|
| Detail |
string |
Os detalhes da mensagem de erro amigável |
| MechanismType |
string |
O tipo de mecanismo |
| Name |
string |
O nome da ação |
| SendTime |
string |
A hora de envio |
| Status |
string |
O status da ação |
| SubState |
string |
O substatus da ação |
Context
As informações de contexto
| Nome | Tipo | Description |
|---|---|---|
| contextType |
string |
O tipo de ID de contexto |
| notificationSource |
string |
A origem da solicitação de notificação |
ErrorResponse
Descreve o formato da resposta de erro.
| Nome | Tipo | Description |
|---|---|---|
| code |
string |
Código de erro |
| message |
string |
Mensagem de erro indicando por que a operação falhou. |
TestNotificationDetailsResponse
Os detalhes dos resultados da notificação de teste.
| Nome | Tipo | Description |
|---|---|---|
| actionDetails |
A lista de detalhes da ação |
|
| completedTime |
string |
A hora concluída |
| context |
As informações de contexto |
|
| createdTime |
string |
A hora criada |
| state |
string |
O estado geral |