Queries the filter conditions for searching cloud assets.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetCloudAssetCriteria |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Value |
string |
No |
The keyword for fuzzy matching when querying assets. |
testwww |
| CloudAssetTypes |
array<object> |
No |
The types of cloud assets. |
|
|
object |
No |
The type of the cloud asset. |
||
| AssetType |
integer |
No |
The type of the asset. Valid values:
|
9 |
| AssetSubType |
integer |
No |
The subtype of the cloud service or asset. Valid values:
|
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID, used to locate and troubleshoot issues. |
24A20733-10A0-4AF6-BE6B-E3322413BB68 |
| CriteriaList |
array<object> |
The filter conditions for searching cloud assets. |
|
|
object |
The filter condition for searching cloud assets. |
||
| Type |
string |
The type of the filter condition. Valid values:
|
select |
| Name |
string |
The name of the filter condition. Valid values:
|
instanceId |
| Values |
string |
The values of the filter condition. Returned only when Type is select. Note
When Type is input, this parameter is an empty string. |
fvt* |
| MultiValues |
string |
The structured attribute values of matching assets, in JSON format. Contains the following fields:
|
[{"vendor":0,"regionIds":{"default":["ap-southeast-1","ap-northeast-2","ap-southeast-3","ap-southeast-5","ap-southeast-7","me-central-1"]}},{"vendor":1,"regionIds":{"default":["outside-of-aliyun"]}}] |
Examples
Success response
JSON format
{
"RequestId": "24A20733-10A0-4AF6-BE6B-E3322413BB68",
"CriteriaList": [
{
"Type": "select",
"Name": "instanceId",
"Values": "fvt*",
"MultiValues": "[{\"vendor\":0,\"regionIds\":{\"default\":[\"ap-southeast-1\",\"ap-northeast-2\",\"ap-southeast-3\",\"ap-southeast-5\",\"ap-southeast-7\",\"me-central-1\"]}},{\"vendor\":1,\"regionIds\":{\"default\":[\"outside-of-aliyun\"]}}]"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | no permission | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.