Notification - Get
Hiermee haalt u de details op van de melding die is opgegeven door de id.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}?api-version=2021-08-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
notification
|
path | True |
Meldingsnaam-id. |
|
resource
|
path | True |
string |
De naam van de resourcegroep. |
service
|
path | True |
string minLength: 1maxLength: 50 pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$ |
De naam van de API Management-service. |
subscription
|
path | True |
string |
Abonnementsreferenties die het Microsoft Azure-abonnement uniek identificeren. De abonnements-id maakt deel uit van de URI voor elke serviceoproep. |
api-version
|
query | True |
string |
Versie van de API die moet worden gebruikt met de clientaanvraag. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De hoofdtekst van het antwoord bevat de opgegeven melding. |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
ApiManagementGetNotification
Voorbeeldaanvraag
Voorbeeldrespons
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/notifications/RequestPublisherNotificationMessage",
"type": "Microsoft.ApiManagement/service/notifications",
"name": "RequestPublisherNotificationMessage",
"properties": {
"title": "Subscription requests (requiring approval)",
"description": "The following email recipients and users will receive email notifications about subscription requests for API products requiring approval.",
"recipients": {
"emails": [
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/recipientEmails/contoso@live.com",
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/recipientEmails/foobar!live",
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/recipientEmails/foobar@live.com"
],
"users": [
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/576823d0a40f7e74ec07d642"
]
}
}
}
Definities
Name | Description |
---|---|
Error |
Foutveldcontract. |
Error |
Foutreactie. |
Notification |
Meldingsgegevens. |
Notification |
Meldingsnaam-id. |
Recipients |
Contract voor meldingsparameters. |
ErrorFieldContract
Foutveldcontract.
Name | Type | Description |
---|---|---|
code |
string |
Foutcode op eigenschapsniveau. |
message |
string |
Leesbare weergave van fout op eigenschapsniveau. |
target |
string |
Eigenschapsnaam. |
ErrorResponse
Foutreactie.
Name | Type | Description |
---|---|---|
error.code |
string |
Door de service gedefinieerde foutcode. Deze code fungeert als een substatus voor de HTTP-foutcode die is opgegeven in het antwoord. |
error.details |
De lijst met ongeldige velden die in de aanvraag worden verzonden, in het geval van een validatiefout. |
|
error.message |
string |
Leesbare weergave van de fout. |
NotificationContract
Meldingsgegevens.
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
De naam van de resource |
properties.description |
string |
Beschrijving van de melding. |
properties.recipients |
Parameterwaarden voor geadresseerden. |
|
properties.title |
string minLength: 1maxLength: 1000 |
Titel van de melding. |
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
NotificationName
Meldingsnaam-id.
Waarde | Description |
---|---|
AccountClosedPublisher |
De volgende e-mailontvangers en gebruikers ontvangen e-mailmeldingen wanneer de ontwikkelaar zijn account sluit. |
BCC |
De volgende ontvangers ontvangen blind carbon kopieën van alle e-mailberichten die naar ontwikkelaars worden verzonden. |
NewApplicationNotificationMessage |
De volgende e-mailontvangers en gebruikers ontvangen e-mailmeldingen wanneer nieuwe toepassingen worden verzonden naar de toepassingsgalerie. |
NewIssuePublisherNotificationMessage |
De volgende e-mailontvangers en gebruikers ontvangen e-mailmeldingen wanneer er een nieuw probleem of opmerking wordt verzonden in de ontwikkelaarsportal. |
PurchasePublisherNotificationMessage |
De volgende e-mailontvangers en gebruikers ontvangen e-mailmeldingen over nieuwe API-productabonnementen. |
QuotaLimitApproachingPublisherNotificationMessage |
De volgende e-mailontvangers en gebruikers ontvangen e-mailmeldingen wanneer het gebruik van het abonnement dicht bij het gebruiksquotum komt. |
RequestPublisherNotificationMessage |
De volgende e-mailontvangers en gebruikers ontvangen e-mailmeldingen over abonnementsaanvragen voor API-producten waarvoor goedkeuring is vereist. |
RecipientsContractProperties
Contract voor meldingsparameters.
Name | Type | Description |
---|---|---|
emails |
string[] |
Lijst met e-mailberichten die zijn geabonneerd voor de melding. |
users |
string[] |
Lijst met gebruikers die zijn geabonneerd op de melding. |