delete_bgp_peer
async
¶
delete_bgp_peer(
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
virtual_interface_id: Optional[VirtualInterfaceId] = None,
asn: Optional[ASN] = None,
asn_long: Optional[LongAsn] = None,
customer_address: Optional[CustomerAddress] = None,
bgp_peer_id: Optional[BGPPeerId] = None,
) -> DeleteBGPPeerResponse
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.
Parameters:
-
virtual_interface_id(Optional[VirtualInterfaceId], default:None) –The ID of the virtual interface.
-
asn(Optional[ASN], default:None) –The 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.
-
-
asn_long(Optional[LongAsn], default:None) –The 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.
-
-
customer_address(Optional[CustomerAddress], default:None) –The IP address assigned to the customer interface.
-
bgp_peer_id(Optional[BGPPeerId], default:None) –The ID of the BGP peer.
Raises:
-
DirectConnectClientException–One or more parameters are not valid.
-
DirectConnectServerException–A server-side error occurred.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 | |