1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. TmsResourceTagsV1
opentelekomcloud 1.36.47 published on Thursday, Sep 4, 2025 by opentelekomcloud

opentelekomcloud.TmsResourceTagsV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.47 published on Thursday, Sep 4, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for TMS Resource Tags you can get at documentation portal

    Using this resource to manage tags of other service resources in batches within OpenTelekomCloud.

    The tags parameters of this resource and each service resource will affect each other, and should be managed in only one way as much as possible. You can use lifecycle.ignore_changes to ignore resource changes.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    configuration:
      resourcesProjectId:
        type: dynamic
      resourcesConfiguration:
        type: list(object({id = union(none, string), type = union(none, string)}))
    resources:
      test:
        type: opentelekomcloud:TmsResourceTagsV1
        properties:
          projectId: ${resourcesProjectId}
          dynamic:
            - forEach: ${resourcesConfiguration}
              content:
                - resourceType: ${resources.value.type}
                  resourceId: ${resources.value.id}
          tags:
            foo: bar
            owner: terraform
    

    Create TmsResourceTagsV1 Resource

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

    Constructor syntax

    new TmsResourceTagsV1(name: string, args: TmsResourceTagsV1Args, opts?: CustomResourceOptions);
    @overload
    def TmsResourceTagsV1(resource_name: str,
                          args: TmsResourceTagsV1Args,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def TmsResourceTagsV1(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          resources: Optional[Sequence[TmsResourceTagsV1ResourceArgs]] = None,
                          tags: Optional[Mapping[str, str]] = None,
                          project_id: Optional[str] = None,
                          tms_resource_tags_v1_id: Optional[str] = None)
    func NewTmsResourceTagsV1(ctx *Context, name string, args TmsResourceTagsV1Args, opts ...ResourceOption) (*TmsResourceTagsV1, error)
    public TmsResourceTagsV1(string name, TmsResourceTagsV1Args args, CustomResourceOptions? opts = null)
    public TmsResourceTagsV1(String name, TmsResourceTagsV1Args args)
    public TmsResourceTagsV1(String name, TmsResourceTagsV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:TmsResourceTagsV1
    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 TmsResourceTagsV1Args
    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 TmsResourceTagsV1Args
    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 TmsResourceTagsV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TmsResourceTagsV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TmsResourceTagsV1Args
    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 tmsResourceTagsV1Resource = new Opentelekomcloud.TmsResourceTagsV1("tmsResourceTagsV1Resource", new()
    {
        Resources = new[]
        {
            new Opentelekomcloud.Inputs.TmsResourceTagsV1ResourceArgs
            {
                ResourceId = "string",
                ResourceType = "string",
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
        ProjectId = "string",
        TmsResourceTagsV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewTmsResourceTagsV1(ctx, "tmsResourceTagsV1Resource", &opentelekomcloud.TmsResourceTagsV1Args{
    	Resources: opentelekomcloud.TmsResourceTagsV1ResourceArray{
    		&opentelekomcloud.TmsResourceTagsV1ResourceArgs{
    			ResourceId:   pulumi.String("string"),
    			ResourceType: pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ProjectId:           pulumi.String("string"),
    	TmsResourceTagsV1Id: pulumi.String("string"),
    })
    
    var tmsResourceTagsV1Resource = new TmsResourceTagsV1("tmsResourceTagsV1Resource", TmsResourceTagsV1Args.builder()
        .resources(TmsResourceTagsV1ResourceArgs.builder()
            .resourceId("string")
            .resourceType("string")
            .build())
        .tags(Map.of("string", "string"))
        .projectId("string")
        .tmsResourceTagsV1Id("string")
        .build());
    
    tms_resource_tags_v1_resource = opentelekomcloud.TmsResourceTagsV1("tmsResourceTagsV1Resource",
        resources=[{
            "resource_id": "string",
            "resource_type": "string",
        }],
        tags={
            "string": "string",
        },
        project_id="string",
        tms_resource_tags_v1_id="string")
    
    const tmsResourceTagsV1Resource = new opentelekomcloud.TmsResourceTagsV1("tmsResourceTagsV1Resource", {
        resources: [{
            resourceId: "string",
            resourceType: "string",
        }],
        tags: {
            string: "string",
        },
        projectId: "string",
        tmsResourceTagsV1Id: "string",
    });
    
    type: opentelekomcloud:TmsResourceTagsV1
    properties:
        projectId: string
        resources:
            - resourceId: string
              resourceType: string
        tags:
            string: string
        tmsResourceTagsV1Id: string
    

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

    Resources List<TmsResourceTagsV1Resource>
    Specifies the managed resource configuration. The resources structure is documented below.
    Tags Dictionary<string, string>

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    ProjectId string
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    TmsResourceTagsV1Id string
    The resource ID.
    Resources []TmsResourceTagsV1ResourceArgs
    Specifies the managed resource configuration. The resources structure is documented below.
    Tags map[string]string

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    ProjectId string
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    TmsResourceTagsV1Id string
    The resource ID.
    resources List<TmsResourceTagsV1Resource>
    Specifies the managed resource configuration. The resources structure is documented below.
    tags Map<String,String>

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    projectId String
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    tmsResourceTagsV1Id String
    The resource ID.
    resources TmsResourceTagsV1Resource[]
    Specifies the managed resource configuration. The resources structure is documented below.
    tags {[key: string]: string}

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    projectId string
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    tmsResourceTagsV1Id string
    The resource ID.
    resources Sequence[TmsResourceTagsV1ResourceArgs]
    Specifies the managed resource configuration. The resources structure is documented below.
    tags Mapping[str, str]

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    project_id str
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    tms_resource_tags_v1_id str
    The resource ID.
    resources List<Property Map>
    Specifies the managed resource configuration. The resources structure is documented below.
    tags Map<String>

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    projectId String
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    tmsResourceTagsV1Id String
    The resource ID.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TmsResourceTagsV1 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 TmsResourceTagsV1 Resource

    Get an existing TmsResourceTagsV1 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?: TmsResourceTagsV1State, opts?: CustomResourceOptions): TmsResourceTagsV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            project_id: Optional[str] = None,
            resources: Optional[Sequence[TmsResourceTagsV1ResourceArgs]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tms_resource_tags_v1_id: Optional[str] = None) -> TmsResourceTagsV1
    func GetTmsResourceTagsV1(ctx *Context, name string, id IDInput, state *TmsResourceTagsV1State, opts ...ResourceOption) (*TmsResourceTagsV1, error)
    public static TmsResourceTagsV1 Get(string name, Input<string> id, TmsResourceTagsV1State? state, CustomResourceOptions? opts = null)
    public static TmsResourceTagsV1 get(String name, Output<String> id, TmsResourceTagsV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:TmsResourceTagsV1    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:
    ProjectId string
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    Resources List<TmsResourceTagsV1Resource>
    Specifies the managed resource configuration. The resources structure is documented below.
    Tags Dictionary<string, string>

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    TmsResourceTagsV1Id string
    The resource ID.
    ProjectId string
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    Resources []TmsResourceTagsV1ResourceArgs
    Specifies the managed resource configuration. The resources structure is documented below.
    Tags map[string]string

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    TmsResourceTagsV1Id string
    The resource ID.
    projectId String
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    resources List<TmsResourceTagsV1Resource>
    Specifies the managed resource configuration. The resources structure is documented below.
    tags Map<String,String>

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    tmsResourceTagsV1Id String
    The resource ID.
    projectId string
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    resources TmsResourceTagsV1Resource[]
    Specifies the managed resource configuration. The resources structure is documented below.
    tags {[key: string]: string}

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    tmsResourceTagsV1Id string
    The resource ID.
    project_id str
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    resources Sequence[TmsResourceTagsV1ResourceArgs]
    Specifies the managed resource configuration. The resources structure is documented below.
    tags Mapping[str, str]

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    tms_resource_tags_v1_id str
    The resource ID.
    projectId String
    Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
    resources List<Property Map>
    Specifies the managed resource configuration. The resources structure is documented below.
    tags Map<String>

    Specifies resource tags for batch management.

    • The valid length of the tag key is limited from 1 to 36, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed.
    • The valid length of the tag value is limited from 0 to 43, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.

    The resources block supports:

    tmsResourceTagsV1Id String
    The resource ID.

    Supporting Types

    TmsResourceTagsV1Resource, TmsResourceTagsV1ResourceArgs

    ResourceId string
    Specifies the resource ID.
    ResourceType string
    Specifies the resource type.
    ResourceId string
    Specifies the resource ID.
    ResourceType string
    Specifies the resource type.
    resourceId String
    Specifies the resource ID.
    resourceType String
    Specifies the resource type.
    resourceId string
    Specifies the resource ID.
    resourceType string
    Specifies the resource type.
    resource_id str
    Specifies the resource ID.
    resource_type str
    Specifies the resource type.
    resourceId String
    Specifies the resource ID.
    resourceType String
    Specifies the resource type.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.47 published on Thursday, Sep 4, 2025 by opentelekomcloud