ibm.IamUserInvite
Explore with Pulumi AI
Invite, update, or delete IAM users to your IBM Cloud account. User to be invited can be added to one or more access groups. For more information, see inviting users.
Example Usage
Inviting batch of users
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const inviteUser = new ibm.IamUserInvite("inviteUser", {users: ["test@in.ibm.com"]});
import pulumi
import pulumi_ibm as ibm
invite_user = ibm.IamUserInvite("inviteUser", users=["test@in.ibm.com"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
Users = new[]
{
"test@in.ibm.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
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 inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.users("test@in.ibm.com")
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
users:
- test@in.ibm.com
Inviting batch of users with access groups
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const inviteUser = new ibm.IamUserInvite("inviteUser", {
accessGroups: ["accessgroup-id-9876543210"],
users: ["test@in.ibm.com"],
});
import pulumi
import pulumi_ibm as ibm
invite_user = ibm.IamUserInvite("inviteUser",
access_groups=["accessgroup-id-9876543210"],
users=["test@in.ibm.com"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
AccessGroups: pulumi.StringArray{
pulumi.String("accessgroup-id-9876543210"),
},
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
AccessGroups = new[]
{
"accessgroup-id-9876543210",
},
Users = new[]
{
"test@in.ibm.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
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 inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.accessGroups("accessgroup-id-9876543210")
.users("test@in.ibm.com")
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
accessGroups:
- accessgroup-id-9876543210
users:
- test@in.ibm.com
Inviting batch of users with Classic Infrastructure roles
The following example provides the Classic Infrastructure permissions, and permission set.
Inviting batch of users with Classic Infrastructure permissions
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const inviteUser = new ibm.IamUserInvite("inviteUser", {
classicInfraRoles: [{
permissions: [
"PORT_CONTROL",
"DATACENTER_ACCESS",
],
}],
users: ["test@in.ibm.com"],
});
import pulumi
import pulumi_ibm as ibm
invite_user = ibm.IamUserInvite("inviteUser",
classic_infra_roles=[{
"permissions": [
"PORT_CONTROL",
"DATACENTER_ACCESS",
],
}],
users=["test@in.ibm.com"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
ClassicInfraRoles: ibm.IamUserInviteClassicInfraRoleArray{
&ibm.IamUserInviteClassicInfraRoleArgs{
Permissions: pulumi.StringArray{
pulumi.String("PORT_CONTROL"),
pulumi.String("DATACENTER_ACCESS"),
},
},
},
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
ClassicInfraRoles = new[]
{
new Ibm.Inputs.IamUserInviteClassicInfraRoleArgs
{
Permissions = new[]
{
"PORT_CONTROL",
"DATACENTER_ACCESS",
},
},
},
Users = new[]
{
"test@in.ibm.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
import com.pulumi.ibm.inputs.IamUserInviteClassicInfraRoleArgs;
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 inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.classicInfraRoles(IamUserInviteClassicInfraRoleArgs.builder()
.permissions(
"PORT_CONTROL",
"DATACENTER_ACCESS")
.build())
.users("test@in.ibm.com")
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
classicInfraRoles:
- permissions:
- PORT_CONTROL
- DATACENTER_ACCESS
users:
- test@in.ibm.com
Inviting batch of users with Classic Infrastructure permission set
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const inviteUser = new ibm.IamUserInvite("inviteUser", {
classicInfraRoles: [{
permissionSet: "superuser",
}],
users: ["test@in.ibm.com"],
});
import pulumi
import pulumi_ibm as ibm
invite_user = ibm.IamUserInvite("inviteUser",
classic_infra_roles=[{
"permission_set": "superuser",
}],
users=["test@in.ibm.com"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
ClassicInfraRoles: ibm.IamUserInviteClassicInfraRoleArray{
&ibm.IamUserInviteClassicInfraRoleArgs{
PermissionSet: pulumi.String("superuser"),
},
},
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
ClassicInfraRoles = new[]
{
new Ibm.Inputs.IamUserInviteClassicInfraRoleArgs
{
PermissionSet = "superuser",
},
},
Users = new[]
{
"test@in.ibm.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
import com.pulumi.ibm.inputs.IamUserInviteClassicInfraRoleArgs;
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 inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.classicInfraRoles(IamUserInviteClassicInfraRoleArgs.builder()
.permissionSet("superuser")
.build())
.users("test@in.ibm.com")
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
classicInfraRoles:
- permissionSet: superuser
users:
- test@in.ibm.com
User invite with access IAM policies
The following sample provides about user invite with access to IAM policies for all identity and access enables services, and user policy by using service with region and resourse instance, resource group, resource type, and attributes.
Inviting batch of users with user policy for All Identity and Access enabled services
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const inviteUser = new ibm.IamUserInvite("inviteUser", {
iamPolicies: [{
roles: ["Viewer"],
}],
users: ["test@in.ibm.com"],
});
import pulumi
import pulumi_ibm as ibm
invite_user = ibm.IamUserInvite("inviteUser",
iam_policies=[{
"roles": ["Viewer"],
}],
users=["test@in.ibm.com"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
IamPolicies: ibm.IamUserInviteIamPolicyArray{
&ibm.IamUserInviteIamPolicyArgs{
Roles: pulumi.StringArray{
pulumi.String("Viewer"),
},
},
},
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
IamPolicies = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyArgs
{
Roles = new[]
{
"Viewer",
},
},
},
Users = new[]
{
"test@in.ibm.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
import com.pulumi.ibm.inputs.IamUserInviteIamPolicyArgs;
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 inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.iamPolicies(IamUserInviteIamPolicyArgs.builder()
.roles("Viewer")
.build())
.users("test@in.ibm.com")
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
iamPolicies:
- roles:
- Viewer
users:
- test@in.ibm.com
Inviting batch of users with user policy using service with region
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const inviteUser = new ibm.IamUserInvite("inviteUser", {
iamPolicies: [{
resources: [{
service: "kms",
}],
roles: ["Viewer"],
}],
users: ["test@in.ibm.com"],
});
import pulumi
import pulumi_ibm as ibm
invite_user = ibm.IamUserInvite("inviteUser",
iam_policies=[{
"resources": [{
"service": "kms",
}],
"roles": ["Viewer"],
}],
users=["test@in.ibm.com"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
IamPolicies: ibm.IamUserInviteIamPolicyArray{
&ibm.IamUserInviteIamPolicyArgs{
Resources: ibm.IamUserInviteIamPolicyResourceArray{
&ibm.IamUserInviteIamPolicyResourceArgs{
Service: pulumi.String("kms"),
},
},
Roles: pulumi.StringArray{
pulumi.String("Viewer"),
},
},
},
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
IamPolicies = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyArgs
{
Resources = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyResourceArgs
{
Service = "kms",
},
},
Roles = new[]
{
"Viewer",
},
},
},
Users = new[]
{
"test@in.ibm.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
import com.pulumi.ibm.inputs.IamUserInviteIamPolicyArgs;
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 inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.iamPolicies(IamUserInviteIamPolicyArgs.builder()
.resources(IamUserInviteIamPolicyResourceArgs.builder()
.service("kms")
.build())
.roles("Viewer")
.build())
.users("test@in.ibm.com")
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
iamPolicies:
- resources:
- service: kms
roles:
- Viewer
users:
- test@in.ibm.com
Inviting batch of users with user policy using resource instance
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const instance = new ibm.ResourceInstance("instance", {
service: "kms",
plan: "tiered-pricing",
location: "us-south",
});
const inviteUser = new ibm.IamUserInvite("inviteUser", {
users: ["test@in.ibm.com"],
iamPolicies: [{
roles: [
"Manager",
"Viewer",
"Administrator",
],
resources: [{
service: "kms",
resourceInstanceId: instance.resourceInstanceId.apply(resourceInstanceId => resourceInstanceId.split(":"))[7],
}],
}],
});
import pulumi
import pulumi_ibm as ibm
instance = ibm.ResourceInstance("instance",
service="kms",
plan="tiered-pricing",
location="us-south")
invite_user = ibm.IamUserInvite("inviteUser",
users=["test@in.ibm.com"],
iam_policies=[{
"roles": [
"Manager",
"Viewer",
"Administrator",
],
"resources": [{
"service": "kms",
"resource_instance_id": instance.resource_instance_id.apply(lambda resource_instance_id: resource_instance_id.split(":"))[7],
}],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance, err := ibm.NewResourceInstance(ctx, "instance", &ibm.ResourceInstanceArgs{
Service: pulumi.String("kms"),
Plan: pulumi.String("tiered-pricing"),
Location: pulumi.String("us-south"),
})
if err != nil {
return err
}
_, err = ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
IamPolicies: ibm.IamUserInviteIamPolicyArray{
&ibm.IamUserInviteIamPolicyArgs{
Roles: pulumi.StringArray{
pulumi.String("Manager"),
pulumi.String("Viewer"),
pulumi.String("Administrator"),
},
Resources: ibm.IamUserInviteIamPolicyResourceArray{
&ibm.IamUserInviteIamPolicyResourceArgs{
Service: pulumi.String("kms"),
ResourceInstanceId: "TODO: call element",
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var instance = new Ibm.ResourceInstance("instance", new()
{
Service = "kms",
Plan = "tiered-pricing",
Location = "us-south",
});
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
Users = new[]
{
"test@in.ibm.com",
},
IamPolicies = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyArgs
{
Roles = new[]
{
"Manager",
"Viewer",
"Administrator",
},
Resources = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyResourceArgs
{
Service = "kms",
ResourceInstanceId = instance.ResourceInstanceId.Apply(resourceInstanceId => resourceInstanceId.Split(":"))[7],
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.ResourceInstance;
import com.pulumi.ibm.ResourceInstanceArgs;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
import com.pulumi.ibm.inputs.IamUserInviteIamPolicyArgs;
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 instance = new ResourceInstance("instance", ResourceInstanceArgs.builder()
.service("kms")
.plan("tiered-pricing")
.location("us-south")
.build());
var inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.users("test@in.ibm.com")
.iamPolicies(IamUserInviteIamPolicyArgs.builder()
.roles(
"Manager",
"Viewer",
"Administrator")
.resources(IamUserInviteIamPolicyResourceArgs.builder()
.service("kms")
.resourceInstanceId(instance.resourceInstanceId().applyValue(resourceInstanceId -> resourceInstanceId.split(":"))[7])
.build())
.build())
.build());
}
}
resources:
instance:
type: ibm:ResourceInstance
properties:
service: kms
plan: tiered-pricing
location: us-south
inviteUser:
type: ibm:IamUserInvite
properties:
users:
- test@in.ibm.com
iamPolicies:
- roles:
- Manager
- Viewer
- Administrator
resources:
- service: kms
resourceInstanceId:
fn::select:
- 7
- fn::split:
- ${instance.resourceInstanceId}
- ':'
Inviting batch of users with user policy using resource group
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const group = ibm.getResourceGroup({
name: "default",
});
const inviteUser = new ibm.IamUserInvite("inviteUser", {
users: ["test@in.ibm.com"],
iamPolicies: [{
roles: [
"Manager",
"Viewer",
"Administrator",
],
resources: [{
service: "containers-kubernetes",
resourceGroupId: group.then(group => group.id),
}],
}],
});
import pulumi
import pulumi_ibm as ibm
group = ibm.get_resource_group(name="default")
invite_user = ibm.IamUserInvite("inviteUser",
users=["test@in.ibm.com"],
iam_policies=[{
"roles": [
"Manager",
"Viewer",
"Administrator",
],
"resources": [{
"service": "containers-kubernetes",
"resource_group_id": group.id,
}],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
group, err := ibm.LookupResourceGroup(ctx, &ibm.LookupResourceGroupArgs{
Name: pulumi.StringRef("default"),
}, nil)
if err != nil {
return err
}
_, err = ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
IamPolicies: ibm.IamUserInviteIamPolicyArray{
&ibm.IamUserInviteIamPolicyArgs{
Roles: pulumi.StringArray{
pulumi.String("Manager"),
pulumi.String("Viewer"),
pulumi.String("Administrator"),
},
Resources: ibm.IamUserInviteIamPolicyResourceArray{
&ibm.IamUserInviteIamPolicyResourceArgs{
Service: pulumi.String("containers-kubernetes"),
ResourceGroupId: pulumi.String(group.Id),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var @group = Ibm.GetResourceGroup.Invoke(new()
{
Name = "default",
});
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
Users = new[]
{
"test@in.ibm.com",
},
IamPolicies = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyArgs
{
Roles = new[]
{
"Manager",
"Viewer",
"Administrator",
},
Resources = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyResourceArgs
{
Service = "containers-kubernetes",
ResourceGroupId = @group.Apply(@group => @group.Apply(getResourceGroupResult => getResourceGroupResult.Id)),
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetResourceGroupArgs;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
import com.pulumi.ibm.inputs.IamUserInviteIamPolicyArgs;
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 group = IbmFunctions.getResourceGroup(GetResourceGroupArgs.builder()
.name("default")
.build());
var inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.users("test@in.ibm.com")
.iamPolicies(IamUserInviteIamPolicyArgs.builder()
.roles(
"Manager",
"Viewer",
"Administrator")
.resources(IamUserInviteIamPolicyResourceArgs.builder()
.service("containers-kubernetes")
.resourceGroupId(group.applyValue(getResourceGroupResult -> getResourceGroupResult.id()))
.build())
.build())
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
users:
- test@in.ibm.com
iamPolicies:
- roles:
- Manager
- Viewer
- Administrator
resources:
- service: containers-kubernetes
resourceGroupId: ${group.id}
variables:
group:
fn::invoke:
function: ibm:getResourceGroup
arguments:
name: default
Inviting batch of users with user policy using resource and resource type
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const group = ibm.getResourceGroup({
name: "default",
});
const inviteUser = new ibm.IamUserInvite("inviteUser", {
users: ["test@in.ibm.com"],
iamPolicies: [{
roles: [
"Manager",
"Viewer",
"Administrator",
],
resources: [{
resourceType: "resource-group",
resource: group.then(group => group.id),
}],
}],
});
import pulumi
import pulumi_ibm as ibm
group = ibm.get_resource_group(name="default")
invite_user = ibm.IamUserInvite("inviteUser",
users=["test@in.ibm.com"],
iam_policies=[{
"roles": [
"Manager",
"Viewer",
"Administrator",
],
"resources": [{
"resource_type": "resource-group",
"resource": group.id,
}],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
group, err := ibm.LookupResourceGroup(ctx, &ibm.LookupResourceGroupArgs{
Name: pulumi.StringRef("default"),
}, nil)
if err != nil {
return err
}
_, err = ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
IamPolicies: ibm.IamUserInviteIamPolicyArray{
&ibm.IamUserInviteIamPolicyArgs{
Roles: pulumi.StringArray{
pulumi.String("Manager"),
pulumi.String("Viewer"),
pulumi.String("Administrator"),
},
Resources: ibm.IamUserInviteIamPolicyResourceArray{
&ibm.IamUserInviteIamPolicyResourceArgs{
ResourceType: pulumi.String("resource-group"),
Resource: pulumi.String(group.Id),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var @group = Ibm.GetResourceGroup.Invoke(new()
{
Name = "default",
});
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
Users = new[]
{
"test@in.ibm.com",
},
IamPolicies = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyArgs
{
Roles = new[]
{
"Manager",
"Viewer",
"Administrator",
},
Resources = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyResourceArgs
{
ResourceType = "resource-group",
Resource = @group.Apply(@group => @group.Apply(getResourceGroupResult => getResourceGroupResult.Id)),
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetResourceGroupArgs;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
import com.pulumi.ibm.inputs.IamUserInviteIamPolicyArgs;
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 group = IbmFunctions.getResourceGroup(GetResourceGroupArgs.builder()
.name("default")
.build());
var inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.users("test@in.ibm.com")
.iamPolicies(IamUserInviteIamPolicyArgs.builder()
.roles(
"Manager",
"Viewer",
"Administrator")
.resources(IamUserInviteIamPolicyResourceArgs.builder()
.resourceType("resource-group")
.resource(group.applyValue(getResourceGroupResult -> getResourceGroupResult.id()))
.build())
.build())
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
users:
- test@in.ibm.com
iamPolicies:
- roles:
- Manager
- Viewer
- Administrator
resources:
- resourceType: resource-group
resource: ${group.id}
variables:
group:
fn::invoke:
function: ibm:getResourceGroup
arguments:
name: default
Inviting batch of users with user policy using attributes
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const group = ibm.getResourceGroup({
name: "default",
});
const inviteUser = new ibm.IamUserInvite("inviteUser", {
iamPolicies: [{
resources: [{
attributes: {
vpcId: "*",
},
service: "is",
}],
roles: [
"Manager",
"Viewer",
"Administrator",
],
}],
users: ["test@in.ibm.com"],
});
import pulumi
import pulumi_ibm as ibm
group = ibm.get_resource_group(name="default")
invite_user = ibm.IamUserInvite("inviteUser",
iam_policies=[{
"resources": [{
"attributes": {
"vpcId": "*",
},
"service": "is",
}],
"roles": [
"Manager",
"Viewer",
"Administrator",
],
}],
users=["test@in.ibm.com"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.LookupResourceGroup(ctx, &ibm.LookupResourceGroupArgs{
Name: pulumi.StringRef("default"),
}, nil)
if err != nil {
return err
}
_, err = ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
IamPolicies: ibm.IamUserInviteIamPolicyArray{
&ibm.IamUserInviteIamPolicyArgs{
Resources: ibm.IamUserInviteIamPolicyResourceArray{
&ibm.IamUserInviteIamPolicyResourceArgs{
Attributes: pulumi.StringMap{
"vpcId": pulumi.String("*"),
},
Service: pulumi.String("is"),
},
},
Roles: pulumi.StringArray{
pulumi.String("Manager"),
pulumi.String("Viewer"),
pulumi.String("Administrator"),
},
},
},
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var @group = Ibm.GetResourceGroup.Invoke(new()
{
Name = "default",
});
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
IamPolicies = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyArgs
{
Resources = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyResourceArgs
{
Attributes =
{
{ "vpcId", "*" },
},
Service = "is",
},
},
Roles = new[]
{
"Manager",
"Viewer",
"Administrator",
},
},
},
Users = new[]
{
"test@in.ibm.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetResourceGroupArgs;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
import com.pulumi.ibm.inputs.IamUserInviteIamPolicyArgs;
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 group = IbmFunctions.getResourceGroup(GetResourceGroupArgs.builder()
.name("default")
.build());
var inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.iamPolicies(IamUserInviteIamPolicyArgs.builder()
.resources(IamUserInviteIamPolicyResourceArgs.builder()
.attributes(Map.of("vpcId", "*"))
.service("is")
.build())
.roles(
"Manager",
"Viewer",
"Administrator")
.build())
.users("test@in.ibm.com")
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
iamPolicies:
- resources:
- attributes:
vpcId: '*'
service: is
roles:
- Manager
- Viewer
- Administrator
users:
- test@in.ibm.com
variables:
group:
fn::invoke:
function: ibm:getResourceGroup
arguments:
name: default
User invite with access Cloud Foundry roles
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const org = ibm.getOrg({
org: _var.org,
});
const space = ibm.getSpace({
org: _var.org,
space: _var.space,
});
const inviteUser = new ibm.IamUserInvite("inviteUser", {
users: ["test@in.ibm.com"],
cloudFoundryRoles: [{
organizationGuid: org.then(org => org.id),
orgRoles: [
"Manager",
"Auditor",
],
spaces: [{
spaceGuid: space.then(space => space.id),
spaceRoles: [
"Manager",
"Developer",
],
}],
}],
});
import pulumi
import pulumi_ibm as ibm
org = ibm.get_org(org=var["org"])
space = ibm.get_space(org=var["org"],
space=var["space"])
invite_user = ibm.IamUserInvite("inviteUser",
users=["test@in.ibm.com"],
cloud_foundry_roles=[{
"organization_guid": org.id,
"org_roles": [
"Manager",
"Auditor",
],
"spaces": [{
"space_guid": space.id,
"space_roles": [
"Manager",
"Developer",
],
}],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
org, err := ibm.LookupOrg(ctx, &ibm.LookupOrgArgs{
Org: pulumi.StringRef(_var.Org),
}, nil)
if err != nil {
return err
}
space, err := ibm.LookupSpace(ctx, &ibm.LookupSpaceArgs{
Org: _var.Org,
Space: pulumi.StringRef(_var.Space),
}, nil)
if err != nil {
return err
}
_, err = ibm.NewIamUserInvite(ctx, "inviteUser", &ibm.IamUserInviteArgs{
Users: pulumi.StringArray{
pulumi.String("test@in.ibm.com"),
},
CloudFoundryRoles: ibm.IamUserInviteCloudFoundryRoleArray{
&ibm.IamUserInviteCloudFoundryRoleArgs{
OrganizationGuid: pulumi.String(org.Id),
OrgRoles: pulumi.StringArray{
pulumi.String("Manager"),
pulumi.String("Auditor"),
},
Spaces: ibm.IamUserInviteCloudFoundryRoleSpaceArray{
&ibm.IamUserInviteCloudFoundryRoleSpaceArgs{
SpaceGuid: pulumi.String(space.Id),
SpaceRoles: pulumi.StringArray{
pulumi.String("Manager"),
pulumi.String("Developer"),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var org = Ibm.GetOrg.Invoke(new()
{
Org = @var.Org,
});
var space = Ibm.GetSpace.Invoke(new()
{
Org = @var.Org,
Space = @var.Space,
});
var inviteUser = new Ibm.IamUserInvite("inviteUser", new()
{
Users = new[]
{
"test@in.ibm.com",
},
CloudFoundryRoles = new[]
{
new Ibm.Inputs.IamUserInviteCloudFoundryRoleArgs
{
OrganizationGuid = org.Apply(getOrgResult => getOrgResult.Id),
OrgRoles = new[]
{
"Manager",
"Auditor",
},
Spaces = new[]
{
new Ibm.Inputs.IamUserInviteCloudFoundryRoleSpaceArgs
{
SpaceGuid = space.Apply(getSpaceResult => getSpaceResult.Id),
SpaceRoles = new[]
{
"Manager",
"Developer",
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetOrgArgs;
import com.pulumi.ibm.inputs.GetSpaceArgs;
import com.pulumi.ibm.IamUserInvite;
import com.pulumi.ibm.IamUserInviteArgs;
import com.pulumi.ibm.inputs.IamUserInviteCloudFoundryRoleArgs;
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 org = IbmFunctions.getOrg(GetOrgArgs.builder()
.org(var_.org())
.build());
final var space = IbmFunctions.getSpace(GetSpaceArgs.builder()
.org(var_.org())
.space(var_.space())
.build());
var inviteUser = new IamUserInvite("inviteUser", IamUserInviteArgs.builder()
.users("test@in.ibm.com")
.cloudFoundryRoles(IamUserInviteCloudFoundryRoleArgs.builder()
.organizationGuid(org.applyValue(getOrgResult -> getOrgResult.id()))
.orgRoles(
"Manager",
"Auditor")
.spaces(IamUserInviteCloudFoundryRoleSpaceArgs.builder()
.spaceGuid(space.applyValue(getSpaceResult -> getSpaceResult.id()))
.spaceRoles(
"Manager",
"Developer")
.build())
.build())
.build());
}
}
resources:
inviteUser:
type: ibm:IamUserInvite
properties:
users:
- test@in.ibm.com
cloudFoundryRoles:
- organizationGuid: ${org.id}
orgRoles:
- Manager
- Auditor
spaces:
- spaceGuid: ${space.id}
spaceRoles:
- Manager
- Developer
variables:
org:
fn::invoke:
function: ibm:getOrg
arguments:
org: ${var.org}
space:
fn::invoke:
function: ibm:getSpace
arguments:
org: ${var.org}
space: ${var.space}
Create IamUserInvite Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IamUserInvite(name: string, args: IamUserInviteArgs, opts?: CustomResourceOptions);
@overload
def IamUserInvite(resource_name: str,
args: IamUserInviteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IamUserInvite(resource_name: str,
opts: Optional[ResourceOptions] = None,
users: Optional[Sequence[str]] = None,
access_groups: Optional[Sequence[str]] = None,
classic_infra_roles: Optional[Sequence[IamUserInviteClassicInfraRoleArgs]] = None,
cloud_foundry_roles: Optional[Sequence[IamUserInviteCloudFoundryRoleArgs]] = None,
iam_policies: Optional[Sequence[IamUserInviteIamPolicyArgs]] = None,
iam_user_invite_id: Optional[str] = None)
func NewIamUserInvite(ctx *Context, name string, args IamUserInviteArgs, opts ...ResourceOption) (*IamUserInvite, error)
public IamUserInvite(string name, IamUserInviteArgs args, CustomResourceOptions? opts = null)
public IamUserInvite(String name, IamUserInviteArgs args)
public IamUserInvite(String name, IamUserInviteArgs args, CustomResourceOptions options)
type: ibm:IamUserInvite
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 IamUserInviteArgs
- 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 IamUserInviteArgs
- 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 IamUserInviteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamUserInviteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamUserInviteArgs
- 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 iamUserInviteResource = new Ibm.IamUserInvite("iamUserInviteResource", new()
{
Users = new[]
{
"string",
},
AccessGroups = new[]
{
"string",
},
ClassicInfraRoles = new[]
{
new Ibm.Inputs.IamUserInviteClassicInfraRoleArgs
{
PermissionSet = "string",
Permissions = new[]
{
"string",
},
},
},
CloudFoundryRoles = new[]
{
new Ibm.Inputs.IamUserInviteCloudFoundryRoleArgs
{
OrgRoles = new[]
{
"string",
},
OrganizationGuid = "string",
Spaces = new[]
{
new Ibm.Inputs.IamUserInviteCloudFoundryRoleSpaceArgs
{
SpaceGuid = "string",
SpaceRoles = new[]
{
"string",
},
},
},
},
},
IamPolicies = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyArgs
{
Roles = new[]
{
"string",
},
AccountManagement = false,
Resources = new[]
{
new Ibm.Inputs.IamUserInviteIamPolicyResourceArgs
{
Attributes =
{
{ "string", "string" },
},
Region = "string",
Resource = "string",
ResourceGroupId = "string",
ResourceInstanceId = "string",
ResourceType = "string",
Service = "string",
},
},
},
},
IamUserInviteId = "string",
});
example, err := ibm.NewIamUserInvite(ctx, "iamUserInviteResource", &ibm.IamUserInviteArgs{
Users: pulumi.StringArray{
pulumi.String("string"),
},
AccessGroups: pulumi.StringArray{
pulumi.String("string"),
},
ClassicInfraRoles: ibm.IamUserInviteClassicInfraRoleArray{
&ibm.IamUserInviteClassicInfraRoleArgs{
PermissionSet: pulumi.String("string"),
Permissions: pulumi.StringArray{
pulumi.String("string"),
},
},
},
CloudFoundryRoles: ibm.IamUserInviteCloudFoundryRoleArray{
&ibm.IamUserInviteCloudFoundryRoleArgs{
OrgRoles: pulumi.StringArray{
pulumi.String("string"),
},
OrganizationGuid: pulumi.String("string"),
Spaces: ibm.IamUserInviteCloudFoundryRoleSpaceArray{
&ibm.IamUserInviteCloudFoundryRoleSpaceArgs{
SpaceGuid: pulumi.String("string"),
SpaceRoles: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
IamPolicies: ibm.IamUserInviteIamPolicyArray{
&ibm.IamUserInviteIamPolicyArgs{
Roles: pulumi.StringArray{
pulumi.String("string"),
},
AccountManagement: pulumi.Bool(false),
Resources: ibm.IamUserInviteIamPolicyResourceArray{
&ibm.IamUserInviteIamPolicyResourceArgs{
Attributes: pulumi.StringMap{
"string": pulumi.String("string"),
},
Region: pulumi.String("string"),
Resource: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
ResourceInstanceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
Service: pulumi.String("string"),
},
},
},
},
IamUserInviteId: pulumi.String("string"),
})
var iamUserInviteResource = new IamUserInvite("iamUserInviteResource", IamUserInviteArgs.builder()
.users("string")
.accessGroups("string")
.classicInfraRoles(IamUserInviteClassicInfraRoleArgs.builder()
.permissionSet("string")
.permissions("string")
.build())
.cloudFoundryRoles(IamUserInviteCloudFoundryRoleArgs.builder()
.orgRoles("string")
.organizationGuid("string")
.spaces(IamUserInviteCloudFoundryRoleSpaceArgs.builder()
.spaceGuid("string")
.spaceRoles("string")
.build())
.build())
.iamPolicies(IamUserInviteIamPolicyArgs.builder()
.roles("string")
.accountManagement(false)
.resources(IamUserInviteIamPolicyResourceArgs.builder()
.attributes(Map.of("string", "string"))
.region("string")
.resource("string")
.resourceGroupId("string")
.resourceInstanceId("string")
.resourceType("string")
.service("string")
.build())
.build())
.iamUserInviteId("string")
.build());
iam_user_invite_resource = ibm.IamUserInvite("iamUserInviteResource",
users=["string"],
access_groups=["string"],
classic_infra_roles=[{
"permission_set": "string",
"permissions": ["string"],
}],
cloud_foundry_roles=[{
"org_roles": ["string"],
"organization_guid": "string",
"spaces": [{
"space_guid": "string",
"space_roles": ["string"],
}],
}],
iam_policies=[{
"roles": ["string"],
"account_management": False,
"resources": [{
"attributes": {
"string": "string",
},
"region": "string",
"resource": "string",
"resource_group_id": "string",
"resource_instance_id": "string",
"resource_type": "string",
"service": "string",
}],
}],
iam_user_invite_id="string")
const iamUserInviteResource = new ibm.IamUserInvite("iamUserInviteResource", {
users: ["string"],
accessGroups: ["string"],
classicInfraRoles: [{
permissionSet: "string",
permissions: ["string"],
}],
cloudFoundryRoles: [{
orgRoles: ["string"],
organizationGuid: "string",
spaces: [{
spaceGuid: "string",
spaceRoles: ["string"],
}],
}],
iamPolicies: [{
roles: ["string"],
accountManagement: false,
resources: [{
attributes: {
string: "string",
},
region: "string",
resource: "string",
resourceGroupId: "string",
resourceInstanceId: "string",
resourceType: "string",
service: "string",
}],
}],
iamUserInviteId: "string",
});
type: ibm:IamUserInvite
properties:
accessGroups:
- string
classicInfraRoles:
- permissionSet: string
permissions:
- string
cloudFoundryRoles:
- orgRoles:
- string
organizationGuid: string
spaces:
- spaceGuid: string
spaceRoles:
- string
iamPolicies:
- accountManagement: false
resources:
- attributes:
string: string
region: string
resource: string
resourceGroupId: string
resourceInstanceId: string
resourceType: string
service: string
roles:
- string
iamUserInviteId: string
users:
- string
IamUserInvite 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 IamUserInvite resource accepts the following input properties:
- Users List<string>
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.- Access
Groups List<string> - A comma separated list of access group IDs.
- Classic
Infra List<IamRoles User Invite Classic Infra Role> A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- Cloud
Foundry List<IamRoles User Invite Cloud Foundry Role> A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- Iam
Policies List<IamUser Invite Iam Policy> A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- Iam
User stringInvite Id - (String) The policy ID.
- Users []string
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.- Access
Groups []string - A comma separated list of access group IDs.
- Classic
Infra []IamRoles User Invite Classic Infra Role Args A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- Cloud
Foundry []IamRoles User Invite Cloud Foundry Role Args A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- Iam
Policies []IamUser Invite Iam Policy Args A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- Iam
User stringInvite Id - (String) The policy ID.
- users List<String>
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.- access
Groups List<String> - A comma separated list of access group IDs.
- classic
Infra List<IamRoles User Invite Classic Infra Role> A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- cloud
Foundry List<IamRoles User Invite Cloud Foundry Role> A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- iam
Policies List<IamUser Invite Iam Policy> A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- iam
User StringInvite Id - (String) The policy ID.
- users string[]
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.- access
Groups string[] - A comma separated list of access group IDs.
- classic
Infra IamRoles User Invite Classic Infra Role[] A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- cloud
Foundry IamRoles User Invite Cloud Foundry Role[] A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- iam
Policies IamUser Invite Iam Policy[] A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- iam
User stringInvite Id - (String) The policy ID.
- users Sequence[str]
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.- access_
groups Sequence[str] - A comma separated list of access group IDs.
- classic_
infra_ Sequence[Iamroles User Invite Classic Infra Role Args] A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- cloud_
foundry_ Sequence[Iamroles User Invite Cloud Foundry Role Args] A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- iam_
policies Sequence[IamUser Invite Iam Policy Args] A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- iam_
user_ strinvite_ id - (String) The policy ID.
- users List<String>
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.- access
Groups List<String> - A comma separated list of access group IDs.
- classic
Infra List<Property Map>Roles A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- cloud
Foundry List<Property Map>Roles A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- iam
Policies List<Property Map> A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- iam
User StringInvite Id - (String) The policy ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the IamUserInvite resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Invited
Users List<IamUser Invite Invited User> - (String) List of invited users.
- Number
Of doubleInvited Users - (String) Number of users invited to a particular account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invited
Users []IamUser Invite Invited User - (String) List of invited users.
- Number
Of float64Invited Users - (String) Number of users invited to a particular account.
- id String
- The provider-assigned unique ID for this managed resource.
- invited
Users List<IamUser Invite Invited User> - (String) List of invited users.
- number
Of DoubleInvited Users - (String) Number of users invited to a particular account.
- id string
- The provider-assigned unique ID for this managed resource.
- invited
Users IamUser Invite Invited User[] - (String) List of invited users.
- number
Of numberInvited Users - (String) Number of users invited to a particular account.
- id str
- The provider-assigned unique ID for this managed resource.
- invited_
users Sequence[IamUser Invite Invited User] - (String) List of invited users.
- number_
of_ floatinvited_ users - (String) Number of users invited to a particular account.
- id String
- The provider-assigned unique ID for this managed resource.
- invited
Users List<Property Map> - (String) List of invited users.
- number
Of NumberInvited Users - (String) Number of users invited to a particular account.
Look up Existing IamUserInvite Resource
Get an existing IamUserInvite 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?: IamUserInviteState, opts?: CustomResourceOptions): IamUserInvite
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_groups: Optional[Sequence[str]] = None,
classic_infra_roles: Optional[Sequence[IamUserInviteClassicInfraRoleArgs]] = None,
cloud_foundry_roles: Optional[Sequence[IamUserInviteCloudFoundryRoleArgs]] = None,
iam_policies: Optional[Sequence[IamUserInviteIamPolicyArgs]] = None,
iam_user_invite_id: Optional[str] = None,
invited_users: Optional[Sequence[IamUserInviteInvitedUserArgs]] = None,
number_of_invited_users: Optional[float] = None,
users: Optional[Sequence[str]] = None) -> IamUserInvite
func GetIamUserInvite(ctx *Context, name string, id IDInput, state *IamUserInviteState, opts ...ResourceOption) (*IamUserInvite, error)
public static IamUserInvite Get(string name, Input<string> id, IamUserInviteState? state, CustomResourceOptions? opts = null)
public static IamUserInvite get(String name, Output<String> id, IamUserInviteState state, CustomResourceOptions options)
resources: _: type: ibm:IamUserInvite 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.
- Access
Groups List<string> - A comma separated list of access group IDs.
- Classic
Infra List<IamRoles User Invite Classic Infra Role> A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- Cloud
Foundry List<IamRoles User Invite Cloud Foundry Role> A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- Iam
Policies List<IamUser Invite Iam Policy> A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- Iam
User stringInvite Id - (String) The policy ID.
- Invited
Users List<IamUser Invite Invited User> - (String) List of invited users.
- Number
Of doubleInvited Users - (String) Number of users invited to a particular account.
- Users List<string>
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.
- Access
Groups []string - A comma separated list of access group IDs.
- Classic
Infra []IamRoles User Invite Classic Infra Role Args A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- Cloud
Foundry []IamRoles User Invite Cloud Foundry Role Args A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- Iam
Policies []IamUser Invite Iam Policy Args A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- Iam
User stringInvite Id - (String) The policy ID.
- Invited
Users []IamUser Invite Invited User Args - (String) List of invited users.
- Number
Of float64Invited Users - (String) Number of users invited to a particular account.
- Users []string
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.
- access
Groups List<String> - A comma separated list of access group IDs.
- classic
Infra List<IamRoles User Invite Classic Infra Role> A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- cloud
Foundry List<IamRoles User Invite Cloud Foundry Role> A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- iam
Policies List<IamUser Invite Iam Policy> A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- iam
User StringInvite Id - (String) The policy ID.
- invited
Users List<IamUser Invite Invited User> - (String) List of invited users.
- number
Of DoubleInvited Users - (String) Number of users invited to a particular account.
- users List<String>
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.
- access
Groups string[] - A comma separated list of access group IDs.
- classic
Infra IamRoles User Invite Classic Infra Role[] A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- cloud
Foundry IamRoles User Invite Cloud Foundry Role[] A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- iam
Policies IamUser Invite Iam Policy[] A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- iam
User stringInvite Id - (String) The policy ID.
- invited
Users IamUser Invite Invited User[] - (String) List of invited users.
- number
Of numberInvited Users - (String) Number of users invited to a particular account.
- users string[]
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.
- access_
groups Sequence[str] - A comma separated list of access group IDs.
- classic_
infra_ Sequence[Iamroles User Invite Classic Infra Role Args] A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- cloud_
foundry_ Sequence[Iamroles User Invite Cloud Foundry Role Args] A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- iam_
policies Sequence[IamUser Invite Iam Policy Args] A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- iam_
user_ strinvite_ id - (String) The policy ID.
- invited_
users Sequence[IamUser Invite Invited User Args] - (String) List of invited users.
- number_
of_ floatinvited_ users - (String) Number of users invited to a particular account.
- users Sequence[str]
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.
- access
Groups List<String> - A comma separated list of access group IDs.
- classic
Infra List<Property Map>Roles A nested block describes the classic infrastructure roles for the inviting users. Note If you have an IBM Cloud Lite account, you cannot set classic infrastructure roles. For more information, about Lite accounts, see What's available?.
Nested scheme for
classic_infra_roles
:- cloud
Foundry List<Property Map>Roles A nested block describes the cloud foundry roles of inviting user.
Nested scheme for
cloud_foundry_roles
:- iam
Policies List<Property Map> A nested block describes the IAM policies for invited users.
Nested scheme for
iam_policy
:- iam
User StringInvite Id - (String) The policy ID.
- invited
Users List<Property Map> - (String) List of invited users.
- number
Of NumberInvited Users - (String) Number of users invited to a particular account.
- users List<String>
A comma separated list of user Email IDs.
Note
IBM Cloud
Lite account
does not support classic infrastructure roles. For more information, see What's available in lite account?.
Supporting Types
IamUserInviteClassicInfraRole, IamUserInviteClassicInfraRoleArgs
- Permission
Set string - The permission set to be applied. The valid permission sets are
noacess
,viewonly
,basicuser
, andsuperuser
. - Permissions List<string>
- A comma separated list of classic infrastructure permissions.
- Permission
Set string - The permission set to be applied. The valid permission sets are
noacess
,viewonly
,basicuser
, andsuperuser
. - Permissions []string
- A comma separated list of classic infrastructure permissions.
- permission
Set String - The permission set to be applied. The valid permission sets are
noacess
,viewonly
,basicuser
, andsuperuser
. - permissions List<String>
- A comma separated list of classic infrastructure permissions.
- permission
Set string - The permission set to be applied. The valid permission sets are
noacess
,viewonly
,basicuser
, andsuperuser
. - permissions string[]
- A comma separated list of classic infrastructure permissions.
- permission_
set str - The permission set to be applied. The valid permission sets are
noacess
,viewonly
,basicuser
, andsuperuser
. - permissions Sequence[str]
- A comma separated list of classic infrastructure permissions.
- permission
Set String - The permission set to be applied. The valid permission sets are
noacess
,viewonly
,basicuser
, andsuperuser
. - permissions List<String>
- A comma separated list of classic infrastructure permissions.
IamUserInviteCloudFoundryRole, IamUserInviteCloudFoundryRoleArgs
- Org
Roles List<string> - The organization roles that are assigned to invited user. The supported roles are
Manager
,Auditor
,BillingManager
. - Organization
Guid string - The ID of the Cloud Foundry organization.
- Spaces
List<Iam
User Invite Cloud Foundry Role Space> A nested block describes the Cloud Foundry space roles and space details.
Nested scheme for
spaces
:
- Org
Roles []string - The organization roles that are assigned to invited user. The supported roles are
Manager
,Auditor
,BillingManager
. - Organization
Guid string - The ID of the Cloud Foundry organization.
- Spaces
[]Iam
User Invite Cloud Foundry Role Space A nested block describes the Cloud Foundry space roles and space details.
Nested scheme for
spaces
:
- org
Roles List<String> - The organization roles that are assigned to invited user. The supported roles are
Manager
,Auditor
,BillingManager
. - organization
Guid String - The ID of the Cloud Foundry organization.
- spaces
List<Iam
User Invite Cloud Foundry Role Space> A nested block describes the Cloud Foundry space roles and space details.
Nested scheme for
spaces
:
- org
Roles string[] - The organization roles that are assigned to invited user. The supported roles are
Manager
,Auditor
,BillingManager
. - organization
Guid string - The ID of the Cloud Foundry organization.
- spaces
Iam
User Invite Cloud Foundry Role Space[] A nested block describes the Cloud Foundry space roles and space details.
Nested scheme for
spaces
:
- org_
roles Sequence[str] - The organization roles that are assigned to invited user. The supported roles are
Manager
,Auditor
,BillingManager
. - organization_
guid str - The ID of the Cloud Foundry organization.
- spaces
Sequence[Iam
User Invite Cloud Foundry Role Space] A nested block describes the Cloud Foundry space roles and space details.
Nested scheme for
spaces
:
- org
Roles List<String> - The organization roles that are assigned to invited user. The supported roles are
Manager
,Auditor
,BillingManager
. - organization
Guid String - The ID of the Cloud Foundry organization.
- spaces List<Property Map>
A nested block describes the Cloud Foundry space roles and space details.
Nested scheme for
spaces
:
IamUserInviteCloudFoundryRoleSpace, IamUserInviteCloudFoundryRoleSpaceArgs
- Space
Guid string - The ID of the Cloud Foundry space.
- Space
Roles List<string> - The space roles that you want to assign to the invited user. The supported space roles are
Manager
,Developer
,Auditor
.
- Space
Guid string - The ID of the Cloud Foundry space.
- Space
Roles []string - The space roles that you want to assign to the invited user. The supported space roles are
Manager
,Developer
,Auditor
.
- space
Guid String - The ID of the Cloud Foundry space.
- space
Roles List<String> - The space roles that you want to assign to the invited user. The supported space roles are
Manager
,Developer
,Auditor
.
- space
Guid string - The ID of the Cloud Foundry space.
- space
Roles string[] - The space roles that you want to assign to the invited user. The supported space roles are
Manager
,Developer
,Auditor
.
- space_
guid str - The ID of the Cloud Foundry space.
- space_
roles Sequence[str] - The space roles that you want to assign to the invited user. The supported space roles are
Manager
,Developer
,Auditor
.
- space
Guid String - The ID of the Cloud Foundry space.
- space
Roles List<String> - The space roles that you want to assign to the invited user. The supported space roles are
Manager
,Developer
,Auditor
.
IamUserInviteIamPolicy, IamUserInviteIamPolicyArgs
- Roles List<string>
- A comma separated list of roles. Valid roles are
Writer
,Reader
,Manager
,Administrator
,Operator
,Viewer
, andEditor
. - Account
Management bool - Gives access to all account management services if set to true. Default value is false. If you set this option, do not set
resources
at the same time. - Resources
List<Iam
User Invite Iam Policy Resource> Optional- A nested block describes the resource of this policy. For more information, about supported service specific roles, see IAM roles and actions
Nested scheme for
resources
:
- Roles []string
- A comma separated list of roles. Valid roles are
Writer
,Reader
,Manager
,Administrator
,Operator
,Viewer
, andEditor
. - Account
Management bool - Gives access to all account management services if set to true. Default value is false. If you set this option, do not set
resources
at the same time. - Resources
[]Iam
User Invite Iam Policy Resource Optional- A nested block describes the resource of this policy. For more information, about supported service specific roles, see IAM roles and actions
Nested scheme for
resources
:
- roles List<String>
- A comma separated list of roles. Valid roles are
Writer
,Reader
,Manager
,Administrator
,Operator
,Viewer
, andEditor
. - account
Management Boolean - Gives access to all account management services if set to true. Default value is false. If you set this option, do not set
resources
at the same time. - resources
List<Iam
User Invite Iam Policy Resource> Optional- A nested block describes the resource of this policy. For more information, about supported service specific roles, see IAM roles and actions
Nested scheme for
resources
:
- roles string[]
- A comma separated list of roles. Valid roles are
Writer
,Reader
,Manager
,Administrator
,Operator
,Viewer
, andEditor
. - account
Management boolean - Gives access to all account management services if set to true. Default value is false. If you set this option, do not set
resources
at the same time. - resources
Iam
User Invite Iam Policy Resource[] Optional- A nested block describes the resource of this policy. For more information, about supported service specific roles, see IAM roles and actions
Nested scheme for
resources
:
- roles Sequence[str]
- A comma separated list of roles. Valid roles are
Writer
,Reader
,Manager
,Administrator
,Operator
,Viewer
, andEditor
. - account_
management bool - Gives access to all account management services if set to true. Default value is false. If you set this option, do not set
resources
at the same time. - resources
Sequence[Iam
User Invite Iam Policy Resource] Optional- A nested block describes the resource of this policy. For more information, about supported service specific roles, see IAM roles and actions
Nested scheme for
resources
:
- roles List<String>
- A comma separated list of roles. Valid roles are
Writer
,Reader
,Manager
,Administrator
,Operator
,Viewer
, andEditor
. - account
Management Boolean - Gives access to all account management services if set to true. Default value is false. If you set this option, do not set
resources
at the same time. - resources List<Property Map>
Optional- A nested block describes the resource of this policy. For more information, about supported service specific roles, see IAM roles and actions
Nested scheme for
resources
:
IamUserInviteIamPolicyResource, IamUserInviteIamPolicyResourceArgs
- Attributes Dictionary<string, string>
- A set of resource attributes in the format
name=value, name=value
. If you set this option, do not specifyaccount_management
at the same time. - Region string
- The region of the policy definition.
- Resource string
- The resource of the policy definition.
- Resource
Group stringId - The ID of the resource group. To retrieve the value, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - Resource
Instance stringId - The ID of the resource instance of the policy definition.
- Resource
Type string - The resource type of the policy definition.
- Service string
- The service name of the policy definition. You can retrieve the value by running the
ibmcloud catalog service-marketplace
oribmcloud catalog search
command in the IBM Cloud CLI.
- Attributes map[string]string
- A set of resource attributes in the format
name=value, name=value
. If you set this option, do not specifyaccount_management
at the same time. - Region string
- The region of the policy definition.
- Resource string
- The resource of the policy definition.
- Resource
Group stringId - The ID of the resource group. To retrieve the value, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - Resource
Instance stringId - The ID of the resource instance of the policy definition.
- Resource
Type string - The resource type of the policy definition.
- Service string
- The service name of the policy definition. You can retrieve the value by running the
ibmcloud catalog service-marketplace
oribmcloud catalog search
command in the IBM Cloud CLI.
- attributes Map<String,String>
- A set of resource attributes in the format
name=value, name=value
. If you set this option, do not specifyaccount_management
at the same time. - region String
- The region of the policy definition.
- resource String
- The resource of the policy definition.
- resource
Group StringId - The ID of the resource group. To retrieve the value, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - resource
Instance StringId - The ID of the resource instance of the policy definition.
- resource
Type String - The resource type of the policy definition.
- service String
- The service name of the policy definition. You can retrieve the value by running the
ibmcloud catalog service-marketplace
oribmcloud catalog search
command in the IBM Cloud CLI.
- attributes {[key: string]: string}
- A set of resource attributes in the format
name=value, name=value
. If you set this option, do not specifyaccount_management
at the same time. - region string
- The region of the policy definition.
- resource string
- The resource of the policy definition.
- resource
Group stringId - The ID of the resource group. To retrieve the value, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - resource
Instance stringId - The ID of the resource instance of the policy definition.
- resource
Type string - The resource type of the policy definition.
- service string
- The service name of the policy definition. You can retrieve the value by running the
ibmcloud catalog service-marketplace
oribmcloud catalog search
command in the IBM Cloud CLI.
- attributes Mapping[str, str]
- A set of resource attributes in the format
name=value, name=value
. If you set this option, do not specifyaccount_management
at the same time. - region str
- The region of the policy definition.
- resource str
- The resource of the policy definition.
- resource_
group_ strid - The ID of the resource group. To retrieve the value, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - resource_
instance_ strid - The ID of the resource instance of the policy definition.
- resource_
type str - The resource type of the policy definition.
- service str
- The service name of the policy definition. You can retrieve the value by running the
ibmcloud catalog service-marketplace
oribmcloud catalog search
command in the IBM Cloud CLI.
- attributes Map<String>
- A set of resource attributes in the format
name=value, name=value
. If you set this option, do not specifyaccount_management
at the same time. - region String
- The region of the policy definition.
- resource String
- The resource of the policy definition.
- resource
Group StringId - The ID of the resource group. To retrieve the value, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - resource
Instance StringId - The ID of the resource instance of the policy definition.
- resource
Type String - The resource type of the policy definition.
- service String
- The service name of the policy definition. You can retrieve the value by running the
ibmcloud catalog service-marketplace
oribmcloud catalog search
command in the IBM Cloud CLI.
IamUserInviteInvitedUser, IamUserInviteInvitedUserArgs
- Access
Groups List<IamUser Invite Invited User Access Group> - A comma separated list of access group IDs.
- User
Id string - (String) The Email ID of the member.
- User
Policies List<IamUser Invite Invited User User Policy> - (String) List of policies associated to a particular user.
- Access
Groups []IamUser Invite Invited User Access Group - A comma separated list of access group IDs.
- User
Id string - (String) The Email ID of the member.
- User
Policies []IamUser Invite Invited User User Policy - (String) List of policies associated to a particular user.
- access
Groups List<IamUser Invite Invited User Access Group> - A comma separated list of access group IDs.
- user
Id String - (String) The Email ID of the member.
- user
Policies List<IamUser Invite Invited User User Policy> - (String) List of policies associated to a particular user.
- access
Groups IamUser Invite Invited User Access Group[] - A comma separated list of access group IDs.
- user
Id string - (String) The Email ID of the member.
- user
Policies IamUser Invite Invited User User Policy[] - (String) List of policies associated to a particular user.
- access_
groups Sequence[IamUser Invite Invited User Access Group] - A comma separated list of access group IDs.
- user_
id str - (String) The Email ID of the member.
- user_
policies Sequence[IamUser Invite Invited User User Policy] - (String) List of policies associated to a particular user.
- access
Groups List<Property Map> - A comma separated list of access group IDs.
- user
Id String - (String) The Email ID of the member.
- user
Policies List<Property Map> - (String) List of policies associated to a particular user.
IamUserInviteInvitedUserAccessGroup, IamUserInviteInvitedUserAccessGroupArgs
- Name string
- (String) The name of the access group.
- Policies
List<Iam
User Invite Invited User Access Group Policy> - (String) The access group policies of invited user.
- Name string
- (String) The name of the access group.
- Policies
[]Iam
User Invite Invited User Access Group Policy - (String) The access group policies of invited user.
- name String
- (String) The name of the access group.
- policies
List<Iam
User Invite Invited User Access Group Policy> - (String) The access group policies of invited user.
- name string
- (String) The name of the access group.
- policies
Iam
User Invite Invited User Access Group Policy[] - (String) The access group policies of invited user.
- name str
- (String) The name of the access group.
- policies
Sequence[Iam
User Invite Invited User Access Group Policy] - (String) The access group policies of invited user.
- name String
- (String) The name of the access group.
- policies List<Property Map>
- (String) The access group policies of invited user.
IamUserInviteInvitedUserAccessGroupPolicy, IamUserInviteInvitedUserAccessGroupPolicyArgs
- Id string
- (String) The policy ID.
- Resources
List<Iam
User Invite Invited User Access Group Policy Resource> - (String) A nested block describes the resource of the policy.
- Roles List<string>
- (String) Comma separated list of the roles.
- Id string
- (String) The policy ID.
- Resources
[]Iam
User Invite Invited User Access Group Policy Resource - (String) A nested block describes the resource of the policy.
- Roles []string
- (String) Comma separated list of the roles.
- id String
- (String) The policy ID.
- resources
List<Iam
User Invite Invited User Access Group Policy Resource> - (String) A nested block describes the resource of the policy.
- roles List<String>
- (String) Comma separated list of the roles.
- id string
- (String) The policy ID.
- resources
Iam
User Invite Invited User Access Group Policy Resource[] - (String) A nested block describes the resource of the policy.
- roles string[]
- (String) Comma separated list of the roles.
- id str
- (String) The policy ID.
- resources
Sequence[Iam
User Invite Invited User Access Group Policy Resource] - (String) A nested block describes the resource of the policy.
- roles Sequence[str]
- (String) Comma separated list of the roles.
- id String
- (String) The policy ID.
- resources List<Property Map>
- (String) A nested block describes the resource of the policy.
- roles List<String>
- (String) Comma separated list of the roles.
IamUserInviteInvitedUserAccessGroupPolicyResource, IamUserInviteInvitedUserAccessGroupPolicyResourceArgs
- Attributes Dictionary<string, string>
- (String) The set of resource attributes.
- Region string
- (String) The region of the policy definition.
- Resource string
- (String) The resource of the policy definition.
- Resource
Group stringId - (String) The ID of the resource group.
- Resource
Instance stringId - (String) The resource instance ID of the policy definition.
- Resource
Type string - (String) The resource type of the policy definition.
- Service string
- (String) Service name of the policy definition.
- Service
Type string
- Attributes map[string]string
- (String) The set of resource attributes.
- Region string
- (String) The region of the policy definition.
- Resource string
- (String) The resource of the policy definition.
- Resource
Group stringId - (String) The ID of the resource group.
- Resource
Instance stringId - (String) The resource instance ID of the policy definition.
- Resource
Type string - (String) The resource type of the policy definition.
- Service string
- (String) Service name of the policy definition.
- Service
Type string
- attributes Map<String,String>
- (String) The set of resource attributes.
- region String
- (String) The region of the policy definition.
- resource String
- (String) The resource of the policy definition.
- resource
Group StringId - (String) The ID of the resource group.
- resource
Instance StringId - (String) The resource instance ID of the policy definition.
- resource
Type String - (String) The resource type of the policy definition.
- service String
- (String) Service name of the policy definition.
- service
Type String
- attributes {[key: string]: string}
- (String) The set of resource attributes.
- region string
- (String) The region of the policy definition.
- resource string
- (String) The resource of the policy definition.
- resource
Group stringId - (String) The ID of the resource group.
- resource
Instance stringId - (String) The resource instance ID of the policy definition.
- resource
Type string - (String) The resource type of the policy definition.
- service string
- (String) Service name of the policy definition.
- service
Type string
- attributes Mapping[str, str]
- (String) The set of resource attributes.
- region str
- (String) The region of the policy definition.
- resource str
- (String) The resource of the policy definition.
- resource_
group_ strid - (String) The ID of the resource group.
- resource_
instance_ strid - (String) The resource instance ID of the policy definition.
- resource_
type str - (String) The resource type of the policy definition.
- service str
- (String) Service name of the policy definition.
- service_
type str
- attributes Map<String>
- (String) The set of resource attributes.
- region String
- (String) The region of the policy definition.
- resource String
- (String) The resource of the policy definition.
- resource
Group StringId - (String) The ID of the resource group.
- resource
Instance StringId - (String) The resource instance ID of the policy definition.
- resource
Type String - (String) The resource type of the policy definition.
- service String
- (String) Service name of the policy definition.
- service
Type String
IamUserInviteInvitedUserUserPolicy, IamUserInviteInvitedUserUserPolicyArgs
- Id string
- (String) The policy ID.
- Resources
List<Iam
User Invite Invited User User Policy Resource> - (String) A nested block describes the resource of the policy.
- Roles List<string>
- (String) Comma separated list of the roles.
- Id string
- (String) The policy ID.
- Resources
[]Iam
User Invite Invited User User Policy Resource - (String) A nested block describes the resource of the policy.
- Roles []string
- (String) Comma separated list of the roles.
- id String
- (String) The policy ID.
- resources
List<Iam
User Invite Invited User User Policy Resource> - (String) A nested block describes the resource of the policy.
- roles List<String>
- (String) Comma separated list of the roles.
- id string
- (String) The policy ID.
- resources
Iam
User Invite Invited User User Policy Resource[] - (String) A nested block describes the resource of the policy.
- roles string[]
- (String) Comma separated list of the roles.
- id str
- (String) The policy ID.
- resources
Sequence[Iam
User Invite Invited User User Policy Resource] - (String) A nested block describes the resource of the policy.
- roles Sequence[str]
- (String) Comma separated list of the roles.
- id String
- (String) The policy ID.
- resources List<Property Map>
- (String) A nested block describes the resource of the policy.
- roles List<String>
- (String) Comma separated list of the roles.
IamUserInviteInvitedUserUserPolicyResource, IamUserInviteInvitedUserUserPolicyResourceArgs
- Attributes Dictionary<string, string>
- (String) The set of resource attributes.
- Region string
- (String) The region of the policy definition.
- Resource string
- (String) The resource of the policy definition.
- Resource
Group stringId - (String) The ID of the resource group.
- Resource
Instance stringId - (String) The resource instance ID of the policy definition.
- Resource
Type string - (String) The resource type of the policy definition.
- Service string
- (String) Service name of the policy definition.
- Service
Type string
- Attributes map[string]string
- (String) The set of resource attributes.
- Region string
- (String) The region of the policy definition.
- Resource string
- (String) The resource of the policy definition.
- Resource
Group stringId - (String) The ID of the resource group.
- Resource
Instance stringId - (String) The resource instance ID of the policy definition.
- Resource
Type string - (String) The resource type of the policy definition.
- Service string
- (String) Service name of the policy definition.
- Service
Type string
- attributes Map<String,String>
- (String) The set of resource attributes.
- region String
- (String) The region of the policy definition.
- resource String
- (String) The resource of the policy definition.
- resource
Group StringId - (String) The ID of the resource group.
- resource
Instance StringId - (String) The resource instance ID of the policy definition.
- resource
Type String - (String) The resource type of the policy definition.
- service String
- (String) Service name of the policy definition.
- service
Type String
- attributes {[key: string]: string}
- (String) The set of resource attributes.
- region string
- (String) The region of the policy definition.
- resource string
- (String) The resource of the policy definition.
- resource
Group stringId - (String) The ID of the resource group.
- resource
Instance stringId - (String) The resource instance ID of the policy definition.
- resource
Type string - (String) The resource type of the policy definition.
- service string
- (String) Service name of the policy definition.
- service
Type string
- attributes Mapping[str, str]
- (String) The set of resource attributes.
- region str
- (String) The region of the policy definition.
- resource str
- (String) The resource of the policy definition.
- resource_
group_ strid - (String) The ID of the resource group.
- resource_
instance_ strid - (String) The resource instance ID of the policy definition.
- resource_
type str - (String) The resource type of the policy definition.
- service str
- (String) Service name of the policy definition.
- service_
type str
- attributes Map<String>
- (String) The set of resource attributes.
- region String
- (String) The region of the policy definition.
- resource String
- (String) The resource of the policy definition.
- resource
Group StringId - (String) The ID of the resource group.
- resource
Instance StringId - (String) The resource instance ID of the policy definition.
- resource
Type String - (String) The resource type of the policy definition.
- service String
- (String) Service name of the policy definition.
- service
Type String
Import
The import functionality is not supported for this resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.