Description

Set up quota for the size of image storage.
※setting up the maximum size of private images.

Request URL

Image API v2

PUT /v2/quota

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header
tyo1_image_size (tyo1 region) plain “50GB”,“550GB”,“1050GB”, and can be added more in chunks of 500GB.
sjc1_image_size (sjc1 region) plain “50GB”,“550GB”,“1050GB”, and can be added more in chunks of 500GB.
sin1_image_size (sin1 region) plain “50GB”,“550GB”,“1050GB”, and can be added more in chunks of 500GB.

Request Json

{
  "quota":{
    "tyo1_image_size": "550GB" 
  }
}

Normal response codes

OK (200)

Example

curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
-d '{"quota":{"tyo1_image_size": "550GB"}}' \
https://image-service.tyo1.cloud.z.com/v2/quota
HTTP/1.1 200 OK
Date: Tue, 09 Dec 2014 10:17:20 GMT
Server: Apache
Content-Length: 6102
Content-Type: application/json

{
  "quota":{
    "tyo1_image_size": "550GB"
  }
}