クラウド製品アセット構造のリストを取得します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| PageSize |
integer |
任意 |
1 ページあたりのエントリ数。 |
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: 中国語 - en: 英語 |
zh |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Success |
boolean |
呼び出しが成功したかどうかを示します。値は次のとおりです。
|
true |
| RequestId |
string |
リクエスト ID。 |
F8B6F758-BCD4-597A-8A2C-DA5A552C**** |
| PageInfo |
object |
ページネーション情報。 |
|
| CurrentPage |
integer |
現在のページ番号。 |
1 |
| PageSize |
integer |
1 ページあたりに返されるエントリ数。 |
10 |
| TotalCount |
integer |
返されるエントリの合計数。 |
54 |
| Count |
integer |
現在のページで返されるエントリ数。 |
10 |
| CloudAssetSchemas |
array<object> |
資産構造定義のリスト |
|
|
object |
|||
| DataName |
string |
資産構造定義名 |
ACS_ECS_Disk |
| Vendor |
integer |
サーバーのソース。有効な値は次のとおりです。
|
0 |
| AssetType |
integer |
クラウド資産のタイプ。有効な値は次のとおりです。
|
0 |
| AssetSubType |
integer |
クラウド製品のサブタイプ。 |
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\"}] |
例
成功レスポンス
JSONJSON
{
"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 ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | AccountIdNotExist | AccountId not exist | |
| 400 | NoPermission | no permission | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。