GetEgressProxyIpPoolAttribute

Updated at:
Copy as MD

Queries the details of an egress proxy IP pool.

Operation description

GetEgressProxyIpPoolAttribute is a synchronous API operation that returns the current attribute information of the egress proxy IP pool in real time after it is called.

You can determine the current status of the egress proxy IP pool based on the returned Status parameter. For example, Provisioning indicates that the pool is being created, Available indicates that the pool is available, and Configuring indicates that the pool is being reconfigured.

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:GetEgressProxyIpPoolAttribute

get

*EgressProxyIpPool

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

None None

Request syntax

POST / HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

EgressProxyIpPoolId

string

Yes

The ID of the egress proxy IP pool.

eppool-gw80d96a96ca0b00****

Response elements

Element

Type

Description

Example

object

EgressProxyIpPoolId

string

The ID of the egress proxy IP pool.

eppool-gw80d96a96ca0b00****

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 Chinese characters and letters. It can also contain digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-).

testEpg

EgressProxyGatewayId

string

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

epg-gw80bb6a94f835db****

AddressType

string

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

  • Intranet: private IP address. Only private IPv4 addresses (PrivateIpv4Address) within a vSwitch can be added.

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

Valid values:

  • Intranet :

    private IP 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 hash factor HashFactor 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

ZoneMappings

array<object>

The list of zone and vSwitch mappings for the egress proxy IP pool, including the IP addresses in each zone.

array<object>

The zone and vSwitch mapping.

ZoneId

string

The zone ID. You can call the DescribeZones operation to query information about zones in a region.

cn-guangzhou-b

VSwitchId

string

The ID of the vSwitch that corresponds to the zone. Private IPv4 addresses are allocated from the CIDR block of this vSwitch.

vsw-uf64h3tjn2xsd94mb****

IpAddresses

array<object>

The list of IP addresses in the zone.

object

The IP address information.

PublicIpv4Address

string

The public IPv4 address. When the AddressType parameter is set to Internet, this is the public IPv4 address that corresponds to the elastic IP address (EIP).

48.101.2.1

PrivateIpv4Address

string

The private IPv4 address. When the AddressType parameter is set to Intranet, this is a private IPv4 address within the vSwitch CIDR block.

192.168.10.1

EipAllocationId

string

The ID of the elastic IP address (EIP) instance. This parameter is returned when the AddressType parameter is set to Internet.

eip-2zep1zbmxnvoyt1vsj****

Status

string

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

  • Provisioning: The pool is being created.

  • Available: The pool is available.

  • Configuring: The pool is being reconfigured.

Valid values:

  • Configuring :

    Reconfiguring.

  • Available :

    Available.

  • Provisioning :

    Provisioning.

Available

Tags

array<object>

The list of tags.

object

The tag information.

Key

string

The tag key. The key can be up to 128 characters in length, cannot start with aliyun or acs:, and 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

RequestId

string

The request ID.

01A05AB8-D4FC-5B68-B645-5BA513A94F36

Examples

Success response

JSON format

{
  "EgressProxyIpPoolId": "eppool-gw80d96a96ca0b00****",
  "EgressProxyIpPoolName": "testEpg",
  "Description": "testEpg",
  "EgressProxyGatewayId": "epg-gw80bb6a94f835db****",
  "AddressType": "Intranet",
  "Scheduler": "Random",
  "HashFactor": "SourceIP",
  "HashHeaderName": "X-Forwarded-For",
  "ZoneMappings": [
    {
      "ZoneId": "cn-guangzhou-b",
      "VSwitchId": "vsw-uf64h3tjn2xsd94mb****",
      "IpAddresses": [
        {
          "PublicIpv4Address": "48.101.2.1",
          "PrivateIpv4Address": "192.168.10.1",
          "EipAllocationId": "eip-2zep1zbmxnvoyt1vsj****"
        }
      ]
    }
  ],
  "Status": "Available",
  "Tags": [
    {
      "Key": "testKey",
      "Value": "testValue"
    }
  ],
  "CreateTime": "2022-07-02T02:49:05Z",
  "RequestId": "01A05AB8-D4FC-5B68-B645-5BA513A94F36"
}

Error codes

HTTP status code

Error code

Error message

Description

404 ResourceNotFound.EgressProxyIpPool The specified resource of %s is not found. The specified egress proxy IP address pool resource does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.