ListListenerCertificates

Updated at: 2025-02-11 04:03

Queries the certificates associated with a listener.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
OperationAccess levelResource typeCondition keyAssociated operation
ga:ListListenerCertificateslist
*Listener
acs:ga:{#regionId}:{#accountId}:listener/{#listenerId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region where the GA instance is deployed. Set the value to cn-hangzhou.

cn-hangzhou
AcceleratorIdstringYes

The ID of the GA instance.

ga-bp1odcab8tmno0hdq****
RolestringNo

The type of the certificate. Valid values:

  • default
  • additional

If you do not specify this parameter, default and additional certificates are returned by default.

default
ListenerIdstringYes

The ID of the listener.

lsr-bp1bpn0kn908w4nbw****
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results. Valid values:

  • You do not need to specify this parameter for the first request.
  • You must specify the token that is obtained from the previous query as the value of NextToken.
caeba0bbb2be03f84eb48b699f0a4883
MaxResultsintegerNo

The maximum number of entries to return. Valid values: 1 to 50. Default value: 20.

50

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

6FEA0CF3-D3B9-43E5-A304-D217037876A8
TotalCountinteger

The number of entries returned.

1
NextTokenstring

The pagination token that is used in the next request to retrieve a new page of results. Valid values:

  • If NextToken is empty, no next page exists.
  • If a value of NextToken is returned, the value indicates the token that is used for the next query.
caeba0bbb2be03f84eb48b699f0a4883
MaxResultsinteger

The maximum number of entries returned.

20
Certificatesarray<object>

The certificates.

Certificatesobject
CertificateIdstring

The certificate ID.

6092**-cn-hangzhou
IsDefaultboolean

Indicates whether the certificate is a default one.

  • true
  • false
true
Domainstring

The domain name associated with the additional certificate.

This parameter is not returned if the certificate is a default one.

example.com
Statestring

The status of the certificate.

  • active: The certificate is associated with a listener and in effect.
  • updating: The additional certificate is being replaced.
active

Examples

Sample success responses

JSONformat

{
  "RequestId": "6FEA0CF3-D3B9-43E5-A304-D217037876A8",
  "TotalCount": 1,
  "NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
  "MaxResults": 20,
  "Certificates": [
    {
      "CertificateId": "6092**-cn-hangzhou",
      "IsDefault": true,
      "Domain": "example.com",
      "State": "active"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
Change timeSummary of changesOperation
No change history
  • On this page (1)
  • Debugging
  • Authorization information
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
  • Change history
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare