全部產品
Search
文件中心

Certificate Management Service:GetCertificateDetail

更新時間:Sep 17, 2026

查詢憑證詳情,不回傳憑證內容和私鑰內容。

介面說明

本介面的單一使用者 QPS 限制為 100 次/秒。超過限制,API 呼叫將會被限流,這可能影響您的業務,請合理呼叫。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

yundun-cert:GetCertificateDetail

get

*全部資源。

*

無 無

請求參數

名稱

類型

必填

描述

樣本值

CertificateId

integer

是

憑證 ID。

18594156

返回參數

名稱

類型

描述

樣本值

object

Algorithm

string

憑證演算法。

  • RSA:RSA 演算法。

  • ECC:ECC 演算法。

  • SM2:國密演算法。

RSA

CertIdentifier

string

全域憑證 ID,格式為憑證 Id + "-" + 站點 regionId,常用在阿里雲各個雲端產品中。 --國內站為憑證 Id + "-cn-hangzhou" 國際站為憑證 Id + "-ap-southeast-1" 例如憑證 Id = 123,則國內站 CertIdentifier = 「123-cn-hangzhou」,國際站 CertIdentifier = "123-ap-southeast-1"。

21912069-cn-hangzhou

CertificateChainList

array<object>

憑證鏈資訊列表。

object

憑證鏈資訊。

Issuer

string

憑證鏈的簽發名稱。

Digicert

NotAfter

integer

憑證有效期的到期時間。

17326613180000

NotBefore

integer

憑證有效期的開始時間。

17321613180000

RemainDay

integer

憑證鏈有效期剩餘時間。

10

Subject

string

憑證鏈的通用名稱。

Digicert

CertificateId

integer

憑證 ID。

22559621

CertificateName

string

憑證名稱。

123

CertificateSource

string

憑證來源。

  • BUY 正式憑證。

  • TEST 測試憑證。

  • UPLOAD 上傳憑證。

BUY

CertificateStatus

string

憑證的狀態。

  • issued:已簽發

  • revoked:已撤銷

  • willExpire:即將過期

  • expired:已過期

issued

CommonName

string

通用網域名稱。

www.example.com

CompanyId

integer

申請憑證時關聯的公司資訊 ID,DV 憑證為空。

44211

ContactId

integer

聯絡人 ID。

304066

Csr

string

簽發憑證的 CSR。

-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST-----

DeploymentDesc

string

部署資訊,JSON 格式:

--Scope:取值 all/server。憑證有金鑰時取值 all,沒有金鑰,取值 server。

--ServerName:憑證執行個體關聯的伺服器名稱。

--ResourceInstanceId:憑證執行個體關聯的伺服器的資源識別碼。

{ "Scope": "all", "ServerName": "acmeServerName", "ResourceInstanceId": "cas_dv-cn-XXX" }

Domain

string

憑證包含的所有網域名稱,多個網域名稱以逗號分隔。

aliyundoc.com,example.aliyundoc.com

ExistPrivateKey

boolean

目前憑證後端是否存在私鑰。取值:

  • true

  • false

true

FingerPrint

string

公鑰指紋。

123

InstanceId

string

執行個體的 ID。

cas_dv-cn-123

Issuer

string

憑證簽發機構。

Digicert

KeySize

integer

金鑰演算法長度。

  • RSA 演算法長度一般為 2048、3072、4096 等。

  • ECC 和 SM2 演算法長度一般為 256。

2048

NotAfter

integer

憑證有效期的到期時間。

17326613180000

NotBefore

integer

憑證有效期的開始時間。

17321613180000

RequestId

string

本次呼叫請求的 ID,是由阿里雲為該請求產生的唯一識別碼,可用於排查和定位問題。

5979d897-d69f-4fc9-87dd-f3bb73c40b80

Serial

string

憑證序號。

123

SubjectAlternativeNames

array

陣列格式,回傳憑證的備用網域名稱列表,對應憑證的 Subject Alternative Name 欄位。

string

憑證的備用網域名稱。

aliyundoc.com

Tags

array<object>

標籤列表。

object

標籤列表。

TagKey

string

執行個體的標籤鍵。N 的取值範圍:1~20。一旦輸入該值,則不允許為空字串。

最多支援 64 個字元,不能以 aliyun 和 acs: 開頭,不能包含 http:// 或 https://。

test

TagValue

string

標籤值。

test

UsingProductList

array

目前憑證正在部署的雲端產品列表。

string

雲端產品。

CDN

樣本

正常返回樣本

JSON格式

{
  "Algorithm": "RSA",
  "CertIdentifier": "21912069-cn-hangzhou",
  "CertificateChainList": [
    {
      "Issuer": "Digicert",
      "NotAfter": 17326613180000,
      "NotBefore": 17321613180000,
      "RemainDay": 10,
      "Subject": "Digicert"
    }
  ],
  "CertificateId": 22559621,
  "CertificateName": "123",
  "CertificateSource": "BUY",
  "CertificateStatus": "issued",
  "CommonName": "www.example.com",
  "CompanyId": 44211,
  "ContactId": 304066,
  "Csr": "-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST-----",
  "DeploymentDesc": "{\n      \"Scope\": \"all\",\n       \"ServerName\": \"acmeServerName\",\n       \"ResourceInstanceId\": \"cas_dv-cn-XXX\"\n}",
  "Domain": "aliyundoc.com,example.aliyundoc.com",
  "ExistPrivateKey": true,
  "FingerPrint": "123",
  "InstanceId": "cas_dv-cn-123",
  "Issuer": "Digicert",
  "KeySize": 2048,
  "NotAfter": 17326613180000,
  "NotBefore": 17321613180000,
  "RequestId": "5979d897-d69f-4fc9-87dd-f3bb73c40b80",
  "Serial": "123",
  "SubjectAlternativeNames": [
    "aliyundoc.com"
  ],
  "Tags": [
    {
      "TagKey": "test",
      "TagValue": "test"
    }
  ],
  "UsingProductList": [
    "CDN"
  ]
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。