Deletes the specified BGP peer on the specified virtual interface with the specified customer address and ASN¶
Description¶
Deletes the specified BGP peer on the specified virtual interface with the specified customer address and ASN.
You cannot delete the last BGP peer from a virtual interface.
Usage¶
Arguments¶
-
virtualInterfaceIdThe ID of the virtual interface.
-
asnThe autonomous system number (ASN). The valid range is from 1 to 2147483646 for Border Gateway Protocol (BGP) configuration. If you provide a number greater than the maximum, an error is returned. Use
asnLonginstead.- You can use
asnLongorasn, but not both. We recommend usingasnLongas it supports a greater pool of numbers. - If you provide a value in the same API call for both
asnandasnLong, the API will only accept the value forasnLong. - If you enter a 4-byte ASN for the
asnparameter, the API returns an error. - If you are using a 2-byte ASN, the API response will include the 2-byte value for both the
asnandasnLongfields.
- You can use
-
asnLongThe long ASN for the BGP peer to be deleted from a Direct Connect virtual interface. The valid range is from 1 to 4294967294 for BGP configuration.
Note the following limitations when using
asnLong:- You can use
asnLongorasn, but not both. We recommend usingasnLongas it supports a greater pool of numbers. asnLongaccepts any valid ASN value, regardless if it's 2-byte or 4-byte.- When using a 4-byte
asnLong, the API response returns0for the legacyasnattribute since 4-byte ASN values exceed the maximum supported value of 2,147,483,647. - If you are using a 2-byte ASN, the API response will include the 2-byte value for both the
asnandasnLongfields. - If you provide a value in the same API call for both
asnandasnLong, the API will only accept the value forasnLong.
- You can use
-
customerAddressThe IP address assigned to the customer interface.
-
bgpPeerIdThe ID of the BGP peer.
Value¶
A list with the following syntax:
list(
virtualInterface = list(
ownerAccount = "string",
virtualInterfaceId = "string",
location = "string",
connectionId = "string",
virtualInterfaceType = "string",
virtualInterfaceName = "string",
vlan = 123,
asn = 123,
asnLong = 123,
amazonSideAsn = 123,
authKey = "string",
amazonAddress = "string",
customerAddress = "string",
addressFamily = "ipv4"|"ipv6",
virtualInterfaceState = "confirming"|"verifying"|"pending"|"available"|"down"|"testing"|"deleting"|"deleted"|"rejected"|"unknown",
customerRouterConfig = "string",
mtu = 123,
jumboFrameCapable = TRUE|FALSE,
virtualGatewayId = "string",
directConnectGatewayId = "string",
routeFilterPrefixes = list(
list(
cidr = "string"
)
),
bgpPeers = list(
list(
bgpPeerId = "string",
asn = 123,
asnLong = 123,
authKey = "string",
addressFamily = "ipv4"|"ipv6",
amazonAddress = "string",
customerAddress = "string",
bgpPeerState = "verifying"|"pending"|"available"|"deleting"|"deleted",
bgpStatus = "up"|"down"|"unknown",
awsDeviceV2 = "string",
awsLogicalDeviceId = "string"
)
),
region = "string",
awsDeviceV2 = "string",
awsLogicalDeviceId = "string",
tags = list(
list(
key = "string",
value = "string"
)
),
siteLinkEnabled = TRUE|FALSE,
prefixPoolAllocatedCountIpv4 = 123,
prefixPoolAllocatedCountIpv6 = 123,
rateLimit = "string"
)
)