1. Packages
  2. OVH
  3. API Docs
  4. IamResourceTags
OVHCloud v2.9.0 published on Friday, Nov 7, 2025 by OVHcloud
ovh logo
OVHCloud v2.9.0 published on Friday, Nov 7, 2025 by OVHcloud

    Import

    IAM resource tags can be imported using the resource URN:

    bash

    $ pulumi import ovh:index/iamResourceTags:IamResourceTags my_tags "urn:v1:eu:resource:cloudProject:1234567890abcdef"
    

    After importing, you should update your Terraform configuration to match the imported state. The import will bring in all tags currently applied to the resource, but only tags defined in your configuration will be managed by Terraform.

    Create IamResourceTags Resource

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

    Constructor syntax

    new IamResourceTags(name: string, args: IamResourceTagsArgs, opts?: CustomResourceOptions);
    @overload
    def IamResourceTags(resource_name: str,
                        args: IamResourceTagsArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamResourceTags(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        urn: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None)
    func NewIamResourceTags(ctx *Context, name string, args IamResourceTagsArgs, opts ...ResourceOption) (*IamResourceTags, error)
    public IamResourceTags(string name, IamResourceTagsArgs args, CustomResourceOptions? opts = null)
    public IamResourceTags(String name, IamResourceTagsArgs args)
    public IamResourceTags(String name, IamResourceTagsArgs args, CustomResourceOptions options)
    
    type: ovh:IamResourceTags
    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 IamResourceTagsArgs
    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 IamResourceTagsArgs
    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 IamResourceTagsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamResourceTagsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamResourceTagsArgs
    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 iamResourceTagsResource = new Ovh.IamResourceTags("iamResourceTagsResource", new()
    {
        Urn = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := ovh.NewIamResourceTags(ctx, "iamResourceTagsResource", &ovh.IamResourceTagsArgs{
    	Urn: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var iamResourceTagsResource = new IamResourceTags("iamResourceTagsResource", IamResourceTagsArgs.builder()
        .urn("string")
        .tags(Map.of("string", "string"))
        .build());
    
    iam_resource_tags_resource = ovh.IamResourceTags("iamResourceTagsResource",
        urn="string",
        tags={
            "string": "string",
        })
    
    const iamResourceTagsResource = new ovh.IamResourceTags("iamResourceTagsResource", {
        urn: "string",
        tags: {
            string: "string",
        },
    });
    
    type: ovh:IamResourceTags
    properties:
        tags:
            string: string
        urn: string
    

    IamResourceTags 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 IamResourceTags resource accepts the following input properties:

    Urn string
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    Tags Dictionary<string, string>
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    Urn string
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    Tags map[string]string
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    urn String
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    tags Map<String,String>
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    urn string
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    tags {[key: string]: string}
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    urn str
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    tags Mapping[str, str]
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    urn String
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    tags Map<String>
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.

    Outputs

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

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

    Look up Existing IamResourceTags Resource

    Get an existing IamResourceTags 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?: IamResourceTagsState, opts?: CustomResourceOptions): IamResourceTags
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            tags: Optional[Mapping[str, str]] = None,
            urn: Optional[str] = None) -> IamResourceTags
    func GetIamResourceTags(ctx *Context, name string, id IDInput, state *IamResourceTagsState, opts ...ResourceOption) (*IamResourceTags, error)
    public static IamResourceTags Get(string name, Input<string> id, IamResourceTagsState? state, CustomResourceOptions? opts = null)
    public static IamResourceTags get(String name, Output<String> id, IamResourceTagsState state, CustomResourceOptions options)
    resources:  _:    type: ovh:IamResourceTags    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.
    The following state arguments are supported:
    Tags Dictionary<string, string>
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    Urn string
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    Tags map[string]string
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    Urn string
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    tags Map<String,String>
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    urn String
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    tags {[key: string]: string}
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    urn string
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    tags Mapping[str, str]
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    urn str
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.
    tags Map<String>
    A map of tags to apply to the resource. Each tag consists of a key-value pair. Tag keys must match the pattern ^[a-zA-Z0-9_.:/=+@-]{1,128}$ (1-128 characters) and values must match ^[a-zA-Z0-9_.:/=+@-]{0,256}$ (0-256 characters). Both keys and values can contain alphanumeric characters, underscores, dots, colons, slashes, equals signs, plus signs, at signs, and hyphens. Note: Tags with keys prefixed by ovh: are managed by OVH and cannot be set via the API.
    urn String
    The URN (Uniform Resource Name) of the resource to manage tags for. Changing this forces a new resource to be created. The URN format is typically urn:v1:{region}:resource:{resourceType}:{resourceId}.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v2.9.0 published on Friday, Nov 7, 2025 by OVHcloud
      Meet Neo: Your AI Platform Teammate