Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventSubscriptionsImpl

Package version

Class containing EventSubscriptions operations.

Hierarchy

  • EventSubscriptionsImpl

Implements

Index

Constructors

constructor

Methods

beginCreateOrUpdate

  • Asynchronously creates a new event subscription or updates an existing event subscription based on the specified scope.

    Parameters

    • scope: string

      The identifier of the resource to which the event subscription needs to be created or updated. 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.

    • eventSubscriptionName: string

      Name of the event subscription. Event subscription names must be between 3 and 64 characters in length and should use alphanumeric letters only.

    • eventSubscriptionInfo: EventSubscription

      Event subscription properties containing the destination and filter information.

    • Optional options: EventSubscriptionsCreateOrUpdateOptionalParams

      The options parameters.

    Returns Promise<PollerLike<PollOperationState<EventSubscriptionsCreateOrUpdateResponse>, EventSubscriptionsCreateOrUpdateResponse>>

beginCreateOrUpdateAndWait

  • Asynchronously creates a new event subscription or updates an existing event subscription based on the specified scope.

    Parameters

    • scope: string

      The identifier of the resource to which the event subscription needs to be created or updated. 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.

    • eventSubscriptionName: string

      Name of the event subscription. Event subscription names must be between 3 and 64 characters in length and should use alphanumeric letters only.

    • eventSubscriptionInfo: EventSubscription

      Event subscription properties containing the destination and filter information.

    • Optional options: EventSubscriptionsCreateOrUpdateOptionalParams

      The options parameters.

    Returns Promise<EventSubscriptionsCreateOrUpdateResponse>

beginDelete

  • Delete an existing event subscription.

    Parameters

    • scope: string

      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.

    • eventSubscriptionName: string

      Name of the event subscription.

    • Optional options: EventSubscriptionsDeleteOptionalParams

      The options parameters.

    Returns Promise<PollerLike<PollOperationState<void>, void>>

beginDeleteAndWait

  • Delete an existing event subscription.

    Parameters

    • scope: string

      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.

    • eventSubscriptionName: string

      Name of the event subscription.

    • Optional options: EventSubscriptionsDeleteOptionalParams

      The options parameters.

    Returns Promise<void>

beginUpdate

  • Asynchronously updates an existing event subscription.

    Parameters

    • scope: string

      The scope of existing 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.

    • eventSubscriptionName: string

      Name of the event subscription to be updated.

    • eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters

      Updated event subscription information.

    • Optional options: EventSubscriptionsUpdateOptionalParams

      The options parameters.

    Returns Promise<PollerLike<PollOperationState<EventSubscriptionsUpdateResponse>, EventSubscriptionsUpdateResponse>>

beginUpdateAndWait

  • Asynchronously updates an existing event subscription.

    Parameters

    • scope: string

      The scope of existing 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.

    • eventSubscriptionName: string

      Name of the event subscription to be updated.

    • eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters

      Updated event subscription information.

    • Optional options: EventSubscriptionsUpdateOptionalParams

      The options parameters.

    Returns Promise<EventSubscriptionsUpdateResponse>

get

  • Get properties of an event subscription.

    Parameters

    • scope: string

      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.

    • eventSubscriptionName: string

      Name of the event subscription.

    • Optional options: EventSubscriptionsGetOptionalParams

      The options parameters.

    Returns Promise<EventSubscriptionsGetResponse>

getDeliveryAttributes

  • Get all delivery attributes for an event subscription.

    Parameters

    • scope: string

      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.

    • eventSubscriptionName: string

      Name of the event subscription.

    • Optional options: EventSubscriptionsGetDeliveryAttributesOptionalParams

      The options parameters.

    Returns Promise<EventSubscriptionsGetDeliveryAttributesResponse>

getFullUrl

  • Get the full endpoint URL for an event subscription.

    Parameters

    • scope: string

      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.

    • eventSubscriptionName: string

      Name of the event subscription.

    • Optional options: EventSubscriptionsGetFullUrlOptionalParams

      The options parameters.

    Returns Promise<EventSubscriptionsGetFullUrlResponse>

listByDomainTopic

listByResource

listGlobalByResourceGroup

listGlobalByResourceGroupForTopicType

listGlobalBySubscription

listGlobalBySubscriptionForTopicType

listRegionalByResourceGroup

listRegionalByResourceGroupForTopicType

listRegionalBySubscription

listRegionalBySubscriptionForTopicType

Generated using TypeDoc