GetEgressProxyGatewayAttribute

Updated at:
Copy as MD

Queries the details of an egress proxy gateway instance.

Operation description

GetEgressProxyGatewayAttribute is a synchronous API operation that returns the current attributes of an egress proxy gateway in real time after the call.

You can determine the current status of the egress proxy gateway based on the returned Status. For example, Provisioning indicates that the gateway is being created, Active indicates that the gateway is running, Configuring indicates that the gateway is being reconfigured, and Inactive indicates that the gateway is stopped.

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

get

*EgressProxyGateway

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

None None

Request syntax

POST / HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

EgressProxyGatewayId

string

Yes

The ID of the egress proxy gateway instance.

epg-gw80bb6a94f835db****

Response elements

Element

Type

Description

Example

object

EgressProxyGatewayId

string

The ID of the egress proxy gateway instance.

epg-gw80bb6a94f835db****

EgressProxyGatewayName

string

The name of the egress proxy gateway. 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 gateway instance. The description must be 2 to 256 characters in length, and can contain Chinese and English characters, digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-).

testEpg

DnsName

string

The DNS domain name.

epg-gw80bb6a94f835****.cn-shanghai.epg.aliyuncs.com

VpcId

string

The ID of the virtual private cloud (VPC).

vpc-n4appznmjjr362yd3****

ZoneMappings

array<object>

The list of zone and vSwitch mappings. If the current region supports two or more zones, at least two zones must be returned.

object

The mapping between a zone and a vSwitch.

ZoneId

string

The zone ID.

cn-shanghai-b

VSwitchId

string

The ID of the vSwitch that corresponds to the zone.

vsw-f8zvrktbjs9hh3xqz****

Status

string

The status of the zone. Valid values:

  • Provisioning: The zone is being created.

  • Available: The zone is available.

  • Configuring: The zone is being reconfigured.

Valid values:

  • Configuring :

    Being reconfigured.

  • Available :

    Available.

  • Provisioning :

    Being created.

Available

EgressProxyConfigurationId

string

The ID of the associated egress proxy configuration.

epc-uf609a6a8fdf9f4d****

ListenerProperties

array<object>

The list of listener properties.

object

The listener properties.

Port

integer

The listener port. Valid values: 1 to 65535.

8080

Protocol

string

The listener protocol. Valid values:

  • HTTP

  • HTTPS

Valid values:

  • HTTPS :

    HTTPS

  • HTTP :

    HTTP

HTTP

TlsInterceptProperties

object

The TLS interception properties.

TlsInterceptMode

string

The TLS Block Mode. Valid values:

  • enable: Enables the TLS Block Mode.

  • disable: Disables the TLS Block Mode.

Valid values:

  • enable :

    enable

  • disable :

    disable

enable

PrivateCaCertificateId

string

The ID of the private CA certificate.

1f01a6f9-a0e7-64e5-9d3c-29c056bf****

DefaultEgressProxyIpPoolId

string

The ID of the default egress IP pool.

eppool-gw80d96a96ca0b00****

Status

string

The status of the egress proxy gateway instance. Valid values:

  • Provisioning: The instance is being created.

  • Active: The instance is running.

  • Configuring: The instance configuration is being changed.

  • Inactive: The instance is stopped.

Valid values:

  • Active :

    Running.

  • Configuring :

    Being reconfigured.

  • Inactive :

    Stopped.

  • Provisioning :

    Being created.

Active

ResourceGroupId

string

The ID of the resource group.

rg-aek2zye42m****

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. It 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 gateway was created. The time is displayed in UTC and follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format.

2022-07-02T02:49:05Z

RequestId

string

The request ID.

01A05AB7-6C14-5A12-94E7-F20F9F69AE3D

Examples

Success response

JSON format

{
  "EgressProxyGatewayId": "epg-gw80bb6a94f835db****",
  "EgressProxyGatewayName": "testEpg",
  "Description": "testEpg",
  "DnsName": "epg-gw80bb6a94f835****.cn-shanghai.epg.aliyuncs.com",
  "VpcId": "vpc-n4appznmjjr362yd3****",
  "ZoneMappings": [
    {
      "ZoneId": "cn-shanghai-b",
      "VSwitchId": "vsw-f8zvrktbjs9hh3xqz****",
      "Status": "Available"
    }
  ],
  "EgressProxyConfigurationId": "epc-uf609a6a8fdf9f4d****",
  "ListenerProperties": [
    {
      "Port": 8080,
      "Protocol": "HTTP"
    }
  ],
  "TlsInterceptProperties": {
    "TlsInterceptMode": "enable",
    "PrivateCaCertificateId": "1f01a6f9-a0e7-64e5-9d3c-29c056bf****"
  },
  "DefaultEgressProxyIpPoolId": "eppool-gw80d96a96ca0b00****",
  "Status": "Active",
  "ResourceGroupId": "rg-aek2zye42m****",
  "Tags": [
    {
      "Key": "testKey",
      "Value": "testValue"
    }
  ],
  "CreateTime": "2022-07-02T02:49:05Z",
  "RequestId": "01A05AB7-6C14-5A12-94E7-F20F9F69AE3D"
}

Error codes

HTTP status code

Error code

Error message

Description

404 ResourceNotFound.EgressProxyGateway The specified resource of %s is not found. The specified egress proxy gateway resource does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.