Run 생성
    • PDF

    Run 생성

    • PDF

    Article summary

    The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.

    Run을 생성합니다.

    POST https://nsml.apigw.ntruss.com/nsml/v1/projects/{projectId}/runs
    

    요청

    요청 파라미터

    필드명타입설명비고
    blockStorageNoListArrayBlock Storage No ListBlock Storage 목록 조회를 통해 나온 No값을 넣어줌.
    commandString명령
    envsMap환경변수
    gpuSvrCodeIntegerGPU 서버 코드GPU 서버 코드 조회에서 얻어옴
    imagePathString이미지 경로Base Image 목록 조회Custom Image 목록 조회 에서 얻어옴
    imageTypeString이미지 타입"BASE" or "CUSTOM" (Base Image로 사용시 "BASE", Custom Image 사용시 "CUSTOM")
    nodeCountInteger노드 개수
    noteStringnote

    응답

    응답 Status

    HTTP StatusDesc
    201Created
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    406Not Accepted
    500Internal Server Error

    예시

    요청 예시

    POST /nsml/v1/projects/2mdnduoena36ekcv4v7/runs
    
    Host: nsml.apigw.ntruss.com
    accept: application/json
    x-ncp-iam-access-key: {Access key}
    x-ncp-apigw-signature-v2: {API GW signature}
    x-ncp-apigw-timestamp: {timestamp}
    x-ncp-apigw-api-key: {apigw-api-key}
    
    {
      "blockStorageNoList": [1, 2],
      "command": "python a.py",
      "envs": {},
      "gpuSvrCode": 1,
      "imagePath": "test-image:v1",
      "imageType": "CUSTOM",
      "nodeCount": 1,
      "note": "note 1"
    }
    

    Was this article helpful?

    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.