All Products
Search
Document Center

Global Accelerator:DescribeCustomRoutingEndPointTrafficPolicy

Last Updated:Apr 28, 2024

Queries a traffic destination 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:DescribeCustomRoutingEndPointTrafficPolicyRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The operation that you want to perform. Set the value to DescribeCustomRoutingEndPointTrafficPolicy.

cn-hangzhou
PolicyIdstringYes

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

ply-bptest2****
EndpointIdstringNo

The ID of the traffic policy to be queried.

ep-bp1d2utp8qqe2a44t****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the endpoint to which the traffic destination belongs.

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

The ID of the request.

ga-bp1odcab8tmno0hdq****
ListenerIdstring

The ID of the GA instance to which the endpoint belongs.

lsr-bp1bpn0kn908w4nbw****
EndpointGroupIdstring

The ID of the listener to which the endpoint belongs.

epg-bp1bpn0kn908w4nb****
EndpointIdstring

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

ep-2zewuzypq5e6r3pfh****
Endpointstring

The ID of the endpoint to which the traffic policy belongs.

vsw-test01
PolicyIdstring

The name of the vSwitch to which the traffic policy belongs.

ply-bptest2****
Addressstring

The ID of the traffic policy.

10.0.XX.XX
PortRangesobject []

The IP address of the traffic policy.

FromPortinteger

The first port of the port range used by the traffic destination to process requests.

80
ToPortinteger

The last port of the port range used by the traffic destination to process requests.

80
Statestring

The status of the traffic destination.

  • init: being initialized.
  • active: running as expected.
  • updating: being updated.
  • deleting: being deleted.
active
ServiceIdstring

The ID of the service that manages the instance.

Note This parameter is returned only if the value of ServiceManaged is true.
ALB
ServiceManagedboolean

Indicates whether the instance is managed. Valid values:

  • true
  • false
true
ServiceManagedInfosobject []

The actions that users can perform on the managed instance.

Note
  • This parameter is returned only if the value of ServiceManaged is 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 that is associated with a custom routing listener.
    • EndpointPolicy: traffic policy of an endpoint that is associated with a custom routing listener.
    Note This parameter takes effect only if the value of Action is CreateChild.
    Listener
    IsManagedboolean

    Indicates whether the specified actions are managed.

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

    Examples

    Sample success responses

    JSONformat

    {
      "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
      "AcceleratorId": "ga-bp1odcab8tmno0hdq****",
      "ListenerId": "lsr-bp1bpn0kn908w4nbw****",
      "EndpointGroupId": "epg-bp1bpn0kn908w4nb****",
      "EndpointId": "ep-2zewuzypq5e6r3pfh****",
      "Endpoint": "vsw-test01",
      "PolicyId": "ply-bptest2****",
      "Address": "10.0.XX.XX",
      "PortRanges": [
        {
          "FromPort": 80,
          "ToPort": 80
        }
      ],
      "State": "active",
      "ServiceId": "ALB",
      "ServiceManaged": true,
      "ServiceManagedInfos": [
        {
          "Action": "Update",
          "ChildType": "Listener",
          "IsManaged": false
        }
      ]
    }

    Error codes

    HTTP status codeError codeError messageDescription
    500UnknownErrorAn error occurred while processing your request. Please try again. If the error persists, please submit a ticket.An error occurred while the request was being processed. Try again later.

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

    Change history

    Change timeSummary of changesOperation
    2023-04-20The Error code has changedsee changesets
    Change itemChange content
    Error CodesThe Error code has changed.
      delete Error Codes: 500