mongodbatlas.getProject
Explore with Pulumi AI
# Data Source: mongodbatlas.Project
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
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = mongodbatlas.getRolesOrgId({});
const testProject = new mongodbatlas.Project("test", {
name: "project-name",
orgId: test.then(test => test.orgId),
teams: [
{
teamId: "5e0fa8c99ccf641c722fe645",
roleNames: ["GROUP_OWNER"],
},
{
teamId: "5e1dd7b4f2a30ba80a70cd4rw",
roleNames: [
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
],
},
],
limits: [{
name: "atlas.project.deployment.clusters",
value: 26,
}],
});
const testGetProject = mongodbatlas.getProjectOutput({
projectId: testProject.id,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.get_roles_org_id()
test_project = mongodbatlas.Project("test",
name="project-name",
org_id=test.org_id,
teams=[
{
"team_id": "5e0fa8c99ccf641c722fe645",
"role_names": ["GROUP_OWNER"],
},
{
"team_id": "5e1dd7b4f2a30ba80a70cd4rw",
"role_names": [
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
],
},
],
limits=[{
"name": "atlas.project.deployment.clusters",
"value": 26,
}])
test_get_project = mongodbatlas.get_project_output(project_id=test_project.id)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := mongodbatlas.GetRolesOrgId(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
testProject, err := mongodbatlas.NewProject(ctx, "test", &mongodbatlas.ProjectArgs{
Name: pulumi.String("project-name"),
OrgId: pulumi.String(test.OrgId),
Teams: mongodbatlas.ProjectTeamArray{
&mongodbatlas.ProjectTeamArgs{
TeamId: pulumi.String("5e0fa8c99ccf641c722fe645"),
RoleNames: pulumi.StringArray{
pulumi.String("GROUP_OWNER"),
},
},
&mongodbatlas.ProjectTeamArgs{
TeamId: pulumi.String("5e1dd7b4f2a30ba80a70cd4rw"),
RoleNames: pulumi.StringArray{
pulumi.String("GROUP_READ_ONLY"),
pulumi.String("GROUP_DATA_ACCESS_READ_WRITE"),
},
},
},
Limits: mongodbatlas.ProjectLimitArray{
&mongodbatlas.ProjectLimitArgs{
Name: pulumi.String("atlas.project.deployment.clusters"),
Value: pulumi.Int(26),
},
},
})
if err != nil {
return err
}
_ = mongodbatlas.LookupProjectOutput(ctx, mongodbatlas.GetProjectOutputArgs{
ProjectId: testProject.ID(),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var test = Mongodbatlas.GetRolesOrgId.Invoke();
var testProject = new Mongodbatlas.Project("test", new()
{
Name = "project-name",
OrgId = test.Apply(getRolesOrgIdResult => getRolesOrgIdResult.OrgId),
Teams = new[]
{
new Mongodbatlas.Inputs.ProjectTeamArgs
{
TeamId = "5e0fa8c99ccf641c722fe645",
RoleNames = new[]
{
"GROUP_OWNER",
},
},
new Mongodbatlas.Inputs.ProjectTeamArgs
{
TeamId = "5e1dd7b4f2a30ba80a70cd4rw",
RoleNames = new[]
{
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
},
},
},
Limits = new[]
{
new Mongodbatlas.Inputs.ProjectLimitArgs
{
Name = "atlas.project.deployment.clusters",
Value = 26,
},
},
});
var testGetProject = Mongodbatlas.GetProject.Invoke(new()
{
ProjectId = testProject.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.Project;
import com.pulumi.mongodbatlas.ProjectArgs;
import com.pulumi.mongodbatlas.inputs.ProjectTeamArgs;
import com.pulumi.mongodbatlas.inputs.ProjectLimitArgs;
import com.pulumi.mongodbatlas.inputs.GetProjectArgs;
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 test = MongodbatlasFunctions.getRolesOrgId();
var testProject = new Project("testProject", ProjectArgs.builder()
.name("project-name")
.orgId(test.applyValue(getRolesOrgIdResult -> getRolesOrgIdResult.orgId()))
.teams(
ProjectTeamArgs.builder()
.teamId("5e0fa8c99ccf641c722fe645")
.roleNames("GROUP_OWNER")
.build(),
ProjectTeamArgs.builder()
.teamId("5e1dd7b4f2a30ba80a70cd4rw")
.roleNames(
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE")
.build())
.limits(ProjectLimitArgs.builder()
.name("atlas.project.deployment.clusters")
.value(26)
.build())
.build());
final var testGetProject = MongodbatlasFunctions.getProject(GetProjectArgs.builder()
.projectId(testProject.id())
.build());
}
}
resources:
testProject:
type: mongodbatlas:Project
name: test
properties:
name: project-name
orgId: ${test.orgId}
teams:
- teamId: 5e0fa8c99ccf641c722fe645
roleNames:
- GROUP_OWNER
- teamId: 5e1dd7b4f2a30ba80a70cd4rw
roleNames:
- GROUP_READ_ONLY
- GROUP_DATA_ACCESS_READ_WRITE
limits:
- name: atlas.project.deployment.clusters
value: 26
variables:
test:
fn::invoke:
Function: mongodbatlas:getRolesOrgId
Arguments: {}
testGetProject:
fn::invoke:
Function: mongodbatlas:getProject
Arguments:
projectId: ${testProject.id}
Using name attribute to query
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testProject = new mongodbatlas.Project("test", {
name: "project-name",
orgId: "<ORG_ID>",
teams: [
{
teamId: "5e0fa8c99ccf641c722fe645",
roleNames: ["GROUP_OWNER"],
},
{
teamId: "5e1dd7b4f2a30ba80a70cd4rw",
roleNames: [
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
],
},
],
limits: [{
name: "atlas.project.deployment.clusters",
value: 26,
}],
});
const test = mongodbatlas.getProjectOutput({
name: testProject.name,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_project = mongodbatlas.Project("test",
name="project-name",
org_id="<ORG_ID>",
teams=[
{
"team_id": "5e0fa8c99ccf641c722fe645",
"role_names": ["GROUP_OWNER"],
},
{
"team_id": "5e1dd7b4f2a30ba80a70cd4rw",
"role_names": [
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
],
},
],
limits=[{
"name": "atlas.project.deployment.clusters",
"value": 26,
}])
test = mongodbatlas.get_project_output(name=test_project.name)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testProject, err := mongodbatlas.NewProject(ctx, "test", &mongodbatlas.ProjectArgs{
Name: pulumi.String("project-name"),
OrgId: pulumi.String("<ORG_ID>"),
Teams: mongodbatlas.ProjectTeamArray{
&mongodbatlas.ProjectTeamArgs{
TeamId: pulumi.String("5e0fa8c99ccf641c722fe645"),
RoleNames: pulumi.StringArray{
pulumi.String("GROUP_OWNER"),
},
},
&mongodbatlas.ProjectTeamArgs{
TeamId: pulumi.String("5e1dd7b4f2a30ba80a70cd4rw"),
RoleNames: pulumi.StringArray{
pulumi.String("GROUP_READ_ONLY"),
pulumi.String("GROUP_DATA_ACCESS_READ_WRITE"),
},
},
},
Limits: mongodbatlas.ProjectLimitArray{
&mongodbatlas.ProjectLimitArgs{
Name: pulumi.String("atlas.project.deployment.clusters"),
Value: pulumi.Int(26),
},
},
})
if err != nil {
return err
}
_ = mongodbatlas.LookupProjectOutput(ctx, mongodbatlas.GetProjectOutputArgs{
Name: testProject.Name,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testProject = new Mongodbatlas.Project("test", new()
{
Name = "project-name",
OrgId = "<ORG_ID>",
Teams = new[]
{
new Mongodbatlas.Inputs.ProjectTeamArgs
{
TeamId = "5e0fa8c99ccf641c722fe645",
RoleNames = new[]
{
"GROUP_OWNER",
},
},
new Mongodbatlas.Inputs.ProjectTeamArgs
{
TeamId = "5e1dd7b4f2a30ba80a70cd4rw",
RoleNames = new[]
{
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
},
},
},
Limits = new[]
{
new Mongodbatlas.Inputs.ProjectLimitArgs
{
Name = "atlas.project.deployment.clusters",
Value = 26,
},
},
});
var test = Mongodbatlas.GetProject.Invoke(new()
{
Name = testProject.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.Project;
import com.pulumi.mongodbatlas.ProjectArgs;
import com.pulumi.mongodbatlas.inputs.ProjectTeamArgs;
import com.pulumi.mongodbatlas.inputs.ProjectLimitArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetProjectArgs;
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 testProject = new Project("testProject", ProjectArgs.builder()
.name("project-name")
.orgId("<ORG_ID>")
.teams(
ProjectTeamArgs.builder()
.teamId("5e0fa8c99ccf641c722fe645")
.roleNames("GROUP_OWNER")
.build(),
ProjectTeamArgs.builder()
.teamId("5e1dd7b4f2a30ba80a70cd4rw")
.roleNames(
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE")
.build())
.limits(ProjectLimitArgs.builder()
.name("atlas.project.deployment.clusters")
.value(26)
.build())
.build());
final var test = MongodbatlasFunctions.getProject(GetProjectArgs.builder()
.name(testProject.name())
.build());
}
}
resources:
testProject:
type: mongodbatlas:Project
name: test
properties:
name: project-name
orgId: <ORG_ID>
teams:
- teamId: 5e0fa8c99ccf641c722fe645
roleNames:
- GROUP_OWNER
- teamId: 5e1dd7b4f2a30ba80a70cd4rw
roleNames:
- GROUP_READ_ONLY
- GROUP_DATA_ACCESS_READ_WRITE
limits:
- name: atlas.project.deployment.clusters
value: 26
variables:
test:
fn::invoke:
Function: mongodbatlas:getProject
Arguments:
name: ${testProject.name}
Using getProject
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
function getProjectOutput(args: GetProjectOutputArgs, opts?: InvokeOptions): Output<GetProjectResult>
def get_project(name: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectResult]
func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)
func LookupProjectOutput(ctx *Context, args *LookupProjectOutputArgs, opts ...InvokeOption) LookupProjectResultOutput
> Note: This function is named LookupProject
in the Go SDK.
public static class GetProject
{
public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getProject:getProject
arguments:
# arguments dictionary
The following arguments are supported:
- name str
The unique ID for the project.
IMPORTANT: Either
project_id
orname
must be configurated.- project_
id str - The unique ID for the project.
getProject Result
The following output properties are available:
- Cluster
Count int - The number of Atlas clusters deployed in the project.
- Created string
- The ISO-8601-formatted timestamp of when Atlas created the project.
- Id string
- Ip
Addresses GetProject Ip Addresses - IP addresses in a project categorized by services. See IP Addresses. WARNING: this attribute is deprecated and will be removed in version 1.21.0. Use the
mongodbatlas.getProjectIpAddresses
data source instead. - Is
Collect boolDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project.
- Is
Data boolExplorer Enabled - Flag that indicates whether to enable Data Explorer for the project. If enabled, you can query your database with an easy to use interface.
- Is
Extended boolStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project.
- Is
Performance boolAdvisor Enabled - Flag that indicates whether to enable Performance Advisor and Profiler for the project. If enabled, you can analyze database logs to recommend performance improvements.
- Is
Realtime boolPerformance Panel Enabled - Flag that indicates whether to enable Real Time Performance Panel for the project. If enabled, you can see real time metrics from your MongoDB database.
- Is
Schema boolAdvisor Enabled - Flag that indicates whether to enable Schema Advisor for the project. If enabled, you receive customized recommendations to optimize your data model and enhance performance. Disable this setting to disable schema suggestions in the Performance Advisor and the Data Explorer.
- Is
Slow boolOperation Thresholding Enabled - (Deprecated) Flag that enables MongoDB Cloud to use its slow operation threshold for the specified project. The threshold determines which operations the Performance Advisor and Query Profiler considers slow. When enabled, MongoDB Cloud uses the average execution time for operations on your cluster to determine slow-running queries. As a result, the threshold is more pertinent to your cluster workload. The slow operation threshold is enabled by default for dedicated clusters (M10+). When disabled, MongoDB Cloud considers any operation that takes longer than 100 milliseconds to be slow. Note: To use this attribute, the requesting API Key must have the Project Owner role, if not it will show a warning and will return
false
. If you are not using this field, you don't need to take any action. - Limits
List<Get
Project Limit> - The limits for the specified project. See Limits.
- Org
Id string - The ID of the organization you want to create the project within.
- Region
Usage stringRestrictions - If GOV_REGIONS_ONLY the project can be used for government regions only, otherwise defaults to standard regions. For more information see MongoDB Atlas for Government.
- Dictionary<string, string>
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. To learn more, see Resource Tags
- Teams
List<Get
Project Team> - Returns all teams to which the authenticated user has access in the project. See Teams.
- Name string
- Human-readable label that identifies this project limit.
- Project
Id string
- Cluster
Count int - The number of Atlas clusters deployed in the project.
- Created string
- The ISO-8601-formatted timestamp of when Atlas created the project.
- Id string
- Ip
Addresses GetProject Ip Addresses - IP addresses in a project categorized by services. See IP Addresses. WARNING: this attribute is deprecated and will be removed in version 1.21.0. Use the
mongodbatlas.getProjectIpAddresses
data source instead. - Is
Collect boolDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project.
- Is
Data boolExplorer Enabled - Flag that indicates whether to enable Data Explorer for the project. If enabled, you can query your database with an easy to use interface.
- Is
Extended boolStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project.
- Is
Performance boolAdvisor Enabled - Flag that indicates whether to enable Performance Advisor and Profiler for the project. If enabled, you can analyze database logs to recommend performance improvements.
- Is
Realtime boolPerformance Panel Enabled - Flag that indicates whether to enable Real Time Performance Panel for the project. If enabled, you can see real time metrics from your MongoDB database.
- Is
Schema boolAdvisor Enabled - Flag that indicates whether to enable Schema Advisor for the project. If enabled, you receive customized recommendations to optimize your data model and enhance performance. Disable this setting to disable schema suggestions in the Performance Advisor and the Data Explorer.
- Is
Slow boolOperation Thresholding Enabled - (Deprecated) Flag that enables MongoDB Cloud to use its slow operation threshold for the specified project. The threshold determines which operations the Performance Advisor and Query Profiler considers slow. When enabled, MongoDB Cloud uses the average execution time for operations on your cluster to determine slow-running queries. As a result, the threshold is more pertinent to your cluster workload. The slow operation threshold is enabled by default for dedicated clusters (M10+). When disabled, MongoDB Cloud considers any operation that takes longer than 100 milliseconds to be slow. Note: To use this attribute, the requesting API Key must have the Project Owner role, if not it will show a warning and will return
false
. If you are not using this field, you don't need to take any action. - Limits
[]Get
Project Limit - The limits for the specified project. See Limits.
- Org
Id string - The ID of the organization you want to create the project within.
- Region
Usage stringRestrictions - If GOV_REGIONS_ONLY the project can be used for government regions only, otherwise defaults to standard regions. For more information see MongoDB Atlas for Government.
- map[string]string
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. To learn more, see Resource Tags
- Teams
[]Get
Project Team - Returns all teams to which the authenticated user has access in the project. See Teams.
- Name string
- Human-readable label that identifies this project limit.
- Project
Id string
- cluster
Count Integer - The number of Atlas clusters deployed in the project.
- created String
- The ISO-8601-formatted timestamp of when Atlas created the project.
- id String
- ip
Addresses GetProject Ip Addresses - IP addresses in a project categorized by services. See IP Addresses. WARNING: this attribute is deprecated and will be removed in version 1.21.0. Use the
mongodbatlas.getProjectIpAddresses
data source instead. - is
Collect BooleanDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project.
- is
Data BooleanExplorer Enabled - Flag that indicates whether to enable Data Explorer for the project. If enabled, you can query your database with an easy to use interface.
- is
Extended BooleanStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project.
- is
Performance BooleanAdvisor Enabled - Flag that indicates whether to enable Performance Advisor and Profiler for the project. If enabled, you can analyze database logs to recommend performance improvements.
- is
Realtime BooleanPerformance Panel Enabled - Flag that indicates whether to enable Real Time Performance Panel for the project. If enabled, you can see real time metrics from your MongoDB database.
- is
Schema BooleanAdvisor Enabled - Flag that indicates whether to enable Schema Advisor for the project. If enabled, you receive customized recommendations to optimize your data model and enhance performance. Disable this setting to disable schema suggestions in the Performance Advisor and the Data Explorer.
- is
Slow BooleanOperation Thresholding Enabled - (Deprecated) Flag that enables MongoDB Cloud to use its slow operation threshold for the specified project. The threshold determines which operations the Performance Advisor and Query Profiler considers slow. When enabled, MongoDB Cloud uses the average execution time for operations on your cluster to determine slow-running queries. As a result, the threshold is more pertinent to your cluster workload. The slow operation threshold is enabled by default for dedicated clusters (M10+). When disabled, MongoDB Cloud considers any operation that takes longer than 100 milliseconds to be slow. Note: To use this attribute, the requesting API Key must have the Project Owner role, if not it will show a warning and will return
false
. If you are not using this field, you don't need to take any action. - limits
List<Get
Project Limit> - The limits for the specified project. See Limits.
- org
Id String - The ID of the organization you want to create the project within.
- region
Usage StringRestrictions - If GOV_REGIONS_ONLY the project can be used for government regions only, otherwise defaults to standard regions. For more information see MongoDB Atlas for Government.
- Map<String,String>
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. To learn more, see Resource Tags
- teams
List<Get
Project Team> - Returns all teams to which the authenticated user has access in the project. See Teams.
- name String
- Human-readable label that identifies this project limit.
- project
Id String
- cluster
Count number - The number of Atlas clusters deployed in the project.
- created string
- The ISO-8601-formatted timestamp of when Atlas created the project.
- id string
- ip
Addresses GetProject Ip Addresses - IP addresses in a project categorized by services. See IP Addresses. WARNING: this attribute is deprecated and will be removed in version 1.21.0. Use the
mongodbatlas.getProjectIpAddresses
data source instead. - is
Collect booleanDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project.
- is
Data booleanExplorer Enabled - Flag that indicates whether to enable Data Explorer for the project. If enabled, you can query your database with an easy to use interface.
- is
Extended booleanStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project.
- is
Performance booleanAdvisor Enabled - Flag that indicates whether to enable Performance Advisor and Profiler for the project. If enabled, you can analyze database logs to recommend performance improvements.
- is
Realtime booleanPerformance Panel Enabled - Flag that indicates whether to enable Real Time Performance Panel for the project. If enabled, you can see real time metrics from your MongoDB database.
- is
Schema booleanAdvisor Enabled - Flag that indicates whether to enable Schema Advisor for the project. If enabled, you receive customized recommendations to optimize your data model and enhance performance. Disable this setting to disable schema suggestions in the Performance Advisor and the Data Explorer.
- is
Slow booleanOperation Thresholding Enabled - (Deprecated) Flag that enables MongoDB Cloud to use its slow operation threshold for the specified project. The threshold determines which operations the Performance Advisor and Query Profiler considers slow. When enabled, MongoDB Cloud uses the average execution time for operations on your cluster to determine slow-running queries. As a result, the threshold is more pertinent to your cluster workload. The slow operation threshold is enabled by default for dedicated clusters (M10+). When disabled, MongoDB Cloud considers any operation that takes longer than 100 milliseconds to be slow. Note: To use this attribute, the requesting API Key must have the Project Owner role, if not it will show a warning and will return
false
. If you are not using this field, you don't need to take any action. - limits
Get
Project Limit[] - The limits for the specified project. See Limits.
- org
Id string - The ID of the organization you want to create the project within.
- region
Usage stringRestrictions - If GOV_REGIONS_ONLY the project can be used for government regions only, otherwise defaults to standard regions. For more information see MongoDB Atlas for Government.
- {[key: string]: string}
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. To learn more, see Resource Tags
- teams
Get
Project Team[] - Returns all teams to which the authenticated user has access in the project. See Teams.
- name string
- Human-readable label that identifies this project limit.
- project
Id string
- cluster_
count int - The number of Atlas clusters deployed in the project.
- created str
- The ISO-8601-formatted timestamp of when Atlas created the project.
- id str
- ip_
addresses GetProject Ip Addresses - IP addresses in a project categorized by services. See IP Addresses. WARNING: this attribute is deprecated and will be removed in version 1.21.0. Use the
mongodbatlas.getProjectIpAddresses
data source instead. - is_
collect_ booldatabase_ specifics_ statistics_ enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project.
- is_
data_ boolexplorer_ enabled - Flag that indicates whether to enable Data Explorer for the project. If enabled, you can query your database with an easy to use interface.
- is_
extended_ boolstorage_ sizes_ enabled - Flag that indicates whether to enable extended storage sizes for the specified project.
- is_
performance_ booladvisor_ enabled - Flag that indicates whether to enable Performance Advisor and Profiler for the project. If enabled, you can analyze database logs to recommend performance improvements.
- is_
realtime_ boolperformance_ panel_ enabled - Flag that indicates whether to enable Real Time Performance Panel for the project. If enabled, you can see real time metrics from your MongoDB database.
- is_
schema_ booladvisor_ enabled - Flag that indicates whether to enable Schema Advisor for the project. If enabled, you receive customized recommendations to optimize your data model and enhance performance. Disable this setting to disable schema suggestions in the Performance Advisor and the Data Explorer.
- is_
slow_ booloperation_ thresholding_ enabled - (Deprecated) Flag that enables MongoDB Cloud to use its slow operation threshold for the specified project. The threshold determines which operations the Performance Advisor and Query Profiler considers slow. When enabled, MongoDB Cloud uses the average execution time for operations on your cluster to determine slow-running queries. As a result, the threshold is more pertinent to your cluster workload. The slow operation threshold is enabled by default for dedicated clusters (M10+). When disabled, MongoDB Cloud considers any operation that takes longer than 100 milliseconds to be slow. Note: To use this attribute, the requesting API Key must have the Project Owner role, if not it will show a warning and will return
false
. If you are not using this field, you don't need to take any action. - limits
Sequence[Get
Project Limit] - The limits for the specified project. See Limits.
- org_
id str - The ID of the organization you want to create the project within.
- region_
usage_ strrestrictions - If GOV_REGIONS_ONLY the project can be used for government regions only, otherwise defaults to standard regions. For more information see MongoDB Atlas for Government.
- Mapping[str, str]
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. To learn more, see Resource Tags
- teams
Sequence[Get
Project Team] - Returns all teams to which the authenticated user has access in the project. See Teams.
- name str
- Human-readable label that identifies this project limit.
- project_
id str
- cluster
Count Number - The number of Atlas clusters deployed in the project.
- created String
- The ISO-8601-formatted timestamp of when Atlas created the project.
- id String
- ip
Addresses Property Map - IP addresses in a project categorized by services. See IP Addresses. WARNING: this attribute is deprecated and will be removed in version 1.21.0. Use the
mongodbatlas.getProjectIpAddresses
data source instead. - is
Collect BooleanDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project.
- is
Data BooleanExplorer Enabled - Flag that indicates whether to enable Data Explorer for the project. If enabled, you can query your database with an easy to use interface.
- is
Extended BooleanStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project.
- is
Performance BooleanAdvisor Enabled - Flag that indicates whether to enable Performance Advisor and Profiler for the project. If enabled, you can analyze database logs to recommend performance improvements.
- is
Realtime BooleanPerformance Panel Enabled - Flag that indicates whether to enable Real Time Performance Panel for the project. If enabled, you can see real time metrics from your MongoDB database.
- is
Schema BooleanAdvisor Enabled - Flag that indicates whether to enable Schema Advisor for the project. If enabled, you receive customized recommendations to optimize your data model and enhance performance. Disable this setting to disable schema suggestions in the Performance Advisor and the Data Explorer.
- is
Slow BooleanOperation Thresholding Enabled - (Deprecated) Flag that enables MongoDB Cloud to use its slow operation threshold for the specified project. The threshold determines which operations the Performance Advisor and Query Profiler considers slow. When enabled, MongoDB Cloud uses the average execution time for operations on your cluster to determine slow-running queries. As a result, the threshold is more pertinent to your cluster workload. The slow operation threshold is enabled by default for dedicated clusters (M10+). When disabled, MongoDB Cloud considers any operation that takes longer than 100 milliseconds to be slow. Note: To use this attribute, the requesting API Key must have the Project Owner role, if not it will show a warning and will return
false
. If you are not using this field, you don't need to take any action. - limits List<Property Map>
- The limits for the specified project. See Limits.
- org
Id String - The ID of the organization you want to create the project within.
- region
Usage StringRestrictions - If GOV_REGIONS_ONLY the project can be used for government regions only, otherwise defaults to standard regions. For more information see MongoDB Atlas for Government.
- Map<String>
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. To learn more, see Resource Tags
- teams List<Property Map>
- Returns all teams to which the authenticated user has access in the project. See Teams.
- name String
- Human-readable label that identifies this project limit.
- project
Id String
Supporting Types
GetProjectIpAddresses
GetProjectIpAddressesServices
- Clusters
List<Get
Project Ip Addresses Services Cluster> - IP addresses of clusters.
- Clusters
[]Get
Project Ip Addresses Services Cluster - IP addresses of clusters.
- clusters
List<Get
Project Ip Addresses Services Cluster> - IP addresses of clusters.
- clusters
Get
Project Ip Addresses Services Cluster[] - IP addresses of clusters.
- clusters
Sequence[Get
Project Ip Addresses Services Cluster] - IP addresses of clusters.
- clusters List<Property Map>
- IP addresses of clusters.
GetProjectIpAddressesServicesCluster
- Cluster
Name string - Human-readable label that identifies the cluster.
- Inbounds List<string>
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- Outbounds List<string>
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- Cluster
Name string - Human-readable label that identifies the cluster.
- Inbounds []string
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- Outbounds []string
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- cluster
Name String - Human-readable label that identifies the cluster.
- inbounds List<String>
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- outbounds List<String>
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- cluster
Name string - Human-readable label that identifies the cluster.
- inbounds string[]
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- outbounds string[]
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- cluster_
name str - Human-readable label that identifies the cluster.
- inbounds Sequence[str]
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- outbounds Sequence[str]
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- cluster
Name String - Human-readable label that identifies the cluster.
- inbounds List<String>
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- outbounds List<String>
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
GetProjectLimit
- Current
Usage int - Amount that indicates the current usage of the limit.
- Default
Limit int - Default value of the limit.
- Maximum
Limit int - Maximum value of the limit.
- Name string
The unique ID for the project.
IMPORTANT: Either
project_id
orname
must be configurated.- Value int
- Amount the limit is set to.
- Current
Usage int - Amount that indicates the current usage of the limit.
- Default
Limit int - Default value of the limit.
- Maximum
Limit int - Maximum value of the limit.
- Name string
The unique ID for the project.
IMPORTANT: Either
project_id
orname
must be configurated.- Value int
- Amount the limit is set to.
- current
Usage Integer - Amount that indicates the current usage of the limit.
- default
Limit Integer - Default value of the limit.
- maximum
Limit Integer - Maximum value of the limit.
- name String
The unique ID for the project.
IMPORTANT: Either
project_id
orname
must be configurated.- value Integer
- Amount the limit is set to.
- current
Usage number - Amount that indicates the current usage of the limit.
- default
Limit number - Default value of the limit.
- maximum
Limit number - Maximum value of the limit.
- name string
The unique ID for the project.
IMPORTANT: Either
project_id
orname
must be configurated.- value number
- Amount the limit is set to.
- current_
usage int - Amount that indicates the current usage of the limit.
- default_
limit int - Default value of the limit.
- maximum_
limit int - Maximum value of the limit.
- name str
The unique ID for the project.
IMPORTANT: Either
project_id
orname
must be configurated.- value int
- Amount the limit is set to.
- current
Usage Number - Amount that indicates the current usage of the limit.
- default
Limit Number - Default value of the limit.
- maximum
Limit Number - Maximum value of the limit.
- name String
The unique ID for the project.
IMPORTANT: Either
project_id
orname
must be configurated.- value Number
- Amount the limit is set to.
GetProjectTeam
- Role
Names List<string> - Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The MongoDB Documentation describes the roles a user can have.
- Team
Id string - The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
- Role
Names []string - Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The MongoDB Documentation describes the roles a user can have.
- Team
Id string - The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
- role
Names List<String> - Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The MongoDB Documentation describes the roles a user can have.
- team
Id String - The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
- role
Names string[] - Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The MongoDB Documentation describes the roles a user can have.
- team
Id string - The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
- role_
names Sequence[str] - Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The MongoDB Documentation describes the roles a user can have.
- team_
id str - The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
- role
Names List<String> - Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The MongoDB Documentation describes the roles a user can have.
- team
Id String - The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.