describe_secondary_interfaces
¶
describe_secondary_interfaces(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
filters: Optional[FilterList] = None,
max_results: Optional[DescribeSecondaryInterfacesMaxResults] = None,
next_token: Optional[String] = None,
secondary_interface_ids: Optional[SecondaryInterfaceIdList] = None,
) -> DescribeSecondaryInterfacesResult
Describes one or more of your secondary interfaces.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
filters(Optional[FilterList], default:None) –The filters.
-
attachment.attachment-id- The ID of the secondary interface attachment. -
attachment.instance-id- The ID of the instance to which the secondary interface is attached. -
attachment.instance-owner-id- The ID of the Amazon Web Services account that owns the instance to which the secondary interface is attached. -
attachment.status- The attachment status (attaching|attached|detaching|detached). -
private-ipv4-addresses.private-ip-address- The private IPv4 address associated with the secondary interface. -
owner-id- The ID of the Amazon Web Services account that owns the secondary interface. -
secondary-interface-arn- The ARN of the secondary interface. -
secondary-interface-id- The ID of the secondary interface. -
secondary-interface-type- The type of secondary interface (secondary). -
secondary-network-id- The ID of the secondary network. -
secondary-network-type- The type of the secondary network (rdma). -
secondary-subnet-id- The ID of the secondary subnet. -
status- The status of the secondary interface (available|in-use). -
tag:- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Ownerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
-
-
max_results(Optional[DescribeSecondaryInterfacesMaxResults], 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. -
next_token(Optional[String], default:None) –The token for the next page of results.
-
secondary_interface_ids(Optional[SecondaryInterfaceIdList], default:None) –The IDs of the secondary interfaces.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe all secondary interfaces This example describes all secondary interfaces in the current Region.
>>> client.describe_secondary_interfaces()
To describe secondary interfaces using filters
This example uses filters to describe secondary interfaces attached to a specific instance.
>>> client.describe_secondary_interfaces(filters=[{'Name': 'attachment.instance-id', 'Values': ['i-1234567890abcdef0']}], max_results=5)
Source code in docs_src/capo_ec2/_services/ec2.py
32423 32424 32425 32426 32427 32428 32429 32430 32431 32432 32433 32434 32435 32436 32437 32438 32439 32440 32441 32442 32443 32444 32445 32446 32447 32448 32449 32450 32451 32452 32453 32454 32455 32456 32457 32458 32459 32460 32461 32462 32463 32464 32465 32466 32467 32468 32469 32470 32471 32472 32473 32474 32475 32476 32477 32478 32479 32480 32481 32482 32483 32484 32485 32486 32487 32488 32489 32490 32491 32492 32493 32494 32495 | |