1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Identity
  5. TagNamespace
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Identity.TagNamespace

Explore with Pulumi AI

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

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testTagNamespace = new oci.identity.TagNamespace("test_tag_namespace", {
    compartmentId: compartmentId,
    description: tagNamespaceDescription,
    name: tagNamespaceName,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    freeformTags: {
        Department: "Finance",
    },
    isRetired: false,
});
Copy
import pulumi
import pulumi_oci as oci

test_tag_namespace = oci.identity.TagNamespace("test_tag_namespace",
    compartment_id=compartment_id,
    description=tag_namespace_description,
    name=tag_namespace_name,
    defined_tags={
        "Operations.CostCenter": "42",
    },
    freeform_tags={
        "Department": "Finance",
    },
    is_retired=False)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/identity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := identity.NewTagNamespace(ctx, "test_tag_namespace", &identity.TagNamespaceArgs{
			CompartmentId: pulumi.Any(compartmentId),
			Description:   pulumi.Any(tagNamespaceDescription),
			Name:          pulumi.Any(tagNamespaceName),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			IsRetired: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testTagNamespace = new Oci.Identity.TagNamespace("test_tag_namespace", new()
    {
        CompartmentId = compartmentId,
        Description = tagNamespaceDescription,
        Name = tagNamespaceName,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        IsRetired = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Identity.TagNamespace;
import com.pulumi.oci.Identity.TagNamespaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testTagNamespace = new TagNamespace("testTagNamespace", TagNamespaceArgs.builder()
            .compartmentId(compartmentId)
            .description(tagNamespaceDescription)
            .name(tagNamespaceName)
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .freeformTags(Map.of("Department", "Finance"))
            .isRetired(false)
            .build());

    }
}
Copy
resources:
  testTagNamespace:
    type: oci:Identity:TagNamespace
    name: test_tag_namespace
    properties:
      compartmentId: ${compartmentId}
      description: ${tagNamespaceDescription}
      name: ${tagNamespaceName}
      definedTags:
        Operations.CostCenter: '42'
      freeformTags:
        Department: Finance
      isRetired: false
Copy

Create TagNamespace Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new TagNamespace(name: string, args: TagNamespaceArgs, opts?: CustomResourceOptions);
@overload
def TagNamespace(resource_name: str,
                 args: TagNamespaceArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def TagNamespace(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 compartment_id: Optional[str] = None,
                 description: Optional[str] = None,
                 defined_tags: Optional[Mapping[str, str]] = None,
                 freeform_tags: Optional[Mapping[str, str]] = None,
                 is_retired: Optional[bool] = None,
                 name: Optional[str] = None)
func NewTagNamespace(ctx *Context, name string, args TagNamespaceArgs, opts ...ResourceOption) (*TagNamespace, error)
public TagNamespace(string name, TagNamespaceArgs args, CustomResourceOptions? opts = null)
public TagNamespace(String name, TagNamespaceArgs args)
public TagNamespace(String name, TagNamespaceArgs args, CustomResourceOptions options)
type: oci:Identity:TagNamespace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TagNamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TagNamespaceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TagNamespaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TagNamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TagNamespaceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var tagNamespaceResource = new Oci.Identity.TagNamespace("tagNamespaceResource", new()
{
    CompartmentId = "string",
    Description = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    FreeformTags = 
    {
        { "string", "string" },
    },
    IsRetired = false,
    Name = "string",
});
Copy
example, err := Identity.NewTagNamespace(ctx, "tagNamespaceResource", &Identity.TagNamespaceArgs{
	CompartmentId: pulumi.String("string"),
	Description:   pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	IsRetired: pulumi.Bool(false),
	Name:      pulumi.String("string"),
})
Copy
var tagNamespaceResource = new TagNamespace("tagNamespaceResource", TagNamespaceArgs.builder()
    .compartmentId("string")
    .description("string")
    .definedTags(Map.of("string", "string"))
    .freeformTags(Map.of("string", "string"))
    .isRetired(false)
    .name("string")
    .build());
Copy
tag_namespace_resource = oci.identity.TagNamespace("tagNamespaceResource",
    compartment_id="string",
    description="string",
    defined_tags={
        "string": "string",
    },
    freeform_tags={
        "string": "string",
    },
    is_retired=False,
    name="string")
Copy
const tagNamespaceResource = new oci.identity.TagNamespace("tagNamespaceResource", {
    compartmentId: "string",
    description: "string",
    definedTags: {
        string: "string",
    },
    freeformTags: {
        string: "string",
    },
    isRetired: false,
    name: "string",
});
Copy
type: oci:Identity:TagNamespace
properties:
    compartmentId: string
    definedTags:
        string: string
    description: string
    freeformTags:
        string: string
    isRetired: false
    name: string
Copy

TagNamespace Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The TagNamespace resource accepts the following input properties:

CompartmentId This property is required. string
(Updatable) The OCID of the tenancy containing the tag namespace.
Description This property is required. string
(Updatable) The description you assign to the tag namespace during creation.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
FreeformTags Dictionary<string, string>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
IsRetired bool

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

Name Changes to this property will trigger replacement. string
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
CompartmentId This property is required. string
(Updatable) The OCID of the tenancy containing the tag namespace.
Description This property is required. string
(Updatable) The description you assign to the tag namespace during creation.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
FreeformTags map[string]string
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
IsRetired bool

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

Name Changes to this property will trigger replacement. string
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
compartmentId This property is required. String
(Updatable) The OCID of the tenancy containing the tag namespace.
description This property is required. String
(Updatable) The description you assign to the tag namespace during creation.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
freeformTags Map<String,String>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
isRetired Boolean

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

name Changes to this property will trigger replacement. String
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
compartmentId This property is required. string
(Updatable) The OCID of the tenancy containing the tag namespace.
description This property is required. string
(Updatable) The description you assign to the tag namespace during creation.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
freeformTags {[key: string]: string}
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
isRetired boolean

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

name Changes to this property will trigger replacement. string
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
compartment_id This property is required. str
(Updatable) The OCID of the tenancy containing the tag namespace.
description This property is required. str
(Updatable) The description you assign to the tag namespace during creation.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
freeform_tags Mapping[str, str]
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
is_retired bool

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

name Changes to this property will trigger replacement. str
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
compartmentId This property is required. String
(Updatable) The OCID of the tenancy containing the tag namespace.
description This property is required. String
(Updatable) The description you assign to the tag namespace during creation.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
freeformTags Map<String>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
isRetired Boolean

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

name Changes to this property will trigger replacement. String
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.

Outputs

All input properties are implicitly available as output properties. Additionally, the TagNamespace resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
State string
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
TimeCreated string
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
Id string
The provider-assigned unique ID for this managed resource.
State string
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
TimeCreated string
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
id String
The provider-assigned unique ID for this managed resource.
state String
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
timeCreated String
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
id string
The provider-assigned unique ID for this managed resource.
state string
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
timeCreated string
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
id str
The provider-assigned unique ID for this managed resource.
state str
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
time_created str
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
id String
The provider-assigned unique ID for this managed resource.
state String
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
timeCreated String
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

Look up Existing TagNamespace Resource

Get an existing TagNamespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: TagNamespaceState, opts?: CustomResourceOptions): TagNamespace
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        is_retired: Optional[bool] = None,
        name: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None) -> TagNamespace
func GetTagNamespace(ctx *Context, name string, id IDInput, state *TagNamespaceState, opts ...ResourceOption) (*TagNamespace, error)
public static TagNamespace Get(string name, Input<string> id, TagNamespaceState? state, CustomResourceOptions? opts = null)
public static TagNamespace get(String name, Output<String> id, TagNamespaceState state, CustomResourceOptions options)
resources:  _:    type: oci:Identity:TagNamespace    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CompartmentId string
(Updatable) The OCID of the tenancy containing the tag namespace.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description string
(Updatable) The description you assign to the tag namespace during creation.
FreeformTags Dictionary<string, string>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
IsRetired bool

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

Name Changes to this property will trigger replacement. string
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
State string
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
TimeCreated string
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
CompartmentId string
(Updatable) The OCID of the tenancy containing the tag namespace.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description string
(Updatable) The description you assign to the tag namespace during creation.
FreeformTags map[string]string
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
IsRetired bool

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

Name Changes to this property will trigger replacement. string
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
State string
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
TimeCreated string
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartmentId String
(Updatable) The OCID of the tenancy containing the tag namespace.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description String
(Updatable) The description you assign to the tag namespace during creation.
freeformTags Map<String,String>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
isRetired Boolean

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

name Changes to this property will trigger replacement. String
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
state String
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
timeCreated String
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartmentId string
(Updatable) The OCID of the tenancy containing the tag namespace.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description string
(Updatable) The description you assign to the tag namespace during creation.
freeformTags {[key: string]: string}
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
isRetired boolean

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

name Changes to this property will trigger replacement. string
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
state string
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
timeCreated string
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartment_id str
(Updatable) The OCID of the tenancy containing the tag namespace.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description str
(Updatable) The description you assign to the tag namespace during creation.
freeform_tags Mapping[str, str]
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
is_retired bool

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

name Changes to this property will trigger replacement. str
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
state str
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
time_created str
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartmentId String
(Updatable) The OCID of the tenancy containing the tag namespace.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description String
(Updatable) The description you assign to the tag namespace during creation.
freeformTags Map<String>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
isRetired Boolean

(Updatable) Whether the tag namespace is retired. For more information, see Retiring Key Definitions and Namespace Definitions.

** 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

name Changes to this property will trigger replacement. String
The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed.
state String
The tagnamespace's current state. After creating a tagnamespace, make sure its lifecycleState is ACTIVE before using it. After retiring a tagnamespace, make sure its lifecycleState is INACTIVE before using it.
timeCreated String
Date and time the tag namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

Import

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

$ pulumi import oci:Identity/tagNamespace:TagNamespace test_tag_namespace "id"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.