GetProjects
mongodbatlas..getProjects describe all Projects. This represents projects that have been created.
NOTE: Groups and projects are synonymous terms. You may find
groupIdin the official documentation.
Example Usage
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 = pulumi.output(mongodbatlas.getProject({ async: true }));Using GetProjects
function getProjects(opts?: InvokeOptions): Promise<GetProjectsResult>function get_projects(opts=None)func GetProjects(ctx *Context, opts ...InvokeOption) (*GetProjectsResult, error)public static class GetProjects {
public static Task<GetProjectsResult> InvokeAsync(InvokeOptions? opts = null)
}GetProjects Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Results
List<Get
Projects Result> - Total
Count int
- Id string
The provider-assigned unique ID for this managed resource.
- Results
[]Get
Projects Result Type - Total
Count int
- id string
The provider-assigned unique ID for this managed resource.
- results
Get
Projects Result[] - total
Count number
- id str
The provider-assigned unique ID for this managed resource.
- results
List[Get
Projects Result] - total_
count float
Supporting Types
GetProjectsResult
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Cluster
Count int - Created string
- Id string
Autogenerated Unique ID for this data source.
- Name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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
Projects Result Team Args>
- Cluster
Count int - Created string
- Id string
Autogenerated Unique ID for this data source.
- Name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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
Projects Result Team
- cluster
Count number - created string
- id string
Autogenerated Unique ID for this data source.
- name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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
Projects Result Team[]
- cluster_
count float - created str
- id str
Autogenerated Unique ID for this data source.
- name str
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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
Projects Result Team]
GetProjectsResultTeam
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.