ListEgressProxyIpPools

Updated at:
Copy as MD

Queries egress proxy IP pools.

Operation description

Invokes this API operation to perform a paged query of egress proxy IP pools.

You can filter the query results by egress proxy gateway ID, egress proxy IP pool ID, egress proxy IP pool name, status, or tag.

ListEgressProxyIpPools is a synchronous API operation that returns a list of egress proxy IP pools that meet the specified conditions in real time after you invoke it. The response is paginated by using MaxResults and NextToken:

  • If NextToken is empty, all data has been returned.

  • If NextToken has a value, you can use it as the NextToken parameter in the next invocation to continue the paged query.

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 supports 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

epg:ListEgressProxyIpPools

list

EgressProxyIpPool

acs:epg:{#regionId}:{#accountId}:egressproxyippool/*

EgressProxyIpPool

acs:epg:{#regionId}:{#accountId}:egressproxyippool/{#EgressProxyIpPoolId}

EgressProxyGateway

acs:epg:{#regionId}:{#accountId}:egressproxygateway/{#EgressProxyGatewayId}

None None

Request syntax

POST / HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

MaxResults

integer

No

The maximum number of entries to return per page during paging. Valid values: 1 to 1000. Default value: 20.

12

NextToken

string

No

The token for the next query. Valid values:

  • For the first query or when no next query is required, leave this parameter empty.

  • If a next query is required, set this parameter to the NextToken value returned from the previous API call.

FFmyTO70tTpLG6I3FmYAXG****

Skip

integer

No

The number of entries to skip during paging. Default value: 0.

1

EgressProxyGatewayIds

array

No

Filters by egress proxy gateway ID.

string

No

The ID of the egress proxy gateway.

epg-gw80bb6a94f835db****

EgressProxyIpPoolIds

array

No

Filters by egress proxy IP pool ID.

string

No

The ID of the egress proxy IP pool.

eppool-gw80d96a96ca0b00****

EgressProxyIpPoolNames

array

No

Filters by egress proxy IP pool name.

string

No

The name of the egress proxy IP pool.

testEpg

Status

string

No

Filters by the status of the egress proxy IP pool.

Valid values:

  • Configuring :

    The egress proxy IP pool is being modified.

  • Available :

    The egress proxy IP pool is available.

  • Provisioning :

    The egress proxy IP pool is being created.

Available

Tag

array<object>

No

Filters by tag.

object

No

The tag filter condition.

Key

string

No

The tag key. The key can be up to 128 characters in length, and cannot start with aliyun or acs:. It cannot contain http:// or https://.

testKey

Value

string

No

The tag value. The value can be up to 256 characters in length, and cannot contain http:// or https://.

testValue

Response elements

Element

Type

Description

Example

object

EgressProxyIpPools

array<object>

The list of egress proxy IP pools.

array<object>

The egress proxy IP pool information.

EgressProxyIpPoolId

string

The ID of the egress proxy IP pool.

eppool-gw80d96a96ca0b00****

EgressProxyGatewayId

string

The ID of the egress proxy gateway to which the egress proxy IP pool belongs.

epg-gw80bb6a94f835db****

EgressProxyIpPoolName

string

The name of the egress proxy IP pool. The name must be 2 to 128 characters in length, and must start with a letter or a Chinese character. It can contain digits, periods (.), underscores (_), and hyphens (-).

testEpg

Description

string

The description of the egress proxy IP pool. The description must be 2 to 256 characters in length and can contain letters and Chinese characters. It can also contain digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-).

testEpg

Status

string

The status of the egress proxy IP pool. Valid values:

  • Provisioning: The IP pool is being created.

  • Available: The IP pool is available.

  • Configuring: The IP pool is being modified.

Valid values:

  • Configuring :

    The egress proxy IP pool is being modified.

  • Available :

    The egress proxy IP pool is available.

  • Provisioning :

    The egress proxy IP pool is being created.

Available

AddressType

string

The address type of the egress proxy IP pool. Valid values:

  • Intranet: Private network address. Only private network IPv4 addresses (PrivateIpv4Address) in a vSwitch can be added.

  • Internet: Public IP address. Only elastic IP addresses (EipAllocationId) can be added.

Valid values:

  • Intranet :

    Private network address.

  • Internet :

    Public IP address.

Intranet

Scheduler

string

The scheduling algorithm for egress IP addresses, which determines how an egress IP address is selected from the IP pool. Valid values:

  • Random: Random scheduling.

  • ConsistentHash: Consistent hashing. If this value is used, the HashFactor parameter is also returned.

Valid values:

  • ConsistentHash :

    Consistent hashing.

  • Random :

    Random scheduling.

Random

HashFactor

string

The hash factor used for consistent hashing scheduling. This parameter is returned only when the Scheduler parameter is set to ConsistentHash. Valid values:

  • SourceIP: Source IP address.

  • FiveTuple: 5-tuple.

  • HttpHeader: HTTP request header.

Valid values:

  • SourceIP :

    Source IP address.

  • HttpHeader :

    HTTP request header.

  • FiveTuple :

    5-tuple.

SourceIP

HashHeaderName

string

The name of the custom hash request header. This parameter is returned only when the HashFactor parameter is set to HttpHeader.

X-Forwarded-For

Tags

array<object>

The list of tags.

object

The tag.

Key

string

The tag key. The key can be up to 128 characters in length, and cannot start with aliyun or acs:. It cannot contain http:// or https://.

testKey

Value

string

The tag value. The value can be up to 256 characters in length, and cannot contain http:// or https://.

testValue

CreateTime

string

The time when the egress proxy IP pool was created. The time is displayed in UTC in the YYYY-MM-DDThh:mm:ssZ format.

2022-07-02T02:49:05Z

NextToken

string

The token for the next query. Valid values:

  • If NextToken is empty, no next query is required.

  • If NextToken has a value, the value is the token for the next query.

caeba0bbb2be03f8****

MaxResults

integer

The maximum number of entries returned per page in the current query.

10

TotalCount

integer

The total number of egress proxy IP pools that meet the conditions.

3

RequestId

string

The request ID.

C79118A9-CA6D-5359-B53E-111BE8A03DCF

Examples

Success response

JSON format

{
  "EgressProxyIpPools": [
    {
      "EgressProxyIpPoolId": "eppool-gw80d96a96ca0b00****",
      "EgressProxyGatewayId": "epg-gw80bb6a94f835db****",
      "EgressProxyIpPoolName": "testEpg",
      "Description": "testEpg",
      "Status": "Available",
      "AddressType": "Intranet",
      "Scheduler": "Random",
      "HashFactor": "SourceIP",
      "HashHeaderName": "X-Forwarded-For",
      "Tags": [
        {
          "Key": "testKey",
          "Value": "testValue"
        }
      ],
      "CreateTime": "2022-07-02T02:49:05Z"
    }
  ],
  "NextToken": "caeba0bbb2be03f8****",
  "MaxResults": 10,
  "TotalCount": 3,
  "RequestId": "C79118A9-CA6D-5359-B53E-111BE8A03DCF"
}

Error codes

HTTP status code

Error code

Error message

Description

400 IllegalParam.TagKey The param of %s is illegal. The value of the tag key parameter is invalid.
400 IllegalParam.TagValue The param of %s is illegal. The value of the tag value parameter is invalid.
400 IllegalParam.NextToken The param of %s is illegal. The value of the NextToken parameter query token is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.