Queries TLS security policies of an NLB instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:ListSecurityPolicy |
get |
*SecurityPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SecurityPolicyIds |
array |
No |
The TLS security policy IDs. You can specify up to 20 IDs per call. |
|
|
string |
No |
The TLS security policy ID. You can specify up to 20 IDs per call. |
tls-bp14bb1e7dll4f**** |
|
| SecurityPolicyNames |
array |
No |
The TLS security policy names. You can specify up to 20 names. |
|
|
string |
No |
The TLS security policy name. You can specify up to 20 names. |
TLSCipherPolicy |
|
| Tag |
array<object> |
No |
The tags. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key. You can specify up to 10 tag keys. Maximum length: 64 characters. Cannot start with |
Test |
| Value |
string |
No |
The tag value. You can specify up to 10 tag values. Maximum length: 128 characters. Cannot start with |
Test |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-atstuj3rtop**** |
| NextToken |
string |
No |
The pagination token for the next page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default: 20. |
20 |
| RegionId |
string |
No |
The NLB instance region ID. Call DescribeRegions to query available regions. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
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 TLS security policy ID. |
tls-bp14bb1e7dll4f**** |
| SecurityPolicyName |
string |
The TLS security policy name. |
TLSCipherPolicy |
| TlsVersion |
string |
The TLS protocol versions. Valid values: TLSv1.0, TLSv1.1, TLSv1.2, and TLSv1.3. |
TLSv1.0 |
| Ciphers |
string |
The supported cipher suites. Valid values vary by TlsVersion. Maximum: 32 cipher suites. TLSv1.0 and TLSv1.1:
TLSv1.2:
TLSv1.3:
|
ECDHE-ECDSA-AES128-SHA |
| RegionId |
string |
The NLB instance region ID. |
cn-hangzhou |
| Tags |
array<object> |
The tags. |
|
|
object |
|||
| Key |
string |
The tag key. You can specify up to 10 tag keys. Maximum length: 64 characters. Cannot contain |
Test |
| Value |
string |
The tag value. You can specify up to 10 tag values. Maximum length: 128 characters. Cannot contain |
Test |
| RelatedListeners |
array<object> |
The associated listeners. |
|
|
object |
The associated listener. |
||
| 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 TLS security policy status. Valid values:
|
Available |
| TotalCount |
integer |
The total number of entries. |
10 |
| NextToken |
string |
The pagination token for the next page. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
The number of entries per page. |
20 |
Examples
Success response
JSON format
{
"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
}
Error codes
|
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.