All Products
Search
Document Center

Server Load Balancer:ListSecurityPolicies

Last Updated:Aug 28, 2026

Queries custom security policies in a region.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

alb:ListSecurityPolicies

list

*SecurityPolicy

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

None None

Request parameters

Parameter

Type

Required

Description

Example

ResourceGroupId

string

No

The resource group ID.

rg-atstuj3rtop****

NextToken

string

No

The pagination token for retrieving the next page of results. Valid values:

  • You do not need to specify this parameter for the first request.

  • You must specify the token that is obtained from the previous query as the value of NextToken.

FFmyTO70tTpLG6I3FmYAXGKPd****

MaxResults

integer

No

The number of entries per page. Valid values: 1 to 100. Default value: 20.

50

SecurityPolicyNames

array

No

The names of the security policies. You can specify up to 10 names.

string

No

The name of the security policy. You can specify up to 10 names.

test-secrity

SecurityPolicyIds

array

No

The security policy IDs. You can specify at most 20 security policies.

string

No

The security policy ID. You can specify at most 20 IDs.

scp-bp1bpn0kn9****

Tag

array<object>

No

The tags.

object

No

The tags.

Key

string

No

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

env

Value

string

No

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

product

Response elements

Element

Type

Description

Example

object

The response parameters.

MaxResults

integer

The number of entries per page.

50

NextToken

string

The pagination token for retrieving the next page of results. Valid values:

  • If NextToken is empty, no next page exists.

  • If a value is returned for NextToken, the value is the token that determines the start point of the next query.

FFmyTO70tTpLG6I3FmYAXGKPd****

RequestId

string

The request ID.

593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3

SecurityPolicies

array<object>

The supported security policies.

array<object>

The supported security policy.

Ciphers

array

The supported cipher suites.

string

The cipher suites, determined by TLSVersions.

  • 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

ResourceGroupId

string

The ID of the resource group.

rg-atstuj3rtop****

SecurityPolicyId

string

The ID of the security policy.

rg-atstuj3rtop****

SecurityPolicyName

string

The name of the security policy.

test-secrity

SecurityPolicyStatus

string

The status of the security policy. Valid values:

  • Configuring

  • Available

Available

TLSVersions

array

The supported TLS protocol versions.

string

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

TLSv1.1

CreateTime

string

The time when the ACL was created. The time follows the YYYY-MM-DDThh:mm:ssZ format.

2023-02-15T07:37:33Z

Tags

array<object>

The tags.

object

The tags.

Key

string

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

env

Value

string

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

product

TotalCount

integer

The total number of entries returned.

1000

Examples

Success response

JSON format

{
  "MaxResults": 50,
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "RequestId": "593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3",
  "SecurityPolicies": [
    {
      "Ciphers": [
        "ECDHE-ECDSA-AES128-SHA"
      ],
      "ResourceGroupId": "rg-atstuj3rtop****",
      "SecurityPolicyId": "rg-atstuj3rtop****",
      "SecurityPolicyName": "test-secrity",
      "SecurityPolicyStatus": "Available",
      "TLSVersions": [
        "TLSv1.1"
      ],
      "CreateTime": "2023-02-15T07:37:33Z",
      "Tags": [
        {
          "Key": "env",
          "Value": "product"
        }
      ]
    }
  ],
  "TotalCount": 1000
}

Error codes

HTTP status code

Error code

Error message

Description

403 Forbidden.SecurityPolicy Authentication has failed for SecurityPolicy.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.