Action Groups - Get Test Notifications At Resource Group Level
Bildirim kimliğine göre test bildirimlerini alma
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/notificationStatus/{notificationId}?api-version=2021-09-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
notification
|
path | True |
string |
Bildirim kimliği |
resource
|
path | True |
string |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir. |
subscription
|
path | True |
string |
Hedef aboneliğin kimliği. |
api-version
|
query | True |
string |
Bu işlem için kullanılacak API sürümü. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Bildirim ayrıntıları |
|
Other Status Codes |
Test bildirimleri gönderilirken bir hata oluştu |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
Get notification details at resource group level
Sample Request
GET https://management.azure.com/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-TestNotifications/providers/Microsoft.Insights/notificationStatus/11000222191287?api-version=2021-09-01
Sample Response
{
"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
}
]
}
Tanımlar
Name | Description |
---|---|
Action |
Eylem ayrıntısı |
Context |
Bağlam bilgisi |
Error |
Hata yanıtının biçimini açıklar. |
Test |
Test bildirimi sonuçlarının ayrıntıları. |
ActionDetail
Eylem ayrıntısı
Name | Tür | Description |
---|---|---|
Detail |
string |
Kolay hata iletisinin ayrıntıları |
MechanismType |
string |
Mekanizma türü |
Name |
string |
Eylemin adı |
SendTime |
string |
Gönderme zamanı |
Status |
string |
Eylemin durumu |
SubState |
string |
Eylemin alt durumu |
Context
Bağlam bilgisi
Name | Tür | Description |
---|---|---|
contextType |
string |
Bağlam kimliği türü |
notificationSource |
string |
Bildirim isteğinin kaynağı |
ErrorResponse
Hata yanıtının biçimini açıklar.
Name | Tür | Description |
---|---|---|
code |
string |
Hata kodu |
message |
string |
İşlemin neden başarısız olduğunu belirten hata iletisi. |
TestNotificationDetailsResponse
Test bildirimi sonuçlarının ayrıntıları.
Name | Tür | Description |
---|---|---|
actionDetails |
Eylem ayrıntısı listesi |
|
completedTime |
string |
Tamamlanan süre |
context |
Bağlam bilgisi |
|
createdTime |
string |
Oluşturulan saat |
state |
string |
Genel durum |