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_statefrom oci_identity_tag_namespace;
select name, id, is_retired, lifecycle_statefrom 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_statefrom oci_identity_tag_namespacewhere lifecycle_state = 'ACTIVE';
select name, id, is_retired, lifecycle_statefrom oci_identity_tag_namespacewhere 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_statefrom oci_identity_tag_namespacewhere is_retired;
select name, id, is_retired, lifecycle_statefrom oci_identity_tag_namespacewhere is_retired;
Schema for oci_identity_tag_namespace
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
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. | |
description | text | The description you assign to the tag namespace. | |
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 tag namespace. |
is_retired | boolean | Whether the tag namespace is retired. | |
lifecycle_state | text | = | The tagnamespace's current state. |
name | text | The name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
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 | Date and time the tagNamespace 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_identity_tag_namespace