Modifies the configuration of a VPN attachment.
Debugging
Authorization information
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 token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. Note
If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.
| 123e4567-e89b-12d3-a456-42665544**** |
DryRun | boolean | No | Specifies whether to perform a dry run. Valid values:
| false |
TransitRouterAttachmentId | string | Yes | The ID of the VPN attachment. | tr-attach-a6p8voaodog5c0**** |
TransitRouterAttachmentName | string | No | The name of the VPN attachment. The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter. | nametest |
TransitRouterAttachmentDescription | string | No | The new description of the VPN attachment. The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with | desctest |
AutoPublishRouteEnabled | boolean | No | Specifies whether to allow the transit router to automatically advertise routes to the IPsec-VPN attachment. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1AB038F2-96E5-560B-9F6E-734311D466FA"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | The error message returned because the ID of the network instance does not exist. |
400 | IncorrectStatus.TransitRouterAttachmentId | The resource is not in a valid state for the attachment operation. | The error message returned because the operation is not supported when the specified attachment is in an unstable state |
400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
For a list of error codes, visit the Service error codes.