1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Identity
  5. ImportStandardTagsManagement
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

oci.Identity.ImportStandardTagsManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

    This resource provides the Import Standard Tags Management resource in Oracle Cloud Infrastructure Identity service.

    OCI will release Tag Namespaces that our customers can import. These Tag Namespaces will provide Tags for our customers and Partners to provide consistency and enable data reporting.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testImportStandardTagsManagement = new oci.identity.ImportStandardTagsManagement("test_import_standard_tags_management", {
        compartmentId: compartmentId,
        standardTagNamespaceName: testTagNamespace.name,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_import_standard_tags_management = oci.identity.ImportStandardTagsManagement("test_import_standard_tags_management",
        compartment_id=compartment_id,
        standard_tag_namespace_name=test_tag_namespace["name"])
    
    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.NewImportStandardTagsManagement(ctx, "test_import_standard_tags_management", &Identity.ImportStandardTagsManagementArgs{
    			CompartmentId:            pulumi.Any(compartmentId),
    			StandardTagNamespaceName: pulumi.Any(testTagNamespace.Name),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testImportStandardTagsManagement = new Oci.Identity.ImportStandardTagsManagement("test_import_standard_tags_management", new()
        {
            CompartmentId = compartmentId,
            StandardTagNamespaceName = testTagNamespace.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Identity.ImportStandardTagsManagement;
    import com.pulumi.oci.Identity.ImportStandardTagsManagementArgs;
    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 testImportStandardTagsManagement = new ImportStandardTagsManagement("testImportStandardTagsManagement", ImportStandardTagsManagementArgs.builder()
                .compartmentId(compartmentId)
                .standardTagNamespaceName(testTagNamespace.name())
                .build());
    
        }
    }
    
    resources:
      testImportStandardTagsManagement:
        type: oci:Identity:ImportStandardTagsManagement
        name: test_import_standard_tags_management
        properties:
          compartmentId: ${compartmentId}
          standardTagNamespaceName: ${testTagNamespace.name}
    

    Create ImportStandardTagsManagement Resource

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

    Constructor syntax

    new ImportStandardTagsManagement(name: string, args: ImportStandardTagsManagementArgs, opts?: CustomResourceOptions);
    @overload
    def ImportStandardTagsManagement(resource_name: str,
                                     args: ImportStandardTagsManagementArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ImportStandardTagsManagement(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     compartment_id: Optional[str] = None,
                                     standard_tag_namespace_name: Optional[str] = None)
    func NewImportStandardTagsManagement(ctx *Context, name string, args ImportStandardTagsManagementArgs, opts ...ResourceOption) (*ImportStandardTagsManagement, error)
    public ImportStandardTagsManagement(string name, ImportStandardTagsManagementArgs args, CustomResourceOptions? opts = null)
    public ImportStandardTagsManagement(String name, ImportStandardTagsManagementArgs args)
    public ImportStandardTagsManagement(String name, ImportStandardTagsManagementArgs args, CustomResourceOptions options)
    
    type: oci:Identity:ImportStandardTagsManagement
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ImportStandardTagsManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ImportStandardTagsManagementArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ImportStandardTagsManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImportStandardTagsManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImportStandardTagsManagementArgs
    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 importStandardTagsManagementResource = new Oci.Identity.ImportStandardTagsManagement("importStandardTagsManagementResource", new()
    {
        CompartmentId = "string",
        StandardTagNamespaceName = "string",
    });
    
    example, err := Identity.NewImportStandardTagsManagement(ctx, "importStandardTagsManagementResource", &Identity.ImportStandardTagsManagementArgs{
    	CompartmentId:            pulumi.String("string"),
    	StandardTagNamespaceName: pulumi.String("string"),
    })
    
    var importStandardTagsManagementResource = new ImportStandardTagsManagement("importStandardTagsManagementResource", ImportStandardTagsManagementArgs.builder()
        .compartmentId("string")
        .standardTagNamespaceName("string")
        .build());
    
    import_standard_tags_management_resource = oci.identity.ImportStandardTagsManagement("importStandardTagsManagementResource",
        compartment_id="string",
        standard_tag_namespace_name="string")
    
    const importStandardTagsManagementResource = new oci.identity.ImportStandardTagsManagement("importStandardTagsManagementResource", {
        compartmentId: "string",
        standardTagNamespaceName: "string",
    });
    
    type: oci:Identity:ImportStandardTagsManagement
    properties:
        compartmentId: string
        standardTagNamespaceName: string
    

    ImportStandardTagsManagement Resource Properties

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

    Inputs

    The ImportStandardTagsManagement resource accepts the following input properties:

    CompartmentId string
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    StandardTagNamespaceName string

    The name of standard tag namespace that will be imported in bulk

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

    CompartmentId string
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    StandardTagNamespaceName string

    The name of standard tag namespace that will be imported in bulk

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

    compartmentId String
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    standardTagNamespaceName String

    The name of standard tag namespace that will be imported in bulk

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

    compartmentId string
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    standardTagNamespaceName string

    The name of standard tag namespace that will be imported in bulk

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

    compartment_id str
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    standard_tag_namespace_name str

    The name of standard tag namespace that will be imported in bulk

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

    compartmentId String
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    standardTagNamespaceName String

    The name of standard tag namespace that will be imported in bulk

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

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    WorkRequestId string
    Id string
    The provider-assigned unique ID for this managed resource.
    WorkRequestId string
    id String
    The provider-assigned unique ID for this managed resource.
    workRequestId String
    id string
    The provider-assigned unique ID for this managed resource.
    workRequestId string
    id str
    The provider-assigned unique ID for this managed resource.
    work_request_id str
    id String
    The provider-assigned unique ID for this managed resource.
    workRequestId String

    Look up Existing ImportStandardTagsManagement Resource

    Get an existing ImportStandardTagsManagement 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?: ImportStandardTagsManagementState, opts?: CustomResourceOptions): ImportStandardTagsManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            standard_tag_namespace_name: Optional[str] = None,
            work_request_id: Optional[str] = None) -> ImportStandardTagsManagement
    func GetImportStandardTagsManagement(ctx *Context, name string, id IDInput, state *ImportStandardTagsManagementState, opts ...ResourceOption) (*ImportStandardTagsManagement, error)
    public static ImportStandardTagsManagement Get(string name, Input<string> id, ImportStandardTagsManagementState? state, CustomResourceOptions? opts = null)
    public static ImportStandardTagsManagement get(String name, Output<String> id, ImportStandardTagsManagementState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    StandardTagNamespaceName string

    The name of standard tag namespace that will be imported in bulk

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

    WorkRequestId string
    CompartmentId string
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    StandardTagNamespaceName string

    The name of standard tag namespace that will be imported in bulk

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

    WorkRequestId string
    compartmentId String
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    standardTagNamespaceName String

    The name of standard tag namespace that will be imported in bulk

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

    workRequestId String
    compartmentId string
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    standardTagNamespaceName string

    The name of standard tag namespace that will be imported in bulk

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

    workRequestId string
    compartment_id str
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    standard_tag_namespace_name str

    The name of standard tag namespace that will be imported in bulk

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

    work_request_id str
    compartmentId String
    The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
    standardTagNamespaceName String

    The name of standard tag namespace that will be imported in bulk

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

    workRequestId String

    Import

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

    $ pulumi import oci:Identity/importStandardTagsManagement:ImportStandardTagsManagement test_import_standard_tags_management "id"
    

    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.
    oci logo
    Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi