Modifies the configuration of a BGP peer.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyBgpPeerAttribute

The operation that you want to perform. Set the value to ModifyBgpPeerAttribute.

BgpPeerId String Yes Bgp-awjhxxxxxxxx

The ID of the BGP peer.

RegionId String Yes cn-shanghai

The ID of the region where the BGP group is deployed. You can call the DescribeRegions operation to query region IDs.

BgpGroupId String No bgpg-wz9f62v4fbgxxxxxxxx

The ID of the BGP group.

PeerIpAddress String No 116.62.xx.xx

The IP address of the BGP peer.

ClientToken String No 02fb3da4-130e-11e9-8e44-001xxxxxxxx

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 token can contain only ASCII characters and cannot exceed 64 characters in length.

EnableBfd Boolean No true

Specifies whether to enable the BFD feature. Valid values:

  • true: enables the BFD feature.
  • false: disables the BFD feature.

Response parameters

Parameter Type Example Description
RequestId String D4B7649A-61BB-4C64-A586-1DFF1EDA6A42

The ID of the request.

Examples

Sample requests

https://vpc.aliyuncs.com/?Action=ModifyBgpPeerAttribute
&BgpPeerId=Bgp-awjhxxxxxxxx
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<CreateBgpPeerResponse>
      <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
</CreateBgpPeerResponse>

JSON format

{
    "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}

Error codes

HttpCode Error code Error message Description
400 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The error message returned because the specified region ID is invalid. Check whether the service is available in the specified region.

For a list of error codes, visit the API Error Center.