获取SSL证书信息-DescribePathXSSL

获取SSL证书信息,支持分页,支持按证书名称 证书域名模糊搜索

Request Parameters

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID。请参考GetProjectList接口Yes
SSLIdstringSSL证书的Id,不传分页获取证书列表No
SearchValuestring不为空则按证书名称、证书域名模糊搜索 分页返回结果No
Limitint最大返回条数,默认100,最大400No
Offsetint偏移值 默认为0No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
DataSetarraySSL证书详细信息,具体结构见 PathXSSLSetNo
TotalCountint符合条件的证书总数No

PathXSSLSet

Parameter nameTypeDescriptionRequired
SSLIdstringSSL证书的IdNo
SSLNamestringSSL证书的名字No
SubjectNamestring证书域名No
ExpireTimeint证书过期时间 时间戳No
SourceTypeint证书来源,0:用户上传 1: 免费颁发No
SSLMD5stringSSL证书(用户证书、私钥、ca证书合并)内容md5值No
CreateTimeintSSL证书的创建时间 时间戳No
SSLBindedTargetSetarraySSL证书绑定的对象No
SSLContentstringSSL证书内容No

SSLBindedTargetSet

Parameter nameTypeDescriptionRequired
ResourceIdstringSSL证书绑定到的实例IDYes
ResourceNamestringSSL证书绑定到的实例名称No

Request Example

https://api.ucloud.cn/?Action=DescribePathXSSL
&ProjectId=org-xxx
&SSLId=gssl-xxxx
&SearchValue=
&Limit=10
&Offset=0

Response Example

{
    "TotalCount": 8,
    "RetCode": 0,
    "Action": "DescribePathXSSLResponse",
    "DataSet": [
        {
            "SSLId": "gssl-xxxx",
            "SSLName": "test",
            "SubjectName": "www.uclouds.com",
            "ExpireTime": 1590000001,
            "SSLContent": "----BEGIN-----",
            "CreateTime": 1580000001,
            "SSLMD5": "132321312323==",
            "SSLBindedTargetSet": [
                {
                    "ResourceId": "uga-xxx",
                    "ResourceName": "testl7"
                }
            ]
        }
    ]
}