1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. IdentityRoleAssignmentV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.IdentityRoleAssignmentV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for IAM role assignment you can get at documentation portal

    Manages a V3 Role assignment within group on OpenTelekomCloud IAM Service.

    Note: You must have admin privileges in your OpenTelekomCloud cloud to use this resource.

    Example Usage

    Assign Role On Project Level

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const project1 = new opentelekomcloud.IdentityProjectV3("project1", {});
    const group1 = new opentelekomcloud.IdentityGroupV3("group1", {});
    const role1 = opentelekomcloud.getIdentityRoleV3({
        name: "system_all_4",
    });
    const roleAssignment1 = new opentelekomcloud.IdentityRoleAssignmentV3("roleAssignment1", {
        groupId: group1.identityGroupV3Id,
        projectId: project1.identityProjectV3Id,
        roleId: role1.then(role1 => role1.id),
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    project1 = opentelekomcloud.IdentityProjectV3("project1")
    group1 = opentelekomcloud.IdentityGroupV3("group1")
    role1 = opentelekomcloud.get_identity_role_v3(name="system_all_4")
    role_assignment1 = opentelekomcloud.IdentityRoleAssignmentV3("roleAssignment1",
        group_id=group1.identity_group_v3_id,
        project_id=project1.identity_project_v3_id,
        role_id=role1.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		project1, err := opentelekomcloud.NewIdentityProjectV3(ctx, "project1", nil)
    		if err != nil {
    			return err
    		}
    		group1, err := opentelekomcloud.NewIdentityGroupV3(ctx, "group1", nil)
    		if err != nil {
    			return err
    		}
    		role1, err := opentelekomcloud.LookupIdentityRoleV3(ctx, &opentelekomcloud.LookupIdentityRoleV3Args{
    			Name: "system_all_4",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewIdentityRoleAssignmentV3(ctx, "roleAssignment1", &opentelekomcloud.IdentityRoleAssignmentV3Args{
    			GroupId:   group1.IdentityGroupV3Id,
    			ProjectId: project1.IdentityProjectV3Id,
    			RoleId:    pulumi.String(role1.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var project1 = new Opentelekomcloud.IdentityProjectV3("project1");
    
        var group1 = new Opentelekomcloud.IdentityGroupV3("group1");
    
        var role1 = Opentelekomcloud.GetIdentityRoleV3.Invoke(new()
        {
            Name = "system_all_4",
        });
    
        var roleAssignment1 = new Opentelekomcloud.IdentityRoleAssignmentV3("roleAssignment1", new()
        {
            GroupId = group1.IdentityGroupV3Id,
            ProjectId = project1.IdentityProjectV3Id,
            RoleId = role1.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.IdentityProjectV3;
    import com.pulumi.opentelekomcloud.IdentityGroupV3;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetIdentityRoleV3Args;
    import com.pulumi.opentelekomcloud.IdentityRoleAssignmentV3;
    import com.pulumi.opentelekomcloud.IdentityRoleAssignmentV3Args;
    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 project1 = new IdentityProjectV3("project1");
    
            var group1 = new IdentityGroupV3("group1");
    
            final var role1 = OpentelekomcloudFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
                .name("system_all_4")
                .build());
    
            var roleAssignment1 = new IdentityRoleAssignmentV3("roleAssignment1", IdentityRoleAssignmentV3Args.builder()
                .groupId(group1.identityGroupV3Id())
                .projectId(project1.identityProjectV3Id())
                .roleId(role1.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
                .build());
    
        }
    }
    
    resources:
      project1:
        type: opentelekomcloud:IdentityProjectV3
      group1:
        type: opentelekomcloud:IdentityGroupV3
      roleAssignment1:
        type: opentelekomcloud:IdentityRoleAssignmentV3
        properties:
          groupId: ${group1.identityGroupV3Id}
          projectId: ${project1.identityProjectV3Id}
          roleId: ${role1.id}
    variables:
      role1:
        fn::invoke:
          function: opentelekomcloud:getIdentityRoleV3
          arguments:
            name: system_all_4
    

    Assign Role On Domain Level

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const domainId = config.get("domainId") || "01aafcf63744d988ebef2b1e04c5c34";
    const group1 = new opentelekomcloud.IdentityGroupV3("group1", {});
    const role1 = opentelekomcloud.getIdentityRoleV3({
        name: "secu_admin",
    });
    const roleAssignment1 = new opentelekomcloud.IdentityRoleAssignmentV3("roleAssignment1", {
        groupId: group1.identityGroupV3Id,
        domainId: domainId,
        roleId: role1.then(role1 => role1.id),
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    domain_id = config.get("domainId")
    if domain_id is None:
        domain_id = "01aafcf63744d988ebef2b1e04c5c34"
    group1 = opentelekomcloud.IdentityGroupV3("group1")
    role1 = opentelekomcloud.get_identity_role_v3(name="secu_admin")
    role_assignment1 = opentelekomcloud.IdentityRoleAssignmentV3("roleAssignment1",
        group_id=group1.identity_group_v3_id,
        domain_id=domain_id,
        role_id=role1.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		domainId := "01aafcf63744d988ebef2b1e04c5c34"
    		if param := cfg.Get("domainId"); param != "" {
    			domainId = param
    		}
    		group1, err := opentelekomcloud.NewIdentityGroupV3(ctx, "group1", nil)
    		if err != nil {
    			return err
    		}
    		role1, err := opentelekomcloud.LookupIdentityRoleV3(ctx, &opentelekomcloud.LookupIdentityRoleV3Args{
    			Name: "secu_admin",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewIdentityRoleAssignmentV3(ctx, "roleAssignment1", &opentelekomcloud.IdentityRoleAssignmentV3Args{
    			GroupId:  group1.IdentityGroupV3Id,
    			DomainId: pulumi.String(domainId),
    			RoleId:   pulumi.String(role1.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var domainId = config.Get("domainId") ?? "01aafcf63744d988ebef2b1e04c5c34";
        var group1 = new Opentelekomcloud.IdentityGroupV3("group1");
    
        var role1 = Opentelekomcloud.GetIdentityRoleV3.Invoke(new()
        {
            Name = "secu_admin",
        });
    
        var roleAssignment1 = new Opentelekomcloud.IdentityRoleAssignmentV3("roleAssignment1", new()
        {
            GroupId = group1.IdentityGroupV3Id,
            DomainId = domainId,
            RoleId = role1.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.IdentityGroupV3;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetIdentityRoleV3Args;
    import com.pulumi.opentelekomcloud.IdentityRoleAssignmentV3;
    import com.pulumi.opentelekomcloud.IdentityRoleAssignmentV3Args;
    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) {
            final var config = ctx.config();
            final var domainId = config.get("domainId").orElse("01aafcf63744d988ebef2b1e04c5c34");
            var group1 = new IdentityGroupV3("group1");
    
            final var role1 = OpentelekomcloudFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
                .name("secu_admin")
                .build());
    
            var roleAssignment1 = new IdentityRoleAssignmentV3("roleAssignment1", IdentityRoleAssignmentV3Args.builder()
                .groupId(group1.identityGroupV3Id())
                .domainId(domainId)
                .roleId(role1.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
                .build());
    
        }
    }
    
    configuration:
      domainId:
        type: string
        default: 01aafcf63744d988ebef2b1e04c5c34
    resources:
      group1:
        type: opentelekomcloud:IdentityGroupV3
      roleAssignment1:
        type: opentelekomcloud:IdentityRoleAssignmentV3
        properties:
          groupId: ${group1.identityGroupV3Id}
          domainId: ${domainId}
          roleId: ${role1.id}
    variables:
      role1:
        fn::invoke:
          function: opentelekomcloud:getIdentityRoleV3
          arguments:
            name: secu_admin
    

    Assign Role for All Projects (existing and future)

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const domainId = config.get("domainId") || "01aafcf63744d988ebef2b1e04c5c34";
    const group1 = new opentelekomcloud.IdentityGroupV3("group1", {});
    const role1 = opentelekomcloud.getIdentityRoleV3({
        name: "secu_admin",
    });
    const roleAssignment1 = new opentelekomcloud.IdentityRoleAssignmentV3("roleAssignment1", {
        groupId: group1.identityGroupV3Id,
        domainId: domainId,
        roleId: role1.then(role1 => role1.id),
        allProjects: true,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    domain_id = config.get("domainId")
    if domain_id is None:
        domain_id = "01aafcf63744d988ebef2b1e04c5c34"
    group1 = opentelekomcloud.IdentityGroupV3("group1")
    role1 = opentelekomcloud.get_identity_role_v3(name="secu_admin")
    role_assignment1 = opentelekomcloud.IdentityRoleAssignmentV3("roleAssignment1",
        group_id=group1.identity_group_v3_id,
        domain_id=domain_id,
        role_id=role1.id,
        all_projects=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		domainId := "01aafcf63744d988ebef2b1e04c5c34"
    		if param := cfg.Get("domainId"); param != "" {
    			domainId = param
    		}
    		group1, err := opentelekomcloud.NewIdentityGroupV3(ctx, "group1", nil)
    		if err != nil {
    			return err
    		}
    		role1, err := opentelekomcloud.LookupIdentityRoleV3(ctx, &opentelekomcloud.LookupIdentityRoleV3Args{
    			Name: "secu_admin",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewIdentityRoleAssignmentV3(ctx, "roleAssignment1", &opentelekomcloud.IdentityRoleAssignmentV3Args{
    			GroupId:     group1.IdentityGroupV3Id,
    			DomainId:    pulumi.String(domainId),
    			RoleId:      pulumi.String(role1.Id),
    			AllProjects: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var domainId = config.Get("domainId") ?? "01aafcf63744d988ebef2b1e04c5c34";
        var group1 = new Opentelekomcloud.IdentityGroupV3("group1");
    
        var role1 = Opentelekomcloud.GetIdentityRoleV3.Invoke(new()
        {
            Name = "secu_admin",
        });
    
        var roleAssignment1 = new Opentelekomcloud.IdentityRoleAssignmentV3("roleAssignment1", new()
        {
            GroupId = group1.IdentityGroupV3Id,
            DomainId = domainId,
            RoleId = role1.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
            AllProjects = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.IdentityGroupV3;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetIdentityRoleV3Args;
    import com.pulumi.opentelekomcloud.IdentityRoleAssignmentV3;
    import com.pulumi.opentelekomcloud.IdentityRoleAssignmentV3Args;
    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) {
            final var config = ctx.config();
            final var domainId = config.get("domainId").orElse("01aafcf63744d988ebef2b1e04c5c34");
            var group1 = new IdentityGroupV3("group1");
    
            final var role1 = OpentelekomcloudFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
                .name("secu_admin")
                .build());
    
            var roleAssignment1 = new IdentityRoleAssignmentV3("roleAssignment1", IdentityRoleAssignmentV3Args.builder()
                .groupId(group1.identityGroupV3Id())
                .domainId(domainId)
                .roleId(role1.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
                .allProjects(true)
                .build());
    
        }
    }
    
    configuration:
      domainId:
        type: string
        default: 01aafcf63744d988ebef2b1e04c5c34
    resources:
      group1:
        type: opentelekomcloud:IdentityGroupV3
      roleAssignment1:
        type: opentelekomcloud:IdentityRoleAssignmentV3
        properties:
          groupId: ${group1.identityGroupV3Id}
          domainId: ${domainId}
          roleId: ${role1.id}
          allProjects: true
    variables:
      role1:
        fn::invoke:
          function: opentelekomcloud:getIdentityRoleV3
          arguments:
            name: secu_admin
    

    Create IdentityRoleAssignmentV3 Resource

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

    Constructor syntax

    new IdentityRoleAssignmentV3(name: string, args: IdentityRoleAssignmentV3Args, opts?: CustomResourceOptions);
    @overload
    def IdentityRoleAssignmentV3(resource_name: str,
                                 args: IdentityRoleAssignmentV3Args,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityRoleAssignmentV3(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 group_id: Optional[str] = None,
                                 role_id: Optional[str] = None,
                                 all_projects: Optional[bool] = None,
                                 domain_id: Optional[str] = None,
                                 identity_role_assignment_v3_id: Optional[str] = None,
                                 project_id: Optional[str] = None)
    func NewIdentityRoleAssignmentV3(ctx *Context, name string, args IdentityRoleAssignmentV3Args, opts ...ResourceOption) (*IdentityRoleAssignmentV3, error)
    public IdentityRoleAssignmentV3(string name, IdentityRoleAssignmentV3Args args, CustomResourceOptions? opts = null)
    public IdentityRoleAssignmentV3(String name, IdentityRoleAssignmentV3Args args)
    public IdentityRoleAssignmentV3(String name, IdentityRoleAssignmentV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:IdentityRoleAssignmentV3
    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 IdentityRoleAssignmentV3Args
    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 IdentityRoleAssignmentV3Args
    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 IdentityRoleAssignmentV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityRoleAssignmentV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityRoleAssignmentV3Args
    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 identityRoleAssignmentV3Resource = new Opentelekomcloud.IdentityRoleAssignmentV3("identityRoleAssignmentV3Resource", new()
    {
        GroupId = "string",
        RoleId = "string",
        AllProjects = false,
        DomainId = "string",
        IdentityRoleAssignmentV3Id = "string",
        ProjectId = "string",
    });
    
    example, err := opentelekomcloud.NewIdentityRoleAssignmentV3(ctx, "identityRoleAssignmentV3Resource", &opentelekomcloud.IdentityRoleAssignmentV3Args{
    	GroupId:                    pulumi.String("string"),
    	RoleId:                     pulumi.String("string"),
    	AllProjects:                pulumi.Bool(false),
    	DomainId:                   pulumi.String("string"),
    	IdentityRoleAssignmentV3Id: pulumi.String("string"),
    	ProjectId:                  pulumi.String("string"),
    })
    
    var identityRoleAssignmentV3Resource = new IdentityRoleAssignmentV3("identityRoleAssignmentV3Resource", IdentityRoleAssignmentV3Args.builder()
        .groupId("string")
        .roleId("string")
        .allProjects(false)
        .domainId("string")
        .identityRoleAssignmentV3Id("string")
        .projectId("string")
        .build());
    
    identity_role_assignment_v3_resource = opentelekomcloud.IdentityRoleAssignmentV3("identityRoleAssignmentV3Resource",
        group_id="string",
        role_id="string",
        all_projects=False,
        domain_id="string",
        identity_role_assignment_v3_id="string",
        project_id="string")
    
    const identityRoleAssignmentV3Resource = new opentelekomcloud.IdentityRoleAssignmentV3("identityRoleAssignmentV3Resource", {
        groupId: "string",
        roleId: "string",
        allProjects: false,
        domainId: "string",
        identityRoleAssignmentV3Id: "string",
        projectId: "string",
    });
    
    type: opentelekomcloud:IdentityRoleAssignmentV3
    properties:
        allProjects: false
        domainId: string
        groupId: string
        identityRoleAssignmentV3Id: string
        projectId: string
        roleId: string
    

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

    GroupId string
    The group to assign the role to.
    RoleId string
    The role to assign.
    AllProjects bool
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    DomainId string
    The domain to assign the role in.
    IdentityRoleAssignmentV3Id string
    ProjectId string
    The project to assign the role in.
    GroupId string
    The group to assign the role to.
    RoleId string
    The role to assign.
    AllProjects bool
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    DomainId string
    The domain to assign the role in.
    IdentityRoleAssignmentV3Id string
    ProjectId string
    The project to assign the role in.
    groupId String
    The group to assign the role to.
    roleId String
    The role to assign.
    allProjects Boolean
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    domainId String
    The domain to assign the role in.
    identityRoleAssignmentV3Id String
    projectId String
    The project to assign the role in.
    groupId string
    The group to assign the role to.
    roleId string
    The role to assign.
    allProjects boolean
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    domainId string
    The domain to assign the role in.
    identityRoleAssignmentV3Id string
    projectId string
    The project to assign the role in.
    group_id str
    The group to assign the role to.
    role_id str
    The role to assign.
    all_projects bool
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    domain_id str
    The domain to assign the role in.
    identity_role_assignment_v3_id str
    project_id str
    The project to assign the role in.
    groupId String
    The group to assign the role to.
    roleId String
    The role to assign.
    allProjects Boolean
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    domainId String
    The domain to assign the role in.
    identityRoleAssignmentV3Id String
    projectId String
    The project to assign the role in.

    Outputs

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

    Get an existing IdentityRoleAssignmentV3 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?: IdentityRoleAssignmentV3State, opts?: CustomResourceOptions): IdentityRoleAssignmentV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            all_projects: Optional[bool] = None,
            domain_id: Optional[str] = None,
            group_id: Optional[str] = None,
            identity_role_assignment_v3_id: Optional[str] = None,
            project_id: Optional[str] = None,
            role_id: Optional[str] = None) -> IdentityRoleAssignmentV3
    func GetIdentityRoleAssignmentV3(ctx *Context, name string, id IDInput, state *IdentityRoleAssignmentV3State, opts ...ResourceOption) (*IdentityRoleAssignmentV3, error)
    public static IdentityRoleAssignmentV3 Get(string name, Input<string> id, IdentityRoleAssignmentV3State? state, CustomResourceOptions? opts = null)
    public static IdentityRoleAssignmentV3 get(String name, Output<String> id, IdentityRoleAssignmentV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:IdentityRoleAssignmentV3    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:
    AllProjects bool
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    DomainId string
    The domain to assign the role in.
    GroupId string
    The group to assign the role to.
    IdentityRoleAssignmentV3Id string
    ProjectId string
    The project to assign the role in.
    RoleId string
    The role to assign.
    AllProjects bool
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    DomainId string
    The domain to assign the role in.
    GroupId string
    The group to assign the role to.
    IdentityRoleAssignmentV3Id string
    ProjectId string
    The project to assign the role in.
    RoleId string
    The role to assign.
    allProjects Boolean
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    domainId String
    The domain to assign the role in.
    groupId String
    The group to assign the role to.
    identityRoleAssignmentV3Id String
    projectId String
    The project to assign the role in.
    roleId String
    The role to assign.
    allProjects boolean
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    domainId string
    The domain to assign the role in.
    groupId string
    The group to assign the role to.
    identityRoleAssignmentV3Id string
    projectId string
    The project to assign the role in.
    roleId string
    The role to assign.
    all_projects bool
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    domain_id str
    The domain to assign the role in.
    group_id str
    The group to assign the role to.
    identity_role_assignment_v3_id str
    project_id str
    The project to assign the role in.
    role_id str
    The role to assign.
    allProjects Boolean
    Whether to assign role for all existing and future projects. domain_id has to be specified if all_projects is set to true.
    domainId String
    The domain to assign the role in.
    groupId String
    The group to assign the role to.
    identityRoleAssignmentV3Id String
    projectId String
    The project to assign the role in.
    roleId String
    The role to assign.

    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.37 published on Thursday, Apr 24, 2025 by opentelekomcloud