All Products
Search
Document Center

Global Accelerator:ListCustomRoutingPortMappingsByDestination

Last Updated:Jul 28, 2025

Call the ListCustomRoutingPortMappingsByDestination operation to query the port mappings of a specified backend instance for a custom route listener.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that support authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ga:ListCustomRoutingPortMappingsByDestination

list

*CustomRoutingEndpoint

acs:ga:*:{#accountId}:customroutingendpoint/{#customroutingendpointId}

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.

  • TCP: TCP.

  • UDP: UDP.

string

The protocol of the backend service.

  • TCP: TCP.

  • UDP: UDP.

tcp

DestinationTrafficState

string

The traffic policy for the backend instance.

  • allow: allows the backend instance to receive traffic.

  • deny: denies the backend instance from receiving traffic.

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.