Triggers - Create Or Update
トリガーを作成または更新します。
PUT 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-Match |
string |
トリガー エンティティの ETag。 更新に対してのみ指定する必要があります。更新対象は既存のエンティティと一致する必要があり、無条件更新の場合は * にすることができます。 |
要求本文
名前 | 必須 | 型 | 説明 |
---|---|---|---|
properties | True | Trigger: |
トリガーのプロパティ。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
わかりました。 |
|
Other Status Codes |
Azure Data Factory サービスから受信したエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー。
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントを偽装する |
例
Triggers_Create |
Triggers_Update |
Triggers_Create
要求のサンプル
PUT https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger?api-version=2018-06-01
{
"properties": {
"type": "ScheduleTrigger",
"typeProperties": {
"recurrence": {
"frequency": "Minute",
"interval": 4,
"startTime": "2018-06-16T00:39:13.8441801Z",
"endTime": "2018-06-16T00:55:13.8441801Z",
"timeZone": "UTC"
}
},
"pipelines": [
{
"pipelineReference": {
"referenceName": "examplePipeline",
"type": "PipelineReference"
},
"parameters": {
"OutputBlobNameList": [
"exampleoutput.csv"
]
}
}
]
}
}
応答のサンプル
Date: Sat, 16 Jun 2018 00:40:14 GMT
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-subscription-writes: 1186
x-ms-request-id: 373f1a49-685d-4c07-8857-0fcf1bcaffcb
x-ms-correlation-request-id: 373f1a49-685d-4c07-8857-0fcf1bcaffcb
{
"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": "2018-06-16T00:39:13.8441801Z",
"endTime": "2018-06-16T00:55:13.8441801Z",
"timeZone": "UTC"
}
},
"pipelines": [
{
"pipelineReference": {
"referenceName": "examplePipeline",
"type": "PipelineReference"
},
"parameters": {
"OutputBlobNameList": [
"exampleoutput.csv"
]
}
}
],
"runtimeState": "Stopped"
},
"etag": "0a008ad4-0000-0000-0000-5b245c6e0000"
}
Triggers_Update
要求のサンプル
PUT https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger?api-version=2018-06-01
{
"properties": {
"type": "ScheduleTrigger",
"typeProperties": {
"recurrence": {
"frequency": "Minute",
"interval": 4,
"startTime": "2018-06-16T00:39:14.905167Z",
"endTime": "2018-06-16T00:55:14.905167Z",
"timeZone": "UTC"
}
},
"pipelines": [
{
"pipelineReference": {
"referenceName": "examplePipeline",
"type": "PipelineReference"
},
"parameters": {
"OutputBlobNameList": [
"exampleoutput.csv"
]
}
}
],
"description": "Example description"
}
}
応答のサンプル
Date: Sat, 16 Jun 2018 00:40:15 GMT
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-subscription-writes: 1185
x-ms-request-id: d5ccf096-0618-4b26-9829-db77e4c391c7
x-ms-correlation-request-id: d5ccf096-0618-4b26-9829-db77e4c391c7
{
"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": "2018-06-16T00:39:14.905167Z",
"endTime": "2018-06-16T00:55:14.905167Z",
"timeZone": "UTC"
}
},
"pipelines": [
{
"pipelineReference": {
"referenceName": "examplePipeline",
"type": "PipelineReference"
},
"parameters": {
"OutputBlobNameList": [
"exampleoutput.csv"
]
}
}
],
"description": "Example description",
"runtimeState": "Stopped"
},
"etag": "0a008dd4-0000-0000-0000-5b245c6f0000"
}
定義
名前 | 説明 |
---|---|
Cloud |
Azure Data Factory エラー応答の構造を定義するオブジェクト。 |
Multiple |
パイプラインへのトリガーに対して 1 対多のモデルをサポートするすべてのトリガーの基本クラス。 |
Pipeline |
パイプライン参照型。 |
Trigger |
指定されたパラメーターを使用してトリガーする必要があるパイプライン。 |
Trigger |
リソースの種類をトリガーします。 |
Trigger |
トリガーの使用可能な状態を列挙します。 |
CloudError
Azure Data Factory エラー応答の構造を定義するオブジェクト。
名前 | 型 | 説明 |
---|---|---|
error.code |
string |
エラー コード。 |
error.details |
追加のエラーの詳細を含む配列。 |
|
error.message |
string |
エラーメッセージ。 |
error.target |
string |
エラーに関連付けられている要求のプロパティ名/パス。 |
MultiplePipelineTrigger
パイプラインへのトリガーに対して 1 対多のモデルをサポートするすべてのトリガーの基本クラス。
名前 | 型 | 説明 |
---|---|---|
annotations |
object[] |
トリガーの記述に使用できるタグの一覧。 |
description |
string |
トリガーの説明。 |
pipelines |
開始する必要があるパイプライン。 |
|
runtimeState |
トリガーが実行されているかどうかを示します。 トリガーで Start/Stop 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
トリガーの使用可能な状態を列挙します。
値 | 説明 |
---|---|
Disabled | |
Started | |
Stopped |