主题
魔方云磁盘产品管理
产品列表
| 项目 | 内容 |
|---|---|
| 接口描述 | 产品列表 |
| 接口地址 | /console/v1/idcsmart_cloud_disk |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| page | int | 1 | - | 页数 |
| limit | int | - | - | 每页条数 |
| orderby | string | - | - | 排序(id,status) |
| sort | string | - | - | 升/降序 |
| keywords | string | - | - | 关键字搜索 |
| host_id | int | - | - | 魔方云产品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| list | array | - | 列表数据 |
| list[].id | int | - | 列表数据 |
| list[].name | string | - | 产品标识 |
| list[].status | string | - | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除,Failed=开通失败) |
| list[].package_id | int | - | 套餐ID |
| list[].size | int | - | 容量 |
| list[].host_id | string | - | 实例ID |
| list[].cloud_name | string | - | 实例 |
| list[].first_payment_amount | string | - | 付款金额 |
| list[].billing_cycle_name | string | - | 周期 |
| list[].create_time | string | - | 创建时间 |
| count | int | - | 总数 |
挂载磁盘
| 项目 | 内容 |
|---|---|
| 接口描述 | 挂载磁盘 |
| 接口地址 | /console/v1/idcsmart_cloud_disk/:id/mount |
| 请求方式 | PUT |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | required | 磁盘ID |
| host_id | int | - | required | 实例ID |
响应参数
无
卸载磁盘
| 项目 | 内容 |
|---|---|
| 接口描述 | 卸载磁盘 |
| 接口地址 | /console/v1/idcsmart_cloud_disk/:id/umount |
| 请求方式 | PUT |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | required | 磁盘ID |
响应参数
无
扩容磁盘
| 项目 | 内容 |
|---|---|
| 接口描述 | 扩容磁盘 |
| 接口地址 | /console/v1/idcsmart_cloud_disk/:id/expansion |
| 请求方式 | PUT |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | required | 磁盘ID |
| size | int | - | required | 容量 |
| package_id | int | - | require | 套餐ID |
响应参数
无