名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
nodeid | int | 数据中心ID | |
iid | int | 云主机ID | |
status | int | 状态 0已绑定 1可使用 2回收站 | |
page | int | 页码 | |
limit | int | 每页数量 |
curl -i -X POST https://api3.verycloud.cn/API/instance/cloudDiskList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "2480234589",
"disk_id": "vol-iwuk0ogn",
"disk_name": "测试",
"value": "230",
"node": {
"id": "1234567890",
"areaname": "江阴1区"
},
"instance": {
"id": "1564881234",
"instance_id": "i-sxri5gl4",
"name": ""
},
"status": "0",
"note": "备注",
"createtime": "2015/03/17 15:29",
"createtime_ago": "1天前",
"updatetime": "2015/03/18 15:31"
}
],
"limit": 30,
"page": 1,
"total": 1,
"totalpage": 1
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
nodeid | int | 数据中心ID | |
disk_name | string | 名称 | |
value | int | 硬盘容量 单位G 10的整数倍 | |
note | string | 备注 |
curl -i -X POST https://api3.verycloud.cn/API/instance/cloudDiskAdd -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "nodeid": 1234567890, "disk_name": "测试", "value": 30, "note": "备注"}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "2505123456",
"disk_name": "测试",
"nodeid": "1234567890",
"note": "备注",
"value": "30"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 云硬盘ID | |
disk_name | string | 名称 | |
note | string | 备注 |
curl -i -X POST https://api3.verycloud.cn/API/instance/cloudDiskUpdate -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "disk_name": "测试名称", "note": "备注"}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "25051245875",
"disk_name": "测试名称",
"note": "备注"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 云硬盘ID |
curl -i -X POST https://api3.verycloud.cn/API/instance/cloudDiskDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890}'
{
"code": 1,
"message": "云硬盘已放入回收站,将为您保留2小时",
"data": {
"disk_id": "vol-hoawll15",
"disk_name": "测试名称"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | string | 云硬盘ID, 多个用“,”隔开 | |
iid | int | 云主机ID |
curl -i -X POST https://api3.verycloud.cn/API/instance/cloudDiskBind -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "iid": 1234567890}'
{
"code": 1,
"message": "操作完成",
"created": "2015年03月19日 9:43:09",
"data": {
"disk_id": "vol-dgqd0gkm",
"disk_name": "测试名称",
"instance_id": "i-nh0qseft",
"name": ""
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 云硬盘ID |
curl -i -X POST https://api3.verycloud.cn/API/instance/cloudDiskBind -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890}'
{
"code": 1,
"message": "操作完成",
"data": {
"disk_id": "vol-dgqd0gkm",
"disk_name": "测试名称",
"instance_id": "i-nh0qseft",
"name": ""
}
}