describe_virtual_interfaces
¶
describe_virtual_interfaces(
*,
config_overrides: Optional[DirectConnectClientConfig] = None,
connection_id: Optional[ConnectionId] = None,
virtual_interface_id: Optional[VirtualInterfaceId] = None,
max_results: Optional[MaxResultSetSize] = None,
next_token: Optional[PaginationToken] = None,
) -> VirtualInterfaces
Displays all virtual interfaces for an Amazon Web Services account. Virtual interfaces deleted fewer than 15 minutes before you make the request are also returned. If you specify a connection ID, only the virtual interfaces associated with the connection are returned. If you specify a virtual interface ID, then only a single virtual interface is returned.
A virtual interface (VLAN) transmits the traffic between the Direct Connect location and the customer network.
-
If you're using an
asn, the response includes the ASN value in both theasnandasnLongfields. -
If you're using
asnLong, the response returns a value of0(zero) for theasnattribute because it exceeds the highest ASN value of 2,147,483,647 that it can support
Parameters:
-
connection_id(Optional[ConnectionId], default:None) –The ID of the connection.
-
virtual_interface_id(Optional[VirtualInterfaceId], default:None) –The ID of the virtual interface.
-
max_results(Optional[MaxResultSetSize], default:None) –The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue.If
MaxResultsis given a value larger than 100, only 100 results are returned. -
next_token(Optional[PaginationToken], default:None) –The token for the next page of results.
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/direct_connect.py
3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 | |