mongodbatlas.Project
Explore with Pulumi AI
# Resource: mongodbatlas.Project
mongodbatlas.Project
provides a Project resource. This allows project to be created.
NOTE: If Backup Compliance Policy is enabled for the project for which this backup schedule is defined, you cannot delete the Atlas project if any snapshots exist. See Backup Compliance Policy Prohibited Actions and Considerations.
Example Usage
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),
projectOwnerId: "<OWNER_ACCOUNT_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,
},
{
name: "atlas.project.deployment.nodesPerPrivateLinkRegion",
value: 51,
},
],
isCollectDatabaseSpecificsStatisticsEnabled: true,
isDataExplorerEnabled: true,
isExtendedStorageSizesEnabled: true,
isPerformanceAdvisorEnabled: true,
isRealtimePerformancePanelEnabled: true,
isSchemaAdvisorEnabled: true,
isSlowOperationThresholdingEnabled: true,
});
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,
project_owner_id="<OWNER_ACCOUNT_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,
},
{
"name": "atlas.project.deployment.nodesPerPrivateLinkRegion",
"value": 51,
},
],
is_collect_database_specifics_statistics_enabled=True,
is_data_explorer_enabled=True,
is_extended_storage_sizes_enabled=True,
is_performance_advisor_enabled=True,
is_realtime_performance_panel_enabled=True,
is_schema_advisor_enabled=True,
is_slow_operation_thresholding_enabled=True)
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
}
_, err = mongodbatlas.NewProject(ctx, "test", &mongodbatlas.ProjectArgs{
Name: pulumi.String("project-name"),
OrgId: pulumi.String(test.OrgId),
ProjectOwnerId: pulumi.String("<OWNER_ACCOUNT_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),
},
&mongodbatlas.ProjectLimitArgs{
Name: pulumi.String("atlas.project.deployment.nodesPerPrivateLinkRegion"),
Value: pulumi.Int(51),
},
},
IsCollectDatabaseSpecificsStatisticsEnabled: pulumi.Bool(true),
IsDataExplorerEnabled: pulumi.Bool(true),
IsExtendedStorageSizesEnabled: pulumi.Bool(true),
IsPerformanceAdvisorEnabled: pulumi.Bool(true),
IsRealtimePerformancePanelEnabled: pulumi.Bool(true),
IsSchemaAdvisorEnabled: pulumi.Bool(true),
IsSlowOperationThresholdingEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
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),
ProjectOwnerId = "<OWNER_ACCOUNT_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,
},
new Mongodbatlas.Inputs.ProjectLimitArgs
{
Name = "atlas.project.deployment.nodesPerPrivateLinkRegion",
Value = 51,
},
},
IsCollectDatabaseSpecificsStatisticsEnabled = true,
IsDataExplorerEnabled = true,
IsExtendedStorageSizesEnabled = true,
IsPerformanceAdvisorEnabled = true,
IsRealtimePerformancePanelEnabled = true,
IsSchemaAdvisorEnabled = true,
IsSlowOperationThresholdingEnabled = true,
});
});
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 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()))
.projectOwnerId("<OWNER_ACCOUNT_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(),
ProjectLimitArgs.builder()
.name("atlas.project.deployment.nodesPerPrivateLinkRegion")
.value(51)
.build())
.isCollectDatabaseSpecificsStatisticsEnabled(true)
.isDataExplorerEnabled(true)
.isExtendedStorageSizesEnabled(true)
.isPerformanceAdvisorEnabled(true)
.isRealtimePerformancePanelEnabled(true)
.isSchemaAdvisorEnabled(true)
.isSlowOperationThresholdingEnabled(true)
.build());
}
}
resources:
testProject:
type: mongodbatlas:Project
name: test
properties:
name: project-name
orgId: ${test.orgId}
projectOwnerId: <OWNER_ACCOUNT_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
- name: atlas.project.deployment.nodesPerPrivateLinkRegion
value: 51
isCollectDatabaseSpecificsStatisticsEnabled: true
isDataExplorerEnabled: true
isExtendedStorageSizesEnabled: true
isPerformanceAdvisorEnabled: true
isRealtimePerformancePanelEnabled: true
isSchemaAdvisorEnabled: true
isSlowOperationThresholdingEnabled: true
variables:
test:
fn::invoke:
Function: mongodbatlas:getRolesOrgId
Arguments: {}
Create Project Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);
@overload
def Project(resource_name: str,
args: ProjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Project(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_id: Optional[str] = None,
is_performance_advisor_enabled: Optional[bool] = None,
name: Optional[str] = None,
is_collect_database_specifics_statistics_enabled: Optional[bool] = None,
is_realtime_performance_panel_enabled: Optional[bool] = None,
is_schema_advisor_enabled: Optional[bool] = None,
is_slow_operation_thresholding_enabled: Optional[bool] = None,
limits: Optional[Sequence[ProjectLimitArgs]] = None,
is_extended_storage_sizes_enabled: Optional[bool] = None,
is_data_explorer_enabled: Optional[bool] = None,
project_owner_id: Optional[str] = None,
region_usage_restrictions: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
teams: Optional[Sequence[ProjectTeamArgs]] = None,
with_default_alerts_settings: Optional[bool] = None)
func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs args, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: mongodbatlas:Project
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 ProjectArgs
- 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 ProjectArgs
- 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 ProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectArgs
- 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 projectResource = new Mongodbatlas.Project("projectResource", new()
{
OrgId = "string",
IsPerformanceAdvisorEnabled = false,
Name = "string",
IsCollectDatabaseSpecificsStatisticsEnabled = false,
IsRealtimePerformancePanelEnabled = false,
IsSchemaAdvisorEnabled = false,
Limits = new[]
{
new Mongodbatlas.Inputs.ProjectLimitArgs
{
Name = "string",
Value = 0,
CurrentUsage = 0,
DefaultLimit = 0,
MaximumLimit = 0,
},
},
IsExtendedStorageSizesEnabled = false,
IsDataExplorerEnabled = false,
ProjectOwnerId = "string",
RegionUsageRestrictions = "string",
Tags =
{
{ "string", "string" },
},
Teams = new[]
{
new Mongodbatlas.Inputs.ProjectTeamArgs
{
RoleNames = new[]
{
"string",
},
TeamId = "string",
},
},
WithDefaultAlertsSettings = false,
});
example, err := mongodbatlas.NewProject(ctx, "projectResource", &mongodbatlas.ProjectArgs{
OrgId: pulumi.String("string"),
IsPerformanceAdvisorEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
IsCollectDatabaseSpecificsStatisticsEnabled: pulumi.Bool(false),
IsRealtimePerformancePanelEnabled: pulumi.Bool(false),
IsSchemaAdvisorEnabled: pulumi.Bool(false),
Limits: mongodbatlas.ProjectLimitArray{
&mongodbatlas.ProjectLimitArgs{
Name: pulumi.String("string"),
Value: pulumi.Int(0),
CurrentUsage: pulumi.Int(0),
DefaultLimit: pulumi.Int(0),
MaximumLimit: pulumi.Int(0),
},
},
IsExtendedStorageSizesEnabled: pulumi.Bool(false),
IsDataExplorerEnabled: pulumi.Bool(false),
ProjectOwnerId: pulumi.String("string"),
RegionUsageRestrictions: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Teams: mongodbatlas.ProjectTeamArray{
&mongodbatlas.ProjectTeamArgs{
RoleNames: pulumi.StringArray{
pulumi.String("string"),
},
TeamId: pulumi.String("string"),
},
},
WithDefaultAlertsSettings: pulumi.Bool(false),
})
var projectResource = new Project("projectResource", ProjectArgs.builder()
.orgId("string")
.isPerformanceAdvisorEnabled(false)
.name("string")
.isCollectDatabaseSpecificsStatisticsEnabled(false)
.isRealtimePerformancePanelEnabled(false)
.isSchemaAdvisorEnabled(false)
.limits(ProjectLimitArgs.builder()
.name("string")
.value(0)
.currentUsage(0)
.defaultLimit(0)
.maximumLimit(0)
.build())
.isExtendedStorageSizesEnabled(false)
.isDataExplorerEnabled(false)
.projectOwnerId("string")
.regionUsageRestrictions("string")
.tags(Map.of("string", "string"))
.teams(ProjectTeamArgs.builder()
.roleNames("string")
.teamId("string")
.build())
.withDefaultAlertsSettings(false)
.build());
project_resource = mongodbatlas.Project("projectResource",
org_id="string",
is_performance_advisor_enabled=False,
name="string",
is_collect_database_specifics_statistics_enabled=False,
is_realtime_performance_panel_enabled=False,
is_schema_advisor_enabled=False,
limits=[{
"name": "string",
"value": 0,
"current_usage": 0,
"default_limit": 0,
"maximum_limit": 0,
}],
is_extended_storage_sizes_enabled=False,
is_data_explorer_enabled=False,
project_owner_id="string",
region_usage_restrictions="string",
tags={
"string": "string",
},
teams=[{
"role_names": ["string"],
"team_id": "string",
}],
with_default_alerts_settings=False)
const projectResource = new mongodbatlas.Project("projectResource", {
orgId: "string",
isPerformanceAdvisorEnabled: false,
name: "string",
isCollectDatabaseSpecificsStatisticsEnabled: false,
isRealtimePerformancePanelEnabled: false,
isSchemaAdvisorEnabled: false,
limits: [{
name: "string",
value: 0,
currentUsage: 0,
defaultLimit: 0,
maximumLimit: 0,
}],
isExtendedStorageSizesEnabled: false,
isDataExplorerEnabled: false,
projectOwnerId: "string",
regionUsageRestrictions: "string",
tags: {
string: "string",
},
teams: [{
roleNames: ["string"],
teamId: "string",
}],
withDefaultAlertsSettings: false,
});
type: mongodbatlas:Project
properties:
isCollectDatabaseSpecificsStatisticsEnabled: false
isDataExplorerEnabled: false
isExtendedStorageSizesEnabled: false
isPerformanceAdvisorEnabled: false
isRealtimePerformancePanelEnabled: false
isSchemaAdvisorEnabled: false
limits:
- currentUsage: 0
defaultLimit: 0
maximumLimit: 0
name: string
value: 0
name: string
orgId: string
projectOwnerId: string
regionUsageRestrictions: string
tags:
string: string
teams:
- roleNames:
- string
teamId: string
withDefaultAlertsSettings: false
Project 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 Project resource accepts the following input properties:
- Org
Id string - The ID of the organization you want to create the project within.
- Is
Collect boolDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- Is
Extended boolStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- Is
Slow boolOperation Thresholding Enabled - (Optional) 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<Project
Limit> - Name string
- The name of the project you want to create.
- Project
Owner stringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- Region
Usage stringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- Teams
List<Project
Team> - With
Default boolAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- Org
Id string - The ID of the organization you want to create the project within.
- Is
Collect boolDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- Is
Extended boolStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- Is
Slow boolOperation Thresholding Enabled - (Optional) 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
[]Project
Limit Args - Name string
- The name of the project you want to create.
- Project
Owner stringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- Region
Usage stringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- Teams
[]Project
Team Args - With
Default boolAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- org
Id String - The ID of the organization you want to create the project within.
- is
Collect BooleanDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- is
Extended BooleanStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- is
Slow BooleanOperation Thresholding Enabled - (Optional) 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<Project
Limit> - name String
- The name of the project you want to create.
- project
Owner StringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- region
Usage StringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- teams
List<Project
Team> - with
Default BooleanAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- org
Id string - The ID of the organization you want to create the project within.
- is
Collect booleanDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- is
Extended booleanStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- is
Slow booleanOperation Thresholding Enabled - (Optional) 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
Project
Limit[] - name string
- The name of the project you want to create.
- project
Owner stringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- region
Usage stringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- teams
Project
Team[] - with
Default booleanAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- org_
id str - The ID of the organization you want to create the project within.
- is_
collect_ booldatabase_ specifics_ statistics_ enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- is_
extended_ boolstorage_ sizes_ enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- is_
slow_ booloperation_ thresholding_ enabled - (Optional) 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[Project
Limit Args] - name str
- The name of the project you want to create.
- project_
owner_ strid - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- region_
usage_ strrestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- teams
Sequence[Project
Team Args] - with_
default_ boolalerts_ settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- org
Id String - The ID of the organization you want to create the project within.
- is
Collect BooleanDatabase Specifics Statistics Enabled - Flag that indicates whether to enable statistics in cluster metrics collection for the project. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- is
Extended BooleanStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- is
Slow BooleanOperation Thresholding Enabled - (Optional) 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>
- name String
- The name of the project you want to create.
- project
Owner StringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- region
Usage StringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- teams List<Property Map>
- with
Default BooleanAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
- 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
- The provider-assigned unique ID for this managed resource.
- Ip
Addresses ProjectIp 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.
- 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
- The provider-assigned unique ID for this managed resource.
- Ip
Addresses ProjectIp 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.
- 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
- The provider-assigned unique ID for this managed resource.
- ip
Addresses ProjectIp 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.
- 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
- The provider-assigned unique ID for this managed resource.
- ip
Addresses ProjectIp 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.
- 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
- The provider-assigned unique ID for this managed resource.
- ip_
addresses ProjectIp 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.
- 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
- The provider-assigned unique ID for this managed resource.
- 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.
Look up Existing Project Resource
Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_count: Optional[int] = None,
created: Optional[str] = None,
ip_addresses: Optional[ProjectIpAddressesArgs] = None,
is_collect_database_specifics_statistics_enabled: Optional[bool] = None,
is_data_explorer_enabled: Optional[bool] = None,
is_extended_storage_sizes_enabled: Optional[bool] = None,
is_performance_advisor_enabled: Optional[bool] = None,
is_realtime_performance_panel_enabled: Optional[bool] = None,
is_schema_advisor_enabled: Optional[bool] = None,
is_slow_operation_thresholding_enabled: Optional[bool] = None,
limits: Optional[Sequence[ProjectLimitArgs]] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_owner_id: Optional[str] = None,
region_usage_restrictions: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
teams: Optional[Sequence[ProjectTeamArgs]] = None,
with_default_alerts_settings: Optional[bool] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Ip
Addresses ProjectIp 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. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- Is
Extended boolStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- Is
Slow boolOperation Thresholding Enabled - (Optional) 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<Project
Limit> - Name string
- The name of the project you want to create.
- Org
Id string - The ID of the organization you want to create the project within.
- Project
Owner stringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- Region
Usage stringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- Teams
List<Project
Team> - With
Default boolAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- 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.
- Ip
Addresses ProjectIp Addresses Args - 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. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- Is
Extended boolStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- Is
Slow boolOperation Thresholding Enabled - (Optional) 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
[]Project
Limit Args - Name string
- The name of the project you want to create.
- Org
Id string - The ID of the organization you want to create the project within.
- Project
Owner stringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- Region
Usage stringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- Teams
[]Project
Team Args - With
Default boolAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- 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.
- ip
Addresses ProjectIp 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. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- is
Extended BooleanStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- is
Slow BooleanOperation Thresholding Enabled - (Optional) 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<Project
Limit> - name String
- The name of the project you want to create.
- org
Id String - The ID of the organization you want to create the project within.
- project
Owner StringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- region
Usage StringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- teams
List<Project
Team> - with
Default BooleanAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- 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.
- ip
Addresses ProjectIp 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. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- is
Extended booleanStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- is
Slow booleanOperation Thresholding Enabled - (Optional) 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
Project
Limit[] - name string
- The name of the project you want to create.
- org
Id string - The ID of the organization you want to create the project within.
- project
Owner stringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- region
Usage stringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- teams
Project
Team[] - with
Default booleanAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- 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.
- ip_
addresses ProjectIp Addresses Args - 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. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- is_
extended_ boolstorage_ sizes_ enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- is_
slow_ booloperation_ thresholding_ enabled - (Optional) 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[Project
Limit Args] - name str
- The name of the project you want to create.
- org_
id str - The ID of the organization you want to create the project within.
- project_
owner_ strid - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- region_
usage_ strrestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- teams
Sequence[Project
Team Args] - with_
default_ boolalerts_ settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- 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.
- 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. By default, this flag is set to true.
- 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. When Data Explorer is disabled, you cannot terminate slow operations from the Real-Time Performance Panel or create indexes from the Performance Advisor. You can still view Performance Advisor recommendations, but you must create those indexes from mongosh. By default, this flag is set to true.
- is
Extended BooleanStorage Sizes Enabled - Flag that indicates whether to enable extended storage sizes for the specified project. Clusters with extended storage sizes must be on AWS or GCP, and cannot span multiple regions. When extending storage size, initial syncs and cross-project snapshot restores will be slow. This setting should only be used as a measure of temporary relief; consider sharding if more storage is required.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- 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. By default, this flag is set to true.
- is
Slow BooleanOperation Thresholding Enabled - (Optional) 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>
- name String
- The name of the project you want to create.
- org
Id String - The ID of the organization you want to create the project within.
- project
Owner StringId - Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the Project Owner role on the specified project. If you set this parameter, it overrides the default value of the oldest Organization Owner.
- region
Usage StringRestrictions - Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. 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. See below.
- teams List<Property Map>
- with
Default BooleanAlerts Settings - It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
Supporting Types
ProjectIpAddresses, ProjectIpAddressesArgs
ProjectIpAddressesServices, ProjectIpAddressesServicesArgs
ProjectIpAddressesServicesCluster, ProjectIpAddressesServicesClusterArgs
- Cluster
Name string - Inbounds List<string>
- Outbounds List<string>
- Cluster
Name string - Inbounds []string
- Outbounds []string
- cluster
Name String - inbounds List<String>
- outbounds List<String>
- cluster
Name string - inbounds string[]
- outbounds string[]
- cluster_
name str - inbounds Sequence[str]
- outbounds Sequence[str]
- cluster
Name String - inbounds List<String>
- outbounds List<String>
ProjectLimit, ProjectLimitArgs
- Name string
- Human-readable label that identifies this project limit. See Project Limit Documentation under
limitName
parameter to find all the limits that can be defined. - Value int
- Amount to set the limit to. Use the Project Limit Documentation under
limitName
parameter to verify the override limits. - Current
Usage int - Default
Limit int - Maximum
Limit int
- Name string
- Human-readable label that identifies this project limit. See Project Limit Documentation under
limitName
parameter to find all the limits that can be defined. - Value int
- Amount to set the limit to. Use the Project Limit Documentation under
limitName
parameter to verify the override limits. - Current
Usage int - Default
Limit int - Maximum
Limit int
- name String
- Human-readable label that identifies this project limit. See Project Limit Documentation under
limitName
parameter to find all the limits that can be defined. - value Integer
- Amount to set the limit to. Use the Project Limit Documentation under
limitName
parameter to verify the override limits. - current
Usage Integer - default
Limit Integer - maximum
Limit Integer
- name string
- Human-readable label that identifies this project limit. See Project Limit Documentation under
limitName
parameter to find all the limits that can be defined. - value number
- Amount to set the limit to. Use the Project Limit Documentation under
limitName
parameter to verify the override limits. - current
Usage number - default
Limit number - maximum
Limit number
- name str
- Human-readable label that identifies this project limit. See Project Limit Documentation under
limitName
parameter to find all the limits that can be defined. - value int
- Amount to set the limit to. Use the Project Limit Documentation under
limitName
parameter to verify the override limits. - current_
usage int - default_
limit int - maximum_
limit int
- name String
- Human-readable label that identifies this project limit. See Project Limit Documentation under
limitName
parameter to find all the limits that can be defined. - value Number
- Amount to set the limit to. Use the Project Limit Documentation under
limitName
parameter to verify the override limits. - current
Usage Number - default
Limit Number - maximum
Limit Number
ProjectTeam, ProjectTeamArgs
- Role
Names List<string> Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The MongoDB Documentation describes the roles a user can have.
NOTE: Project created by API Keys must belong to an existing organization.
- 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 you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The MongoDB Documentation describes the roles a user can have.
NOTE: Project created by API Keys must belong to an existing organization.
- 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 you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The MongoDB Documentation describes the roles a user can have.
NOTE: Project created by API Keys must belong to an existing organization.
- 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 you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The MongoDB Documentation describes the roles a user can have.
NOTE: Project created by API Keys must belong to an existing organization.
- 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 you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The MongoDB Documentation describes the roles a user can have.
NOTE: Project created by API Keys must belong to an existing organization.
- 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 you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The MongoDB Documentation describes the roles a user can have.
NOTE: Project created by API Keys must belong to an existing organization.
- 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.
Import
Project must be imported using project ID, e.g.
$ pulumi import mongodbatlas:index/project:Project my_project 5d09d6a59ccf6445652a444a
For more information see: MongoDB Atlas Admin API Projects and MongoDB Atlas Admin API Teams Documentation for more information.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.