setQuota
- Print
- PDF
setQuota
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
The HDFS Quota of a Data Forest account is changed.
Requests
Request Parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
fileCountMillion | YES | Integer | You 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) |
id | YES | String | Enter up to 22 characters. | Account identifier UUID (base62) Id can be obtained through getList API in Accounts |
namespace | YES | String | Namespace pattern: koya or tata | - HDFS namespace - Default: koya |
spaceTb | YES | Integer | You 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
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
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 Status Description 200 OK BASH
{ "success": true, "id": "axE7wU9ERm8fTc7e17vNvu" }
{ "success": false, "message": "unchanged quota value", "id": "axE7wU9ERm8fTc7e17vNvu" }
Was this article helpful?