서비스 생성
- 인쇄
- PDF
서비스 생성
- 인쇄
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
서비스를 생성합니다.
POST https://aitems.apigw.ntruss.com/api/v1/services
요청
요청 바디
파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
---|---|---|---|---|
name | Yes | String | - 영문자, 붙임 문자( _ )로 시작 - 영문자, 숫자, 붙임 문자( _ ), 붙임표( - ) 사용 가능 - 최소 3자 최대 20자로 입력 | 서비스 이름 |
description | No | String | 0 ~ 100자까지 입력 | 서비스 설명 |
type | No | String | batch(default), interval | 서비스 타입 |
응답
필드명 | 타입 | 설명 | 비고 |
---|---|---|---|
serviceId | String | 서비스 ID | |
name | String | 서비스 이름 | |
description | String | 서비스 설명 | |
status | String | 서비스 상태 | |
datasets[].datasetId | String | 서비스에 설정된 데이터셋 ID | |
datasets[].type | String | 서비스에 설정된 데이터셋 타입 | |
datasets[].name | String | 서비스에 설정된 데이터셋 이름 | |
datasets[].schemaName | String | 서비스에 설정된 데이터셋 스키마 이름 | |
datasets[].status | String | 서비스에 설정된 데이터셋 상태 | |
datasets[].createdDate | String | 서비스에 설정된 데이터셋 생성일 | |
datasets[].updatedDate | String | 서비스에 설정된 데이터셋 최종 업데이트 | |
hpConfig.is_enabled | Boolean | HPO 설정여부 | |
hpConfig.{option} | String | 설정된 HPO 값 | |
infers[].dataType | String | 학습결과 데이터셋 타입 | |
infers[].trainVersion | String | 학습결과 버전 | |
infers[].status | String | 학습결과 상태 | |
infers[].rowCount | String | 학습결과 수 | |
createdDate | String | 서비스 생성일 | |
updatedDate | String | 최종 업데이트 |
응답 Status
HTTP Status | Desc |
---|---|
201 | Created(생성 완료) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
예시
요청 예시
POST /api/v1/services
Host: aitems.apigw.ntruss.com
x-ncp-iam-access-key: {Access key}
x-ncp-apigw-signature-v2: {API GW signature}
x-ncp-apigw-timestamp: {timestamp}
{
"name": "test-service",
"description": ""
}
응답 예시
{
"serviceId": "nko7izq3mbm",
"name": "test-service",
"description": "",
"status": "datasetRequired",
"datasets": [],
"hpConfig": {
"is_enabled": false
},
"infers": [],
"createdDate": "2021-09-29T11:36:50.217",
"updatedDate": "2021-11-24T15:24:20.985"
}
이 문서가 도움이 되었습니까?