curl -v "http://127.0.0.1/admin/createVol?name=test&capacity=100&owner=cfs&mpCount=3"
Allocate a set of data partition and a meta partition to the user.
Default create 10 data partition and 3 meta partition when create volume.
Parameter | Type | Description |
---|---|---|
name | string | |
capacity | int | the quota of vol,unit is GB |
owner | string | the owner of vol |
mpCount | int | the amount of initial meta partitions |
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
ParametersParameter | Type | Description |
---|---|---|
name | string | |
authKey | string | calculates the MD5 value of the owner field as authentication information |
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.
ParametersParameter | Type | Description |
---|---|---|
name | string | |
authKey | string | calculates the MD5 value of the owner field as authentication information |
response
{
"Name": "test",
"VolType": "extent",
"MetaPartitions": {},
"DataPartitions": {},
"OSSSecure": {
"AccessKey": "l9aC5S9OzlneHguZ",
"SecretKey": "4sL0xJfHVVHKOC3MDwPfaF1AcGm5a2XL"
}
}
curl -v http://127.0.0.1/client/volStat?name=test
show vol stat information
ParametersParameter | Type | Description |
---|---|---|
name | string |
response
{
"Name": "test",
"TotalSize": 322122547200000000,
"UsedSize": 15551511283278
}
curl -v "http://127.0.0.1/vol/update?name=test&capacity=100&authKey=md5(owner)"
add the vol quota
ParametersParameter | Type | Description |
---|---|---|
name | string | |
capacity | int | the quota of vol, unit is GB |
authKey | string | calculates the MD5 value of the owner field as authentication information |