All Products
Search
Document Center

Server Load Balancer:ListSecurityPolicy

Last Updated:Jun 10, 2026

Mengkueri kebijakan keamanan TLS yang diatur untuk instans Network Load Balancer (NLB).

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

nlb:ListSecurityPolicy

get

*SecurityPolicy

acs:nlb:{#regionId}:{#accountId}:securitypolicy/*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

SecurityPolicyIds

array

No

ID kebijakan keamanan TLS. Anda dapat menentukan hingga 20 ID kebijakan dalam setiap panggilan.

string

No

The ID of the TLS security policy. You can specify at most 20 policy IDs in each call.

tls-bp14bb1e7dll4f****

SecurityPolicyNames

array

No

Nama kebijakan keamanan TLS. Anda dapat menentukan hingga 20 nama kebijakan.

string

No

The name of the TLS security policy. You can specify at most 20 policy names.

TLSCipherPolicy

Tag

array<object>

No

Tag.

object

No

The tag.

Key

string

No

The tag key. You can specify up to 10 tag keys.

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

Test

Value

string

No

The tag value. You can specify up to 10 tag values.

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

Test

ResourceGroupId

string

No

ID kelompok sumber daya.

rg-atstuj3rtop****

NextToken

string

No

Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. Nilai valid:

  • Anda tidak perlu menentukan parameter ini untuk permintaan pertama.

  • Anda harus menentukan token yang diperoleh dari kueri sebelumnya sebagai nilai NextToken.

FFmyTO70tTpLG6I3FmYAXGKPd****

MaxResults

integer

No

Jumlah entri yang dikembalikan per halaman. Nilai valid: 1 hingga 100. Nilai default: 20.

20

RegionId

string

No

ID Wilayah instans NLB.

Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru.

cn-hangzhou

Elemen respons

Element

Type

Description

Example

object

The details about the queried TLS security policies.

RequestId

string

The request ID.

D7A8875F-373A-5F48-8484-25B07A61F2AF

SecurityPolicies

array<object>

The TLS security policies.

array<object>

The TLS security policy.

SecurityPolicyId

string

The ID of the TLS security policy.

tls-bp14bb1e7dll4f****

SecurityPolicyName

string

The name of the TLS security policy.

TLSCipherPolicy

TlsVersion

string

The supported versions of the TLS protocol. Valid values: TLSv1.0, TLSv1.1, TLSv1.2, and TLSv1.3.

TLSv1.0

Ciphers

string

The cipher suites supported by the security policy. Valid values of this parameter vary based on the value of TlsVersions. A security policy supports up to 32 cipher suites.

TLSv1.0 and TLSv1.1 support the following cipher suites:

  • ECDHE-ECDSA-AES128-SHA

  • ECDHE-ECDSA-AES256-SHA

  • ECDHE-RSA-AES128-SHA

  • ECDHE-RSA-AES256-SHA

  • AES128-SHA

  • AES256-SHA

  • DES-CBC3-SHA

TLSv1.2 supports the following cipher suites:

  • ECDHE-ECDSA-AES128-SHA

  • ECDHE-ECDSA-AES256-SHA

  • ECDHE-RSA-AES128-SHA

  • ECDHE-RSA-AES256-SHA

  • AES128-SHA

  • AES256-SHA

  • DES-CBC3-SHA

  • ECDHE-ECDSA-AES128-GCM-SHA256

  • ECDHE-ECDSA-AES256-GCM-SHA384

  • ECDHE-ECDSA-AES128-SHA256

  • ECDHE-ECDSA-AES256-SHA384

  • ECDHE-RSA-AES128-GCM-SHA256

  • ECDHE-RSA-AES256-GCM-SHA384

  • ECDHE-RSA-AES128-SHA256

  • ECDHE-RSA-AES256-SHA384

  • AES128-GCM-SHA256

  • AES256-GCM-SHA384

  • AES128-SHA256

  • AES256-SHA256

TLSv1.3 supports the following cipher suites:

  • TLS_AES_128_GCM_SHA256

  • TLS_AES_256_GCM_SHA384

  • TLS_CHACHA20_POLY1305_SHA256

  • TLS_AES_128_CCM_SHA256

  • TLS_AES_128_CCM_8_SHA256

ECDHE-ECDSA-AES128-SHA

RegionId

string

The region ID of the NLB instance.

cn-hangzhou

Tags

array<object>

The tags.

object

Key

string

The tag key. You can specify up to 10 tag keys.

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

Test

Value

string

The tag value. You can specify up to 10 tag values.

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

Test

RelatedListeners

array<object>

The listeners that are associated with the NLB instance.

object

The listeners that are associated with the NLB instance.

ListenerId

string

The listener ID.

lsn-bp1bpn0kn908w4nbw****@443

ListenerPort

integer

The listener port.

443

ListenerProtocol

string

The listener protocol. Valid value: TCPSSL.

TCPSSL

LoadBalancerId

string

The NLB instance ID.

nlb-83ckzc8d4xlp8o****

ResourceGroupId

string

The resource group ID.

rg-atstuj3rtop****

SecurityPolicyStatus

string

The status of the TLS security policy. Valid values:

  • Configuring

  • Available

Available

TotalCount

integer

The total number of entries returned.

10

NextToken

string

A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:

  • If NextToken is empty, no next page exists.

  • If a value is returned for NextToken, specify the value in the next request to retrieve a new page of results.

FFmyTO70tTpLG6I3FmYAXGKPd****

MaxResults

integer

The number of entries per page.

20

Contoh

Respons sukses

JSONformat

{
  "RequestId": "D7A8875F-373A-5F48-8484-25B07A61F2AF",
  "SecurityPolicies": [
    {
      "SecurityPolicyId": "tls-bp14bb1e7dll4f****",
      "SecurityPolicyName": "TLSCipherPolicy",
      "TlsVersion": "TLSv1.0",
      "Ciphers": "ECDHE-ECDSA-AES128-SHA",
      "RegionId": "cn-hangzhou",
      "Tags": [
        {
          "Key": "Test",
          "Value": "Test"
        }
      ],
      "RelatedListeners": [
        {
          "ListenerId": "lsn-bp1bpn0kn908w4nbw****@443",
          "ListenerPort": 443,
          "ListenerProtocol": "TCPSSL",
          "LoadBalancerId": "nlb-83ckzc8d4xlp8o****"
        }
      ],
      "ResourceGroupId": "rg-atstuj3rtop****",
      "SecurityPolicyStatus": "Available"
    }
  ],
  "TotalCount": 10,
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "MaxResults": 20
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 SystemBusy System is busy, please try again later.
403 Forbidden.NoPermission Authentication is failed for NoPermission. Authentication is failed for NoPermission.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.