Triggers - Get
获取触发器。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}?api-version=2018-06-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
factory
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ |
工厂名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
资源组名称。 |
|
subscription
|
path | True |
string |
订阅标识符。 |
|
trigger
|
path | True |
string minLength: 1maxLength: 260 pattern: ^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$ |
触发器名称。 |
|
api-version
|
query | True |
string |
API 版本。 |
请求头
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| If-None-Match |
string |
触发器实体的 ETag。 应仅指定 get。 如果 ETag 与现有实体标记匹配,或者如果提供 *,则不会返回任何内容。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
还行。 |
|
| Other Status Codes |
未修改。 |
|
| Other Status Codes |
从 Azure 数据工厂服务收到的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
Triggers_Get
示例请求
示例响应
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.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger",
"name": "exampleTrigger",
"type": "Microsoft.DataFactory/factories/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"
}
定义
| 名称 | 说明 |
|---|---|
|
Cloud |
定义 Azure 数据工厂错误响应结构的对象。 |
|
Multiple |
支持一对多模型用于触发器到管道的所有触发器的基类。 |
|
Pipeline |
管道引用类型。 |
|
Trigger |
需要使用给定参数触发的管道。 |
|
Trigger |
触发器资源类型。 |
|
Trigger |
枚举触发器的可能状态。 |
CloudError
定义 Azure 数据工厂错误响应结构的对象。
| 名称 | 类型 | 说明 |
|---|---|---|
| error.code |
string |
错误代码。 |
| error.details |
包含其他错误详细信息的数组。 |
|
| error.message |
string |
错误信息。 |
| error.target |
string |
与错误关联的请求中的属性名称/路径。 |
MultiplePipelineTrigger
支持一对多模型用于触发器到管道的所有触发器的基类。
| 名称 | 类型 | 说明 |
|---|---|---|
| annotations |
object[] |
可用于描述触发器的标记列表。 |
| description |
string |
触发器说明。 |
| pipelines |
需要启动的管道。 |
|
| runtimeState |
指示触发器是否正在运行。 在触发器上调用启动/停止 API 时更新。 |
|
| type | string: |
触发器类型。 |
PipelineReference
管道引用类型。
| 名称 | 类型 | 说明 |
|---|---|---|
| name |
string |
引用名称。 |
| referenceName |
string |
引用管道名称。 |
| type | enum: |
管道引用类型。 |
TriggerPipelineReference
需要使用给定参数触发的管道。
| 名称 | 类型 | 说明 |
|---|---|---|
| parameters |
object |
管道参数。 |
| pipelineReference |
管道引用。 |
TriggerResource
触发器资源类型。
| 名称 | 类型 | 说明 |
|---|---|---|
| etag |
string |
Etag 标识资源中的更改。 |
| id |
string |
资源标识符。 |
| name |
string |
资源名称。 |
| properties | Trigger: |
触发器的属性。 |
| type |
string |
资源类型。 |
TriggerRuntimeState
枚举触发器的可能状态。
| 值 | 说明 |
|---|---|
| Started | |
| Stopped | |
| Disabled |