Run 생성
- 印刷する
- PDF
Run 생성
- 印刷する
- PDF
記事の要約
この要約は役に立ちましたか?
ご意見ありがとうございます
最新のコンテンツが反映されていません。早急にアップデート内容をご提供できるよう努めております。最新のコンテンツ内容は韓国語ページをご参照ください。
Run을 생성합니다.
POST https://nsml.apigw.ntruss.com/nsml/v1/projects/{projectId}/runs
요청
요청 파라미터
필드명 | 타입 | 설명 | 비고 |
---|---|---|---|
blockStorageNoList | Array | Block Storage No List | Block Storage 목록 조회를 통해 나온 No값을 넣어줌. |
command | String | 명령 | |
envs | Map | 환경변수 | |
gpuSvrCode | Integer | GPU 서버 코드 | GPU 서버 코드 조회에서 얻어옴 |
imagePath | String | 이미지 경로 | Base Image 목록 조회 나 Custom Image 목록 조회 에서 얻어옴 |
imageType | String | 이미지 타입 | "BASE" or "CUSTOM" (Base Image로 사용시 "BASE", Custom Image 사용시 "CUSTOM") |
nodeCount | Integer | 노드 개수 | |
note | String | note |
응답
응답 Status
HTTP Status | Desc |
---|---|
201 | Created |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
406 | Not Accepted |
500 | Internal 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"
}
この記事は役に立ちましたか?