获取云产品资产结构列表
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:ListCloudAssetSchemas |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| 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 |
| ResourceDirectoryAccountId |
integer |
否 |
资源目录成员账号 ID(阿里云账号)。 说明
调用 DescribeMonitorAccounts 接口可以获取该参数。 |
127608589417**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
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 | 无此服务的访问权限。 |
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | 资源目录账号校验无权限。 |
| 500 | ServerError | ServerError | 服务故障,请稍后重试! |
| 500 | RdCheckInnerError | Resource directory account service internal error. | 资源目录账号服务内部错误。 |
| 403 | NoPermission | caller has no permission | 当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。