GetEgressProxyConfigurationAttribute

Updated at:
Copy as MD

Queries the details of an egress proxy configuration.

Operation description

GetEgressProxyConfigurationAttribute is a synchronous API operation. After you call this operation, it returns the details of the specified egress proxy configuration in real time. You can determine the current status of the egress proxy configuration based on the returned Status parameter. For example, Provisioning indicates that the configuration is being created, and Available indicates that the configuration is created and available.

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

get

*EgressProxyConfiguration

acs:epg:{#regionId}:{#accountId}:egressproxyconfiguration/{#EgressProxyConfigurationId}

None None

Request parameters

Parameter

Type

Required

Description

Example

EgressProxyConfigurationId

string

Yes

The ID of the egress proxy configuration.

epc-hn302f6a9a284c4f****

Response elements

Element

Type

Description

Example

object

EgressProxyConfigurationId

string

The ID of the egress proxy configuration.

epc-uf609a6a8fdf9f4d****

EgressProxyConfigurationName

string

The name of the egress proxy configuration. 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 configuration. The description must be 2 to 256 characters in length and can contain Chinese characters, letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).

testEpg

DefaultRulePhaseActions

object

The default actions executed in each effective phase (PreDns, PreRequest, and PostResponse) when traffic does not match any rules.

PreDns

string

The default action executed in the PreDns phase (before DNS resolution) when traffic does not match any rules. Valid values:

  • Allow: Allows the traffic. This is the default value.

  • Deny: Denies the traffic.

Valid values:

  • Deny :

    Denies the traffic.

  • Allow :

    Allows the traffic.

Allow

PreRequest

string

The default action executed in the PreRequest phase (before request forwarding) when traffic does not match any rules. Valid values:

  • Allow: Allows the traffic. This is the default value.

  • Deny: Denies the traffic.

Valid values:

  • Deny :

    Denies the traffic.

  • Allow :

    Allows the traffic.

Allow

PostResponse

string

The default action executed in the PostResponse phase (after the response is returned) when traffic does not match any rules. This phase only supports the Allow value, which allows the traffic. This is the default value.

Valid values:

  • Deny :

    Denies the traffic.

  • Allow :

    Allows the traffic.

Allow

RuleGroups

array<object>

The list of egress rule group references associated with the egress proxy configuration.

object

The rule group information.

EgressProxyRuleGroupId

string

The ID of the egress rule group.

eprg-uf60966a9633667c****

Priority

integer

The priority of the egress rule group in the egress proxy configuration. Valid values: 1 to 1000. A smaller value indicates a higher priority.

1

Status

string

The status of the egress proxy configuration. Valid values:

  • Provisioning: The configuration is being created.

  • Available: The configuration is available.

  • Configuring: The configuration is being modified.

Valid values:

  • Configuring :

    The configuration is being modified.

  • Available :

    The configuration is available.

  • Provisioning :

    The configuration is being created.

Available

ResourceGroupId

string

The ID of the resource group.

rg-aekzorljcazp****

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 configuration was created. The time is displayed in UTC in the yyyy-MM-ddTHH:mm:ssZ format.

2026-02-02T02:20:24Z

RequestId

string

The ID of the request.

C79118A9-CA6D-5359-B53E-111BE8A03DCF

Examples

Success response

JSON format

{
  "EgressProxyConfigurationId": "epc-uf609a6a8fdf9f4d****",
  "EgressProxyConfigurationName": "testEpg",
  "Description": "testEpg",
  "DefaultRulePhaseActions": {
    "PreDns": "Allow",
    "PreRequest": "Allow",
    "PostResponse": "Allow"
  },
  "RuleGroups": [
    {
      "EgressProxyRuleGroupId": "eprg-uf60966a9633667c****",
      "Priority": 1
    }
  ],
  "Status": "Available",
  "ResourceGroupId": "rg-aekzorljcazp****",
  "Tags": [
    {
      "Key": "testKey",
      "Value": "testValue"
    }
  ],
  "CreateTime": "2026-02-02T02:20:24Z",
  "RequestId": "C79118A9-CA6D-5359-B53E-111BE8A03DCF"
}

Error codes

HTTP status code

Error code

Error message

Description

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

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.