updateJobExecuteConfig
    • PDF

    updateJobExecuteConfig

    • PDF

    記事の要約

    ジョブ実行オプションを更新します。

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

    リクエスト

    リクエストパラメータ

    パラメータ名必須の有無タイプ制限事項説明
    jobIdYesStringジョブ ID

    リクエストボディ

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

    レスポンス

    フィールド名タイプ説明備考
    jobIdStringジョブ ID
    nameStringジョブ名
    descriptionStringジョブの説明
    typeStringジョブタイプ
    statusStringジョブの状態
    nodes[].idNumberノード ID
    nodes[].nameStringノード名
    nodes[].typeStringノードタイプ
    nodes[].parentNodeIdsArray上位ノード ID
    runCondtion.workerTypeStringWorkerタイプ
    runCondition.numWorkerNumberWorker数
    runCondition.timeoutNumber実行タイムアウト
    runCondition.nrnStringポリシー NRN
    runCondition.scriptPathString実行スクリプトの保存パス
    runCondition.logPathString実行ログの保存パス
    createdDateStringジョブ作成日
    updatedDateString最終アップデート

    レスポンスステータス

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

    リクエスト例

    PUT /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,
            "numRetry": 3,
            "timeout": 360,
            "parameters": {},
            "nrn": "nrn:PUB:IAM::0000:Role/000000-b123-11aa-b1b1-053256a72429",
            "scriptPath": "dataflow-172686404/scripts/",
            "logPath": "dataflow-172686404/sparkHistoryLogs/"
        }
    }
    
    
    

    レスポンス例

    {
          "jobId": "5Yns7JgRt25f",
          "name": "data-flow",
          "description": "",
          "type": "DATAFLOW",
          "status": "RUNNABLE",
          "nodes": [
            {
              "type": "SOURCE_OBS",
              "id": 1697776914576,
              "name": "Object Storage",
              "parentNodeIds": [],
              "regionNo": "1",
              "bucketName": "aitems",
              "prefix": "dataflow1",
              "dataType": "CSV",
              "fieldList": [
                {
                  "name": "id",
                  "type": "string",
                  "properties": []
                },
                {
                  "name": "name",
                  "type": "string",
                  "properties": []
                },
                {
                  "name": "description",
                  "type": "string",
                  "properties": []
                }
              ]
            },
            {
              "type": "TRANSFORM_FILTER",
              "id": 1697776942407,
              "name": "フィルタ",
              "parentNodeIds": [
                1697776914576
              ],
              "filterType": "AND",
              "filterConditionList": [
                {
                  "name": "name",
                  "operator": "EQ",
                  "value": "A"
                }
              ]
            },
            {
              "type": "TARGET_OBS",
              "id": 1697776948956,
              "name": "Object Storage",
              "parentNodeIds": [
                1697776942407
              ],
              "regionNo": "1",
              "bucketName": "aitems",
              "prefix": "dataflow1",
              "dataType": "CSV",
              "updateType" : "OVERWRITE",
              "fieldList": [
                {
                  "name": "id",
                  "type": "string",
                  "properties": []
                },
                {
                  "name": "name",
                  "type": "string",
                  "properties": []
                },
                {
                  "name": "description",
                  "type": "string",
                  "properties": []
                }
              ]
            }
          ],
          "runCondition": {
            "workerType": "DEFAULT",
            "numWorker": 2,
            "timeout": 360,
            "nrn": "nrn:PUB:IAM::0000:Role/000000-b123-11aa-b1b1-053256a72429",
            "scriptPath": "dataflow-****/scripts/",
            "logPath": "dataflow-****/sparkHistoryLogs/"
          },
          "createdDate": "2023-10-20T13:45:15.000",
          "updatedDate": "2023-10-20T13:46:56.000"
        }
    

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

    What's Next
    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.