DescribeServerCertificates

Last Updated: Mar 05, 2018

Description

Query the server certificates in a specified region.

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

Request parameter

Name Type Required Description
Action String Yes

The action to perform.

DescribeServerCertificates

RegionId String Yes The ID of the region to query.
ServerCertificateId String No The ID of the server certificate.
ResourceGroupId String No The ID of enterprise resource group.

Response parameter

Name Type Description
RequestId String The ID of the request.
ServerCertificates List

A list of the server certificates, including the following items:

  • ServerCertificateId

    The ID of the server certificate.

  • ServerCertificateName

    The name of the server certificate.

  • Fingerprint

    The fingerprint of the server certificate.

Example

Request example

  1. https://slb.aliyuncs.com//?Action=DescribeServerCertificates
  2. &RegionId=cn-east-hangzhou-01
  3. &<Public Request Parameters>

Response example

  • XML format

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <DescribeServerCertificatesResponse>
    3. <RequestId>6E8FAFB0-7262-492A-B7C2-B421FD4ADBFC</RequestId>
    4. <ServerCertificates>
    5. <ServerCertificate>
    6. <CreateTimeStamp>1502155382000</CreateTimeStamp>
    7. <ServerCertificateId>1231579085529123_15dbf701d56_-417255761_616629763</ServerCertificateId>
    8. <RegionIdAlias>cn-hangzhou</RegionIdAlias>
    9. <AliCloudCertificateId></AliCloudCertificateId>
    10. <CreateTime>2017-08-08T01:23:02Z</CreateTime>
    11. <ResourceGroupId>rg-acfmxazb4ph6aiy</ResourceGroupId>
    12. <RegionId>cn-hangzhou</RegionId>
    13. <ServerCertificateName>cert-1502087065310</ServerCertificateName>
    14. <IsAliCloudCertificate>0</IsAliCloudCertificate>
    15. <AliCloudCertificateName></AliCloudCertificateName>
    16. <Fingerprint>7c:32:e8:0c:9e:a9:f8:c9:4c:9b:af:cf:bb:57:ef:60:80:2a:97:ae</Fingerprint>
    17. </ServerCertificate>
    18. <ServerCertificate>
    19. <CreateTimeStamp>1481623069000</CreateTimeStamp>
    20. <ServerCertificateId>1231579085529123_158f79de306</ServerCertificateId>
    21. <RegionIdAlias>cn-hangzhou</RegionIdAlias>
    22. <AliCloudCertificateId>0</AliCloudCertificateId>
    23. <CreateTime>2016-12-13T09:57:49Z</CreateTime>
    24. <ResourceGroupId>rg-acfmxazb4ph6aiy</ResourceGroupId>
    25. <RegionId>cn-hangzhou</RegionId>
    26. <ServerCertificateName>test_certificate</ServerCertificateName>
    27. <IsAliCloudCertificate>0</IsAliCloudCertificate>
    28. <AliCloudCertificateName></AliCloudCertificateName>
    29. <Fingerprint>cd:90:1b:7b:49:4d:1d:90:f6:01:de:9a:81:7d:31:a7:38:1d:84:8d</Fingerprint>
    30. </ServerCertificate>
    31. </ServerCertificates>
    32. </DescribeServerCertificatesResponse>
  • JSON format

    1. {
    2. "RequestId": "6E8FAFB0-7262-492A-B7C2-B421FD4ADBFC",
    3. "ServerCertificates": {
    4. "ServerCertificate": [
    5. {
    6. "CreateTimeStamp": 1502155382000,
    7. "ServerCertificateId": "1231579085529123_15dbf701d56_-417255761_616629763",
    8. "RegionIdAlias": "cn-hangzhou",
    9. "AliCloudCertificateId": "",
    10. "CreateTime": "2017-08-08T01:23:02Z",
    11. "ResourceGroupId": "rg-acfmxazb4ph6aiy",
    12. "RegionId": "cn-hangzhou",
    13. "ServerCertificateName": "cert-1502087065310",
    14. "IsAliCloudCertificate": 0,
    15. "AliCloudCertificateName": "",
    16. "Fingerprint": "7c:32:e8:0c:9e:a9:f8:c9:4c:9b:af:cf:bb:57:ef:60:80:2a:97:ae"
    17. },
    18. {
    19. "CreateTimeStamp": 1481623069000,
    20. "ServerCertificateId": "1231579085529123_158f79de306",
    21. "RegionIdAlias": "cn-hangzhou",
    22. "AliCloudCertificateId": "0",
    23. "CreateTime": "2016-12-13T09:57:49Z",
    24. "ResourceGroupId": "rg-acfmxazb4ph6aiy",
    25. "RegionId": "cn-hangzhou",
    26. "ServerCertificateName": "test_certificate",
    27. "IsAliCloudCertificate": 0,
    28. "AliCloudCertificateName": "",
    29. "Fingerprint": "cd:90:1b:7b:49:4d:1d:90:f6:01:de:9a:81:7d:31:a7:38:1d:84:8d"
    30. }
    31. ]
    32. }
    33. }
Thank you! We've received your feedback.