Queries custom security policies in a region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:ListSecurityPolicies |
list |
*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:
|
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 |
env |
| Value |
string |
No |
The tag value. It can be up to 128 characters in length and cannot start with |
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:
|
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.
|
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:
|
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 |
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.