查询云存储Pro退费金额
接口说明
查询删除单份云存储Pro(CFS)时的预计退费金额。本接口只预览费用,不删除资源、不实际退款。执行删除请调用 DeleteCFS。
POST
https://api.compshare.cnActionGetCompShareCFSRefundPrice使用限制
- 仅支持 Pod 可用区的 CFS,资源必须属于当前账号和项目,且有对应账单。
- 预付费资源通过计费系统计算退费;兼容历史后付费资源时退费金额为 0,不代表新购支持 Postpay。
- 退费金额可能随查询时间变化,最终以删除时的结算为准。
- 非 Pod 可用区当前可能返回没有
RefundPrice的空响应;缺少金额不等于退费为 0。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| Action | String | 是 | 接口名称 | GetCompShareCFSRefundPrice |
| Region | String | 是 | 云存储所在地域 | cn-bj2 |
| Zone | String | 是 | 云存储所在 Pod 可用区 | cn-bj2-03 |
| ProjectId | String | 否 | 云存储所属项目 ID,不传使用默认项目 | org-xxx |
| CFSId | String | 是 | 单份云存储 ID;注意本接口字段名称为 CFSId | cfs-xxxx |
本接口 Request 定义使用
CFSId;查询、扩容和删除接口使用CfsId。值是同一个资源 ID,但请按各接口定义填写字段名,不要统一替换。该字段为字符串,不是数组。
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| Action | String | 响应名称:GetCompShareCFSRefundPriceResponse |
| RetCode | Integer | 返回码,0 为请求成功 |
| Message | String | 错误信息,无错误时可能省略 |
| request_uuid | String | 请求唯一标识 |
| RefundPrice | Number | 预计退费金额,单位元;有效的 0 会显式返回,字段缺失时不应推断金额 |
请求示例
{
"Action": "GetCompShareCFSRefundPrice",
"Region": "cn-bj2",
"Zone": "cn-bj2-03",
"CFSId": "cfs-xxxx"
}响应示例
金额仅用于展示返回结构,不是固定退费标准。
{
"Action": "GetCompShareCFSRefundPriceResponse",
"RetCode": 0,
"request_uuid": "request-xxxx",
"RefundPrice": 8.5
}Last updated on