在建立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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。