setQuota
    • PDF

    setQuota

    • PDF

    Article summary

    Available in VPC

    The HDFS Quota of a Data Forest account is changed.

    Requests

    Request Parameters

    Parameter nameRequirement statusTypeRestrictionsDescription
    fileCountMillionYESIntegerYou can select the number of files that can be changed (name quota) between 1 million and 5 million.- Maximum number of files (unit: million)
    - Default value: 1 (million)
    idYESStringEnter up to 22 characters.Account identifier UUID (base62)
    Id can be obtained through getList API in Accounts
    namespaceYESStringNamespace pattern: koya or tata- HDFS namespace
    - Default: koya
    spaceTbYESIntegerYou can select the capacity of files that can be changed (space quota) between 200 TB and 500 TB.- Maximum space (unit: TB)
    - Default: 200 (TB)

    Request headers

    See common guide.

    Request Bodies

    • 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>
      

    Responses

    Response bodies

    • 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>
      

    Errors

    See DataForest overview

    Examples

    Request Examples

    • 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": 200
        }
      
    • 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\": 200}" \
      

    Response examples

    • HTTP

      HTTP StatusDescription
      200OK
    • BASH

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

    Was this article helpful?

    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.