getEventSubscription

Get properties of an event subscription. Uses Azure REST API version 2025-02-15. Other available API versions: 2022-06-15, 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native eventgrid [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Return

Event Subscription.

Parameters

argument

null


suspend fun getEventSubscription(eventSubscriptionName: String, scope: String): GetEventSubscriptionResult

Return

Event Subscription.

Parameters

eventSubscriptionName

Name of the event subscription to be found.

scope

The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.

See also


Return

Event Subscription.

Parameters

argument

Builder for com.pulumi.azurenative.eventgrid.kotlin.inputs.GetEventSubscriptionPlainArgs.

See also