setQuota
    • PDF

    setQuota

    • PDF

    기사 요약

    VPC 환경에서 이용 가능합니다.

    Data Forest 계정의 HDFS Quota를 변경합니다.

    요청

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    fileCountMillionYESInteger변경할 수 있는 파일 개수(name quota)는 최소 1(백만)에서 최소 5(백만)까지 선택 가능- 최대 파일 수 (단위: 백만)
    - 기본값: 1(백만)
    idYESString최대 22자까지 입력계정 식별자 UUID(base62)
    id는 Accounts의 getList API를 통해서 획득 가능
    namespaceYESString네임스페이스 패턴: koya 또는 tata- HDFS 네임스페이스
    - 기본값: koya
    spaceTbYESInteger변경할 수 있는 파일 용량(space quota)는 최소 200(TB)에서 최대 500(TB)까지 선택 가능- 최대 공간 (단위: TB)
    - 기본값: 200(TB)

    요청 헤더

    공통 가이드 참조

    요청 바디

    • JSON

      {
        "fileCountMillion": 1,
        "id": "string",
        "namespace": "koya",
        "spaceTb": 200
      }
      
    • XML

      <?xml version="1.0" encoding="UTF-8"?>
      <SetAccountQuotaRequest>
        <fileCountMillion>1</fileCountMillion>
        <id>string</id>
        <namespace>koya</namespace>
        <spaceTb>200</spaceTb>
      </SetAccountQuotaRequest>
      

    응답

    응답 바디

    • JSON

      {
        "id": "string",
        "message": "string",
        "success": true
      }
      
    • XML

      <?xml version="1.0" encoding="UTF-8"?>
      <SetAccountQuotaResponse>
        <id>string</id>
        <message>string</message>
        <success>true</success>
      </SetAccountQuotaResponse>
      

    오류코드

    DataForest 개요 참조

    예시

    요청 예시

    • HTTP

        POST https://df.apigw.ntruss.com/api/v2/accounts/setQuota
        HOST: df.apigw.ntruss.com
        Content-Type: application/json
        x-ncp-apigw-timestamp: 1505290625682
        x-ncp-iam-access-key: D78BB444D6D3C84CA38A
        x-ncp-apigw-signature-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
      
        {
            "id": "axE7wU9ERm8fTc7e17vNvu",
            "namespace": "koya",
            "fileCountMillion": 1,
            "spaceTb": 250
        }
      
    • BASH

      curl -X POST "https://df.apigw.ntruss.com/api/v2/accounts/setQuota" \
      -H "accept: application/json" \
      -H "Content-Type: application/json" \
      -H "x-ncp-apigw-timestamp:1505290625682" \
      -H "x-ncp-iam-access-key:D78BB444D6D3C84CA38A" \
      -H "x-ncp-apigw-signature-v2:WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=" \
      -d "{ \"fileCountMillion\": 1, \"id\": \"axE7wU9ERm8fTc7e17vNvu\", \"namespace\": \"koya\", \"spaceTb\": 250}" \
      

    응답 예시

    • HTTP

      HTTP StatusDescription
      200OK
    • BASH

        {
            "success": true,
            "id": "axE7wU9ERm8fTc7e17vNvu"
        }
      
       {
           "success": false,
           "message": "unchanged quota value",
           "id": "axE7wU9ERm8fTc7e17vNvu"
       }
      

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

    What's Next
    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.