All Products
Search
Document Center

Security Center:GetCloudAssetCriteria

Last Updated:Aug 28, 2026

Queries the filter conditions for searching cloud assets.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • 0: Elastic Compute Service (ECS)

  • 1: Server Load Balancer (SLB)

  • 3: ApsaraDB RDS

  • 4: ApsaraDB for MongoDB (MongoDB)

  • 5: ApsaraDB for Redis (Redis)

  • 6: Container Registry

  • 8: Container Service for Kubernetes (ACK)

  • 9: Virtual Private Cloud (VPC)

  • 11: ActionTrail

  • 12: Alibaba Cloud CDN (CDN)

  • 13: Certificate Management Service (formerly SSL Certificates Service)

  • 14: Apsara Devops

  • 16: Anti-DDoS

  • 17: Web Application Firewall (WAF)

  • 18: Object Storage Service (OSS)

  • 19: PolarDB

  • 20: ApsaraDB RDS for PostgreSQL

  • 21: Microservices Engine (MSE)

  • 22: File Storage NAS (NAS)

  • 23: Data Security Center (DSC)

  • 24: Elastic IP Address (EIP)

  • 25: IDaaS EIAM

  • 26: PolarDB-X

  • 27: Elasticsearch

9

AssetSubType

integer

No

The subtype of the cloud service or asset. Valid values:

  • 0: ECS

    • 0: instance

    • 1: disk (storage)

    • 2: security group

  • 1: SLB

    • 0: SLB

    • 1: Application Load Balancer (ALB)

  • 3: ApsaraDB RDS

    • 0: instance

  • 4: MongoDB

    • 0: instance

  • 5: Redis

    • 0: instance

  • 6: Container Registry

    • 1: Enterprise Edition

    • 2: Personal Edition

  • 8: ACK

    • 0: cluster

  • 9: VPC

    • 0: NAT gateway

    • 1: Elastic IP address (EIP)

    • 2: VPN

    • 3: VPC Flow Logs

  • 11: ActionTrail

    • 0: trail

  • 12: CDN

    • 0: instance

  • 13: Certificate Management Service (formerly SSL Certificates Service)

    • 0: certificate

  • 14: Apsara Devops

    • 0: organization

  • 16: Anti-DDoS

    • 0: instance

  • 17: WAF

    • 0: domain name

  • 18: OSS

    • 0: bucket

  • 19: PolarDB

    • 0: cluster

  • 20: ApsaraDB RDS for PostgreSQL

    • 0: instance

  • 21: MSE

    • 0: cluster

  • 22: NAS

    • 0: file system

  • 23: DSC

    • 0: instance

  • 24: EIP

    • 0: Anycast EIP

  • 25: IDaaS EIAM

    • 0: instance

  • 26: PolarDB-X

    • 0: instance

  • 27: Elasticsearch

    • 0: instance

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:

  • input: The filter condition requires manual input.

  • select: The filter condition is a selectable option from a drop-down list.

select

Name

string

The name of the filter condition. Valid values:

  • instanceId: the ID of the instance

  • instanceName: the name of the instance

  • internetIp: the public IP address

  • riskStatus: the risk status

  • vendorRegionId: the region ID by service provider

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: providers

  • regionIds: IDs of supported regions

[{"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.