All Products
Search
Document Center

Certificate Management Service:ListCsr

Last Updated:Jun 10, 2026

Mengkueri certificate signing request (CSR) di akun Anda.

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:ListCsr

list

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

KeyWord

string

No

Kata kunci untuk pencarian fuzzy. Misalnya, Anda dapat menentukan nama domain.

test_name

Algorithm

string

No

Algoritma. Nilai valid: RSA, ECC, dan SM2.

Valid values:

  • RSA :

    RSA.

  • ECC :

    ECC.

  • SM2 :

    SM2

RSA

CurrentPage

integer

No

Nomor halaman. Nilai default: 1.

1

ShowSize

integer

No

Jumlah entri per halaman. Nilai default: 50.

10

Elemen respons

Element

Type

Description

Example

object

The object.

ShowSize

integer

The number of entries per page. Default value: 50.

10

CurrentPage

integer

The page number.

1

TotalCount

integer

The total number of entries returned.

10

CsrList

array<object>

The CSRs.

object

CsrId

integer

The ID of the CSR.

3454

Algorithm

string

The algorithm. Valid values: RSA, SM2, and ECC.

RSA

KeySize

integer

The key length that is used by the algorithm. The key length for RSA algorithms can be 2,048, 3,072, and 4,096 bits. The key length for ECC and SM2 algorithms can be 256 bits.

2048

KeySha2

string

The public key that is calculated by using the SHA256 algorithm.

1234

CommonName

string

The primary domain name, which is a common name.

example.com

Sans

string

The secondary domain names. Separate multiple domain names with commas (,).

www.example.com,www.aliyundoc.com

CountryCode

string

The code of the country or region in which the organization is located. For example, you can use CN to indicate China and use US to indicate the United States. The default value is the code of the country or region in which the organization is located. The organization is associated with the intermediate CA certificate from which the certificate is issued. For more information about country codes, see the "Country codes" section of the Manage company profiles topic.

CN

Province

string

The province or location.

Beijing

Locality

string

The city where the company is located.

Beijing

CorpName

string

The name of the company.

corp_name

Department

string

The department that uses the certificate.

IT

HasPrivateKey

boolean

Indicates whether the certificate contains a private key.

true

Name

string

The name of the CSR.

name

RequestId

string

The request ID.

E865F6AD-0294-4A24-A58B-DAC6BE2BDD20

Contoh

Respons sukses

JSONformat

{
  "ShowSize": 10,
  "CurrentPage": 1,
  "TotalCount": 10,
  "CsrList": [
    {
      "CsrId": 3454,
      "Algorithm": "RSA",
      "KeySize": 2048,
      "KeySha2": "1234",
      "CommonName": "example.com",
      "Sans": "www.aliyundoc.com,www.example.com",
      "CountryCode": "CN",
      "Province": "Beijing",
      "Locality": "Beijing",
      "CorpName": "北京CSR科技有限公司",
      "Department": "IT",
      "HasPrivateKey": true,
      "Name": "test_name"
    }
  ],
  "RequestId": "E865F6AD-0294-4A24-A58B-DAC6BE2BDD20"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.