查询指定业务的存储资源信息。
使用 GET 方式发起请求。
下表仅列出了接口特有的请求参数和部分公共参数。完整的公共参数列表,参考 公共请求参数。
字段 | 位置 | 类型 | 必填 | 说明 | 值 |
|---|---|---|---|---|---|
Action | Query | string | 是 | 公共参数,OpenAPI 接口名称 | GetProductResource |
| Version | Query | string | 是 | 公共参数,OpenAPI 接口版本 | 2022-08-01 |
| product_id | Query | string | 是 | 业务 ID | 可在「云手机控制台-业务管理-业务详情」中获取 |
通用返回参数,请参考 ResponseMetadata 结构说明。
Result 字段包含以下参数:
字段 | 类型 | 说明 |
|---|---|---|
| account_id | string | 账号 ID |
| product_id | string | 业务 ID |
| apply_data_size | int | 已订购存储总容量,单位 GB |
| used_data_size | int | 实例已使用存储容量,单位 GB |
GET https://open.volcengineapi.com?Action=GetProductResource &Version=2022-08-01 &product_id=1591495366954xxxxxx &<通过header传入的公共请求参数>
{ "ResponseMetadata": { "Action": "GetProductResource", "Region": "cn-north-1", "RequestId": "20231102145020E5D6EB9F4208621CE111", "Service": "ACEP", "Version": "2022-08-01" }, "Result": { "row": { "product_id": "1591495366954xxxxxx", "account_id": "2100xxxxxx", "apply_data_size": 750, "used_data_size": 117 }, "total": 1 } }