All Products
Search
Document Center

Certificate Management Service:ListTagResources

Last Updated:Oct 26, 2026

Queries the mapping between resources (SSL certificate instances) and tags.

Operation description

This operation queries the status information of a private CA instance that you purchased in the SSL Certificate Service console by using the ID of the private CA instance. The status information includes the status of the CA instance, the number of certificates contained, and the number of issued certificates.

Before you invoke this operation, you must purchase a private CA in the Digital Certificate Management Service console. For more information, see Purchase a private CA.

QPS limit

The QPS limit for a single user is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your services. Call this operation at a reasonable frequency.

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-cert:ListTagResources

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-hangzhou

ResourceType

string

Yes

The resource type. Default value: instance.

instance

NextToken

string

No

The token used to start the next query. An empty value indicates that no more results exist.

1d2db86sca4384811e0b5e8707e68181f

ResourceId

array

No

The resource ID.

string

No

The resource ID.

cas-cn-4591d3xa****

Tag

array<object>

No

The information about the queried instances and tags.

object

No

The information about the queried instances and tags.

Key

string

No

The key of the tag to query. You can specify multiple tag keys. N is a positive integer.

testKey1

Value

string

No

The tag value. Valid values of N: 1 to 20.

testValue1

MaxResults

integer

No

The maximum number of entries to return for the current query.

1000

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

2D69A58F-345C-4FDE-88E4-BF5189484043

Data

object

The data returned by the operation.

NextToken

string

The token used to start the next query. An empty value indicates that no more results exist.

24262

TagResources

object

TagResources

array<object>

The returned data.

object

The returned data.

ResourceId

string

The ID of the certificate instance on which you want to perform operations.
Valid values of N: 1 to 50. You can specify up to 50 instance IDs. Example: ResourceId.1, ResourceId.2, ..., ResourceId.50.

cas-upload-xgjcng

ResourceType

string

The resource type. Valid value: instance.

ALIYUN::CAS::PCACERTIFICATE

TagKey

string

The key of the tag to bind.
Valid values of N: 1 to 20. You can specify up to 20 tag keys. Example: Tag.1.Key, Tag.2.Key, ..., Tag.20.Key.

Production

TagValue

string

The tag value.

PVDCDC

MaxResults

integer

The maximum number of entries to return for the current query.

20

Examples

Success response

JSON format

{
  "RequestId": "2D69A58F-345C-4FDE-88E4-BF5189484043",
  "Data": {
    "NextToken": "24262",
    "TagResources": {
      "TagResources": [
        {
          "ResourceId": "cas-upload-xgjcng",
          "ResourceType": "ALIYUN::CAS::PCACERTIFICATE",
          "TagKey": "正式环境",
          "TagValue": "PVDCDC"
        }
      ]
    },
    "MaxResults": 20
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.