Dela via


Event Subscriptions - Get Full Url

Hämta en fullständig URL för en händelseprenumeration.
Hämta den fullständiga slutpunkts-URL:en för en händelseprenumeration.

POST https://management.azure.com/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl?api-version=2022-06-15

URI-parametrar

Name I Obligatorisk Typ Description
eventSubscriptionName
path True

string

Namnet på händelseprenumerationen.

scope
path True

string

Händelseprenumerationens omfattning. Omfånget kan vara en prenumeration, en resursgrupp eller en resurs på den översta nivån som tillhör en resursproviderns namnområde eller ett EventGrid-ämne. Använd till exempel '/subscriptions/{subscriptionId}/' för en prenumeration, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' för en resursgrupp. och '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' för en resurs och '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' för ett EventGrid-ämne.

api-version
query True

string

Version av API:et som ska användas med klientbegäran.

Svar

Name Typ Description
200 OK

EventSubscriptionFullUrl

OK

Other Status Codes

Felsvar: ***

  • 400 Felaktig begäran.

  • 500 Internt serverfel.

Exempel

EventSubscriptions_GetFullUrlForCustomTopic
EventSubscriptions_GetFullUrlForResource
EventSubscriptions_GetFullUrlForResourceGroup
EventSubscriptions_GetFullUrlForSubscription

EventSubscriptions_GetFullUrlForCustomTopic

Exempelbegäran

POST https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1/getFullUrl?api-version=2022-06-15

Exempelsvar

{
  "endpointUrl": "https://requestb.in/15ksip71"
}

EventSubscriptions_GetFullUrlForResource

Exempelbegäran

POST https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1/getFullUrl?api-version=2022-06-15

Exempelsvar

{
  "endpointUrl": "https://requestb.in/15ksip71"
}

EventSubscriptions_GetFullUrlForResourceGroup

Exempelbegäran

POST https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2/getFullUrl?api-version=2022-06-15

Exempelsvar

{
  "endpointUrl": "https://requestb.in/15ksip71"
}

EventSubscriptions_GetFullUrlForSubscription

Exempelbegäran

POST https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3/getFullUrl?api-version=2022-06-15

Exempelsvar

{
  "endpointUrl": "https://requestb.in/15ksip71"
}

Definitioner

EventSubscriptionFullUrl

Fullständig slutpunkts-URL för en händelseprenumeration

Name Typ Description
endpointUrl

string

DEN URL som representerar slutpunkten för målet för en händelseprenumeration.