describe_secondary_interfaces
async
¶
describe_secondary_interfaces(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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.
>>> await client.describe_secondary_interfaces()
To describe secondary interfaces using filters
This example uses filters to describe secondary interfaces attached to a specific instance.
>>> await client.describe_secondary_interfaces(filters=[{'Name': 'attachment.instance-id', 'Values': ['i-1234567890abcdef0']}], max_results=5)
Source code in docs_src/capo_ec2/_services/async_ec2.py
32856 32857 32858 32859 32860 32861 32862 32863 32864 32865 32866 32867 32868 32869 32870 32871 32872 32873 32874 32875 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 32887 32888 32889 32890 32891 32892 32893 32894 32895 32896 32897 32898 32899 32900 32901 32902 32903 32904 32905 32906 32907 32908 32909 32910 32911 32912 32913 32914 32915 32916 32917 32918 32919 32920 32921 32922 32923 32924 32925 32926 32927 32928 32929 | |