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작업 생성일

    응답 Status

    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.