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_createdfrom oci_file_storage_mount_target;
select display_name, id, lifecycle_state as state, availability_domain, time_createdfrom oci_file_storage_mount_target;
List mount targets which are not active
select display_name, id, lifecycle_state as statefrom oci_file_storage_mount_targetwhere lifecycle_state <> 'ACTIVE';
select display_name, id, lifecycle_state as statefrom oci_file_storage_mount_targetwhere lifecycle_state <> 'ACTIVE';
Query examples
Schema for oci_file_storage_mount_target
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
availability_domain | text | = | The availability domain the mount target is in. |
compartment_id | text | = | The OCID of the compartment in Tenant in which the resource is located. |
defined_tags | jsonb | Defined 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_name | text | = | A user-friendly name of the Mount Target. |
export_set_id | text | = | The OCID of the associated export set. |
freeform_tags | jsonb | Free-form tags for resource. This tags can be applied by any user with permissions on the resource. | |
id | text | = | The OCID of the Mount Target. |
lifecycle_details | text | Additional information about the current 'lifecycleState'. | |
lifecycle_state | text | = | The current state of the Mount Target. |
nsg_ids | jsonb | A list of Network Security Group OCIDs associated with this mount target. | |
private_ip_ids | jsonb | The OCIDs of the private IP addresses associated with this mount target. | |
region | text | The OCI region in which the resource is located. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
subnet_id | text | The OCIDs of the subnet the mount target is in. | |
tags | jsonb | A map of tags for the resource. | |
tenant_id | text | =, !=, ~~, ~~*, !~~, !~~* | The OCID of the Tenant in which the resource is located. |
tenant_name | text | The name of the Tenant in which the resource is located. | |
time_created | timestamp with time zone | The date and time the Mount Target was created. | |
title | text | Title 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