MongoDB Atlas v3.7.2, Mar 31 23
MongoDB Atlas v3.7.2, Mar 31 23
mongodbatlas.Project
Explore with Pulumi AI
Import
Project must be imported using project ID, e.g.
$ pulumi import mongodbatlas:index/project:Project my_project 5d09d6a59ccf6445652a444a
For more information seeMongoDB Atlas Admin API Projects and MongoDB Atlas Admin API Teams Documentation for more information.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testRolesOrgId = Mongodbatlas.GetRolesOrgId.Invoke();
var testProject = new Mongodbatlas.Project("testProject", new()
{
OrgId = testRolesOrgId.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",
},
},
},
ApiKeys = new[]
{
new Mongodbatlas.Inputs.ProjectApiKeyArgs
{
ApiKeyId = "61003b299dda8d54a9d7d10c",
RoleNames = new[]
{
"GROUP_READ_ONLY",
},
},
},
IsCollectDatabaseSpecificsStatisticsEnabled = true,
IsDataExplorerEnabled = true,
IsPerformanceAdvisorEnabled = true,
IsRealtimePerformancePanelEnabled = true,
IsSchemaAdvisorEnabled = 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 {
testRolesOrgId, err := mongodbatlas.GetRolesOrgId(ctx, nil, nil)
if err != nil {
return err
}
_, err = mongodbatlas.NewProject(ctx, "testProject", &mongodbatlas.ProjectArgs{
OrgId: *pulumi.String(testRolesOrgId.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"),
},
},
},
ApiKeys: mongodbatlas.ProjectApiKeyTypeArray{
&mongodbatlas.ProjectApiKeyTypeArgs{
ApiKeyId: pulumi.String("61003b299dda8d54a9d7d10c"),
RoleNames: pulumi.StringArray{
pulumi.String("GROUP_READ_ONLY"),
},
},
},
IsCollectDatabaseSpecificsStatisticsEnabled: pulumi.Bool(true),
IsDataExplorerEnabled: pulumi.Bool(true),
IsPerformanceAdvisorEnabled: pulumi.Bool(true),
IsRealtimePerformancePanelEnabled: pulumi.Bool(true),
IsSchemaAdvisorEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
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.ProjectApiKeyArgs;
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 testRolesOrgId = MongodbatlasFunctions.getRolesOrgId();
var testProject = new Project("testProject", ProjectArgs.builder()
.orgId(testRolesOrgId.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())
.apiKeys(ProjectApiKeyArgs.builder()
.apiKeyId("61003b299dda8d54a9d7d10c")
.roleNames("GROUP_READ_ONLY")
.build())
.isCollectDatabaseSpecificsStatisticsEnabled(true)
.isDataExplorerEnabled(true)
.isPerformanceAdvisorEnabled(true)
.isRealtimePerformancePanelEnabled(true)
.isSchemaAdvisorEnabled(true)
.build());
}
}
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_roles_org_id = mongodbatlas.get_roles_org_id()
test_project = mongodbatlas.Project("testProject",
org_id=test_roles_org_id.org_id,
project_owner_id="<OWNER_ACCOUNT_ID>",
teams=[
mongodbatlas.ProjectTeamArgs(
team_id="5e0fa8c99ccf641c722fe645",
role_names=["GROUP_OWNER"],
),
mongodbatlas.ProjectTeamArgs(
team_id="5e1dd7b4f2a30ba80a70cd4rw",
role_names=[
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
],
),
],
api_keys=[mongodbatlas.ProjectApiKeyArgs(
api_key_id="61003b299dda8d54a9d7d10c",
role_names=["GROUP_READ_ONLY"],
)],
is_collect_database_specifics_statistics_enabled=True,
is_data_explorer_enabled=True,
is_performance_advisor_enabled=True,
is_realtime_performance_panel_enabled=True,
is_schema_advisor_enabled=True)
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testRolesOrgId = mongodbatlas.getRolesOrgId({});
const testProject = new mongodbatlas.Project("testProject", {
orgId: testRolesOrgId.then(testRolesOrgId => testRolesOrgId.orgId),
projectOwnerId: "<OWNER_ACCOUNT_ID>",
teams: [
{
teamId: "5e0fa8c99ccf641c722fe645",
roleNames: ["GROUP_OWNER"],
},
{
teamId: "5e1dd7b4f2a30ba80a70cd4rw",
roleNames: [
"GROUP_READ_ONLY",
"GROUP_DATA_ACCESS_READ_WRITE",
],
},
],
apiKeys: [{
apiKeyId: "61003b299dda8d54a9d7d10c",
roleNames: ["GROUP_READ_ONLY"],
}],
isCollectDatabaseSpecificsStatisticsEnabled: true,
isDataExplorerEnabled: true,
isPerformanceAdvisorEnabled: true,
isRealtimePerformancePanelEnabled: true,
isSchemaAdvisorEnabled: true,
});
resources:
testProject:
type: mongodbatlas:Project
properties:
orgId: ${testRolesOrgId.orgId}
projectOwnerId: <OWNER_ACCOUNT_ID>
teams:
- teamId: 5e0fa8c99ccf641c722fe645
roleNames:
- GROUP_OWNER
- teamId: 5e1dd7b4f2a30ba80a70cd4rw
roleNames:
- GROUP_READ_ONLY
- GROUP_DATA_ACCESS_READ_WRITE
apiKeys:
- apiKeyId: 61003b299dda8d54a9d7d10c
roleNames:
- GROUP_READ_ONLY
isCollectDatabaseSpecificsStatisticsEnabled: true
isDataExplorerEnabled: true
isPerformanceAdvisorEnabled: true
isRealtimePerformancePanelEnabled: true
isSchemaAdvisorEnabled: true
variables:
testRolesOrgId:
fn::invoke:
Function: mongodbatlas:getRolesOrgId
Arguments: {}
Create Project Resource
new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);
@overload
def Project(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_keys: Optional[Sequence[ProjectApiKeyArgs]] = None,
is_collect_database_specifics_statistics_enabled: Optional[bool] = None,
is_data_explorer_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,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_owner_id: Optional[str] = None,
region_usage_restrictions: Optional[str] = None,
teams: Optional[Sequence[ProjectTeamArgs]] = None,
with_default_alerts_settings: Optional[bool] = None)
@overload
def Project(resource_name: str,
args: ProjectArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The Project resource accepts the following input properties:
- Org
Id string The ID of the organization you want to create the project within.
- Api
Keys List<ProjectApi Key Args> - 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. 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.
- 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.
- Name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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.
- Teams
List<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.
- Api
Keys []ProjectApi Key Type Args - 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. 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.
- 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.
- Name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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.
- 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.
- api
Keys List<ProjectApi Key Args> - 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. 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.
- 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.
- name String
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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.
- teams
List<Project
Team Args> - 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.
- api
Keys ProjectApi Key Args[] - 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. 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.
- 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.
- name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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.
- teams
Project
Team Args[] - 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.
- api_
keys Sequence[ProjectApi Key Args] - 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. 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.
- 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.
- name str
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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.
- 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.
- api
Keys List<Property Map> - 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. 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.
- 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.
- name String
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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,
api_keys: Optional[Sequence[ProjectApiKeyArgs]] = None,
cluster_count: Optional[int] = None,
created: Optional[str] = None,
is_collect_database_specifics_statistics_enabled: Optional[bool] = None,
is_data_explorer_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,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_owner_id: Optional[str] = None,
region_usage_restrictions: Optional[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.
- Api
Keys List<ProjectApi Key Args> - 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..
- 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. 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.
- 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.
- Name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- Org
Id string The ID of the organization you want to create the project within.
- 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.
- Teams
List<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.
- Api
Keys []ProjectApi Key Type Args - 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..
- 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. 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.
- 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.
- Name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- Org
Id string The ID of the organization you want to create the project within.
- 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.
- 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.
- api
Keys List<ProjectApi Key Args> - 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..
- 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. 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.
- 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.
- name String
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- org
Id String The ID of the organization you want to create the project within.
- 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.
- teams
List<Project
Team Args> - with
Default BooleanAlerts Settings It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- api
Keys ProjectApi Key Args[] - 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..
- 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. 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.
- 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.
- name string
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- org
Id string The ID of the organization you want to create the project within.
- 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.
- teams
Project
Team Args[] - with
Default booleanAlerts Settings It allows users to disable the creation of the default alert settings. By default, this flag is set to true.
- api_
keys Sequence[ProjectApi Key Args] - 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..
- 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. 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.
- 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.
- name str
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- org_
id str The ID of the organization you want to create the project within.
- 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.
- 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.
- api
Keys List<Property Map> - 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..
- 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. 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.
- 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.
- name String
The name of the project you want to create. (Cannot be changed via this Provider after creation.)
- org
Id String The ID of the organization you want to create the project within.
- 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.
- 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
ProjectApiKey
- Api
Key stringId The unique identifier of the Programmatic API key you want to associate with the Project. The Programmatic API key and Project must share the same parent organization. Note: this is not the
publicKey
of the Programmatic API key but theid
of the key. See Programmatic API Keys for more.- 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 following are valid roles: The following are valid roles:
- Api
Key stringId The unique identifier of the Programmatic API key you want to associate with the Project. The Programmatic API key and Project must share the same parent organization. Note: this is not the
publicKey
of the Programmatic API key but theid
of the key. See Programmatic API Keys for more.- 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 following are valid roles: The following are valid roles:
- api
Key StringId The unique identifier of the Programmatic API key you want to associate with the Project. The Programmatic API key and Project must share the same parent organization. Note: this is not the
publicKey
of the Programmatic API key but theid
of the key. See Programmatic API Keys for more.- 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 following are valid roles: The following are valid roles:
- api
Key stringId The unique identifier of the Programmatic API key you want to associate with the Project. The Programmatic API key and Project must share the same parent organization. Note: this is not the
publicKey
of the Programmatic API key but theid
of the key. See Programmatic API Keys for more.- 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 following are valid roles: The following are valid roles:
- api_
key_ strid The unique identifier of the Programmatic API key you want to associate with the Project. The Programmatic API key and Project must share the same parent organization. Note: this is not the
publicKey
of the Programmatic API key but theid
of the key. See Programmatic API Keys for more.- 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 following are valid roles: The following are valid roles:
- api
Key StringId The unique identifier of the Programmatic API key you want to associate with the Project. The Programmatic API key and Project must share the same parent organization. Note: this is not the
publicKey
of the Programmatic API key but theid
of the key. See Programmatic API Keys for more.- 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 following are valid roles: The following are valid roles:
ProjectTeam
- 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 following are valid roles:
- 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 following are valid roles:
- 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 following are valid roles:
- 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 following are valid roles:
- 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 following are valid roles:
- 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 following are valid roles:
- 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.