steampipe plugin install oci

Table: oci_identity_tag_namespace - Query OCI Identity Tag Namespaces using SQL

Oracle Cloud Infrastructure (OCI) Identity Tag Namespaces is a resource within OCI that assists in categorizing resources in various ways. It allows users to define their own specific set of tags to be used across all resources, helping in better organization and management. This provides a structured way of sorting and filtering resources, thereby improving the efficiency of resource utilization and management.

Table Usage Guide

The oci_identity_tag_namespace table provides insights into the Tag Namespaces within OCI Identity. As a cloud engineer, explore namespace-specific details through this table, including the name, description, and associated metadata. Utilize it to uncover information about namespaces, such as those that are inactive, the compartment they belong to, and the time they were created.

Examples

Basic info

Explore which elements within your Oracle Cloud Infrastructure are retired or active. This query provides insights into the lifecycle states of various components, helping you manage your resources effectively.

select
name,
id,
is_retired,
lifecycle_state
from
oci_identity_tag_namespace;
select
name,
id,
is_retired,
lifecycle_state
from
oci_identity_tag_namespace;

List active tag namespaces

Determine the areas in which active tag namespaces are present. This is useful for managing and organizing resources within a cloud infrastructure, especially when dealing with a large number of resources.

select
name,
id,
is_retired,
lifecycle_state
from
oci_identity_tag_namespace
where
lifecycle_state = 'ACTIVE';
select
name,
id,
is_retired,
lifecycle_state
from
oci_identity_tag_namespace
where
lifecycle_state = 'ACTIVE';

List retired tag namespaces

Explore which tag namespaces are retired in your Oracle Cloud Infrastructure identity service. This can help maintain an organized and efficient tagging system by identifying and managing outdated tags.

select
name,
id,
is_retired,
lifecycle_state
from
oci_identity_tag_namespace
where
is_retired;
select
name,
id,
is_retired,
lifecycle_state
from
oci_identity_tag_namespace
where
is_retired;

Schema for oci_identity_tag_namespace

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
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.
descriptiontextThe description you assign to the tag namespace.
freeform_tagsjsonbFree-form tags for resource. This tags can be applied by any user with permissions on the resource.
idtext=The OCID of the tag namespace.
is_retiredbooleanWhether the tag namespace is retired.
lifecycle_statetext=The tagnamespace's current state.
nametextThe name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
tagsjsonbA map of tags for the resource.
tenant_idtext=, !=, ~~, ~~*, !~~, !~~*The 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 zoneDate and time the tagNamespace 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_identity_tag_namespace