UpdateEgressProxyConfigurationAttribute

Updated at:
Copy as MD

Updates the attributes of an egress proxy configuration.

Operation description

When you call this operation to update an egress proxy configuration, take note of the following:

  • UpdateEgressProxyConfigurationAttribute is an asynchronous operation. After the request is sent, the system returns a response, but the configuration attributes are not yet updated. The update task is still running in the background. You can call GetEgressProxyConfigurationAttribute to query the status of the egress proxy configuration:
    • If the egress proxy configuration is in the Configuring state, the configuration is being updated.

    • If the egress proxy configuration is in the Available state, the configuration is updated.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must ensure that it is unique among different requests. The client token can contain only ASCII characters.

Note

Note If you do not specify this parameter, the system automatically uses the RequestId of the API request as the client token. The RequestId of each API request is unique.

5A2CFF0E-5718-45B5-9D4D-70B******

DryRun

boolean

No

Specifies whether to perform a dry run of the request. Valid values:

  • true: performs a dry run and does not update the configuration. The system checks whether the required parameters are specified, the request format is valid, and the service limits are met. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.

  • false (default): sends a normal request. If the request passes the check, the system returns an HTTP 2xx status code and performs the operation.

false

EgressProxyConfigurationId

string

Yes

The ID of the egress proxy configuration.

epc-gw80d16a969933e7****

EgressProxyConfigurationName

string

No

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 letters, digits, periods (.), underscores (_), and hyphens (-).

testEpg

Description

string

No

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

No

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

PreDns

string

Yes

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

  • Allow: allows the traffic.

  • Deny: denies the traffic.

Valid values:

  • Deny :

    Denies the traffic.

  • Allow :

    Allows the traffic.

Allow

PreRequest

string

Yes

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

  • Allow: allows the traffic.

  • Deny: denies the traffic.

Valid values:

  • Deny :

    Denies the traffic.

  • Allow :

    Allows the traffic.

Allow

PostResponse

string

Yes

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

Valid values:

  • Deny :

    Denies the traffic.

  • Allow :

    Allows the traffic.

Allow

EgressProxyRuleGroups

array<object>

No

The list of egress proxy rule group references.

object

No

The egress proxy rule group.

EgressProxyRuleGroupId

string

Yes

The ID of the egress proxy rule group.

eprg-gw80bb6a95380edb****

Priority

integer

Yes

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

20

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

019F3A67-2D1B-537B-B08D-B2DEB69E8E8B

Examples

Success response

JSON format

{
  "RequestId": "019F3A67-2D1B-537B-B08D-B2DEB69E8E8B"
}

Error codes

HTTP status code

Error code

Error message

Description

400 MissingParam.UpdateAttribute The param of %s is missing. The required parameter update attribute is missing.
400 IncorrectStatus.EgressProxyConfiguration The status of %s [%s] is incorrect. The status of the egress proxy configuration does not support this operation.
400 DuplicatedParam.EgressProxyRuleGroup The param of %s is duplicated. The egress proxy rule group parameter contains duplicate values.
400 DuplicatedParam.Priority The param of %s is duplicated. The priority parameter contains duplicate values.
400 ResourceAlreadyAssociated.EgressProxyRuleGroup The specified resource of %s is already associated by %s. The specified egress proxy rule group resource is already associated.
400 Conflict.Priority The %s [%s] is conflict. A priority conflict exists.
404 ResourceNotFound.EgressProxyConfiguration The specified resource of %s is not found. The specified egress proxy configuration resource does not exist.
404 ResourceNotFound.EgressProxyRuleGroup The specified resource of %s is not found. The specified egress proxy rule group resource does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.