Queries filter conditions for asset searches.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeSearchCondition |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the request. |
117.220.XX.XX |
| Lang |
string |
No |
The language of the request and response content. Default value: zh. Valid values:
|
zh |
| Type |
string |
No |
The type of the asset. Valid values:
|
ecs |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID, used to locate and troubleshoot issues. |
3AEC47AF-8CFA-485E-AC9A-3A8ABC06EA7F |
| ConditionList |
array<object> |
The filter conditions. |
|
|
object |
The filter condition details. |
||
| ConditionType |
string |
The type of the filter condition. Valid values:
|
system |
| NameKey |
string |
The key of the filter condition name. |
stop_machine |
| Name |
string |
The filter condition name. |
StopMachine |
| FilterConditions |
string |
The filter condition in JSON format, containing the following fields:
Note
If the value of ConditionType is system, labelKey is returned. The labelKey field is used only for internationalization rendering. |
{\"filterParams\":[{\"labelKey\":\"a|b\",\"value\":\"{\\\"name\\\":\\\"sadsasd\\\",\\\"value\\\":\\\"dasdsdas\\\"}\"}],\"LogicalExp\":\"OR\"} |
Examples
Success response
JSON format
{
"RequestId": "3AEC47AF-8CFA-485E-AC9A-3A8ABC06EA7F",
"ConditionList": [
{
"ConditionType": "system",
"NameKey": "stop_machine",
"Name": "StopMachine",
"FilterConditions": "{\\\"filterParams\\\":[{\\\"labelKey\\\":\\\"a|b\\\",\\\"value\\\":\\\"{\\\\\\\"name\\\\\\\":\\\\\\\"sadsasd\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"dasdsdas\\\\\\\"}\\\"}],\\\"LogicalExp\\\":\\\"OR\\\"}"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | no permission | |
| 400 | InvalidSecurityTokenExpired | Specified SecurityToken is expired. | Specified SecurityToken is expired. |
| 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.