All Products
Search
Document Center

Global Accelerator:ListCustomRoutingEndpoints

Last Updated:Apr 28, 2024

Queries the configurations of an endpoint.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
ga:ListCustomRoutingEndpointsList
  • CustomRoutingEndpoint
    acs:ga:*:{#accountId}:ga/{#gaId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the Global Accelerator (GA) instance. Set the value to cn-hangzhou.

cn-hangzhou
PageNumberstringNo

The page number. Default value: 1.

1
PageSizestringNo

The number of entries per page. Maximum value: 50. Default value: 10.

10
AcceleratorIdstringYes

The GA instance ID.

ga-bp1odcab8tmno0hdq****
ListenerIdstringNo

The listener ID.

lsr-bp1bpn0kn908w4nbw****
EndpointGroupIdstringNo

The endpoint group ID.

epg-bp16jdc00bhe97sr5****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

04F0F334-1335-436C-A1D7-6C044FE73368
TotalCountinteger

The total number of entries returned.

10
PageSizeinteger

The number of entries per page.

10
PageNumberinteger

The page number.

1
Endpointsobject []

The information about the endpoints.

AcceleratorIdstring

The ID of the GA instance with which the endpoint is associated.

ga-bp1odcab8tmno0hdq****
ListenerIdstring

The ID of the listener to which the endpoint belongs.

lsr-bp1bpn0kn908w4nbw****
EndpointGroupIdstring

The ID of the endpoint group to which the endpoint belongs.

epg-bp16jdc00bhe97sr5****
EndpointIdstring

The endpoint ID.

ep-bp14sz7ftcwwjgrdm****
Typestring

The backend service type of the endpoint.

Only PrivateSubNet may be returned, which indicates a private CIDR block.

PrivateSubNet
Endpointstring

The name of the vSwitch that is specified as an endpoint.

vsw-test01
TrafficToEndpointPolicystring

The access policy of traffic that is destined for the endpoint. Valid values:

  • AllowAll: allows all traffic to the endpoint.
  • DenyAll: denies all traffic to the endpoint.
  • AllowCustom: allows traffic only to specified destinations.
DenyAll
ServiceIdstring

The ID of the service that manages the GA instance.

Note This parameter is valid only if ServiceManaged is set to True.
ALB
ServiceManagedboolean

Indicates whether the GA instance is managed. Valid values:

  • true
  • false
true
ServiceManagedInfosobject []

The actions that users can perform on the managed instance.

Note This parameter is valid only if ServiceManaged is set to True.
  • Users can perform only specific actions on a managed instance.
Actionstring

The name of the action performed on the managed instance. Valid values:

  • Create
  • Update
  • Delete
  • Associate
  • UserUnmanaged
  • CreateChild
Update
ChildTypestring

The type of the child resource. Valid values:

  • Listener: listener
  • IpSet: acceleration region
  • EndpointGroup: endpoint group
  • ForwardingRule: forwarding rule
  • Endpoint: endpoint
  • EndpointGroupDestination: protocol mapping of an endpoint group associated with a custom routing listener
  • EndpointPolicy: traffic policy of an endpoint associated with a custom routing listener
Note This parameter is valid only if Action is set to CreateChild.
Listener
IsManagedboolean

Indicates whether the specified actions are managed. Valid values:

  • true: The specified actions are managed, and users cannot perform the specified actions on the managed resource.
  • false: The specified actions are not managed, and users can perform the specified actions on the managed resource.
false

Examples

Sample success responses

JSONformat

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "TotalCount": 10,
  "PageSize": 10,
  "PageNumber": 1,
  "Endpoints": [
    {
      "AcceleratorId": "ga-bp1odcab8tmno0hdq****",
      "ListenerId": "lsr-bp1bpn0kn908w4nbw****",
      "EndpointGroupId": "epg-bp16jdc00bhe97sr5****",
      "EndpointId": "ep-bp14sz7ftcwwjgrdm****",
      "Type": "PrivateSubNet",
      "Endpoint": "vsw-test01",
      "TrafficToEndpointPolicy": "DenyAll",
      "ServiceId": "ALB",
      "ServiceManaged": true,
      "ServiceManagedInfos": [
        {
          "Action": "Update",
          "ChildType": "Listener",
          "IsManaged": false
        }
      ]
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-20The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.