steampipe plugin install oci

Table: oci_file_storage_mount_target - Query OCI File Storage Mount Targets using SQL

Oracle Cloud Infrastructure's File Storage service offers a durable, scalable, secure, enterprise-grade network file system. The service allows you to easily and securely share data across instances and containers. It provides a fully managed NFS file system that you can use with your applications without requiring you to install any file servers or hardware, or configure or manage NFS or SMB protocols.

Table Usage Guide

The oci_file_storage_mount_target table provides insights into Mount Targets within Oracle Cloud Infrastructure's File Storage service. As a system administrator, explore Mount Target-specific details through this table, including export set details, lifecycle state, and associated metadata. Utilize it to uncover information about Mount Targets, such as those with specific export set details, the state of the Mount Target, and for monitoring and managing your file systems.

Examples

Basic info

Explore the status of your file storage mount targets to identify any that are not currently active. This can be useful in troubleshooting, ensuring optimal system performance, and managing resources effectively.

select
display_name,
id,
lifecycle_state as state,
availability_domain,
time_created
from
oci_file_storage_mount_target;
select
display_name,
id,
lifecycle_state as state,
availability_domain,
time_created
from
oci_file_storage_mount_target;

List mount targets which are not active

select
display_name,
id,
lifecycle_state as state
from
oci_file_storage_mount_target
where
lifecycle_state <> 'ACTIVE';
select
display_name,
id,
lifecycle_state as state
from
oci_file_storage_mount_target
where
lifecycle_state <> 'ACTIVE';

Schema for oci_file_storage_mount_target

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
availability_domaintext=The availability domain the mount target is in.
compartment_idtext=The OCID of the compartment in Tenant in which the resource is located.
defined_tagsjsonbDefined tags for resource. Defined tags are set up in your tenancy by an administrator. Only users granted permission to work with the defined tags can apply them to resources.
display_nametext=A user-friendly name of the Mount Target.
export_set_idtext=The OCID of the associated export set.
freeform_tagsjsonbFree-form tags for resource. This tags can be applied by any user with permissions on the resource.
idtext=The OCID of the Mount Target.
lifecycle_detailstextAdditional information about the current 'lifecycleState'.
lifecycle_statetext=The current state of the Mount Target.
nsg_idsjsonbA list of Network Security Group OCIDs associated with this mount target.
private_ip_idsjsonbThe OCIDs of the private IP addresses associated with this mount target.
regiontextThe OCI region in which the resource is located.
subnet_idtextThe OCIDs of the subnet the mount target is in.
tagsjsonbA map of tags for the resource.
tenant_idtextThe OCID of the Tenant in which the resource is located.
tenant_nametextThe name of the Tenant in which the resource is located.
time_createdtimestamp with time zoneThe date and time the Mount Target was created.
titletextTitle of the resource.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- oci

You can pass the configuration to the command with the --config argument:

steampipe_export_oci --config '<your_config>' oci_file_storage_mount_target