MENU
      setQuota

        setQuota


        記事の要約

        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
          }
          JSON
        • XML

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

        レスポンス

        レスポンスボディ

        • JSON

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

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

        エラーコード

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

        レスポンス例

        • HTTP

          HTTP StatusDescription
          200OK
        • BASH

          {
              "success": true,
              "id": "axE7wU9ERm8fTc7e17vNvu"
          }
          JSON
          {
              "success": false,
              "message": "unchanged quota value",
              "id": "axE7wU9ERm8fTc7e17vNvu"
          }
          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.