Delen via


Notification Hubs - Debug Send

Test verzend een pushmelding.

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

URI-parameters

Name In Vereist Type Description
namespaceName
path True

string

Naam van naamruimte

Regex pattern: ^[a-zA-Z][a-zA-Z0-9-]*$

notificationHubName
path True

string

Naam van meldingshub

Regex pattern: ^[a-zA-Z][a-zA-Z0-9-./_]*$

resourceGroupName
path True

string

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

subscriptionId
path True

string

uuid

De id van het doelabonnement. De waarde moet een UUID zijn.

api-version
query True

string

De API-versie die voor deze bewerking moet worden gebruikt.

Antwoorden

Name Type Description
200 OK

DebugSendResponse

Geslaagd

Other Status Codes

ErrorResponse

Foutcode met reden.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

NotificationHubs_DebugSend

Sample Request

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

Sample Response

{
  "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"
}

Definities

Name Description
createdByType

Het type identiteit waarmee de resource is gemaakt.

DebugSendResponse

Beschrijving van een NotificationHub-resource.

DebugSendResult

Resultaat van FoutopsporingSend-bewerkingen.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

RegistrationResult

Meldingsresultaat voor één registratie.

systemData

Metagegevens met betrekking tot het maken en laatste wijzigen van de resource.

createdByType

Het type identiteit waarmee de resource is gemaakt.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

DebugSendResponse

Beschrijving van een NotificationHub-resource.

Name Type Description
id

string

Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

location

string

Afgeschaft- alleen voor compatibiliteit.

name

string

De naam van de resource

properties

DebugSendResult

Resultaat van FoutopsporingSend-bewerkingen.

systemData

systemData

Azure Resource Manager metagegevens met informatie over createdBy en modifiedBy.

tags

object

Afgeschaft- alleen voor compatibiliteit.

type

string

Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

DebugSendResult

Resultaat van FoutopsporingSend-bewerkingen.

Name Type Description
failure

integer

Fout bij verzenden wordt opgehaald of ingesteld

results

RegistrationResult[]

Haalt de werkelijke foutbeschrijving op of stelt deze in

success

integer

Geslaagde verzenden wordt opgehaald of ingesteld

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

RegistrationResult

Meldingsresultaat voor één registratie.

Name Type Description
applicationPlatform

string

PNS-type.

outcome

string

Meldingsresultaat.

pnsHandle

string

PNS-ingang.

registrationId

string

Registratie-id.

systemData

Metagegevens met betrekking tot het maken en laatste wijzigen van de resource.

Name Type Description
createdAt

string

De tijdstempel van het maken van resources (UTC).

createdBy

string

De identiteit die de resource heeft gemaakt.

createdByType

createdByType

Het type identiteit waarmee de resource is gemaakt.

lastModifiedAt

string

Het tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource het laatst heeft gewijzigd.