UpdateEgressProxyConfigurationAttribute
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
Test
RAM authorization
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:
|
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:
Valid values:
|
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:
Valid values:
|
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:
|
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.