MENU
      createTrigger

        createTrigger


        記事の要約

        トリガーを作成します。

        POST https://dataflow.apigw.ntruss.com/api/v1/triggers
        HTTP

        リクエスト

        リクエストボディ

        パラメータ名必須有無タイプ制限事項説明
        nameYesString- 先頭は英字、アンダースコア( _ )
        - 英数字、アンダースコア( _ )、ハイフン( - )使用可能
        - 最小3文字最大20文字で入力
        ジョブ名
        typeYesStringSCHEDULED, NONEトリガータイプ
        triggerRuleYesObjectトリガーオプション

        レスポンス

        フィールド名タイプ説明備考
        triggerIdStringトリガー ID
        nameStringトリガー名
        typeStringトリガータイプ
        triggerRule.typeStringトリガーオプションタイプ
        triggerRule.intervalStringトリガー周期
        triggerRule.timeStringトリガー繰り返し時間
        triggerRule.dayOfWeekStringトリガー繰り返し曜日
        triggerRule.dateOfMonthStringトリガー繰り返し月
        triggerRule.executionDateStringトリガー実行時間
        createdDateStringトリガー作成日
        updatedDateString最終アップデート

        レスポンス Status

        HTTP StatusDesc
        201Created(作成完了)
        400Bad Request
        401Unauthorized
        403Forbidden
        404Not Found
        500Internal Server Error

        リクエスト例

        POST /api/v1/triggers
        
        Host: dataflow.apigw.ntruss.com
        x-ncp-iam-access-key: {Access key}
        x-ncp-apigw-signature-v2: {API GW signature}
        x-ncp-apigw-timestamp: {timestamp}
        
        {
          "name": "trigger1",
          "type": "SCHEDULED",
          "triggerRule": {
            "type": "RECURRING",
            "interval": "DAY",
            "time": "10:00"
          }
        }
        HTTP

        レスポンス例

        {
            "triggerId": "T63391JxQHNj",
            "name": "trigger1",
            "type": "SCHEDULED",
            "triggerRule": {
                "type": "RECURRING",
                "interval": "DAY",
                "time": "10:00"
            },
            "createdDate": "2023-10-23T15:17:32.833",
            "updatedDate": "2023-10-23T15:17:32.833"
        }
        JSON

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.