查看域名证书 - ShowDetailsOfDomainNameCertificateV2
功能介绍
查看域名下绑定的证书详情。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限,具体权限要求请参见权限和授权项。
URI
GET /v2/{project_id}/apic/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificate/{certificate_id}
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
project_id | 是 | String | 项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。 |
instance_id | 是 | String | 实例ID |
group_id | 是 | String | 分组的编号 |
domain_id | 是 | String | 域名的编号 |
certificate_id | 是 | String | 证书的编号 |
请求参数
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
X-Auth-Token | 是 | String | 用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 |
响应参数
状态码:200
参数 | 参数类型 | 描述 |
|---|---|---|
id | String | 证书ID |
name | String | 证书名称 |
type | String | 证书类型
|
instance_id | String | 实例编码
|
project_id | String | 租户项目编号 |
common_name | String | 域名 |
san | Array of strings | san扩展域名 |
not_after | String | 有效期到 |
signature_algorithm | String | 签名算法 |
create_time | String | 创建时间 |
update_time | String | 更新时间 |
algorithm_type | String | 证书算法类型:
|
is_has_trusted_root_ca | Boolean | 是否存在信任的根证书CA。当绑定证书存在trusted_root_ca时为true。 |
version | Integer | 版本 |
organization | Array of strings | 公司、组织 |
organizational_unit | Array of strings | 部门 |
locality | Array of strings | 城市 |
state | Array of strings | 省份 |
country | Array of strings | 国家 |
not_before | String | 有效期从 |
serial_number | String | 序列号 |
issuer | Array of strings | 颁发者 |
状态码:400
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码 |
error_msg | String | 错误描述 |
状态码:401
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码 |
error_msg | String | 错误描述 |
状态码:403
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码 |
error_msg | String | 错误描述 |
状态码:404
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码 |
error_msg | String | 错误描述 |
状态码:500
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码 |
error_msg | String | 错误描述 |
请求示例
无
响应示例
状态码:200
OK
{
"serial_number" : "219450666855693268010130472645821723203",
"version" : 3,
"san" : [ "www.company.com" ],
"not_before" : "2019-06-01T00:00:00Z",
"issuer" : [ "mkcert development CA" ],
"not_after" : "2030-08-04T07:41:19Z",
"organization" : [ "mkcert development certificate" ],
"signature_algorithm" : "SHA256-RSA",
"organizational_unit" : [ "Country\\\\DESKTOP-L2TFOFH" ]
} 状态码:400
Bad Request
{
"error_code" : "APIG.2012",
"error_msg" : "Invalid parameter value,parameterName:domain_id. Please refer to the support documentation"
} 状态码:401
Unauthorized
{
"error_code" : "APIG.1002",
"error_msg" : "Incorrect token or token resolution failed"
} 状态码:403
Forbidden
{
"error_code" : "APIG.1005",
"error_msg" : "No permissions to request this method"
} 状态码:404
Not Found
{
"error_code" : "APIG.3020",
"error_msg" : "The URL domain does not exist"
} 状态码:500
Internal Server Error
{
"error_code" : "APIG.9999",
"error_msg" : "System error"
} 状态码
状态码 | 描述 |
|---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
错误码
请参见错误码。

