All Products
Search
Document Center

CDN:DescribeCertificateInfoByID

Last Updated:Jun 10, 2026

Mengkueri sertifikat tertentu berdasarkan ID sertifikat.

Deskripsi operasi

  • Each account can call this operation up to 100 times per second.

  • If a certificate is associated with a domain name but the certificate is not enabled, the result of this operation shows that the certificate does not exist.

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

cdn:DescribeCertificateInfoByID

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

CertId

string

Yes

ID Sertifikat. Anda hanya dapat mengkueri satu Sertifikat di setiap pemanggilan.

1644xx

Elemen respons

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

5C1E43DC-9E51-4771-82C0-7D5ECEB547A1

CertInfos

object

CertInfo

array<object>

The information about the certificate.

object

CertExpireTime

string

The time at which the certificate expires.

2098-02-08 08:02:07 +0000 UTC

CreateTime

string

The time when the certificate became effective.

2015-12-21 08:02:07 +0000 UTC

CertType

string

The type of the certificate.

  • free: a free certificate

  • cas: a certificate purchased by using Certificate Management Service

  • upload: a user-uploaded certificate

cas

CertName

string

The name of the certificate.

example_cert

CertId

string

The ID of the certificate.

1644xx

DomainList

string

The domain names that use the certificate.

["example.com"]

HttpsCrt

string

The content of the certificate.

-----BEGIN CERTIFICATE-----\nxxx-----END CERTIFICATE-----\n

Contoh

Respons sukses

JSONformat

{
  "RequestId": "5C1E43DC-9E51-4771-82C0-7D5ECEB547A1",
  "CertInfos": {
    "CertInfo": [
      {
        "CertExpireTime": "2098-02-08 08:02:07 +0000 UTC",
        "CreateTime": "2015-12-21 08:02:07 +0000 UTC",
        "CertType": "cas",
        "CertName": "example_cert",
        "CertId": "1644xx",
        "DomainList": "[\"example.com\"]",
        "HttpsCrt": "-----BEGIN CERTIFICATE-----\\nxxx-----END CERTIFICATE-----\\n"
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 CertNotExisted The Cert doesn't exist.
403 SignatureDoesNotMatch The signature we calculated does not match the one you provided. Please refer to the API reference about authentication for details.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.