1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. IdentityGroupRoleAssignment
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.IdentityGroupRoleAssignment

Explore with Pulumi AI

Manages an IAM user group role assignment within FlexibleEngine IAM Service. This is an alternative to flexibleengine.IdentityRoleAssignmentV3

NOTE: 1. You must have admin privileges to use this resource.
2. When the resource is created, the permissions will take effect after 15 to 30 minutes.

Example Usage

Assign role with project

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const config = new pulumi.Config();
const projectId = config.requireObject("projectId");
const testIdentityRoleV3 = flexibleengine.getIdentityRoleV3({
    name: "rds_adm",
});
const testIdentityGroupV3 = new flexibleengine.IdentityGroupV3("testIdentityGroupV3", {});
const testIdentityGroupRoleAssignment = new flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", {
    groupId: testIdentityGroupV3.identityGroupV3Id,
    roleId: testIdentityRoleV3.then(testIdentityRoleV3 => testIdentityRoleV3.id),
    projectId: projectId,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
project_id = config.require_object("projectId")
test_identity_role_v3 = flexibleengine.get_identity_role_v3(name="rds_adm")
test_identity_group_v3 = flexibleengine.IdentityGroupV3("testIdentityGroupV3")
test_identity_group_role_assignment = flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment",
    group_id=test_identity_group_v3.identity_group_v3_id,
    role_id=test_identity_role_v3.id,
    project_id=project_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"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, "")
		projectId := cfg.RequireObject("projectId")
		testIdentityRoleV3, err := flexibleengine.LookupIdentityRoleV3(ctx, &flexibleengine.LookupIdentityRoleV3Args{
			Name: "rds_adm",
		}, nil)
		if err != nil {
			return err
		}
		testIdentityGroupV3, err := flexibleengine.NewIdentityGroupV3(ctx, "testIdentityGroupV3", nil)
		if err != nil {
			return err
		}
		_, err = flexibleengine.NewIdentityGroupRoleAssignment(ctx, "testIdentityGroupRoleAssignment", &flexibleengine.IdentityGroupRoleAssignmentArgs{
			GroupId:   testIdentityGroupV3.IdentityGroupV3Id,
			RoleId:    pulumi.String(testIdentityRoleV3.Id),
			ProjectId: pulumi.Any(projectId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var projectId = config.RequireObject<dynamic>("projectId");
    var testIdentityRoleV3 = Flexibleengine.GetIdentityRoleV3.Invoke(new()
    {
        Name = "rds_adm",
    });

    var testIdentityGroupV3 = new Flexibleengine.IdentityGroupV3("testIdentityGroupV3");

    var testIdentityGroupRoleAssignment = new Flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", new()
    {
        GroupId = testIdentityGroupV3.IdentityGroupV3Id,
        RoleId = testIdentityRoleV3.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
        ProjectId = projectId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetIdentityRoleV3Args;
import com.pulumi.flexibleengine.IdentityGroupV3;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignment;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignmentArgs;
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 projectId = config.get("projectId");
        final var testIdentityRoleV3 = FlexibleengineFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
            .name("rds_adm")
            .build());

        var testIdentityGroupV3 = new IdentityGroupV3("testIdentityGroupV3");

        var testIdentityGroupRoleAssignment = new IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", IdentityGroupRoleAssignmentArgs.builder()
            .groupId(testIdentityGroupV3.identityGroupV3Id())
            .roleId(testIdentityRoleV3.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
            .projectId(projectId)
            .build());

    }
}
Copy
configuration:
  projectId:
    type: dynamic
resources:
  testIdentityGroupV3:
    type: flexibleengine:IdentityGroupV3
  testIdentityGroupRoleAssignment:
    type: flexibleengine:IdentityGroupRoleAssignment
    properties:
      groupId: ${testIdentityGroupV3.identityGroupV3Id}
      roleId: ${testIdentityRoleV3.id}
      projectId: ${projectId}
variables:
  testIdentityRoleV3:
    fn::invoke:
      function: flexibleengine:getIdentityRoleV3
      arguments:
        name: rds_adm
Copy

Assign role with all projects

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const testIdentityRoleV3 = flexibleengine.getIdentityRoleV3({
    name: "rds_adm",
});
const testIdentityGroupV3 = new flexibleengine.IdentityGroupV3("testIdentityGroupV3", {});
const all = new flexibleengine.IdentityGroupRoleAssignment("all", {
    groupId: testIdentityGroupV3.identityGroupV3Id,
    roleId: testIdentityRoleV3.then(testIdentityRoleV3 => testIdentityRoleV3.id),
    projectId: "all",
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

test_identity_role_v3 = flexibleengine.get_identity_role_v3(name="rds_adm")
test_identity_group_v3 = flexibleengine.IdentityGroupV3("testIdentityGroupV3")
all = flexibleengine.IdentityGroupRoleAssignment("all",
    group_id=test_identity_group_v3.identity_group_v3_id,
    role_id=test_identity_role_v3.id,
    project_id="all")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testIdentityRoleV3, err := flexibleengine.LookupIdentityRoleV3(ctx, &flexibleengine.LookupIdentityRoleV3Args{
			Name: "rds_adm",
		}, nil)
		if err != nil {
			return err
		}
		testIdentityGroupV3, err := flexibleengine.NewIdentityGroupV3(ctx, "testIdentityGroupV3", nil)
		if err != nil {
			return err
		}
		_, err = flexibleengine.NewIdentityGroupRoleAssignment(ctx, "all", &flexibleengine.IdentityGroupRoleAssignmentArgs{
			GroupId:   testIdentityGroupV3.IdentityGroupV3Id,
			RoleId:    pulumi.String(testIdentityRoleV3.Id),
			ProjectId: pulumi.String("all"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var testIdentityRoleV3 = Flexibleengine.GetIdentityRoleV3.Invoke(new()
    {
        Name = "rds_adm",
    });

    var testIdentityGroupV3 = new Flexibleengine.IdentityGroupV3("testIdentityGroupV3");

    var all = new Flexibleengine.IdentityGroupRoleAssignment("all", new()
    {
        GroupId = testIdentityGroupV3.IdentityGroupV3Id,
        RoleId = testIdentityRoleV3.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
        ProjectId = "all",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetIdentityRoleV3Args;
import com.pulumi.flexibleengine.IdentityGroupV3;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignment;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignmentArgs;
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 testIdentityRoleV3 = FlexibleengineFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
            .name("rds_adm")
            .build());

        var testIdentityGroupV3 = new IdentityGroupV3("testIdentityGroupV3");

        var all = new IdentityGroupRoleAssignment("all", IdentityGroupRoleAssignmentArgs.builder()
            .groupId(testIdentityGroupV3.identityGroupV3Id())
            .roleId(testIdentityRoleV3.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
            .projectId("all")
            .build());

    }
}
Copy
resources:
  testIdentityGroupV3:
    type: flexibleengine:IdentityGroupV3
  all:
    type: flexibleengine:IdentityGroupRoleAssignment
    properties:
      groupId: ${testIdentityGroupV3.identityGroupV3Id}
      roleId: ${testIdentityRoleV3.id}
      projectId: all
variables:
  testIdentityRoleV3:
    fn::invoke:
      function: flexibleengine:getIdentityRoleV3
      arguments:
        name: rds_adm
Copy

Assign role with domain

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const config = new pulumi.Config();
const domainId = config.requireObject("domainId");
const testIdentityRoleV3 = flexibleengine.getIdentityRoleV3({
    name: "obs_adm",
});
const testIdentityGroupV3 = new flexibleengine.IdentityGroupV3("testIdentityGroupV3", {});
const testIdentityGroupRoleAssignment = new flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", {
    groupId: testIdentityGroupV3.identityGroupV3Id,
    roleId: testIdentityRoleV3.then(testIdentityRoleV3 => testIdentityRoleV3.id),
    domainId: domainId,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
domain_id = config.require_object("domainId")
test_identity_role_v3 = flexibleengine.get_identity_role_v3(name="obs_adm")
test_identity_group_v3 = flexibleengine.IdentityGroupV3("testIdentityGroupV3")
test_identity_group_role_assignment = flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment",
    group_id=test_identity_group_v3.identity_group_v3_id,
    role_id=test_identity_role_v3.id,
    domain_id=domain_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"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 := cfg.RequireObject("domainId")
		testIdentityRoleV3, err := flexibleengine.LookupIdentityRoleV3(ctx, &flexibleengine.LookupIdentityRoleV3Args{
			Name: "obs_adm",
		}, nil)
		if err != nil {
			return err
		}
		testIdentityGroupV3, err := flexibleengine.NewIdentityGroupV3(ctx, "testIdentityGroupV3", nil)
		if err != nil {
			return err
		}
		_, err = flexibleengine.NewIdentityGroupRoleAssignment(ctx, "testIdentityGroupRoleAssignment", &flexibleengine.IdentityGroupRoleAssignmentArgs{
			GroupId:  testIdentityGroupV3.IdentityGroupV3Id,
			RoleId:   pulumi.String(testIdentityRoleV3.Id),
			DomainId: pulumi.Any(domainId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var domainId = config.RequireObject<dynamic>("domainId");
    var testIdentityRoleV3 = Flexibleengine.GetIdentityRoleV3.Invoke(new()
    {
        Name = "obs_adm",
    });

    var testIdentityGroupV3 = new Flexibleengine.IdentityGroupV3("testIdentityGroupV3");

    var testIdentityGroupRoleAssignment = new Flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", new()
    {
        GroupId = testIdentityGroupV3.IdentityGroupV3Id,
        RoleId = testIdentityRoleV3.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
        DomainId = domainId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetIdentityRoleV3Args;
import com.pulumi.flexibleengine.IdentityGroupV3;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignment;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignmentArgs;
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");
        final var testIdentityRoleV3 = FlexibleengineFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
            .name("obs_adm")
            .build());

        var testIdentityGroupV3 = new IdentityGroupV3("testIdentityGroupV3");

        var testIdentityGroupRoleAssignment = new IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", IdentityGroupRoleAssignmentArgs.builder()
            .groupId(testIdentityGroupV3.identityGroupV3Id())
            .roleId(testIdentityRoleV3.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
            .domainId(domainId)
            .build());

    }
}
Copy
configuration:
  domainId:
    type: dynamic
resources:
  testIdentityGroupV3:
    type: flexibleengine:IdentityGroupV3
  testIdentityGroupRoleAssignment:
    type: flexibleengine:IdentityGroupRoleAssignment
    properties:
      groupId: ${testIdentityGroupV3.identityGroupV3Id}
      roleId: ${testIdentityRoleV3.id}
      domainId: ${domainId}
variables:
  testIdentityRoleV3:
    fn::invoke:
      function: flexibleengine:getIdentityRoleV3
      arguments:
        name: obs_adm
Copy

Assign role with enterprise project

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const config = new pulumi.Config();
const enterpriseProjectId = config.requireObject("enterpriseProjectId");
const testIdentityRoleV3 = flexibleengine.getIdentityRoleV3({
    name: "rds_adm",
});
const testIdentityGroupV3 = new flexibleengine.IdentityGroupV3("testIdentityGroupV3", {});
const testIdentityGroupRoleAssignment = new flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", {
    groupId: testIdentityGroupV3.identityGroupV3Id,
    roleId: testIdentityRoleV3.then(testIdentityRoleV3 => testIdentityRoleV3.id),
    enterpriseProjectId: enterpriseProjectId,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
enterprise_project_id = config.require_object("enterpriseProjectId")
test_identity_role_v3 = flexibleengine.get_identity_role_v3(name="rds_adm")
test_identity_group_v3 = flexibleengine.IdentityGroupV3("testIdentityGroupV3")
test_identity_group_role_assignment = flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment",
    group_id=test_identity_group_v3.identity_group_v3_id,
    role_id=test_identity_role_v3.id,
    enterprise_project_id=enterprise_project_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"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, "")
		enterpriseProjectId := cfg.RequireObject("enterpriseProjectId")
		testIdentityRoleV3, err := flexibleengine.LookupIdentityRoleV3(ctx, &flexibleengine.LookupIdentityRoleV3Args{
			Name: "rds_adm",
		}, nil)
		if err != nil {
			return err
		}
		testIdentityGroupV3, err := flexibleengine.NewIdentityGroupV3(ctx, "testIdentityGroupV3", nil)
		if err != nil {
			return err
		}
		_, err = flexibleengine.NewIdentityGroupRoleAssignment(ctx, "testIdentityGroupRoleAssignment", &flexibleengine.IdentityGroupRoleAssignmentArgs{
			GroupId:             testIdentityGroupV3.IdentityGroupV3Id,
			RoleId:              pulumi.String(testIdentityRoleV3.Id),
			EnterpriseProjectId: pulumi.Any(enterpriseProjectId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var enterpriseProjectId = config.RequireObject<dynamic>("enterpriseProjectId");
    var testIdentityRoleV3 = Flexibleengine.GetIdentityRoleV3.Invoke(new()
    {
        Name = "rds_adm",
    });

    var testIdentityGroupV3 = new Flexibleengine.IdentityGroupV3("testIdentityGroupV3");

    var testIdentityGroupRoleAssignment = new Flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", new()
    {
        GroupId = testIdentityGroupV3.IdentityGroupV3Id,
        RoleId = testIdentityRoleV3.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
        EnterpriseProjectId = enterpriseProjectId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetIdentityRoleV3Args;
import com.pulumi.flexibleengine.IdentityGroupV3;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignment;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignmentArgs;
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 enterpriseProjectId = config.get("enterpriseProjectId");
        final var testIdentityRoleV3 = FlexibleengineFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
            .name("rds_adm")
            .build());

        var testIdentityGroupV3 = new IdentityGroupV3("testIdentityGroupV3");

        var testIdentityGroupRoleAssignment = new IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", IdentityGroupRoleAssignmentArgs.builder()
            .groupId(testIdentityGroupV3.identityGroupV3Id())
            .roleId(testIdentityRoleV3.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
            .enterpriseProjectId(enterpriseProjectId)
            .build());

    }
}
Copy
configuration:
  enterpriseProjectId:
    type: dynamic
resources:
  testIdentityGroupV3:
    type: flexibleengine:IdentityGroupV3
  testIdentityGroupRoleAssignment:
    type: flexibleengine:IdentityGroupRoleAssignment
    properties:
      groupId: ${testIdentityGroupV3.identityGroupV3Id}
      roleId: ${testIdentityRoleV3.id}
      enterpriseProjectId: ${enterpriseProjectId}
variables:
  testIdentityRoleV3:
    fn::invoke:
      function: flexibleengine:getIdentityRoleV3
      arguments:
        name: rds_adm
Copy

Create IdentityGroupRoleAssignment Resource

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

Constructor syntax

new IdentityGroupRoleAssignment(name: string, args: IdentityGroupRoleAssignmentArgs, opts?: CustomResourceOptions);
@overload
def IdentityGroupRoleAssignment(resource_name: str,
                                args: IdentityGroupRoleAssignmentArgs,
                                opts: Optional[ResourceOptions] = None)

@overload
def IdentityGroupRoleAssignment(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                group_id: Optional[str] = None,
                                role_id: Optional[str] = None,
                                domain_id: Optional[str] = None,
                                enterprise_project_id: Optional[str] = None,
                                identity_group_role_assignment_id: Optional[str] = None,
                                project_id: Optional[str] = None)
func NewIdentityGroupRoleAssignment(ctx *Context, name string, args IdentityGroupRoleAssignmentArgs, opts ...ResourceOption) (*IdentityGroupRoleAssignment, error)
public IdentityGroupRoleAssignment(string name, IdentityGroupRoleAssignmentArgs args, CustomResourceOptions? opts = null)
public IdentityGroupRoleAssignment(String name, IdentityGroupRoleAssignmentArgs args)
public IdentityGroupRoleAssignment(String name, IdentityGroupRoleAssignmentArgs args, CustomResourceOptions options)
type: flexibleengine:IdentityGroupRoleAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IdentityGroupRoleAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IdentityGroupRoleAssignmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IdentityGroupRoleAssignmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IdentityGroupRoleAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IdentityGroupRoleAssignmentArgs
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 identityGroupRoleAssignmentResource = new Flexibleengine.IdentityGroupRoleAssignment("identityGroupRoleAssignmentResource", new()
{
    GroupId = "string",
    RoleId = "string",
    DomainId = "string",
    EnterpriseProjectId = "string",
    IdentityGroupRoleAssignmentId = "string",
    ProjectId = "string",
});
Copy
example, err := flexibleengine.NewIdentityGroupRoleAssignment(ctx, "identityGroupRoleAssignmentResource", &flexibleengine.IdentityGroupRoleAssignmentArgs{
GroupId: pulumi.String("string"),
RoleId: pulumi.String("string"),
DomainId: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
IdentityGroupRoleAssignmentId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
})
Copy
var identityGroupRoleAssignmentResource = new IdentityGroupRoleAssignment("identityGroupRoleAssignmentResource", IdentityGroupRoleAssignmentArgs.builder()
    .groupId("string")
    .roleId("string")
    .domainId("string")
    .enterpriseProjectId("string")
    .identityGroupRoleAssignmentId("string")
    .projectId("string")
    .build());
Copy
identity_group_role_assignment_resource = flexibleengine.IdentityGroupRoleAssignment("identityGroupRoleAssignmentResource",
    group_id="string",
    role_id="string",
    domain_id="string",
    enterprise_project_id="string",
    identity_group_role_assignment_id="string",
    project_id="string")
Copy
const identityGroupRoleAssignmentResource = new flexibleengine.IdentityGroupRoleAssignment("identityGroupRoleAssignmentResource", {
    groupId: "string",
    roleId: "string",
    domainId: "string",
    enterpriseProjectId: "string",
    identityGroupRoleAssignmentId: "string",
    projectId: "string",
});
Copy
type: flexibleengine:IdentityGroupRoleAssignment
properties:
    domainId: string
    enterpriseProjectId: string
    groupId: string
    identityGroupRoleAssignmentId: string
    projectId: string
    roleId: string
Copy

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

GroupId This property is required. string
Specifies the group to assign the role to. Changing this parameter will create a new resource.
RoleId This property is required. string
Specifies the role to assign. Changing this parameter will create a new resource.
DomainId string
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
EnterpriseProjectId string

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

IdentityGroupRoleAssignmentId string
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
ProjectId string

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

GroupId This property is required. string
Specifies the group to assign the role to. Changing this parameter will create a new resource.
RoleId This property is required. string
Specifies the role to assign. Changing this parameter will create a new resource.
DomainId string
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
EnterpriseProjectId string

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

IdentityGroupRoleAssignmentId string
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
ProjectId string

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

groupId This property is required. String
Specifies the group to assign the role to. Changing this parameter will create a new resource.
roleId This property is required. String
Specifies the role to assign. Changing this parameter will create a new resource.
domainId String
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
enterpriseProjectId String

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

identityGroupRoleAssignmentId String
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
projectId String

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

groupId This property is required. string
Specifies the group to assign the role to. Changing this parameter will create a new resource.
roleId This property is required. string
Specifies the role to assign. Changing this parameter will create a new resource.
domainId string
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
enterpriseProjectId string

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

identityGroupRoleAssignmentId string
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
projectId string

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

group_id This property is required. str
Specifies the group to assign the role to. Changing this parameter will create a new resource.
role_id This property is required. str
Specifies the role to assign. Changing this parameter will create a new resource.
domain_id str
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
enterprise_project_id str

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

identity_group_role_assignment_id str
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
project_id str

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

groupId This property is required. String
Specifies the group to assign the role to. Changing this parameter will create a new resource.
roleId This property is required. String
Specifies the role to assign. Changing this parameter will create a new resource.
domainId String
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
enterpriseProjectId String

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

identityGroupRoleAssignmentId String
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
projectId String

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

Outputs

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

Get an existing IdentityGroupRoleAssignment 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?: IdentityGroupRoleAssignmentState, opts?: CustomResourceOptions): IdentityGroupRoleAssignment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_id: Optional[str] = None,
        enterprise_project_id: Optional[str] = None,
        group_id: Optional[str] = None,
        identity_group_role_assignment_id: Optional[str] = None,
        project_id: Optional[str] = None,
        role_id: Optional[str] = None) -> IdentityGroupRoleAssignment
func GetIdentityGroupRoleAssignment(ctx *Context, name string, id IDInput, state *IdentityGroupRoleAssignmentState, opts ...ResourceOption) (*IdentityGroupRoleAssignment, error)
public static IdentityGroupRoleAssignment Get(string name, Input<string> id, IdentityGroupRoleAssignmentState? state, CustomResourceOptions? opts = null)
public static IdentityGroupRoleAssignment get(String name, Output<String> id, IdentityGroupRoleAssignmentState state, CustomResourceOptions options)
resources:  _:    type: flexibleengine:IdentityGroupRoleAssignment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DomainId string
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
EnterpriseProjectId string

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

GroupId string
Specifies the group to assign the role to. Changing this parameter will create a new resource.
IdentityGroupRoleAssignmentId string
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
ProjectId string

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

RoleId string
Specifies the role to assign. Changing this parameter will create a new resource.
DomainId string
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
EnterpriseProjectId string

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

GroupId string
Specifies the group to assign the role to. Changing this parameter will create a new resource.
IdentityGroupRoleAssignmentId string
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
ProjectId string

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

RoleId string
Specifies the role to assign. Changing this parameter will create a new resource.
domainId String
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
enterpriseProjectId String

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

groupId String
Specifies the group to assign the role to. Changing this parameter will create a new resource.
identityGroupRoleAssignmentId String
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
projectId String

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

roleId String
Specifies the role to assign. Changing this parameter will create a new resource.
domainId string
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
enterpriseProjectId string

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

groupId string
Specifies the group to assign the role to. Changing this parameter will create a new resource.
identityGroupRoleAssignmentId string
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
projectId string

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

roleId string
Specifies the role to assign. Changing this parameter will create a new resource.
domain_id str
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
enterprise_project_id str

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

group_id str
Specifies the group to assign the role to. Changing this parameter will create a new resource.
identity_group_role_assignment_id str
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
project_id str

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

role_id str
Specifies the role to assign. Changing this parameter will create a new resource.
domainId String
Specifies the domain to assign the role in. Changing this parameter will create a new resource.
enterpriseProjectId String

Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.

Exactly one of domain_id, project_id or enterprise_project_id must be specified.

groupId String
Specifies the group to assign the role to. Changing this parameter will create a new resource.
identityGroupRoleAssignmentId String
The resource ID. When assign in domain, the format is <group_id>/<role_id>/<domain_id>; when assign in project, the format is <group_id>/<role_id>/<project_id>; when assign in enterprise project, the format is <group_id>/<role_id>/<enterprise_project_id>;
projectId String

Specifies the project to assign the role in. If project_id is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.

Changing this parameter will create a new resource.

roleId String
Specifies the role to assign. Changing this parameter will create a new resource.

Import

The role assignments can be imported using the group_id, role_id and domain_id, project_id,

enterprise_project_id, e.g.

bash

$ pulumi import flexibleengine:index/identityGroupRoleAssignment:IdentityGroupRoleAssignment test <group_id>/<role_id>/<domain_id>
Copy

or

bash

$ pulumi import flexibleengine:index/identityGroupRoleAssignment:IdentityGroupRoleAssignment test <group_id>/<role_id>/<project_id>
Copy

or

bash

$ pulumi import flexibleengine:index/identityGroupRoleAssignment:IdentityGroupRoleAssignment test <group_id>/<role_id>/all
Copy

or

bash

$ pulumi import flexibleengine:index/identityGroupRoleAssignment:IdentityGroupRoleAssignment test <group_id>/<role_id>/<enterprise_project_id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.