All Products
Search
Document Center

Certificate Management Service:ListCloudResources

Last Updated:Nov 18, 2024

Queries the certificate resources of a cloud service provider and cloud services.

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:
    • The required resource types are displayed in bold characters.
    • 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
yundun-cert:ListCloudResourceslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CloudNamestringNo

The cloud service provider.

Valid values:

  • Tencent
  • Huawei
  • Aws
  • aliyun
Tencent
CloudProductstringNo

The cloud service.

Valid values when CloudName is set to aliyun:

  • SLB: Classic Load Balancer (CLB). This value is available only on the China site (aliyun.com).
  • LIVE: ApsaraVideo Live. This value is available only on the China site (aliyun.com).
  • webHosting: Cloud Web Hosting. This value is available only on the China site (aliyun.com).
  • VOD: ApsaraVideo VOD. This value is available only on the China site (aliyun.com).
  • CR: Container Registry. This value is available only on the China site (aliyun.com).
  • DCDN: Dynamic Content Delivery Network (DCDN).
  • DDOS: Anti-DDoS.
  • CDN: Alibaba Cloud CDN (CDN).
  • ALB: Application Load Balancer (ALB).
  • APIGateway: API Gateway.
  • FC: Function Compute.
  • GA: Global Accelerator (GA).
  • MSE: Microservices Engine (MSE).
  • NLB: Network Load Balancer (NLB).
  • OSS: Object Storage Service (OSS).
  • SAE: Serverless App Engine (SAE).
  • WAF: Web Application Firewall (WAF).

Valid values when CloudName is set to Tencent:

  • TencentCDN: Content Delivery Network (CDN).
  • TencentCLB: CLB.
  • TencentWAF: WAF.

Valid value when CloudName is set to Huawei:

  • HuaweiCDN: CDN.

Valid values when CloudName is set to Aws:

  • AwsCloudFront: Amazon CloudFront.
  • AwsCLB: CLB.
  • AwsALB: ALB.
  • AwsNLB: NLB.
SLB
SecretIdstringNo

The AccessKey ID that is used to access cloud resources.

21
KeywordstringNo

The keyword of the domain name or instance ID bound to the cloud resource.

cert-instanceId
CurrentPageintegerNo

The page number. Default value: 1.

1
ShowSizeintegerNo

The number of entries per page. Default value: 20.

20
CertIdsarrayNo

The certificate IDs.

longNo

The certificate ID.

14440149

Response parameters

ParameterTypeDescriptionExample
object

OpenApiPaginationResponse.

Totallong

The total number of entries returned.

440
CurrentPageinteger

The page number. Default value: 1.

1
ShowSizeinteger

The number of entries per page. Default value: 20.

20
Dataarray<object>

The data returned for the request.

Dataobject
Idlong

The ID of the cloud resource.

2356
GmtCreatestring

The time when the cloud resource was created. The time is a timestamp in seconds.

1673423339000
GmtModifiedstring

The time when the cloud resource was last modified. The time is a timestamp in seconds.

1696911946000
CloudProductstring

The cloud service.

ALB
UserIdlong

The ID of the Alibaba Cloud account.

1666884372152785
CertIdlong

The ID of the certificate bound to the cloud resource.

12433121
CertNamestring

The name of the certificate bound to the cloud resource.

shop.amsaudio.cn
CertEndTimestring

The end date of the certificate bound to the cloud resource. The value is a timestamp in seconds.

1737795520000
CertStartTimestring

The start date of the certificate bound to the cloud resource. The value is a timestamp in seconds.

1706259520000
Domainstring

The domain name bound to the cloud resource.

www.tkgeo.ru
InstanceIdstring

The instance ID of the cloud resource.

Note This parameter is returned only when the value of CloudProduct is SLB, NLB, ALB, or GA.
nlb-rv05agjc97ovm14il5
ListenerIdstring

The listener ID of the cloud resource.

Note This parameter is returned only when the value of CloudProduct is SLB, NLB, ALB, or GA.
lsn-jiugof6t23et66lsnc@443
ListenerPortstring

The listening port of the cloud resource.

Note This parameter is returned only when the value of CloudProduct is SLB, NLB, ALB, or GA.
8047
EnableHttpsinteger

Indicates whether HTTPS is enabled for the cloud resource. Valid values:

  • 1: yes.
  • 0: no.
1
DefaultResourceinteger

Indicates whether the cloud resource is the default resource. Valid values:

  • 1: yes
  • 0: no
Note This parameter is returned only when the value of CloudProduct is SLB, NLB, ALB, or GA.
0
Statusstring

The status of the cloud resource.

BUY
UseSslinteger

Indicates whether an Alibaba Cloud SSL certificate is used. Valid values:

  • 1: yes
  • 0: no
Note This parameter is required only when you deploy certificates to services of multiple clouds.
1
RegionIdstring

The region ID of the cloud resource.

cn-hangzhou
CloudNamestring

The cloud service provider.

Valid values:

  • Tencent
  • Huawei
  • Aws
  • aliyun
aliyun
CloudRegionstring

The region ID of the cloud service provider to which the cloud resource belongs.

cn-hangzhou
CloudAccessIdstring

The AccessKey ID that is used to access cloud resources.

Note This parameter is returned only when you deploy certificates to cloud services of third-party clouds.
1234
RequestIdstring

The request ID.

12345678-1234-1234-1234-123456789ABC

Examples

Sample success responses

JSONformat

{
  "Total": 440,
  "CurrentPage": 1,
  "ShowSize": 20,
  "Data": [
    {
      "Id": 2356,
      "GmtCreate": "1673423339000",
      "GmtModified": "1696911946000",
      "CloudProduct": "ALB",
      "UserId": 1666884372152785,
      "CertId": 12433121,
      "CertName": "shop.amsaudio.cn",
      "CertEndTime": "1737795520000",
      "CertStartTime": "1706259520000",
      "Domain": "www.tkgeo.ru",
      "InstanceId": "nlb-rv05agjc97ovm14il5",
      "ListenerId": "lsn-jiugof6t23et66lsnc@443",
      "ListenerPort": "8047",
      "EnableHttps": 1,
      "DefaultResource": 0,
      "Status": "BUY",
      "UseSsl": 1,
      "RegionId": "cn-hangzhou",
      "CloudName": "aliyun",
      "CloudRegion": "cn-hangzhou\n",
      "CloudAccessId": "1234"
    }
  ],
  "RequestId": "12345678-1234-1234-1234-123456789ABC"
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-08-13The request parameters of the API has changedView Change Details