All Products
Search
Document Center

Certificate Management Service:GetCertificateDetail

Last Updated:Jun 10, 2026

Mengambil detail sertifikat, tidak termasuk isi sertifikat dan kunci privat.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

yundun-cert:GetCertificateDetail

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

CertificateId

integer

Yes

ID sertifikat.

18594156

Elemen respons

Element

Type

Description

Example

object

InstanceId

string

The ID of the instance.

cas_dv-cn-123

CommonName

string

The common name.

www.example.com

RequestId

string

The ID of the request.

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

Algorithm

string

The certificate algorithm. Valid values:

  • RSA: The RSA algorithm.

  • ECC: The ECC algorithm.

  • SM2: The SM2 algorithm.

RSA

Domain

string

The domain names that are bound to the certificate. Multiple domain names are separated by commas (,).

aliyundoc.com,example.aliyundoc.com

CertificateId

integer

The certificate ID.

22559621

CertificateName

string

The certificate name.

123

CertIdentifier

string

The global ID of the certificate, which is used in various Alibaba Cloud services. The format of the ID is <Certificate ID>-<Region ID>. The region ID is cn-hangzhou for the China site and ap-southeast-1 for the International site. For example, if a certificate ID is 123, its CertIdentifier is 123-cn-hangzhou for the China site and 123-ap-southeast-1 for the International site.

21912069-cn-hangzhou

CertificateSource

string

The source of the certificate. Valid values:

  • BUY: a purchased certificate.

  • TEST: a test certificate.

  • Upload the certificate.

BUY

CertificateStatus

string

The status of the certificate. Valid values:

  • issued: The certificate is issued.

  • revoked: The certificate is revoked.

  • willExpire: The certificate is about to expire.

  • expired: The certificate has expired.

issued

Csr

string

签发证书的 CSR。

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

NotBefore

integer

The beginning of the validity period of the certificate.

17321613180000

NotAfter

integer

The end of the validity period of the certificate.

17326613180000

CompanyId

integer

The ID of the company profile that is associated with the certificate application. This parameter is empty for DV certificates.

44211

ContactId

integer

The ID of the contact.

304066

KeySize

integer

The key size.

  • For RSA algorithms, the key size is typically 2,048, 3,072, or 4,096 bits.

  • For ECC and SM2 algorithms, the key size is typically 256 bits.

2048

SubjectAlternativeNames

array

The subject alternative names (SANs) of the certificate.

string

An SAN.

aliyundoc.com

Serial

string

The serial number of the certificate.

123

ExistPrivateKey

boolean

Indicates whether a private key is available. Valid values:

  • true

  • false

true

UsingProductList

array

The list of cloud services in which the certificate is deployed.

string

The cloud service.

CDN

FingerPrint

string

The fingerprint of the public key.

123

CertificateChainList

array<object>

The information about the certificate chain.

object

The information about the certificate chain.

Issuer

string

The issuer of the certificate chain.

Digicert

Subject

string

The common name of the certificate chain.

Digicert

RemainDay

integer

The remaining validity period of the certificate chain.

10

NotBefore

integer

The beginning of the validity period.

17321613180000

NotAfter

integer

The end of the validity period.

17326613180000

Issuer

string

The issuer of the certificate.

Digicert

Tags

array<object>

The list of tags.

object

The list of tags.

TagKey

string

The tag key of the instance. You can specify 1 to 20 tag keys. The value cannot be an empty string.

The value can be up to 64 characters in length, cannot start with aliyun or acs:, and cannot contain http:// or https://.

test

TagValue

string

The tag value.

test

Contoh

Respons sukses

JSONformat

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

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.