oci_identity_tag_namespace

This resource provides the Tag Namespace resource in Oracle Cloud Infrastructure Identity service.

Creates a new tag namespace in the specified compartment.

You must specify the compartment ID in the request object (remember that the tenancy is simply the root compartment).

You must also specify a name for the namespace, which must be unique across all namespaces in your tenancy and cannot be changed. The name can contain any ASCII character except the space (_) or period (.). Names are case insensitive. That means, for example, "myNamespace" and "mynamespace" are not allowed in the same tenancy. Once you created a namespace, you cannot change the name. If you specify a name that's already in use in the tenancy, a 409 error is returned.

You must also specify a description for the namespace. It does not have to be unique, and you can change it with UpdateTagNamespace.

Example Usage

resource "oci_identity_tag_namespace" "test_tag_namespace" {
    #Required
    compartment_id = var.compartment_id
    description = var.tag_namespace_description
    name = var.tag_namespace_name

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    freeform_tags = {"Department"= "Finance"}
    is_retired = false
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Tag Namespace * update - (Defaults to 20 minutes), when updating the Tag Namespace * delete - (Defaults to 20 minutes), when destroying the Tag Namespace

Import

TagNamespaces can be imported using the id, e.g.

$ terraform import oci_identity_tag_namespace.test_tag_namespace "id"