GetProject
mongodbatlas..Project describes a MongoDB Atlas Project. This represents a project that has been created.
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
Example Usage
Using project_id attribute to query
Coming soon!
Coming soon!
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testMongodbatlasProject = new mongodbatlas.Project("test", {
orgId: "<ORG_ID>",
teams: [
{
roleNames: ["GROUP_OWNER"],
teamId: "5e0fa8c99ccf641c722fe645",
},
{
roleNames: [
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
],
teamId: "5e1dd7b4f2a30ba80a70cd4rw",
},
],
});
const testProject = testMongodbatlasProject.id.apply(id => mongodbatlas.getProject({
projectId: id,
}, { async: true }));Using name attribute to query
Coming soon!
Coming soon!
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testMongodbatlasProject = new mongodbatlas.Project("test", {
orgId: "<ORG_ID>",
teams: [
{
roleNames: ["GROUP_OWNER"],
teamId: "5e0fa8c99ccf641c722fe645",
},
{
roleNames: [
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
],
teamId: "5e1dd7b4f2a30ba80a70cd4rw",
},
],
});
const testProject = testMongodbatlasProject.name.apply(name => mongodbatlas.getProject({
name: name,
}, { async: true }));Using GetProject
function getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>function get_project(name=None, project_id=None, opts=None)func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)Note: This function is named
LookupProjectin the Go SDK.
public static class GetProject {
public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- name str
The unique ID for the project.
- project_
id str The unique ID for the project.
GetProject Result
The following output properties are available:
- Cluster
Count int - Created string
- Id string
The provider-assigned unique ID for this managed resource.
- Org
Id string The ID of the organization you want to create the project within. *
cluster_count- The number of Atlas clusters deployed in the project. *created- The ISO-8601-formatted timestamp of when Atlas created the project. *teams.#.team_id- The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization. *teams.#.role_names- Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The following are valid roles: *GROUP_OWNER*GROUP_READ_ONLY*GROUP_DATA_ACCESS_ADMIN*GROUP_DATA_ACCESS_READ_WRITE*GROUP_DATA_ACCESS_READ_ONLY*GROUP_CLUSTER_MANAGER- Teams
List<Get
Project Team> - Name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- Project
Id string
- Cluster
Count int - Created string
- Id string
The provider-assigned unique ID for this managed resource.
- Org
Id string The ID of the organization you want to create the project within. *
cluster_count- The number of Atlas clusters deployed in the project. *created- The ISO-8601-formatted timestamp of when Atlas created the project. *teams.#.team_id- The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization. *teams.#.role_names- Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The following are valid roles: *GROUP_OWNER*GROUP_READ_ONLY*GROUP_DATA_ACCESS_ADMIN*GROUP_DATA_ACCESS_READ_WRITE*GROUP_DATA_ACCESS_READ_ONLY*GROUP_CLUSTER_MANAGER- Teams
[]Get
Project Team - Name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- Project
Id string
- cluster
Count number - created string
- id string
The provider-assigned unique ID for this managed resource.
- org
Id string The ID of the organization you want to create the project within. *
cluster_count- The number of Atlas clusters deployed in the project. *created- The ISO-8601-formatted timestamp of when Atlas created the project. *teams.#.team_id- The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization. *teams.#.role_names- Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The following are valid roles: *GROUP_OWNER*GROUP_READ_ONLY*GROUP_DATA_ACCESS_ADMIN*GROUP_DATA_ACCESS_READ_WRITE*GROUP_DATA_ACCESS_READ_ONLY*GROUP_CLUSTER_MANAGER- teams
Get
Project Team[] - name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- project
Id string
- cluster_
count float - created str
- id str
The provider-assigned unique ID for this managed resource.
- org_
id str The ID of the organization you want to create the project within. *
cluster_count- The number of Atlas clusters deployed in the project. *created- The ISO-8601-formatted timestamp of when Atlas created the project. *teams.#.team_id- The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization. *teams.#.role_names- Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The following are valid roles: *GROUP_OWNER*GROUP_READ_ONLY*GROUP_DATA_ACCESS_ADMIN*GROUP_DATA_ACCESS_READ_WRITE*GROUP_DATA_ACCESS_READ_ONLY*GROUP_CLUSTER_MANAGER- teams
List[Get
Project Team] - name str
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- project_
id str
Supporting Types
GetProjectTeam
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.