Trigger - Get Trigger

Gets a trigger.

GET {endpoint}/triggers/{triggerName}?api-version=2020-12-01

URI Parameters

Name In Required Type Description
endpoint
path True

string

uri

The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.

triggerName
path True

string

The trigger name.

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

api-version
query True

string

The Synapse client API Version.

Request Header

Name Required Type Description
If-None-Match

string

ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.

Responses

Name Type Description
200 OK

TriggerResource

OK.

Other Status Codes

Not modified.

Other Status Codes

CloudError

An error response received from the Azure Synapse service.

Examples

Triggers_Get

Sample Request

GET exampleWorkspace.dev.azuresynapse.net/triggers/exampleTrigger?api-version=2020-12-01

Sample Response

Date: Mon, 22 Apr 2019 18:33:52 GMT
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-subscription-reads: 11989
x-ms-request-id: 8ad1759f-24c1-46a5-aef5-edd267e18870
x-ms-correlation-request-id: 8ad1759f-24c1-46a5-aef5-edd267e18870
{
  "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/triggers/exampleTrigger",
  "name": "exampleTrigger",
  "type": "Microsoft.Synapse/workspaces/triggers",
  "properties": {
    "type": "ScheduleTrigger",
    "typeProperties": {
      "recurrence": {
        "frequency": "Minute",
        "interval": 4,
        "startTime": "2019-04-22T18:32:52.527912Z",
        "endTime": "2019-04-22T18:48:52.5281747Z",
        "timeZone": "UTC"
      }
    },
    "pipelines": [
      {
        "pipelineReference": {
          "referenceName": "examplePipeline",
          "type": "PipelineReference"
        },
        "parameters": {
          "OutputBlobNameList": [
            "exampleoutput.csv"
          ]
        }
      }
    ],
    "runtimeState": "Stopped"
  },
  "etag": "1500544f-0000-0200-0000-5cbe09100000"
}

Definitions

Name Description
CloudError

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

MultiplePipelineTrigger

Base class for all triggers that support one to many model for trigger to pipeline.

PipelineReference

Pipeline reference type.

PipelineReferenceType

Pipeline reference type.

TriggerPipelineReference

Pipeline that needs to be triggered with the given parameters.

TriggerResource

Trigger resource type.

TriggerRuntimeState

Enumerates possible state of Triggers.

CloudError

The object that defines the structure of an Azure Synapse 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.

MultiplePipelineTrigger

Base class for all triggers that support one to many model for trigger to pipeline.

Name Type Description
annotations

object[]

List of tags that can be used for describing the trigger.

description

string

Trigger description.

pipelines

TriggerPipelineReference[]

Pipelines that need to be started.

runtimeState

TriggerRuntimeState

Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger.

type string:

MultiplePipelineTrigger

Trigger type.

PipelineReference

Pipeline reference type.

Name Type Description
name

string

Reference name.

referenceName

string

Reference pipeline name.

type

PipelineReferenceType

Pipeline reference type.

PipelineReferenceType

Pipeline reference type.

Name Type Description
PipelineReference

string

TriggerPipelineReference

Pipeline that needs to be triggered with the given parameters.

Name Type Description
parameters

object

Pipeline parameters.

pipelineReference

PipelineReference

Pipeline reference.

TriggerResource

Trigger resource type.

Name Type Description
etag

string

Resource Etag.

id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

The name of the resource

properties Trigger:

MultiplePipelineTrigger

Properties of the trigger.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

TriggerRuntimeState

Enumerates possible state of Triggers.

Name Type Description
Disabled

string

Started

string

Stopped

string