사용량 제한 변경

Prev Next

아래 항목에 대해 도메인에 사용량 제한을 설정할 수 있습니다.

  • document_upload : 업로드 문서 크기 / uploaded documnet byte
  • reindex : 재색인(섹션, 색인 추가 시 발생) 문서 크기 / reindexed document byte
  • autocomplete_reindex : 자동완성 적용된 문서의 수 / reindexed document count for autocomplete
  • search_response : Search Query 네트워크 사용량 / response size of searching, unit is byte
PUT https://cloudsearch.apigw.gov-ntruss.com/CloudSearch/real/v1/domain/{name}/quota/{type}

요청

요청 파라미터

파라미터 명 필수 여부 타입 제약사항 설명
name Yes string 생성되어져 있는 Domain 이름
type Yes string 사용량을 제한할 항목 search_response, document_upload, reindex, autocomplete_reindex

요청 바디

파라미터 명 필수 여부 타입 제약사항 설명
interval Yes string 1Month, 1Day 사용량 초기화 주기
  • 1Month(reset: 매달 1일, 0:00:00)
  • 1Day(reset: 00:00)
  • quota Yes number 0으로 설정할 경우, 사용량 제한이 해제됩니다. 제한 사용량

    응답

    응답 Status

    HTTP Status Desc
    200 OK(설정 완료)
    400 Bad Request
    401 Unauthorized
    403 Forbidden
    404 Not Found
    500 Internal Server Error

    예시

    요청 예시

    PUT https://cloudsearch.apigw.gov-ntruss.com/CloudSearch/real/v1/domain/my_service/quota/search_response
    
    {
      "interval": "1Month",
      "quota": 10000000000
    }
    

    응답 예시

    {"result":"ok"}