alicloud_accountalicloud_action_trailalicloud_cas_certificatealicloud_cms_monitor_hostalicloud_cs_kubernetes_clusteralicloud_cs_kubernetes_cluster_nodealicloud_ecs_auto_provisioning_groupalicloud_ecs_autoscaling_groupalicloud_ecs_diskalicloud_ecs_disk_metric_read_iopsalicloud_ecs_disk_metric_read_iops_dailyalicloud_ecs_disk_metric_read_iops_hourlyalicloud_ecs_disk_metric_write_iopsalicloud_ecs_disk_metric_write_iops_dailyalicloud_ecs_disk_metric_write_iops_hourlyalicloud_ecs_imagealicloud_ecs_instancealicloud_ecs_instance_metric_cpu_utilization_dailyalicloud_ecs_instance_metric_cpu_utilization_hourlyalicloud_ecs_key_pairalicloud_ecs_launch_templatealicloud_ecs_network_interfacealicloud_ecs_regionalicloud_ecs_security_groupalicloud_ecs_snapshotalicloud_ecs_zonealicloud_kms_keyalicloud_kms_secretalicloud_oss_bucketalicloud_ram_access_keyalicloud_ram_credential_reportalicloud_ram_groupalicloud_ram_password_policyalicloud_ram_policyalicloud_ram_rolealicloud_ram_security_preferencealicloud_ram_useralicloud_rds_backupalicloud_rds_databasealicloud_rds_instancealicloud_rds_instance_metric_connectionsalicloud_rds_instance_metric_connections_dailyalicloud_rds_instance_metric_cpu_utilizationalicloud_rds_instance_metric_cpu_utilization_dailyalicloud_rds_instance_metric_cpu_utilization_hourlyalicloud_security_center_field_statisticsalicloud_security_center_versionalicloud_slb_load_balanceralicloud_vpcalicloud_vpc_dhcp_options_setalicloud_vpc_eipalicloud_vpc_flow_logalicloud_vpc_nat_gatewayalicloud_vpc_network_aclalicloud_vpc_route_entryalicloud_vpc_route_tablealicloud_vpc_ssl_vpn_client_certalicloud_vpc_ssl_vpn_serveralicloud_vpc_vpn_connectionalicloud_vpc_vpn_customer_gatewayalicloud_vpc_vpn_gatewayalicloud_vpc_vswitch
Table: alicloud_ecs_network_interface
An elastic network interface (ENI) is a virtual network interface controller (NIC) that can be bound to a VPC-type ECS instance. You can use ENIs to deploy high availability clusters and perform low-cost failover and fine-grained network management.
Examples
Basic ENI info
select network_interface_id, type, description, status, instance_id, private_ip_address, associated_public_ip_address, mac_addressfrom alicloud_ecs_network_interface;
Find all ENIs with private IPs that are in a given subnet (10.66.0.0/16)
select network_interface_id, type, description, private_ip_address, associated_public_ip_address, mac_addressfrom alicloud_ecs_network_interfacewhere private_ip_address << = '10.66.0.0/16';
Count of ENIs by interface type
select type, count(type) as countfrom alicloud_ecs_network_interfacegroup by typeorder by count desc;
Security groups attached to each ENI
select network_interface_id as eni, sgfrom alicloud_ecs_network_interface cross join jsonb_array_elements(security_group_ids) as sgorder by eni;
Find ENIs for a specific instance
select network_interface_id as eni, instance_id, status, type, description, private_ip_address, associated_public_ip_address, mac_addressfrom alicloud_ecs_network_interfacewhere instance_id = 'i-0xi8u2s0ezl5auigem8t'
Query examples
- ecs_network_interfaces_for_ecs_security_group
- ecs_network_interfaces_for_vpc
- ecs_network_interfaces_for_vpc_vswitch
- ecs_security_group_unassociated
- ecs_security_group_unassociated_count
.inspect alicloud_ecs_network_interface
Alicloud ECS Network Interface.
Name | Type | Description |
---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. |
account_id | text | The alicloud Account ID in which the resource is located. |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. |
associated_public_ip_address | inet | The public IP address of the instance. |
associated_public_ip_allocation_id | text | The allocation ID of the EIP. |
attachment | jsonb | Attachments of the ENI |
creation_time | timestamp with time zone | The time when the ENI was created. |
description | text | The description of the ENI. |
instance_id | text | The ID of the instance to which the ENI is bound. |
ipv6_sets | jsonb | The IPv6 addresses assigned to the ENI. |
mac_address | text | The MAC address of the ENI. |
name | text | The name of the ENI. |
network_interface_id | text | An unique identifier for the ENI. |
owner_id | text | The ID of the account that owns the ENI. |
private_ip_address | inet | The private IP address of the ENI. |
private_ip_sets | jsonb | The private IP addresses of the ENI. |
queue_number | bigint | The number of queues supported by the ENI. |
region | text | The Alicloud region in which the resource is located. |
resource_group_id | text | The ID of the resource group to which the ENI belongs. |
security_group_ids | jsonb | The IDs of the security groups to which the ENI belongs. |
service_id | text | The ID of the distributor to which the ENI belongs. |
service_managed | boolean | Indicates whether the user is an Alibaba Cloud service or a distributor. |
status | text | The status of the ENI. |
tags | jsonb | A map of tags for the resource. |
tags_src | jsonb | A list of tags attached with the resource. |
title | text | Title of the resource. |
type | text | The type of the ENI. Valid values: 'Primary' and 'Secondary' |
vpc_id | text | The ID of the VPC to which the ENI belongs. |
vswitch_id | text | The ID of the VSwitch to which the ENI is connected. |
zone_id | text | The zone ID of the ENI. |