Classic/VPC環境で利用できます。
保有中の SSL証明書を照会します。
リクエスト
リクエスト形式を説明します。リクエスト形式は次の通りです。
| メソッド | URI |
|---|---|
| GET | /certificate/certificates |
リクエストヘッダ
Certificate Manager APIで共通して使用されるヘッダの詳細は、Certificate Managerの共通ヘッダをご参照ください。
リクエスト例
リクエストのサンプルコードは次の通りです。
curl --location --request GET 'https://certificatemanager.apigw.ntruss.com/api/v2/certificate/certificates' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'accept: application/json'
レスポンス
レスポンス形式を説明します。
レスポンスボディ
レスポンスボディの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
returnCode |
String | - | レスポンスコード |
returnMessage |
String | - | レスポンスメッセージ |
totalCount |
Integer | - | 照会されたリストの総数 |
sslCertificateList |
Array | - | 証明書リスト |
sslCertificateList
sslCertificateListの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
certificateNo |
Integer | - | 証明書番号 |
certificateName |
String | - | 証明書名 |
memberNo |
String | - | NAVERクラウドプラットフォームユーザーの会員番号 |
commonName |
String | - | 証明書の CN(Common Name)に含まれるドメイン |
dnsName |
String | - | 証明書 SAN(Subject Alternative Name)に含まれるドメインリスト |
statusCode |
String | - | 証明書の状態コード
|
statusName |
String | - | 証明書の状態
|
certificateType |
String | - | 証明書タイプ
|
domainCode |
String | - | 発行環境のドメイン
|
updateDate |
String | - | 最終更新日時
|
issueType |
String | - | 発行状態: その証明書を利用した再発行が可能かを確認するために使用
|
subjectDN |
String | - | 証明書の Distinguished Name(DN)情報 |
registDate |
String | - | 証明書の登録日時
|
レスポンスステータスコード
Certificate Manager APIで共通して使用されるレスポンスステータスコードの詳細は、Certificate Managerの共通レスポンスステータスコードをご参照ください。
レスポンス例
レスポンスのサンプルコードは次の通りです。
{
"returnCode": "0",
"returnMessage": "Success",
"totalCount": 42,
"sslCertificateList": [
{
"certificateNo": 102345,
"certificateName": "ncloud-ov-cert-01",
"memberNo": "3001287",
"commonName": "api.ncloud.com",
"statusCode": "0",
"statusName": "Ongoing",
"certificateType": "NCP_PAID_OV_01",
"domainCode": "PUB",
"updateDate": "2026-01-12 13:50:02(UTC+09:00)",
"orderId": "NC-20260112-001",
"issueType": "REPRESENTATIVE",
"subjectDN": "cn=api.ncloud.com,o=NAVER Cloud Trust Services Corp.,l=Seongnam-si,s=Gyeonggi-do,c=KR",
"registDate": "2026-01-12 13:45:10(UTC+09:00)",
"notAfter": "2027-01-12 23:59:59(UTC+09:00)"
},
]
...
}