Aracılığıyla paylaş


Notification Hubs - Debug Send

Anında iletme bildirimi göndermeyi test edin.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend?api-version=2023-09-01

URI Parametreleri

Name İçinde Gerekli Tür Description
namespaceName
path True

string

Ad alanı adı

Normal ifade deseni: ^[a-zA-Z][a-zA-Z0-9-]*$

notificationHubName
path True

string

Bildirim Merkezi adı

Normal ifade deseni: ^[a-zA-Z][a-zA-Z0-9-./_]*$

resourceGroupName
path True

string

Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir.

subscriptionId
path True

string

uuid

Hedef aboneliğin kimliği. Değer bir UUID olmalıdır.

api-version
query True

string

Bu işlem için kullanılacak API sürümü.

Yanıtlar

Name Tür Description
200 OK

DebugSendResponse

Başarılı

Other Status Codes

ErrorResponse

Nedeni olan hata kodu.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Tür: oauth2
Akış: implicit
Yetkilendirme URL’si: https://login.microsoftonline.com/common/oauth2/authorize

Kapsamlar

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

NotificationHubs_DebugSend

Örnek isteği

POST https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub/debugsend?api-version=2023-09-01

Örnek yanıt

{
  "properties": {
    "success": 0,
    "failure": 0,
    "results": []
  },
  "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test",
  "name": "test",
  "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/debugSend"
}

Tanımlar

Name Description
createdByType

Kaynağı oluşturan kimliğin türü.

DebugSendResponse

NotificationHub Kaynağının açıklaması.

DebugSendResult

DebugSend işlemlerinin sonucu.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorDetail

Hata ayrıntısı.

ErrorResponse

Hata yanıtı

RegistrationResult

Tek bir kayıt için bildirim sonucu.

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

createdByType

Kaynağı oluşturan kimliğin türü.

Name Tür Description
Application

string

Key

string

ManagedIdentity

string

User

string

DebugSendResponse

NotificationHub Kaynağının açıklaması.

Name Tür Description
id

string

Kaynağın tam kaynak kimliği. Örneğin, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

location

string

Kullanım dışı - yalnızca uyumluluk için.

name

string

Kaynağın adı

properties

DebugSendResult

DebugSend işlemlerinin sonucu.

systemData

systemData

Azure Resource Manager createdBy ve modifiedBy bilgilerini içeren meta veriler.

tags

object

Kullanım dışı - yalnızca uyumluluk için.

type

string

Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts"

DebugSendResult

DebugSend işlemlerinin sonucu.

Name Tür Description
failure

integer

Gönderme hatasını alır veya ayarlar

results

RegistrationResult[]

Gerçek hata açıklamasını alır veya ayarlar

success

integer

Başarılı göndermeyi alır veya ayarlar

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorDetail

Hata ayrıntısı.

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorDetail[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi.

ErrorResponse

Hata yanıtı

Name Tür Description
error

ErrorDetail

Hata nesnesi.

RegistrationResult

Tek bir kayıt için bildirim sonucu.

Name Tür Description
applicationPlatform

string

PNS türü.

outcome

string

Bildirim sonucu.

pnsHandle

string

PNS tutamacı.

registrationId

string

Kayıt kimliği.

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

Name Tür Description
createdAt

string

Kaynak oluşturma (UTC) zaman damgası.

createdBy

string

Kaynağı oluşturan kimlik.

createdByType

createdByType

Kaynağı oluşturan kimliğin türü.

lastModifiedAt

string

Kaynağın son değişikliğinin zaman damgası (UTC)

lastModifiedBy

string

Kaynağı en son değiştiren kimlik.

lastModifiedByType

createdByType

Kaynağı en son değiştiren kimliğin türü.