在创建NAS时查询可购买的资源
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:DescribeNASAvailableResourceInfo |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
响应信息。 |
||
| RequestId |
string |
请求 ID。 |
AAE90880-4970-4D81-A534-A6C0F3631F74 |
| Code |
string |
业务状态码,成功返回 0。 |
0 |
| Message |
string |
错误信息。 |
you are not authorized to this workspace, or workspace not exists. |
| NasAvailableResourceInfo |
array<object> |
可用的 nas 资源信息。 |
|
|
object |
可用的 nas 资源信息数组。 |
||
| EnsRegionId |
string |
ENS 节点 ID。 |
cn-chenzhou-telecom_unicom_cmcc |
| NasAvailableAmount |
integer |
可用的 nas 资源数量。 |
1 |
| NasAvailableStorgeType |
string |
可用的 nas 资源类型。 |
capacity |
| EnsRegionName |
string |
ENS 节点名字。 |
中国杭州36 |
| Area |
string |
ENS 节点所属区域。 |
SouthWestChina |
| EnName |
string |
英文名称。 |
cn-chenzhou-telecom_unicom_cmcc |
| Province |
string |
ENS 节点所属省份。 |
湖北省 |
| Ability |
array |
节点产品能力。 |
|
|
string |
节点产品能力。 |
nas |
示例
正常返回示例
JSON格式
{
"RequestId": "AAE90880-4970-4D81-A534-A6C0F3631F74",
"Code": "0",
"Message": "you are not authorized to this workspace, or workspace not exists.",
"NasAvailableResourceInfo": [
{
"EnsRegionId": "cn-chenzhou-telecom_unicom_cmcc",
"NasAvailableAmount": 1,
"NasAvailableStorgeType": "capacity",
"EnsRegionName": "中国杭州36",
"Area": "SouthWestChina",
"EnName": "cn-chenzhou-telecom_unicom_cmcc",
"Province": "湖北省",
"Ability": [
"nas"
]
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。