Querying Details of a Certificate Bound to a Domain Name
Function
This API is used to query the details of a specified certificate bound to a domain name.
URI
The following table lists the HTTP/HTTPS request method and URI of the API.
| Request Method | URI |
|---|---|
| GET | /v1/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificate/{id} |
The following table lists the parameters in the URI.
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID, which can be obtained by the administrator on the My Credentials page. |
| instance_id | Yes | String | Instance ID, which can be obtained from the dedicated gateway information on the API Gateway console. |
| group_id | Yes | String | API group ID |
| domain_id | Yes | String | Domain ID |
| id | Yes | String | Certificate ID |
Request
N/A
Response
| Parameter | Type | Description |
|---|---|---|
| common_name | String | Certificate domain name |
| san | Dictionary | SAN |
| version | String | Certificate version |
| organization | Dictionary | Company or organization |
| organizational_unit | Dictionary | Department |
| locality | Dictionary | City |
| state | Dictionary | Province or state |
| country | Dictionary | Country or region |
| not_before | Timestamp | Start time of the certificate validity period |
| not_after | Timestamp | Expiration time of the certificate validity period |
| serial_number | String | SN |
| issuer | Dictionary | Certificate issuer |
| signature_algorithm | String | Signature algorithm |
Example response:
{
"san": [
"xxx.xxx.xxx"
],
"country": [
"CN"
],
"not_before": "2019-04-29T11:49:18Z",
"locality": [
"ShenZhen"
],
"serial_number": "00000000000000000000000000",
"version": 3,
"issuer": [
"XXX"
],
"not_after": "2029-04-29T11:49:18Z",
"organization": [
"XXX"
],
"signature_algorithm": "SHA256-RSA",
"state": [
"XXX"
],
"common_name": "xxx.xxx.xxx",
"organizational_unit": [
"XXX"
]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Server Internal Error |
Last Article: Deleting a Certificate Bound to a Domain Name
Next Article: VPC Channel Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.