ernw/openstack
steampipe plugin install ernw/openstack

Table: openstack_port

A port is a connection point for attaching a single device, such as the NIC of a server, to a network. The port also describes the associated network configuration, such as the MAC and IP addresses to be used on that port.

Examples

Basic port info

select
name,
description,
status,
id,
mac_address,
fixed_ips,
project_id,
device_owner,
security_groups,
created_at
from
openstack_port;

Port by ID

select
name,
description,
status,
id,
mac_address,
fixed_ips,
project_id,
device_owner,
security_groups,
created_at
from
openstack_port
where
id = '07df44e6-b45b-49e8-b701-303a6f33615d';

Ports created in the last 30 days

select
name,
description,
id,
mac_address,
fixed_ips,
project_id,
device_owner,
security_groups,
created_at
from
openstack_port
where
date_part(
'day',
current_date :: timestamp - created_at :: timestamp
) <= 30;

All active ports

select
name,
description,
id,
mac_address,
fixed_ips,
project_id,
device_owner,
security_groups,
created_at
from
openstack_port
where
status = 'ACTIVE';

Schema for openstack_port

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
admin_state_upbooleanAdministrative state of port. If false (down), port does not forward packets.
allowed_address_pairsjsonbIdentifies the list of IP addresses the port will recognize/accept.
created_attimestamp with time zoneCreatedAt contains an ISO-8601 timestamp of when the port was created.
descriptiontextDescribes the port.
device_idtextIdentifies the device (e.g., virtual server) using this port.
device_ownertextIdentifies the entity (e.g.: dhcp agent) using this port.
fixed_ipsjsonbSpecifies IP addresses for the port thus associating the port itself with the subnets where the IP addresses are picked from.
idtext=UUID for the port.
mac_addresstextMac address to use on this port.
nametextHuman-readable name for the port. Might not be unique.
network_idtextNetwork that this port is associated with.
project_idtextProjectID is the project owner of the port.
revision_numberbigintRevisionNumber optionally set via extensions/standard-attr-revisions.
security_groupsjsonbSpecifies the IDs of any security groups associated with a port.
statustextIndicates whether network is currently operational. Possible values include `ACTIVE', `DOWN', `BUILD', or `ERROR'. Plug-ins might define additional values.
tagstextTags optionally set via extensions/attributestags.
tenant_idtextTenantID is the project owner of the port.
updated_attimestamp with time zoneUpdatedAt contains an ISO-8601 timestamp of when the state of the port last changed.