getWorkflows
    • PDF

    getWorkflows

    • PDF

    記事の要約

    ワークフローリストを照会します。

    GET https://dataflow.apigw.ntruss.com/api/v1/workflows?page={page}&limit={limit}
    

    リクエスト

    リクエストパラメータ

    パラメータ名必須の有無タイプ制限事項説明
    pageNoNumberページ
    limitNoNumberページごとの最大数

    レスポンス

    フィールド名タイプ説明備考
    list[].workflowIdStringワークフロー ID
    list[].nameStringワークフロー名
    list[].createdDateStringワークフロー作成日
    list[].updatedDateString最終アップデート
    list[].lastExecutionDateString最終実行日
    list[].isTempBoolean下書き保存するかどうか
    list[].triggerRuleTypeStringトリガールールタイプ
    list[].nodes[].idStringノード ID
    list[].nodes[].nameStringノード名
    list[].nodes[].typeStringノードタイプ
    list[].nodes[].parentNodeIdsString上位ノード ID
    list[].nodes[].triggerRuleStringトリガーノードオプション
    list[].nodes[].jobConditionObjectジョブ実行オプション
    list[].nodes[].isValidBoolean削除の有無
    list[].resourceIdStringリソース ID(ワークフロー IDと同じ)
    list[].disabledStringリソース照会権限があるかどうか
    countNumber総数
    pageNumberページ
    limitNumberページごとの最大数

    レスポンスステータス

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

    リクエスト例

    GET /api/v1/workflows?page=0&limit=20
    
    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}
    
    

    レスポンス例

    {
      "list": [
        {
          "workflowId": "pJ1HCEI7L9ha",
          "name": "test-workflow2",
          "createdDate": "2024-07-10T14:16:01+09:00",
          "updatedDate": "2024-07-24T15:26:09+09:00",
          "isTemp": false,
          "triggerRuleType": "NONE",
          "nodes": [
            {
              "id": "RpiB7okASK5W",
              "name": "cdb_pg_test",
              "type": "JOB",
              "parentNodeIds": [
                "vMcf5Gvf2x3R"
              ],
              "jobCondition": {
                "workerType": "DEFAULT",
                "numWorker": 3,
                "timeout": 360,
                "nrn": "nrn:PUB:IAM::25****4:Role/****-a9d6-****-a85d-****",
                "scriptPath": "dataflow-33-****/scripts/",
                "logPath": "dataflow-33-****/sparkHistoryLogs/"
              }
            },
            {
              "id": "vMcf5Gvf2x3R",
              "name": "awefawef",
              "type": "TRIGGER",
              "parentNodeIds": [],
              "triggerRule": "NONE"
            }
          ],
          "resourceId": "pJ1HCEI7L9ha",
          "disabled": false
        },
        {
          "workflowId": "saTBhhA5A6DS",
          "name": "test-workflow",
          "createdDate": "2024-06-12T14:41:45+09:00",
          "updatedDate": "2024-07-01T18:15:35+09:00",
          "isTemp": false,
          "triggerRuleType": "NONE",
          "nodes": [
            {
              "id": "GOIlT1ccQHtq",
              "name": "cdb",
              "type": "JOB",
              "parentNodeIds": [
                "vMcf5Gvf2x3R"
              ],
              "jobCondition": {
                "workerType": "DEFAULT",
                "numWorker": 2,
                "timeout": 360,
                "nrn": "nrn:PUB:IAM::25****4:Role/****-b05d-****-bebe-****",
                "scriptPath": "dataflow-33-****/scripts/",
                "logPath": "dataflow-33-****/sparkHistoryLogs/"
              }
            },
            {
              "id": "vMcf5Gvf2x3R",
              "name": "awefawef",
              "type": "TRIGGER",
              "parentNodeIds": [],
              "triggerRule": "NONE"
            }
          ],
          "resourceId": "saTBhhA5A6DS",
          "disabled": false
        }
      ],
      "count": 2,
      "page": 0,
      "limit": 1000
    }
    

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

    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.