MENU
      Object Storage Document 관리

        Object Storage Document 관리


        기사 요약

        Object Storage를 통해 대용량 문서 업로드(최대 100MB)를 수행할 수 있습니다.
        문서에 대한 자세한 설명은 Document 관리를 통해 확인해주세요.

        • BOM(Byte Order Mark)이 포함된 문서는 업로드가 불가합니다.
        • 자동 완성 기능을 사용하고 있을 경우, 본 요청 이후 자동 완성 설정 및 수정 요청을 통해 자동 완성 색인을 갱신해야 합니다.
        POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/{name}/document/manage/object_storage
        HTTP

        요청

        요청 파라미터

        파라미터명필수 여부타입제약 사항설명
        nameYesstring생성되어져 있는 Domain 이름

        요청 바디

        필드명필수 여부타입제약 사항설명
        bucketYesstring업로드 할 문서가 위치한 버킷 이름
        objectPathYesstring업로드 할 문서의 경로
        regionYesstring"kr", "us", "sg", "jp", "de"버킷의 리전 정보
        pruningYesboolean기존 색인된 문서의 삭제 여부(true로 할 경우 기존에 색인된 문서들을 삭제하고, 업로드 요청한 문서의 색인을 수행함)

        응답

        응답 Status

        HTTP StatusDesc
        200OK, 요청 완료
        400Bad Request
        401Unauthorized, There is no authorization to read the object file
        403Forbidden
        404Not Found
        500Internal Server Error

        예시

        요청 예시

        POST /CloudSearch/real/v1/domain/car/document/manage/object_storage HTTP/1.1
        Host:cloudsearch.apigw.ntruss.com
        Content-Type: application/json
        x-ncp-apigw-signature-v2: cDwtHuQeGmwWyNmwlN6XIGA66zge4iMXvfoDQNna05g=
        x-ncp-apigw-timestamp: 1545817618751
        x-ncp-iam-access-key: teGTwtcSEGA7fu28BGGi
        
        {
          "bucket": "my-test",
          "objectPath": "doc/car_upsert.json",
          "region": "kr",
          "pruning": false
        }
        HTTP

        응답 예시

        {"result":"ok"}
        JSON

        이 문서가 도움이 되었습니까?

        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.