CDN

获取用户证书列表信息接口

最近更新时间:2020-09-18 23:46:18

GetCertificates

描述

本接口用于获取用户的证书列表信息。

请求语法

本接口请求需要包含指定目录/2016-09-01/cert/GetCertificates、公共请求header和该接口所特有的请求参数,具体请求语句参照下文请求示例。

请求参数

参数名 必选 类型及范围 说明
PageSize Long 分页大小,默认20,最大500,取值1~500间整数
PageNum Long 取第几页,默认为1,取值1~10000

返回参数

参数名 类型 说明
Certificates Certificate[] 证书列表
PageNum Long 页码
PageSize Long 单页大小
TotalCount Long 总条数

Certificate

参数名 类型及范围 说明
CertificateName String 证书名称
CertificateId String 证书唯一性ID
Enable String 证书状态,启用:on,未启用:off
IssueDomain String CA颁发时证书绑定的域名
IssueTime String 证书颁发时间
ExpirationTime String 证书过期时间
CertificateContent String 证书内容,PEM格式
CertificateType String 证书类型,分别是EV\DV\OV
ConfigDomainNames String 证书已绑定域名,域名之间用半角英文逗号“,”相隔

示例

请求示例

POST方式:

POST /2016-09-01/statistics/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
}

返回示例:

{
    "Certificates": [
        {
            "CertificateName": "test",
            "CertificateId": "969",
            "Enable": "on",
            "IssueDomain": "www.huanfou.net.cn",
            "IssueTime": "1533547545",
            "ExpirationTime": "1536139545",
            "CertificateContent": "-----BEGIN CERTIFICATE-----\nMIID8zCCAtugAwIBAgIJAIziJNVI9HdSMA0GCSqGSIb3DQEBBQUAMIGPMQswCQYD\nVQQGEwJISDEQMA4GA1UECAwHYmVpamluZzEQMA4GA1UEBwwHYmVpamluZzENMAsG\nA1UECgwEaHV5YTENMAsGA1UECwwEaHV5YTEbMBkGA1UEAwwSd3d3Lmh1YW5mb3Uu\nbmV0LmNuMSEwHwYJKoZIhvcNAQkBFhJ3d3cuaHVhbmZvdS5uZXQuY24wHhcNMTgw\nODA2MDkyNTQ1WhcNMTgwOTA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LMGe7p7tJjTX6Hmc+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\nEwQCMAAwKwYDVR0fBCQwIjAgoB6gHIYaaHR0cDovL2dwLnN5bWNiLmNvbS9ncC5j\ncm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zIuc3ltY2IuY29tMEwGA1UdIARFMEMwQQYKYIZIAYb4RQEHNjAzMDEGCCsG\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
}

金山云,开启您的云计算之旅

免费注册