你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Event Subscriptions - Get Full Url

获取事件订阅的完整 URL。
获取事件订阅的完整终结点 URL。

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

URI 参数

Name In Required Type Description
eventSubscriptionName
path True
  • string

事件订阅的名称。

scope
path True
  • string

事件订阅的范围。 范围可以是订阅、资源组或属于资源提供程序命名空间的顶级资源,也可以是 EventGrid 主题。 例如,对订阅使用“/subscriptions/{subscriptionId}/”,对资源组使用“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}” , 和“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}”作为资源,对于 EventGrid 主题为“/subscriptions/{subscriptionId}/resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}”。

api-version
query True
  • string

要用于客户端请求的 API 的版本。

响应

Name Type Description
200 OK

OK

Other Status Codes

错误响应: ***

  • 400 错误请求。

  • 500 内部服务器错误。

示例

EventSubscriptions_GetFullUrlForCustomTopic
EventSubscriptions_GetFullUrlForResource
EventSubscriptions_GetFullUrlForResourceGroup
EventSubscriptions_GetFullUrlForSubscription

EventSubscriptions_GetFullUrlForCustomTopic

Sample Request

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=2021-10-15-preview

Sample Response

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

EventSubscriptions_GetFullUrlForResource

Sample Request

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=2021-10-15-preview

Sample Response

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

EventSubscriptions_GetFullUrlForResourceGroup

Sample Request

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

Sample Response

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

EventSubscriptions_GetFullUrlForSubscription

Sample Request

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

Sample Response

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

定义

EventSubscriptionFullUrl

事件订阅的完整终结点 URL

Name Type Description
endpointUrl
  • string

表示事件订阅目标的终结点的 URL。