查询ca证书详情
功能介绍
查询ca证书详情。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v2/{project_id}/certmanager/private-certificate-authorities/{cert_id}
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID。 |
|
cert_id |
是 |
String |
证书id。 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
X-Auth-Token |
否 |
String |
用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 |
|
Content-Type |
是 |
String |
发送的实体的MIME类型。 |
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
cert_id |
String |
证书id。 |
|
serial_number |
String |
序列号。 |
|
type |
String |
证书类型。 |
|
apply |
String |
证书应用范围。 |
|
distinguished_name |
DistinguishedName object |
证书DN。 |
|
key_algorithm |
String |
密钥对生成算法 RSA-2048 RSA-3072。 |
|
signature_algorithm |
String |
签名哈希算法 SHA-256 SHA-512。 |
|
not_before |
String |
生效时间。 |
|
not_after |
String |
过期时间。 |
|
status |
String |
证书状态 DISABLE,ENABLE,EXPIRED,DELETE。 |
|
pem_code |
String |
证书pem编码。 |
|
issuer_name |
String |
颁发者名字。 |
|
crl_configuration |
CrlConfigurationData object |
证书crl配置。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
common_name |
String |
ca名称。 |
|
country |
String |
国家/地区。 |
|
state |
String |
省份/州。 |
|
locality |
String |
城市。 |
|
organization |
String |
公司名称。 |
|
organizational_unit |
String |
部门名称。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
enable |
Boolean |
是否开启crl配置。 |
|
type |
String |
系统生成SYSTEM, 用户自定义CUSTOMIZE。 |
|
crl_url |
String |
当用户自定义时手动输入。 |
|
valid_day |
Integer |
更新周期。 |
状态码:400
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码。 |
|
error_msg |
String |
错误描述。 |
|
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码:401
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码。 |
|
error_msg |
String |
错误描述。 |
|
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码:403
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码。 |
|
error_msg |
String |
错误描述。 |
|
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码:404
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码。 |
|
error_msg |
String |
错误描述。 |
|
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码:500
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码。 |
|
error_msg |
String |
错误描述。 |
|
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
请求示例
无
响应示例
状态码:200
success
{
"cert_id" : "f8bc69a2c3284a19ad647df12741f09c",
"serial_number" : "string",
"type" : "ROOT, SUBORDINATE",
"apply" : "VIRTUAL_SMART_CARD",
"distinguished_name" : {
"common_name" : "api_test",
"country" : "CN",
"state" : "GuangDong",
"locality" : "DongGuan",
"organization" : "Huawei",
"organizational_unit" : "Workspace"
},
"key_algorithm" : "RSA-3072",
"signature_algorithm" : "SHA-256",
"not_before" : "2024-08-01 00:00:00",
"not_after" : "2025-08-01 00:00:00",
"status" : "ENABLE",
"pem_code" : "",
"issuer_name" : "C=CN,ST=SZ,O=Huawei Cloud Computing Technologies Co.\\, Ltd.,CN=urn:huawei:workspace",
"crl_configuration" : {
"enable" : true,
"type" : "SYSTEM",
"crl_url" : "ldap:///CN=hcfactory-AD01-HCFACTORY-CA,CN=AD01-hcfactory,CN=CDP,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=hcfactory,DC=huawei,DC=com?certificateRevocationList?base?objectClass=cRLDistributionPoint",
"valid_day" : 3650
}
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
success |
|
400 |
由于包含语法错误,当前请求无法被服务器理解。 |
|
401 |
鉴权失败。 |
|
403 |
没有操作权限。 |
|
404 |
找不到资源。 |
|
500 |
服务内部错误,具体返回错误码请参见错误码说明。 |
错误码
请参见错误码。