ListTagResources

Updated at:

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

Operation description

Queries the status information of a private certificate authority (CA) instance that you purchased through 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 included, 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 queries per second (QPS) limit for a single user is 10 invocations per second. If the limit is exceeded, API invocations are throttled, which may affect your business. Invoke the API at a reasonable rate.

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 for the next query. An empty value indicates that no more results are available.

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 request.

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 API operation.

NextToken

string

The token for the next query. An empty value indicates that no more results are available.

24262

TagResources

object

TagResources

array<object>

The returned data.

object

The returned data.

ResourceId

string

The instance ID of the certificate to manage.
Valid values of N: 1 to 50. You can specify up to 50 instances. 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 environment

TagValue

string

The tag value.

PVDCDC

MaxResults

integer

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

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": "Production",
          "TagValue": "PVDCDC"
        }
      ]
    },
    "MaxResults": 20
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.