擷取雲產品資產結構列表
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| PageSize |
integer |
否 |
分頁查詢時,每頁顯示的白名單規則數量。預設值為 10,表示每頁顯示 10 條白名單規則。 |
10 |
| CurrentPage |
integer |
否 |
分頁查詢時,設定當前頁面的頁碼。預設值為 1。 |
1 |
| CloudAssetTypes |
array<object> |
否 |
雲資產的資產類型資訊列表。 |
|
|
object |
否 |
雲資產的資產類型資訊。 |
||
| AssetType |
integer |
否 |
資產的類型。取值:
|
0 |
| AssetSubType |
integer |
否 |
雲產品的子類型。 資產的類型-子類型。取值:
|
0 |
| Vendor |
integer |
否 |
伺服器廠商。取值:
|
0 |
| DataNames |
array |
否 |
資產資料名稱列表。 |
|
|
string |
否 |
資產資料名稱。 |
ACS_ECS_Disk |
|
| AssociatedDataOnly |
boolean |
否 |
是否過濾出可以關聯其他資產的屬性。 |
true |
| Lang |
string |
否 |
請求和接收訊息的語言類型,預設值 zh。取值:
|
zh |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Success |
boolean |
是否調用成功。取值:
|
true |
| RequestId |
string |
本次調用請求的 ID,是由阿里雲為該請求產生的唯一識別碼,可用於排查和定位問題。 |
F8B6F758-BCD4-597A-8A2C-DA5A552C**** |
| PageInfo |
object |
PageInfo 頁面顯示的資訊。 |
|
| CurrentPage |
integer |
當前頁碼 |
1 |
| PageSize |
integer |
分頁查詢時,每頁顯示的賬戶資產的指紋資訊的數量。預設值為 10,表示每頁顯示 10 條賬戶資產的指紋資訊。 |
10 |
| TotalCount |
integer |
查詢到的資料總條數。 |
54 |
| Count |
integer |
查詢到的檢查項的當前頁顯示資料條數。 |
10 |
| CloudAssetSchemas |
array<object> |
資產結構定義列表。 |
|
|
object |
|||
| DataName |
string |
資產結構定義名稱。 |
ACS_ECS_Disk |
| Vendor |
integer |
伺服器廠商。取值:
|
0 |
| AssetType |
integer |
雲資產的類型。取值:
|
0 |
| AssetSubType |
integer |
雲產品資產的子類型。 說明
您可以調用 ListCloudAssetInstances 查詢雲產品資產的子類型。 |
1 |
| Properties |
string |
當前資產結構定義文本。 |
[{\"associatedData\":[{\"assetSubType\":100,\"assetType\":0,\"dataName\":\"ACS_ECS_Instance\",\"properties\":[{\"name\":\"InstanceId\",\"path\":\"InstanceId\"}],\"vendor\":0}],\"description\":\"The ID of the instance to which the disk is attached.\",\"example\":\"i-bp67acfmxazb4q****\",\"name\":\"InstanceId\",\"type\":\"STRING\",\"withAssociatedData\":true},{\"description\":\"Disk name\",\"example\":\"testDiskName\",\"name\":\"DiskName\",\"type\":\"STRING\"},{\"description\":\"Only encrypted disks\",\"example\":\"false\",\"name\":\"Encrypted\",\"type\":\"BOOLEAN\"},{\"description\":\"Disk status\",\"example\":\"In_use\",\"name\":\"Status\",\"type\":\"STRING\"},{\"description\":\"Disk category\",\"example\":\"cloud_ssd\",\"name\":\"Category\",\"type\":\"STRING\"},{\"description\":\"Disk type\",\"example\":\"system\",\"name\":\"Type\",\"type\":\"STRING\"},{\"description\":\"Specifies whether to set an automatic snapshot policy for the disk.\",\"example\":\"false\",\"name\":\"EnableAutomatedSnapshotPolicy\",\"type\":\"BOOLEAN\"},{\"description\":\"The ID of the automatic snapshot policy.\",\"example\":\"sp-bp67acfmxazb4p****\",\"name\":\"AutoSnapshotPolicyId\",\"type\":\"STRING\"},{\"description\":\"Disk, local disk, or elastic ephemeral disk ID\",\"example\":\"d-bp18um4r4f2fve24****\",\"name\":\"DiskId\",\"type\":\"STRING\"}] |
樣本
正常返回樣本
JSON格式
{
"Success": true,
"RequestId": "F8B6F758-BCD4-597A-8A2C-DA5A552C****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 10,
"TotalCount": 54,
"Count": 10
},
"CloudAssetSchemas": [
{
"DataName": "ACS_ECS_Disk",
"Vendor": 0,
"AssetType": 0,
"AssetSubType": 1,
"Properties": "[{\\\"associatedData\\\":[{\\\"assetSubType\\\":100,\\\"assetType\\\":0,\\\"dataName\\\":\\\"ACS_ECS_Instance\\\",\\\"properties\\\":[{\\\"name\\\":\\\"InstanceId\\\",\\\"path\\\":\\\"InstanceId\\\"}],\\\"vendor\\\":0}],\\\"description\\\":\\\"The ID of the instance to which the disk is attached.\\\",\\\"example\\\":\\\"i-bp67acfmxazb4q****\\\",\\\"name\\\":\\\"InstanceId\\\",\\\"type\\\":\\\"STRING\\\",\\\"withAssociatedData\\\":true},{\\\"description\\\":\\\"Disk name\\\",\\\"example\\\":\\\"testDiskName\\\",\\\"name\\\":\\\"DiskName\\\",\\\"type\\\":\\\"STRING\\\"},{\\\"description\\\":\\\"Only encrypted disks\\\",\\\"example\\\":\\\"false\\\",\\\"name\\\":\\\"Encrypted\\\",\\\"type\\\":\\\"BOOLEAN\\\"},{\\\"description\\\":\\\"Disk status\\\",\\\"example\\\":\\\"In_use\\\",\\\"name\\\":\\\"Status\\\",\\\"type\\\":\\\"STRING\\\"},{\\\"description\\\":\\\"Disk category\\\",\\\"example\\\":\\\"cloud_ssd\\\",\\\"name\\\":\\\"Category\\\",\\\"type\\\":\\\"STRING\\\"},{\\\"description\\\":\\\"Disk type\\\",\\\"example\\\":\\\"system\\\",\\\"name\\\":\\\"Type\\\",\\\"type\\\":\\\"STRING\\\"},{\\\"description\\\":\\\"Specifies whether to set an automatic snapshot policy for the disk.\\\",\\\"example\\\":\\\"false\\\",\\\"name\\\":\\\"EnableAutomatedSnapshotPolicy\\\",\\\"type\\\":\\\"BOOLEAN\\\"},{\\\"description\\\":\\\"The ID of the automatic snapshot policy.\\\",\\\"example\\\":\\\"sp-bp67acfmxazb4p****\\\",\\\"name\\\":\\\"AutoSnapshotPolicyId\\\",\\\"type\\\":\\\"STRING\\\"},{\\\"description\\\":\\\"Disk, local disk, or elastic ephemeral disk ID\\\",\\\"example\\\":\\\"d-bp18um4r4f2fve24****\\\",\\\"name\\\":\\\"DiskId\\\",\\\"type\\\":\\\"STRING\\\"}]"
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | AccountIdNotExist | AccountId not exist | 賬戶不存在,請檢查您的賬戶資訊是否正確。 |
| 400 | NoPermission | no permission | 無此服務的存取權限。 |
| 500 | ServerError | ServerError | 服務故障,請稍後重試! |
| 403 | NoPermission | caller has no permission | 當前操作未被授權,請聯絡主帳號在RAM控制台進行授權後再執行操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。