Invokes the ListCustomRoutingEndpointTrafficPolicies operation to query the list of endpoint traffic policies for a custom routing type listener.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ga:ListCustomRoutingEndpointTrafficPolicies |
list |
*CustomRoutingEndpointTrafficPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Alibaba Cloud Global Accelerator (GA) instance. Set the value to ap-southeast-1. |
cn-hangzhou |
| PageNumber |
integer |
No |
The page number of the list. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page for a paged query. Maximum value: 50. Default value: 10. |
10 |
| AcceleratorId |
string |
Yes |
The instance ID of the Alibaba Cloud Global Accelerator (GA) instance for which you want to query traffic policies. |
ga-bp1odcab8tmno0hdq**** |
| ListenerId |
string |
No |
The ID of the listener for which you want to query traffic policies. |
lsr-bp1bpn0kn908w4nbw**** |
| EndpointGroupId |
string |
No |
The ID of the endpoint group for which you want to query traffic policies. |
lsr-bp1bpn0kn908w4nbw**** |
| EndpointId |
string |
No |
The ID of the endpoint for which you want to query traffic policies. |
ep-bp16jdc00bhe97sr5**** |
| Address |
string |
No |
The IP address of the traffic policy destination. |
10.0.XX.XX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| PageSize |
integer |
The number of entries per page in a paging query. |
10 |
| PageNumber |
integer |
The page number of the list. |
1 |
| Policies |
array<object> |
The list of traffic policies. |
|
|
array<object> |
The list of traffic policies. |
||
| AcceleratorId |
string |
The instance ID of the Alibaba Cloud Global Accelerator (GA) instance to which the endpoint belongs. |
ga-bp1odcab8tmno0hdq**** |
| ListenerId |
string |
The ID of the custom routing type listener to which the endpoint belongs. |
lsr-bp1bpn0kn908w4nbw**** |
| EndpointGroupId |
string |
The ID of the endpoint group to which the endpoint belongs. |
lsr-bp1bpn0kn908w4nbw**** |
| EndpointId |
string |
The ID of the endpoint to which the traffic policy belongs. |
ep-bp14sz7ftcwwjgrdm**** |
| PolicyId |
string |
The traffic policy ID. |
ply-bp1dmlohjjz4kqaun**** |
| Address |
string |
The IP address of the traffic policy destination. |
10.0.XX.XX |
| PortRanges |
array<object> |
The port range of the traffic policy destination. |
|
|
object |
The port range of the traffic policy destination. |
||
| FromPort |
integer |
The first port of the port range used by the traffic destination to process requests. |
80 |
| ToPort |
integer |
The last port of the port range used by the traffic destination to process requests. |
80 |
| ServiceId |
string |
The ID of the service to which the managed instance belongs. Note
This parameter is valid only when ServiceManaged is set to True. |
ALB |
| ServiceManaged |
boolean |
Indicates whether the instance is managed. Valid values:
|
true |
| ServiceManagedInfos |
array<object> |
The list of action policies that the user can perform on the managed instance. Note
|
|
|
object |
The list of action policies that the user can perform on the managed instance. |
||
| Action |
string |
The name of the action on the managed instance. Valid values:
|
Update |
| ChildType |
string |
The type of the child resource. Valid values:
Note
This parameter is returned only if the value of Action is CreateChild. |
Listener |
| IsManaged |
boolean |
Indicates whether the specified actions are managed. Valid values:
|
false |
Examples
Success response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"TotalCount": 1,
"PageSize": 10,
"PageNumber": 1,
"Policies": [
{
"AcceleratorId": "ga-bp1odcab8tmno0hdq****",
"ListenerId": "lsr-bp1bpn0kn908w4nbw****",
"EndpointGroupId": "lsr-bp1bpn0kn908w4nbw****",
"EndpointId": "ep-bp14sz7ftcwwjgrdm****",
"PolicyId": "ply-bp1dmlohjjz4kqaun****",
"Address": "10.0.XX.XX",
"PortRanges": [
{
"FromPort": 80,
"ToPort": 80
}
],
"ServiceId": "ALB",
"ServiceManaged": true,
"ServiceManagedInfos": [
{
"Action": "Update",
"ChildType": "Listener",
"IsManaged": false
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | No permissions. | No permissions. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.