Query the uploaded server certificates in a region.

Note For security, only the name and the fingerprint are returned instead of the actual certificate contents and the private key.

Request parameters

Name Type Required Description 
Action String  Yes The action to perform. Value:

DescribeServerCertificates

RegionId String  No The region of the SLB instance.

You can obtain the region ID by calling the DescribeRegions API.

ServerCertificateId String  No The ID of the server certificate.

Response parameters

Name Type Description
RequestId String  The ID of the request.
ServerCertificates List A list of the server certificates.
Table 1. ServerCertificate
Name Type Description
ServerCertificateId String  The ID of the server certificate.
ServerCertificateName String  The name of the server certificate.
Fingerprint String  The fingerprint of the server certificate.
CreateTime  String  The time at which the server certificate was uploaded.
Createtimestamp Long The timestamp of server certificate uploading.
IsAliCloudCertificate Integer Whether the certificate is an Alibaba Cloud certificate. 0 represents that the certificate is not an Alibaba Cloud certificate.
AliCloudCertificateName String  The name of the Alibaba Cloud certificate.
AliCloudCertificateId String  The ID of the Alibaba Cloud certificate.
ExpireTime String  The time of expiration.
ExpireTimeStamp Long The timestamp of expiration.
CommonName String  The domain name that corresponds to the CommonName field of the certificate.
SubjectAlternativeNames List A list of subject alternative names. For more information, see SubjectAlternativeNames.
ResourceGroupId String  The enterprise resource group ID of the instance.
RegionId String  The region of the SLB instance.

SubjectAlternativeNames

Name Type Description
SubjectAlternativeName String  The alternate domain name.

Examples

Request example

https://slb.aliyuncs.com/?Action=DescribeServerCertificates
&Action=DescribeServerCertificate 
&RegionId=cn-east-hangzhou-01
&CommonParameters
Response example
  • XML format

    <? xml version="1.0" encoding="UTF-8"? >
    <DescribeServerCertificatesResponse>
       <RequestId>9F8232CD-29B5-4A21-86C5-4154D5F6A578</RequestId>
       <ServerCertificates>
          <ServerCertificate>
                <AliCloudCertificateId />
                <AliCloudCertificateName />
                <CreateTime>2018-03-14T09:15:21Z</CreateTime>
                <CreateTimeStamp>1521018921000</CreateTimeStamp>
                <Fingerprint>cd:90:1b:7b:49:4d:1d:90:f6:01:de:9a:81:7d:31:a7:38:1d:84:8d</Fingerprint>
                <IsAliCloudCertificate>0</IsAliCloudCertificate>
                <RegionId>cn-hangzhou</RegionId>
                <RegionIdAlias>cn-hangzhou</RegionIdAlias>
                <ResourceGroupId>rg-acfmxazb4ph6aiy</ResourceGroupId>
                <ServerCertificateId>1231579085529123_16223cae1ec_2024493633_797495279</ServerCertificateId>
                <ServerCertificateName>www.aliyuntest.club</ServerCertificateName>
          </ServerCertificate>			
          <ServerCertificate>	
                <AliCloudCertificateId>0</AliCloudCertificateId>
                <AliCloudCertificateName />
                <CreateTime>2016-12-13T09:57:49Z</CreateTime>
                <CreateTimeStamp>1481623069000</CreateTimeStamp>
                <Fingerprint>cd:90:1b:7b:49:4d:1d:90:f6:01:de:9a:81:7d:31:a7:38:1d:84:8d</Fingerprint>
                <IsAliCloudCertificate>0</IsAliCloudCertificate>
                <RegionId>cn-hangzhou</RegionId>
                <RegionIdAlias>cn-hangzhou</RegionIdAlias>
                <ResourceGroupId>rg-acfmxazb4ph6aiy</ResourceGroupId>
                <ServerCertificateId>1231579085529123_158f79de306</ServerCertificateId>
                <ServerCertificateName>test_certificate</ServerCertificateName>
          </ServerCertificate>
       </ServerCertificates>
    </DescribeServerCertificatesResponse>
  • JSON format

    {
        "RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710", 
        "ServerCertificates": {
            "ServerCertificate": [
                {
                    "ServerCertificateId": "139a00604ad-cn-east-hangzhou-01", 
                    "ServerCertificateName": "abe", 
                    "Fingerprint ": "A:B:E", 
                    "ExpireTime": "2017-06-23T11:33:08Z", 
                    "ExpireTimeStamp": 1498217588000, 
                    "CommonName": "www.rzemp.com", 
                    "SubjectAlternativeNames": {
                        "SubjectAlternativeName": [
                            "www.rzemp.com", 
                            "rzemp.com"
                        ]
                    }
                }, 
                {
                    "ServerCertificateId": "282b00102ac-cn-east-hangzhou-02", 
                    "ServerCertificateName": "abf", 
                    "Fingerprint": "A: B: F ", 
                    "ExpireTime": "2017-06-23T11:33:08Z", 
                    "ExpireTimeStamp": 1498217588000, 
                    "CommonName": "www.rzemp.com", 
                    "SubjectAlternativeNames": {
                        "SubjectAlternativeName": [
                            "www.rzemp.com", 
                            "rzemp.com"
                        ]
                    }
                }
            ]
        }
    }