oci.Identity.ImportStandardTagsManagement
Explore with Pulumi AI
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ImportStandardTagsManagement resource accepts the following input properties:
- Compartment
Id string - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- Standard
Tag stringNamespace Name 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 string - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- Standard
Tag stringNamespace Name 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 String - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- standard
Tag StringNamespace Name 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 string - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- standard
Tag stringNamespace Name 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_ strnamespace_ name 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 String - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- standard
Tag StringNamespace Name 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.
- Work
Request stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Work
Request stringId
- id String
- The provider-assigned unique ID for this managed resource.
- work
Request StringId
- id string
- The provider-assigned unique ID for this managed resource.
- work
Request stringId
- id str
- The provider-assigned unique ID for this managed resource.
- work_
request_ strid
- id String
- The provider-assigned unique ID for this managed resource.
- work
Request StringId
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)
resources: _: type: oci:Identity:ImportStandardTagsManagement get: id: ${id}
- 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.
- Compartment
Id string - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- Standard
Tag stringNamespace Name 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 stringId
- Compartment
Id string - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- Standard
Tag stringNamespace Name 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 stringId
- compartment
Id String - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- standard
Tag StringNamespace Name 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 StringId
- compartment
Id string - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- standard
Tag stringNamespace Name 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 stringId
- 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_ strnamespace_ name 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_ strid
- compartment
Id String - The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created.
- standard
Tag StringNamespace Name 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 StringId
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.