Class Team
mongodbatlas..Teams provides a Team resource. The resource lets you create, edit and delete Teams. Also, Teams can be assigned to multiple projects, and team members’ access to the project is determined by the team’s project role.
IMPORTANT: MongoDB Atlas Team limits: max 250 teams in an organization and max 100 teams per project.
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
MongoDB Atlas Team limits: max 250 teams in an organization and max 100 teams per project.
Example Usage
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var test = new Mongodbatlas.Teams("test", new Mongodbatlas.TeamsArgs
{
OrgId = "<ORGANIZATION-ID>",
Usernames =
{
"user1",
"user2",
"user3",
},
});
}
}
Inherited Members
Namespace: Pulumi.Mongodbatlas
Assembly: Pulumi.Mongodbatlas.dll
Syntax
public class Team : CustomResource
Constructors
View SourceTeam(String, TeamArgs, CustomResourceOptions)
Create a Team resource with the given unique name, arguments, and options.
Declaration
public Team(string name, TeamArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TeamArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceName
The name of the team you want to create.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OrgId
The unique identifier for the organization you want to associate the team with.
Declaration
public Output<string> OrgId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TeamId
The unique identifier for the team.
Declaration
public Output<string> TeamId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Usernames
You can only add Atlas users who are part of the organization. Users who have not accepted an invitation to join the organization cannot be added as team members. There is a maximum of 250 Atlas users per team.
Declaration
public Output<ImmutableArray<string>> Usernames { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(String, Input<String>, TeamState, CustomResourceOptions)
Get an existing Team resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Team Get(string name, Input<string> id, TeamState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| TeamState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Team |