Triggers - Unsubscribe From Events

Unsubscribe event trigger from events.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents?api-version=2018-06-01

URI Parameters

Name In Required Type Description
factoryName
path True

string

The factory name.

Regex pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$

resourceGroupName
path True

string

The resource group name.

Regex pattern: ^[-\w\._\(\)]+$

subscriptionId
path True

string

The subscription identifier.

triggerName
path True

string

The trigger name.

Regex pattern: ^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$

api-version
query True

string

The API version.

Responses

Name Type Description
200 OK

TriggerSubscriptionOperationStatus

Trigger is unsubscribed from events.

202 Accepted

Accepted.

Other Status Codes

CloudError

An error response received from the Azure Data Factory service.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Triggers_UnsubscribeFromEvents

Sample request

POST https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger/unsubscribeFromEvents?api-version=2018-06-01

Sample response

Location: https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger/getEventSubscriptionStatus?api-version=2018-06-01
{
  "triggerName": "exampleTrigger",
  "status": "Disabled"
}

Definitions

Name Description
CloudError

The object that defines the structure of an Azure Data Factory error response.

EventSubscriptionStatus

Event Subscription Status.

TriggerSubscriptionOperationStatus

Defines the response of a trigger subscription operation.

CloudError

The object that defines the structure of an Azure Data Factory error response.

Name Type Description
error.code

string

Error code.

error.details

CloudError[]

Array with additional error details.

error.message

string

Error message.

error.target

string

Property name/path in request associated with error.

EventSubscriptionStatus

Event Subscription Status.

Name Type Description
Deprovisioning

string

Disabled

string

Enabled

string

Provisioning

string

Unknown

string

TriggerSubscriptionOperationStatus

Defines the response of a trigger subscription operation.

Name Type Description
status

EventSubscriptionStatus

Event Subscription Status.

triggerName

string

Trigger name.