Object Storage를 통해 대용량 문서 업로드(최대 100MB)를 수행할 수 있습니다.
문서에 대한 자세한 설명은 Document 관리를 통해 확인해주세요.
참고
- BOM(Byte Order Mark)이 포함된 문서는 업로드가 불가합니다.
- 자동 완성 기능을 사용하고 있을 경우, 본 요청 이후 자동 완성 설정 및 수정 요청을 통해 자동 완성 색인을 갱신해야 합니다.
POST https://cloudsearch.apigw.gov-ntruss.com/CloudSearch/real/v1/domain/{name}/document/manage/object_storage
요청
요청 파라미터
파라미터 명 |
필수 여부 |
타입 |
제약사항 |
설명 |
name |
Yes |
string |
|
생성되어져 있는 Domain 이름 |
요청 바디
필드명 |
필수 여부 |
타입 |
제약사항 |
설명 |
bucket |
Yes |
string |
|
업로드 할 문서가 위치한 버킷 이름 |
objectPath |
Yes |
string |
|
업로드 할 문서의 경로 |
region |
Yes |
string |
"kr", "us", "sg", "jp", "de" |
버킷의 리전 정보 |
pruning |
Yes |
boolean |
|
기존 색인된 문서의 삭제 여부 (true로 할 경우 기존에 색인된 문서들을 삭제하고, 업로드 요청한 문서의 색인을 수행함) |
응답
응답 Status
HTTP Status |
Desc |
200 |
OK, 요청 완료 |
400 |
Bad Request |
401 |
Unauthorized, There is no authorization to read the object file |
403 |
Forbidden |
404 |
Not Found |
500 |
Internal Server Error |
예시
요청 예시
POST https://cloudsearch.apigw.gov-ntruss.com/CloudSearch/real/v1/domain/car/document/manage/object_storage HTTP/1.1
{
"bucket": "my-test",
"objectPath": "doc/car_upsert.json",
"region": "kr",
"pruning": false
}
응답 예시
{"result":"ok"}