All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

GetCertificates

Last updated:2021-03-17 11:09:31

GetCertificates

Description

You can call this operation to query certificates.

Request syntax

The API request contains the specified directory /2016-09-01/cert/GetCertificates, common request headers, and operation-specific request parameters. For more information, see the sample request.

Request parameters

Parameter Required Type Description
PageSize No Long The number of entries to return on each page. Default value: 20. Valid values: 1 to 500.
PageNum No Long The number of the page to return. Default value: 1. Valid values: 1 to 10000.

Response parameters

Parameter Type Description
Certificates Certificate[] The certificates.
PageNum Long The page number of the returned page.
PageSize Long The number of entries returned per page.
TotalCount Long The total number of certificates.

Certificate

Parameter Type Description
CertificateName String The name of the certificate.
CertificateId String The unique ID of the certificate.
Enable String The status of the certificate. Valid values: on and off.
IssueDomain String The domain name to which the certificate is bound upon issuance.
IssueTime String The time when the certificate was issued.
ExpirationTime String The expiration time of the certificate.
CertificateContent String The content of the certificate, in the PEM format.
CertificateType String The type of the certificate. Valid values: EV, DV, and OV.
ConfigDomainNames String The domain names to which the certificate is bound. Multiple domain names are separated with commas (,).

Examples

Sample request

POST method:

POST /2016-09-01/cert/GetCertificates 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetCertificates 
x-version: 2016-09-01
Content-Type: application/json

{
    "PageSize": 2,
    "PageNum": 1
}

Sample response

{
    "Certificates": [
        {
            "CertificateName": "test",
            "CertificateId": "969",
            "Enable": "on",
            "IssueDomain": "www.huanfou.net.cn",
            "IssueTime": "1533547545",
            "ExpirationTime": "1536139545",
            "CertificateContent": "-----BEGIN CERTIFICATE-----\nMIID8zCCAtugAwIBAgIJAIziJNVI9HdSMA0GCSqGSIb3DQEBBQUAMIGPMQswCQYD\nVQQGEwJISDEQMA4GA1UECAwHYmVpamluZzEQMA4GA1UEBwwHYmVpamluZzENMAsG\nA1UECgwEaHV5YTENMAsGA1UECwwEaHV5YTEbMBkGA1UEAwwSd3d3Lmh1YW5mb3Uu\nbmV0LmNuMSEwHwYJKoZIh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CwGJLUqr8uSf8fJud1nQh63P52hOKzWiiaADku7og2wLAT7d2QoC\nLb0yAr3X0MP+TiCCg8ZLMGe7p7tJjTX6Hmc+ayJgNuq9cOWozSvaIH60C7N0iAJk\nS2J45go9Rg==\n-----END CERTIFICATE-----",
            "CertificateType": "DV",
            "ConfigDomainNames": "www.huanfou.net.cn"
        },
        {
            "CertificateName": "cert1128FanDomain",
            "CertificateId": "1636",
            "Enable": "on",
            "IssueDomain": "vbutest.huanfou.net.cn,*.huanfou.net.cn",
            "IssueTime": "1498176000",
            "ExpirationTime": "1529798399",
            "CertificateContent": "-----BEGIN CERTIFICATE-----\nMIIFdjCCBF6gAwIBAgIQVE9s/oT4krLguy6Uf0NmhTANBgkqhkiG9w0BAQsFADBC\nMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEbMBkGA1UEAxMS\nUmFwaWRTU0wgU0hBMjU2IENBMB4XDTE3MDYyMzAwMDAwMFoXDTE4MDYyMzIzNTk1\nOVowGzEZMBcGA1UEAwwQKi5odWFuZm91Lm5ldC5jbjCCASIwDQYJKoZIhvcNAQEB\nBQADggEPADCCAQoCggEBAKRELpGWvYKCz/K5xyfXxsF+iDf2KK4FPkkpvcWwuCj4\nKRQ/aAjS0+Yt9o+1MjFwFB5bKMLg8qSQtN1/sKVTViH15TPVhjhC2JD0WfhVwLeu\nA2r3yFlBQ7N3a+v7v15rf9eoa4TCLOLw3N1BUDbdeuMjGp3dY6b8VAtDF8idy5sF\nx/omwQTNCAMBUETAGGM7K4YdD2v5RrhrLqYTuFxJb5/H418XJWsu6adnvq+t7fsh\nmlAYaEZMEiCJrG3PVrSen8cj9RQ+GuGKw3ANRrmViy47B3gih+eHuKPGF12mdEid\ndJRZ1X1WYlKzcI/O0MLY6N7vH55olhyQNWO9DCfqS7UCAwEAAaOCAo0wggKJMCsG\nA1UdEQQkMCKCECouaHVhbmZvdS5uZXQuY26CDmh1YW5mb3UubmV0LmNuMAkGA1Ud\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y9ndGdsb2JhbC5jcmwwLwYIKwYBBQUHAQEEIzAhMB8GCCsGAQUF\nBzABhhNodHRwOi8vZzIuc3ltY2IuY29tMEwGA1UdIARFMEMwQQYKYIZIAYb4RQEHNjAzMDEGCCsG\nAQUFBwIBFiVodHRwOi8vd3d3Lmdlb3RydXN0LmNvbS9yZXNvdXJjZXMvY3BzMCkGA1UdEQQiMCCk\nHjAcMRowGAYDVQQDExFTeW1hbnRlY1BLSS0xLTU2OTANBgkqhkiG9w0BAQsFAAOCAQEANevhiyBW\nlLp6vXmp9uP+bji0MsGj21hWID59xzqxZ2nVeRQb9vrsYPJ5zQoMYIp0TKOTKqDwUX/N6fmS/Zar\nRfViPT9gRlATPSATGC6URq7VIf5Dockj/lPEvxrYrDrK3maXI67T30pNcx9vMaJRBBZqAOv5jUOB\n8FChH6bKOvMoPF9RrNcKRXdLDlJiG9g4UaCSLT+Qbsh+QJ8gRhVd4FB84XavXu0R0y8TubglpK9Y\nCa81tGJUheNI3rzSkHp6pIQNo0LyUcDUrVNlXWz4Px8G8k/Ll6BKWcZ40egDuYVtLLrhX7atKz4l\necWLVtXjCYDqwSfC2Q7sRwrp0Mr82A==\n-----END CERTIFICATE-----",
            "CertificateType": "DV",
            "ConfigDomainNames": "vbutest.huanfou.net.cn,*.huanfou.net.cn"
        }
    ],
    "TotalCount": 14,
    "PageSize": 2,
    "PageNum": 1
}
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback