executeJob
    • PDF

    executeJob

    • PDF

    記事の要約

    ジョブを実行します。

    POST https://dataflow.apigw.ntruss.com/api/v1/jobs/{jobId}/executions
    

    リクエスト

    リクエストパラメータ

    パラメータ名必須の有無タイプ制限事項説明
    jobIdYesStringジョブ ID
    workflowIdNoStringワークフロー ID
    triggerIdNoStringトリガー ID

    リクエストボディ

    パラメータ名必須の有無タイプ制限事項説明
    jobCondition.workerTypeNoStringDEFAULTWorkerタイプ
    jobCondition.numWorkerNoNumber2~10Worker数
    jobCondition.timeoutNoNumberデフォルト: 360分、最大: 1440分(24時間)実行タイムアウト
    jobCondition.nrnYesStringポリシー NRN
    jobCondition.scriptPathYesString実行スクリプトの保存パス
    jobCondition.logPathYesString実行ログの保存パス
    parametersNoObject実行パラメータ

    レスポンス

    フィールド名タイプ説明備考
    jobIdStringジョブ ID
    jobExecutionIdStringジョブ実行 ID
    statusStringジョブの状態
    jobCondition.workerTypeStringWorkerタイプ
    jobCondition.numWorkerNumberWorker数
    jobCondition.timeoutNumber実行 Timeout
    jobCondition.nrnStringポリシー NRN
    jobCondition.scriptPathString実行スクリプトの保存パス
    jobCondition.logPathString実行ログの保存パス
    createdDateStringジョブ作成日

    レスポンスステータス

    HTTP StatusDesc
    200OK(実行完了)
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal Server Error

    リクエスト例

    POST /api/v1/jobs/5Yns7JgRt25f/executions
    
    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}
    
    {
      "jobCondition": {
        "workerType": "DEFAULT",
        "numWorker": 2,
        "timeout": 360,
        "nrn": "nrn:PUB:IAM::0000:Role/000000-b123-11aa-b1b1-053256a72429",
        "scriptPath": "dataflow-172686404/scripts/",
        "logPath": "dataflow-172686404/sparkHistoryLogs/"
      },
      "parameters": {
        "$table_name": "test.sample_table2"
      }
    }
    
    

    レスポンス例

    
    {
        "jobExecutionId": "4Yz7GaZjhqBq",
        "jobId": "5Yns7JgRt25f",
        "jobCondition": {
            "workerType": "DEFAULT",
            "numWorker": 2,
            "timeout": 360,
            "nrn": "nrn:PUB:IAM::0000:Role/000000-b123-11aa-b1b1-053256a72429",
            "scriptPath": "dataflow-172686404/scripts/",
            "logPath": "dataflow-172686404/sparkHistoryLogs/"
        },
        "status": "READY",
        "createdDate": "2023-10-23T12:25:24.459"
    }
    
    

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

    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.