spectrocloud.User
Explore with Pulumi AI
Create and manage projects in Palette.
You can learn more about managing users in Palette by reviewing the Users guide.
Example Usage
An example of creating a user resource with assigned teams and custom roles in Palette.
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const user_test = new spectrocloud.User("user-test", {
firstName: "tf",
lastName: "test",
email: "test-tf@spectrocloud.com",
teamIds: [data.spectrocloud_team.team2.id],
projectRoles: [
{
projectId: data.spectrocloud_project["default"].id,
roleIds: .map(r => (r.id)),
},
{
projectId: data.spectrocloud_project.ranjith.id,
roleIds: .map(r => (r.id)),
},
],
tenantRoles: .map(t => (t.id)),
workspaceRoles: [{
projectId: data.spectrocloud_project["default"].id,
workspaces: [
{
id: data.spectrocloud_workspace.workspace.id,
roleIds: .map(w => (w.id)),
},
{
id: data.spectrocloud_workspace.workspace2.id,
roleIds: ["66fbea622947f81fc26983e6"],
},
],
}],
resourceRoles: [
{
projectIds: [
data.spectrocloud_project["default"].id,
data.spectrocloud_project.ranjith.id,
],
filterIds: [data.spectrocloud_filter.filter.id],
roleIds: .map(r => (r.id)),
},
{
projectIds: [data.spectrocloud_project.ranjith.id],
filterIds: [data.spectrocloud_filter.filter.id],
roleIds: .map(re => (re.id)),
},
],
});
import pulumi
import pulumi_spectrocloud as spectrocloud
user_test = spectrocloud.User("user-test",
first_name="tf",
last_name="test",
email="test-tf@spectrocloud.com",
team_ids=[data["spectrocloud_team"]["team2"]["id"]],
project_roles=[
{
"project_id": data["spectrocloud_project"]["default"]["id"],
"role_ids": [r["id"] for r in data["spectrocloud_role"]["app_roles"]],
},
{
"project_id": data["spectrocloud_project"]["ranjith"]["id"],
"role_ids": [r["id"] for r in data["spectrocloud_role"]["app_roles"]],
},
],
tenant_roles=[t["id"] for t in data["spectrocloud_role"]["tenant_roles"]],
workspace_roles=[{
"project_id": data["spectrocloud_project"]["default"]["id"],
"workspaces": [
{
"id": data["spectrocloud_workspace"]["workspace"]["id"],
"role_ids": [w["id"] for w in data["spectrocloud_role"]["workspace_roles"]],
},
{
"id": data["spectrocloud_workspace"]["workspace2"]["id"],
"role_ids": ["66fbea622947f81fc26983e6"],
},
],
}],
resource_roles=[
{
"project_ids": [
data["spectrocloud_project"]["default"]["id"],
data["spectrocloud_project"]["ranjith"]["id"],
],
"filter_ids": [data["spectrocloud_filter"]["filter"]["id"]],
"role_ids": [r["id"] for r in data["spectrocloud_role"]["resource_roles"]],
},
{
"project_ids": [data["spectrocloud_project"]["ranjith"]["id"]],
"filter_ids": [data["spectrocloud_filter"]["filter"]["id"]],
"role_ids": [re["id"] for re in data["spectrocloud_role"]["resource_roles_editor"]],
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := spectrocloud.NewUser(ctx, "user-test", &spectrocloud.UserArgs{
FirstName: pulumi.String("tf"),
LastName: pulumi.String("test"),
Email: pulumi.String("test-tf@spectrocloud.com"),
TeamIds: pulumi.StringArray{
data.Spectrocloud_team.Team2.Id,
},
ProjectRoles: spectrocloud.UserProjectRoleArray{
&spectrocloud.UserProjectRoleArgs{
ProjectId: pulumi.Any(data.Spectrocloud_project.Default.Id),
RoleIds: []pulumi.String("TODO: For expression"),
},
&spectrocloud.UserProjectRoleArgs{
ProjectId: pulumi.Any(data.Spectrocloud_project.Ranjith.Id),
RoleIds: []pulumi.String("TODO: For expression"),
},
},
TenantRoles: []pulumi.String("TODO: For expression"),
WorkspaceRoles: spectrocloud.UserWorkspaceRoleArray{
&spectrocloud.UserWorkspaceRoleArgs{
ProjectId: pulumi.Any(data.Spectrocloud_project.Default.Id),
Workspaces: spectrocloud.UserWorkspaceRoleWorkspaceArray{
&spectrocloud.UserWorkspaceRoleWorkspaceArgs{
Id: pulumi.Any(data.Spectrocloud_workspace.Workspace.Id),
RoleIds: []pulumi.String("TODO: For expression"),
},
&spectrocloud.UserWorkspaceRoleWorkspaceArgs{
Id: pulumi.Any(data.Spectrocloud_workspace.Workspace2.Id),
RoleIds: pulumi.StringArray{
pulumi.String("66fbea622947f81fc26983e6"),
},
},
},
},
},
ResourceRoles: spectrocloud.UserResourceRoleArray{
&spectrocloud.UserResourceRoleArgs{
ProjectIds: pulumi.StringArray{
data.Spectrocloud_project.Default.Id,
data.Spectrocloud_project.Ranjith.Id,
},
FilterIds: pulumi.StringArray{
data.Spectrocloud_filter.Filter.Id,
},
RoleIds: []pulumi.String("TODO: For expression"),
},
&spectrocloud.UserResourceRoleArgs{
ProjectIds: pulumi.StringArray{
data.Spectrocloud_project.Ranjith.Id,
},
FilterIds: pulumi.StringArray{
data.Spectrocloud_filter.Filter.Id,
},
RoleIds: []pulumi.String("TODO: For expression"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var user_test = new Spectrocloud.User("user-test", new()
{
FirstName = "tf",
LastName = "test",
Email = "test-tf@spectrocloud.com",
TeamIds = new[]
{
data.Spectrocloud_team.Team2.Id,
},
ProjectRoles = new[]
{
new Spectrocloud.Inputs.UserProjectRoleArgs
{
ProjectId = data.Spectrocloud_project.Default.Id,
RoleIds = .Select(r =>
{
return r.Id;
}).ToList(),
},
new Spectrocloud.Inputs.UserProjectRoleArgs
{
ProjectId = data.Spectrocloud_project.Ranjith.Id,
RoleIds = .Select(r =>
{
return r.Id;
}).ToList(),
},
},
TenantRoles = .Select(t =>
{
return t.Id;
}).ToList(),
WorkspaceRoles = new[]
{
new Spectrocloud.Inputs.UserWorkspaceRoleArgs
{
ProjectId = data.Spectrocloud_project.Default.Id,
Workspaces = new[]
{
new Spectrocloud.Inputs.UserWorkspaceRoleWorkspaceArgs
{
Id = data.Spectrocloud_workspace.Workspace.Id,
RoleIds = .Select(w =>
{
return w.Id;
}).ToList(),
},
new Spectrocloud.Inputs.UserWorkspaceRoleWorkspaceArgs
{
Id = data.Spectrocloud_workspace.Workspace2.Id,
RoleIds = new[]
{
"66fbea622947f81fc26983e6",
},
},
},
},
},
ResourceRoles = new[]
{
new Spectrocloud.Inputs.UserResourceRoleArgs
{
ProjectIds = new[]
{
data.Spectrocloud_project.Default.Id,
data.Spectrocloud_project.Ranjith.Id,
},
FilterIds = new[]
{
data.Spectrocloud_filter.Filter.Id,
},
RoleIds = .Select(r =>
{
return r.Id;
}).ToList(),
},
new Spectrocloud.Inputs.UserResourceRoleArgs
{
ProjectIds = new[]
{
data.Spectrocloud_project.Ranjith.Id,
},
FilterIds = new[]
{
data.Spectrocloud_filter.Filter.Id,
},
RoleIds = .Select(re =>
{
return re.Id;
}).ToList(),
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.User;
import com.pulumi.spectrocloud.UserArgs;
import com.pulumi.spectrocloud.inputs.UserProjectRoleArgs;
import com.pulumi.spectrocloud.inputs.UserWorkspaceRoleArgs;
import com.pulumi.spectrocloud.inputs.UserResourceRoleArgs;
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 user_test = new User("user-test", UserArgs.builder()
.firstName("tf")
.lastName("test")
.email("test-tf@spectrocloud.com")
.teamIds(data.spectrocloud_team().team2().id())
.projectRoles(
UserProjectRoleArgs.builder()
.projectId(data.spectrocloud_project().default().id())
.roleIds("TODO: ForExpression")
.build(),
UserProjectRoleArgs.builder()
.projectId(data.spectrocloud_project().ranjith().id())
.roleIds("TODO: ForExpression")
.build())
.tenantRoles("TODO: ForExpression")
.workspaceRoles(UserWorkspaceRoleArgs.builder()
.projectId(data.spectrocloud_project().default().id())
.workspaces(
UserWorkspaceRoleWorkspaceArgs.builder()
.id(data.spectrocloud_workspace().workspace().id())
.roleIds("TODO: ForExpression")
.build(),
UserWorkspaceRoleWorkspaceArgs.builder()
.id(data.spectrocloud_workspace().workspace2().id())
.roleIds("66fbea622947f81fc26983e6")
.build())
.build())
.resourceRoles(
UserResourceRoleArgs.builder()
.projectIds(
data.spectrocloud_project().default().id(),
data.spectrocloud_project().ranjith().id())
.filterIds(data.spectrocloud_filter().filter().id())
.roleIds("TODO: ForExpression")
.build(),
UserResourceRoleArgs.builder()
.projectIds(data.spectrocloud_project().ranjith().id())
.filterIds(data.spectrocloud_filter().filter().id())
.roleIds("TODO: ForExpression")
.build())
.build());
}
}
Coming soon!
The example below demonstrates how to create an user with only assigned teams.
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const user_test = new spectrocloud.User("user-test", {
firstName: "tf",
lastName: "test",
email: "test-tf@spectrocloud.com",
teamIds: [data.spectrocloud_team.team2.id],
});
import pulumi
import pulumi_spectrocloud as spectrocloud
user_test = spectrocloud.User("user-test",
first_name="tf",
last_name="test",
email="test-tf@spectrocloud.com",
team_ids=[data["spectrocloud_team"]["team2"]["id"]])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := spectrocloud.NewUser(ctx, "user-test", &spectrocloud.UserArgs{
FirstName: pulumi.String("tf"),
LastName: pulumi.String("test"),
Email: pulumi.String("test-tf@spectrocloud.com"),
TeamIds: pulumi.StringArray{
data.Spectrocloud_team.Team2.Id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var user_test = new Spectrocloud.User("user-test", new()
{
FirstName = "tf",
LastName = "test",
Email = "test-tf@spectrocloud.com",
TeamIds = new[]
{
data.Spectrocloud_team.Team2.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.User;
import com.pulumi.spectrocloud.UserArgs;
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 user_test = new User("user-test", UserArgs.builder()
.firstName("tf")
.lastName("test")
.email("test-tf@spectrocloud.com")
.teamIds(data.spectrocloud_team().team2().id())
.build());
}
}
resources:
user-test:
type: spectrocloud:User
properties:
firstName: tf
lastName: test
email: test-tf@spectrocloud.com
teamIds:
- ${data.spectrocloud_team.team2.id}
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
project_roles: Optional[Sequence[UserProjectRoleArgs]] = None,
resource_roles: Optional[Sequence[UserResourceRoleArgs]] = None,
team_ids: Optional[Sequence[str]] = None,
tenant_roles: Optional[Sequence[str]] = None,
timeouts: Optional[UserTimeoutsArgs] = None,
user_id: Optional[str] = None,
workspace_roles: Optional[Sequence[UserWorkspaceRoleArgs]] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
type: spectrocloud:User
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 UserArgs
- 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 UserArgs
- 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 UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- 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 userResource = new Spectrocloud.User("userResource", new()
{
Email = "string",
FirstName = "string",
LastName = "string",
ProjectRoles = new[]
{
new Spectrocloud.Inputs.UserProjectRoleArgs
{
ProjectId = "string",
RoleIds = new[]
{
"string",
},
},
},
ResourceRoles = new[]
{
new Spectrocloud.Inputs.UserResourceRoleArgs
{
FilterIds = new[]
{
"string",
},
ProjectIds = new[]
{
"string",
},
RoleIds = new[]
{
"string",
},
},
},
TeamIds = new[]
{
"string",
},
TenantRoles = new[]
{
"string",
},
Timeouts = new Spectrocloud.Inputs.UserTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
UserId = "string",
WorkspaceRoles = new[]
{
new Spectrocloud.Inputs.UserWorkspaceRoleArgs
{
ProjectId = "string",
Workspaces = new[]
{
new Spectrocloud.Inputs.UserWorkspaceRoleWorkspaceArgs
{
Id = "string",
RoleIds = new[]
{
"string",
},
},
},
},
},
});
example, err := spectrocloud.NewUser(ctx, "userResource", &spectrocloud.UserArgs{
Email: pulumi.String("string"),
FirstName: pulumi.String("string"),
LastName: pulumi.String("string"),
ProjectRoles: spectrocloud.UserProjectRoleArray{
&spectrocloud.UserProjectRoleArgs{
ProjectId: pulumi.String("string"),
RoleIds: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ResourceRoles: spectrocloud.UserResourceRoleArray{
&spectrocloud.UserResourceRoleArgs{
FilterIds: pulumi.StringArray{
pulumi.String("string"),
},
ProjectIds: pulumi.StringArray{
pulumi.String("string"),
},
RoleIds: pulumi.StringArray{
pulumi.String("string"),
},
},
},
TeamIds: pulumi.StringArray{
pulumi.String("string"),
},
TenantRoles: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &spectrocloud.UserTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
UserId: pulumi.String("string"),
WorkspaceRoles: spectrocloud.UserWorkspaceRoleArray{
&spectrocloud.UserWorkspaceRoleArgs{
ProjectId: pulumi.String("string"),
Workspaces: spectrocloud.UserWorkspaceRoleWorkspaceArray{
&spectrocloud.UserWorkspaceRoleWorkspaceArgs{
Id: pulumi.String("string"),
RoleIds: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
})
var userResource = new User("userResource", UserArgs.builder()
.email("string")
.firstName("string")
.lastName("string")
.projectRoles(UserProjectRoleArgs.builder()
.projectId("string")
.roleIds("string")
.build())
.resourceRoles(UserResourceRoleArgs.builder()
.filterIds("string")
.projectIds("string")
.roleIds("string")
.build())
.teamIds("string")
.tenantRoles("string")
.timeouts(UserTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.userId("string")
.workspaceRoles(UserWorkspaceRoleArgs.builder()
.projectId("string")
.workspaces(UserWorkspaceRoleWorkspaceArgs.builder()
.id("string")
.roleIds("string")
.build())
.build())
.build());
user_resource = spectrocloud.User("userResource",
email="string",
first_name="string",
last_name="string",
project_roles=[{
"project_id": "string",
"role_ids": ["string"],
}],
resource_roles=[{
"filter_ids": ["string"],
"project_ids": ["string"],
"role_ids": ["string"],
}],
team_ids=["string"],
tenant_roles=["string"],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
user_id="string",
workspace_roles=[{
"project_id": "string",
"workspaces": [{
"id": "string",
"role_ids": ["string"],
}],
}])
const userResource = new spectrocloud.User("userResource", {
email: "string",
firstName: "string",
lastName: "string",
projectRoles: [{
projectId: "string",
roleIds: ["string"],
}],
resourceRoles: [{
filterIds: ["string"],
projectIds: ["string"],
roleIds: ["string"],
}],
teamIds: ["string"],
tenantRoles: ["string"],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
userId: "string",
workspaceRoles: [{
projectId: "string",
workspaces: [{
id: "string",
roleIds: ["string"],
}],
}],
});
type: spectrocloud:User
properties:
email: string
firstName: string
lastName: string
projectRoles:
- projectId: string
roleIds:
- string
resourceRoles:
- filterIds:
- string
projectIds:
- string
roleIds:
- string
teamIds:
- string
tenantRoles:
- string
timeouts:
create: string
delete: string
update: string
userId: string
workspaceRoles:
- projectId: string
workspaces:
- id: string
roleIds:
- string
User 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 User resource accepts the following input properties:
- Email string
- The email of the user.
- First
Name string - The first name of the user.
- Last
Name string - The last name of the user.
- Project
Roles List<UserProject Role> - List of project roles to be associated with the user.
- Resource
Roles List<UserResource Role> - Team
Ids List<string> - The team id's assigned to the user.
- Tenant
Roles List<string> - List of tenant role ids to be associated with the user.
- Timeouts
User
Timeouts - User
Id string - The ID of this resource.
- Workspace
Roles List<UserWorkspace Role> - List of workspace roles to be associated with the user.
- Email string
- The email of the user.
- First
Name string - The first name of the user.
- Last
Name string - The last name of the user.
- Project
Roles []UserProject Role Args - List of project roles to be associated with the user.
- Resource
Roles []UserResource Role Args - Team
Ids []string - The team id's assigned to the user.
- Tenant
Roles []string - List of tenant role ids to be associated with the user.
- Timeouts
User
Timeouts Args - User
Id string - The ID of this resource.
- Workspace
Roles []UserWorkspace Role Args - List of workspace roles to be associated with the user.
- email String
- The email of the user.
- first
Name String - The first name of the user.
- last
Name String - The last name of the user.
- project
Roles List<UserProject Role> - List of project roles to be associated with the user.
- resource
Roles List<UserResource Role> - team
Ids List<String> - The team id's assigned to the user.
- tenant
Roles List<String> - List of tenant role ids to be associated with the user.
- timeouts
User
Timeouts - user
Id String - The ID of this resource.
- workspace
Roles List<UserWorkspace Role> - List of workspace roles to be associated with the user.
- email string
- The email of the user.
- first
Name string - The first name of the user.
- last
Name string - The last name of the user.
- project
Roles UserProject Role[] - List of project roles to be associated with the user.
- resource
Roles UserResource Role[] - team
Ids string[] - The team id's assigned to the user.
- tenant
Roles string[] - List of tenant role ids to be associated with the user.
- timeouts
User
Timeouts - user
Id string - The ID of this resource.
- workspace
Roles UserWorkspace Role[] - List of workspace roles to be associated with the user.
- email str
- The email of the user.
- first_
name str - The first name of the user.
- last_
name str - The last name of the user.
- project_
roles Sequence[UserProject Role Args] - List of project roles to be associated with the user.
- resource_
roles Sequence[UserResource Role Args] - team_
ids Sequence[str] - The team id's assigned to the user.
- tenant_
roles Sequence[str] - List of tenant role ids to be associated with the user.
- timeouts
User
Timeouts Args - user_
id str - The ID of this resource.
- workspace_
roles Sequence[UserWorkspace Role Args] - List of workspace roles to be associated with the user.
- email String
- The email of the user.
- first
Name String - The first name of the user.
- last
Name String - The last name of the user.
- project
Roles List<Property Map> - List of project roles to be associated with the user.
- resource
Roles List<Property Map> - team
Ids List<String> - The team id's assigned to the user.
- tenant
Roles List<String> - List of tenant role ids to be associated with the user.
- timeouts Property Map
- user
Id String - The ID of this resource.
- workspace
Roles List<Property Map> - List of workspace roles to be associated with the user.
Outputs
All input properties are implicitly available as output properties. Additionally, the User 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 User Resource
Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
project_roles: Optional[Sequence[UserProjectRoleArgs]] = None,
resource_roles: Optional[Sequence[UserResourceRoleArgs]] = None,
team_ids: Optional[Sequence[str]] = None,
tenant_roles: Optional[Sequence[str]] = None,
timeouts: Optional[UserTimeoutsArgs] = None,
user_id: Optional[str] = None,
workspace_roles: Optional[Sequence[UserWorkspaceRoleArgs]] = None) -> User
func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
resources: _: type: spectrocloud:User 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.
- Email string
- The email of the user.
- First
Name string - The first name of the user.
- Last
Name string - The last name of the user.
- Project
Roles List<UserProject Role> - List of project roles to be associated with the user.
- Resource
Roles List<UserResource Role> - Team
Ids List<string> - The team id's assigned to the user.
- Tenant
Roles List<string> - List of tenant role ids to be associated with the user.
- Timeouts
User
Timeouts - User
Id string - The ID of this resource.
- Workspace
Roles List<UserWorkspace Role> - List of workspace roles to be associated with the user.
- Email string
- The email of the user.
- First
Name string - The first name of the user.
- Last
Name string - The last name of the user.
- Project
Roles []UserProject Role Args - List of project roles to be associated with the user.
- Resource
Roles []UserResource Role Args - Team
Ids []string - The team id's assigned to the user.
- Tenant
Roles []string - List of tenant role ids to be associated with the user.
- Timeouts
User
Timeouts Args - User
Id string - The ID of this resource.
- Workspace
Roles []UserWorkspace Role Args - List of workspace roles to be associated with the user.
- email String
- The email of the user.
- first
Name String - The first name of the user.
- last
Name String - The last name of the user.
- project
Roles List<UserProject Role> - List of project roles to be associated with the user.
- resource
Roles List<UserResource Role> - team
Ids List<String> - The team id's assigned to the user.
- tenant
Roles List<String> - List of tenant role ids to be associated with the user.
- timeouts
User
Timeouts - user
Id String - The ID of this resource.
- workspace
Roles List<UserWorkspace Role> - List of workspace roles to be associated with the user.
- email string
- The email of the user.
- first
Name string - The first name of the user.
- last
Name string - The last name of the user.
- project
Roles UserProject Role[] - List of project roles to be associated with the user.
- resource
Roles UserResource Role[] - team
Ids string[] - The team id's assigned to the user.
- tenant
Roles string[] - List of tenant role ids to be associated with the user.
- timeouts
User
Timeouts - user
Id string - The ID of this resource.
- workspace
Roles UserWorkspace Role[] - List of workspace roles to be associated with the user.
- email str
- The email of the user.
- first_
name str - The first name of the user.
- last_
name str - The last name of the user.
- project_
roles Sequence[UserProject Role Args] - List of project roles to be associated with the user.
- resource_
roles Sequence[UserResource Role Args] - team_
ids Sequence[str] - The team id's assigned to the user.
- tenant_
roles Sequence[str] - List of tenant role ids to be associated with the user.
- timeouts
User
Timeouts Args - user_
id str - The ID of this resource.
- workspace_
roles Sequence[UserWorkspace Role Args] - List of workspace roles to be associated with the user.
- email String
- The email of the user.
- first
Name String - The first name of the user.
- last
Name String - The last name of the user.
- project
Roles List<Property Map> - List of project roles to be associated with the user.
- resource
Roles List<Property Map> - team
Ids List<String> - The team id's assigned to the user.
- tenant
Roles List<String> - List of tenant role ids to be associated with the user.
- timeouts Property Map
- user
Id String - The ID of this resource.
- workspace
Roles List<Property Map> - List of workspace roles to be associated with the user.
Supporting Types
UserProjectRole, UserProjectRoleArgs
- project_
id str - Project id to be associated with the user.
- role_
ids Sequence[str] - List of project role ids to be associated with the user.
UserResourceRole, UserResourceRoleArgs
- Filter
Ids List<string> - List of filter ids.
- Project
Ids List<string> - Project id's to be associated with the user.
- Role
Ids List<string> - List of resource role ids to be associated with the user.
- Filter
Ids []string - List of filter ids.
- Project
Ids []string - Project id's to be associated with the user.
- Role
Ids []string - List of resource role ids to be associated with the user.
- filter
Ids List<String> - List of filter ids.
- project
Ids List<String> - Project id's to be associated with the user.
- role
Ids List<String> - List of resource role ids to be associated with the user.
- filter
Ids string[] - List of filter ids.
- project
Ids string[] - Project id's to be associated with the user.
- role
Ids string[] - List of resource role ids to be associated with the user.
- filter_
ids Sequence[str] - List of filter ids.
- project_
ids Sequence[str] - Project id's to be associated with the user.
- role_
ids Sequence[str] - List of resource role ids to be associated with the user.
- filter
Ids List<String> - List of filter ids.
- project
Ids List<String> - Project id's to be associated with the user.
- role
Ids List<String> - List of resource role ids to be associated with the user.
UserTimeouts, UserTimeoutsArgs
UserWorkspaceRole, UserWorkspaceRoleArgs
- Project
Id string - Project id to be associated with the user.
- Workspaces
List<User
Workspace Role Workspace> - List of workspace roles to be associated with the user.
- Project
Id string - Project id to be associated with the user.
- Workspaces
[]User
Workspace Role Workspace - List of workspace roles to be associated with the user.
- project
Id String - Project id to be associated with the user.
- workspaces
List<User
Workspace Role Workspace> - List of workspace roles to be associated with the user.
- project
Id string - Project id to be associated with the user.
- workspaces
User
Workspace Role Workspace[] - List of workspace roles to be associated with the user.
- project_
id str - Project id to be associated with the user.
- workspaces
Sequence[User
Workspace Role Workspace] - List of workspace roles to be associated with the user.
- project
Id String - Project id to be associated with the user.
- workspaces List<Property Map>
- List of workspace roles to be associated with the user.
UserWorkspaceRoleWorkspace, UserWorkspaceRoleWorkspaceArgs
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.