Call the ListCustomRoutingPortMappingsByDestination operation to query the port mappings of a specified backend instance for a custom route listener.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ga:ListCustomRoutingPortMappingsByDestination |
list |
*CustomRoutingEndpoint
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the Global Accelerator instance is deployed. Set the value to cn-hangzhou. |
cn-hangzhou |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Maximum value: 50. Default value: 10. |
10 |
| EndpointId |
string |
Yes |
The ID of the endpoint to which the backend instance belongs. |
ep-bp16jdc00bhe97sr5**** |
| DestinationAddress |
string |
Yes |
The service IP address of the backend instance. |
10.0.XX.XX |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
String 04F0F334-1335-436C-A1D7-6C044FE73368 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| PortMappings |
array<object> |
The information about the port mappings. |
|
|
object |
The information about the port mapping. |
||
| AcceleratorId |
string |
The ID of the Global Accelerator instance to which the port mapping belongs. |
ga-bp1odcab8tmno0hdq**** |
| ListenerId |
string |
The ID of the custom routing listener to which the port mapping belongs. |
ga-bp1odcab8tmno0hdq**** |
| EndpointGroupId |
string |
The ID of the endpoint group. |
epg-bp14sz7ftcwwjgrdm**** |
| EndpointId |
string |
The ID of the endpoint. |
ep-bp14sz7ftcwwjgrdm**** |
| EndpointGroupRegion |
string |
The ID of the region where the endpoint group is deployed. |
us-west-1 |
| Vswitch |
string |
The name of the vSwitch instance of the endpoint. |
vsw-test01 |
| AcceleratorPort |
integer |
The acceleration port. |
3000 |
| Protocols |
array |
The protocol of the backend service.
|
|
|
string |
The protocol of the backend service.
|
tcp |
|
| DestinationTrafficState |
string |
The traffic policy for the backend instance.
|
allow |
| DestinationSocketAddress |
object |
The service IP address and port of the backend instance. |
|
| IpAddress |
string |
The service IP address of the backend instance. |
10.0.XX.XX |
| Port |
integer |
The service port of the backend instance. |
443 |
Examples
Success response
JSON format
{
"RequestId": "String\t04F0F334-1335-436C-A1D7-6C044FE73368",
"TotalCount": 1,
"PageSize": 10,
"PageNumber": 1,
"PortMappings": [
{
"AcceleratorId": "ga-bp1odcab8tmno0hdq****",
"ListenerId": "ga-bp1odcab8tmno0hdq****",
"EndpointGroupId": "epg-bp14sz7ftcwwjgrdm****",
"EndpointId": "ep-bp14sz7ftcwwjgrdm****",
"EndpointGroupRegion": "us-west-1",
"Vswitch": "vsw-test01",
"AcceleratorPort": 3000,
"Protocols": [
"TCP"
],
"DestinationTrafficState": "allow",
"DestinationSocketAddress": {
"IpAddress": "10.0.XX.XX",
"Port": 443
}
}
]
}
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.