All Products
Search
Document Center

Virtual Private Cloud:ModifyBgpPeerAttribute

Last Updated:Jul 11, 2024

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.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the BGP group to which the BGP peer that you want to modify belongs.

You can call the DescribeRegions operation to query the most recent region list.

cn-shanghai
BgpPeerIdstringYes

The ID of the BGP peer that you want to modify.

bgp-m5eoyp2mwegk8ce9v****
BgpGroupIdstringNo

The ID of the BGP group to which the BGP peer that you want to modify belongs.

bgpg-m5eo12jxuw2hc0uqq****
PeerIpAddressstringNo

The IP address of the BGP peer that you want to modify.

116.62.XX.XX
EnableBfdbooleanNo

Specifies whether to enable the Bidirectional Forwarding Detection (BFD) feature. Valid values:

  • true
  • false (default)
false
ClientTokenstringNo

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 and cannot exceed 64 characters in length.

Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
123e4567-e89b-12d3-a456-426655440000
BfdMultiHopintegerNo

The BFD hop count. Valid values: 1 to 255.

This parameter is required only if you enable BFD. The parameter specifies the maximum number of network devices that a packet can traverse from the source to the destination. Set a value based on your network topology.

3

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D4B7649A-61BB-4C64-A586-1DFF1EDA6A42

Examples

Sample success responses

JSONformat

{
  "RequestId": "D4B7649A-61BB-4C64-A586-1DFF1EDA6A42"
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParam.IpAddressThe specified IpAddress is illegal.The specified IpAddress is illegal
400InvalidAccessDeviceId.NotFoundThere is no Access_Device_Id in our records-
400QuotaExceeded.BfdSessionYour Bfd Session number reaches the upper limit.-
400QuotaExceeded.BfdSessionThe Bfd Session on device reaches the upper limit.-
400MissingParam.BgpPeerIdThe parameter BgpPeerId is mandatory.-
400InvalidBgpPeer.NotFoundThe specified BgpPeerId does not exit in our records.-
400InvalidRegionId.NotFoundThe specified RegionId does not exist in our records.The specified region ID does not exist.
400IncorrectStatus.BgpPeerInvalid BgpPeer status cannot operate.The status of the BGP peer does not support this operation.
400MissingParam.EnableBfdThe parameter EnableBfd is missing.-
400IllegalParam.BfdMultiHopBfdMultiHop is illegal.-
400OperationFailed.PconnTrafficNotEnableThe operation is failed because of PconnTrafficNotEnable.Billing for outbound data transfer is disabled.
404InvalidBgpPeerId.NotFoundThe specified BgpPeerId does not exit in our records.-
404IncorretStatus.BgpPeerThe specified BgpPeer status is not stable, can not operate.-
500Internal.ErrorThe request processing has failed due to some unknown error, exception or failure.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-04API Description Update. The Error code has changedView Change Details