Volume¶
Create¶
curl -v "http://127.0.0.1/admin/createVol?name=test&capacity=100&owner=cfs"
allocate a set of data partition and a meta partition to the user.
Parameter | Type | Description |
---|---|---|
name | string | |
capacity | int | the quota of vol,unit is GB |
owner | string | the owner of vol |
Delete¶
curl -v "http://127.0.0.1/vol/delete?name=test&authKey=md5(owner)"
Mark the vol status to MarkDelete first, then delete data partition and meta partition asynchronous,finally delete meta data from persist store
Parameter | Type | Description |
---|---|---|
name | string | |
authKey | string | calculates the MD5 value of the owner field as authentication information |
Get¶
curl -v "http://127.0.0.1/client/vol?name=test&authKey=md5(owner)" | python -m json.tool
show the base information of the vol,such as name,the detail of data partitions and meta partitions and so on.
Parameter | Type | Description |
---|---|---|
name | string | |
authKey | string | calculates the MD5 value of the owner field as authentication information |
response
{
"Name": "test",
"VolType": "extent",
"MetaPartitions": {},
"DataPartitions": {}
}