Queries the TLS security policies set for a Network Load Balancer (NLB) instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
nlb:ListSecurityPolicy | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SecurityPolicyIds | array | No | The IDs of the TLS security policies. You can specify at most 20 policy IDs in each call. | |
SecurityPolicyId | string | No | The IDs of the TLS security policies. You can specify at most 20 policy IDs in each call. | tls-bp14bb1e7dll4f**** |
SecurityPolicyNames | array | No | The names of the TLS security policies. You can specify at most 20 policy names. | |
SecurityPolicyName | string | No | The names of the TLS security policies. You can specify at most 20 policy names. | TLSCipherPolicy |
Tag | array<object> | No | The tags. | |
object | No | |||
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, and cannot contain | 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, and cannot contain | Test |
ResourceGroupId | string | No | The resource group ID. | rg-atstuj3rtop**** |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
MaxResults | integer | No | The number of entries to return per page. Valid values: 1 to 100. Default value: 20. | 20 |
RegionId | string | No | The region ID of the NLB instance. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
Response parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-09-26 | The Error code has changed | View Change Details |
2023-09-05 | The Error code has changed | View Change Details |
2023-08-22 | The Error code has changed | View Change Details |
2023-07-19 | The internal configuration of the API is changed, but the call is not affected | View Change Details |