mongodbatlas.getFlexClusters
Explore with Pulumi AI
# Data Source: mongodbatlas.getFlexClusters
mongodbatlas.getFlexClusters
returns all flex clusters in a project.
RECOMMENDATION: We recommend using the mongodbatlas.getAdvancedClusters
data source instead of the mongodbatlas.getFlexClusters
data source to retrieve Flex clusters. The mongodbatlas.getAdvancedClusters
data source not only supports Flex clusters, but also supports free and dedicated clusters, providing easier migration between different cluster types. For more information, see the Advanced Clusters data source.
Example Usage
Using getFlexClusters
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFlexClusters(args: GetFlexClustersArgs, opts?: InvokeOptions): Promise<GetFlexClustersResult>
function getFlexClustersOutput(args: GetFlexClustersOutputArgs, opts?: InvokeOptions): Output<GetFlexClustersResult>
def get_flex_clusters(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFlexClustersResult
def get_flex_clusters_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFlexClustersResult]
func LookupFlexClusters(ctx *Context, args *LookupFlexClustersArgs, opts ...InvokeOption) (*LookupFlexClustersResult, error)
func LookupFlexClustersOutput(ctx *Context, args *LookupFlexClustersOutputArgs, opts ...InvokeOption) LookupFlexClustersResultOutput
> Note: This function is named LookupFlexClusters
in the Go SDK.
public static class GetFlexClusters
{
public static Task<GetFlexClustersResult> InvokeAsync(GetFlexClustersArgs args, InvokeOptions? opts = null)
public static Output<GetFlexClustersResult> Invoke(GetFlexClustersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFlexClustersResult> getFlexClusters(GetFlexClustersArgs args, InvokeOptions options)
public static Output<GetFlexClustersResult> getFlexClusters(GetFlexClustersArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getFlexClusters:getFlexClusters
arguments:
# arguments dictionary
The following arguments are supported:
- Project
Id This property is required. string - Unique 24-hexadecimal character string that identifies the project.
- Project
Id This property is required. string - Unique 24-hexadecimal character string that identifies the project.
- project
Id This property is required. String - Unique 24-hexadecimal character string that identifies the project.
- project
Id This property is required. string - Unique 24-hexadecimal character string that identifies the project.
- project_
id This property is required. str - Unique 24-hexadecimal character string that identifies the project.
- project
Id This property is required. String - Unique 24-hexadecimal character string that identifies the project.
getFlexClusters Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal character string that identifies the project.
- Results
List<Get
Flex Clusters Result> - List of documents that MongoDB Cloud returns for this request.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal character string that identifies the project.
- Results
[]Get
Flex Clusters Result - List of documents that MongoDB Cloud returns for this request.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal character string that identifies the project.
- results
List<Get
Flex Clusters Result> - List of documents that MongoDB Cloud returns for this request.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - Unique 24-hexadecimal character string that identifies the project.
- results
Get
Flex Clusters Result[] - List of documents that MongoDB Cloud returns for this request.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - Unique 24-hexadecimal character string that identifies the project.
- results
Sequence[Get
Flex Clusters Result] - List of documents that MongoDB Cloud returns for this request.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal character string that identifies the project.
- results List<Property Map>
- List of documents that MongoDB Cloud returns for this request.
Supporting Types
GetFlexClustersResult
- Backup
Settings This property is required. GetFlex Clusters Result Backup Settings - Flex backup configuration
- Cluster
Type This property is required. string - Flex cluster topology.
- Connection
Strings This property is required. GetFlex Clusters Result Connection Strings - Collection of Uniform Resource Locators that point to the MongoDB database.
- Create
Date This property is required. string - Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- Id
This property is required. string - Unique 24-hexadecimal digit string that identifies the instance.
- Mongo
Db Version This property is required. string - Version of MongoDB that the instance runs.
- Name
This property is required. string - Human-readable label that identifies the instance.
- Project
Id This property is required. string - Unique 24-hexadecimal character string that identifies the project.
- Provider
Settings This property is required. GetFlex Clusters Result Provider Settings - Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- State
Name This property is required. string - Human-readable label that indicates the current operating condition of this instance.
This property is required. Dictionary<string, string>- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- Termination
Protection Enabled This property is required. bool - Flag that indicates whether termination protection is enabled on the cluster. If set to
true
, MongoDB Cloud won't delete the cluster. If set tofalse
, MongoDB Cloud will delete the cluster. - Version
Release System This property is required. string - Method by which the cluster maintains the MongoDB versions.
- Backup
Settings This property is required. GetFlex Clusters Result Backup Settings - Flex backup configuration
- Cluster
Type This property is required. string - Flex cluster topology.
- Connection
Strings This property is required. GetFlex Clusters Result Connection Strings - Collection of Uniform Resource Locators that point to the MongoDB database.
- Create
Date This property is required. string - Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- Id
This property is required. string - Unique 24-hexadecimal digit string that identifies the instance.
- Mongo
Db Version This property is required. string - Version of MongoDB that the instance runs.
- Name
This property is required. string - Human-readable label that identifies the instance.
- Project
Id This property is required. string - Unique 24-hexadecimal character string that identifies the project.
- Provider
Settings This property is required. GetFlex Clusters Result Provider Settings - Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- State
Name This property is required. string - Human-readable label that indicates the current operating condition of this instance.
This property is required. map[string]string- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- Termination
Protection Enabled This property is required. bool - Flag that indicates whether termination protection is enabled on the cluster. If set to
true
, MongoDB Cloud won't delete the cluster. If set tofalse
, MongoDB Cloud will delete the cluster. - Version
Release System This property is required. string - Method by which the cluster maintains the MongoDB versions.
- backup
Settings This property is required. GetFlex Clusters Result Backup Settings - Flex backup configuration
- cluster
Type This property is required. String - Flex cluster topology.
- connection
Strings This property is required. GetFlex Clusters Result Connection Strings - Collection of Uniform Resource Locators that point to the MongoDB database.
- create
Date This property is required. String - Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- id
This property is required. String - Unique 24-hexadecimal digit string that identifies the instance.
- mongo
Db Version This property is required. String - Version of MongoDB that the instance runs.
- name
This property is required. String - Human-readable label that identifies the instance.
- project
Id This property is required. String - Unique 24-hexadecimal character string that identifies the project.
- provider
Settings This property is required. GetFlex Clusters Result Provider Settings - Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- state
Name This property is required. String - Human-readable label that indicates the current operating condition of this instance.
This property is required. Map<String,String>- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- termination
Protection Enabled This property is required. Boolean - Flag that indicates whether termination protection is enabled on the cluster. If set to
true
, MongoDB Cloud won't delete the cluster. If set tofalse
, MongoDB Cloud will delete the cluster. - version
Release System This property is required. String - Method by which the cluster maintains the MongoDB versions.
- backup
Settings This property is required. GetFlex Clusters Result Backup Settings - Flex backup configuration
- cluster
Type This property is required. string - Flex cluster topology.
- connection
Strings This property is required. GetFlex Clusters Result Connection Strings - Collection of Uniform Resource Locators that point to the MongoDB database.
- create
Date This property is required. string - Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- id
This property is required. string - Unique 24-hexadecimal digit string that identifies the instance.
- mongo
Db Version This property is required. string - Version of MongoDB that the instance runs.
- name
This property is required. string - Human-readable label that identifies the instance.
- project
Id This property is required. string - Unique 24-hexadecimal character string that identifies the project.
- provider
Settings This property is required. GetFlex Clusters Result Provider Settings - Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- state
Name This property is required. string - Human-readable label that indicates the current operating condition of this instance.
This property is required. {[key: string]: string}- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- termination
Protection Enabled This property is required. boolean - Flag that indicates whether termination protection is enabled on the cluster. If set to
true
, MongoDB Cloud won't delete the cluster. If set tofalse
, MongoDB Cloud will delete the cluster. - version
Release System This property is required. string - Method by which the cluster maintains the MongoDB versions.
- backup_
settings This property is required. GetFlex Clusters Result Backup Settings - Flex backup configuration
- cluster_
type This property is required. str - Flex cluster topology.
- connection_
strings This property is required. GetFlex Clusters Result Connection Strings - Collection of Uniform Resource Locators that point to the MongoDB database.
- create_
date This property is required. str - Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- id
This property is required. str - Unique 24-hexadecimal digit string that identifies the instance.
- mongo_
db_ version This property is required. str - Version of MongoDB that the instance runs.
- name
This property is required. str - Human-readable label that identifies the instance.
- project_
id This property is required. str - Unique 24-hexadecimal character string that identifies the project.
- provider_
settings This property is required. GetFlex Clusters Result Provider Settings - Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- state_
name This property is required. str - Human-readable label that indicates the current operating condition of this instance.
This property is required. Mapping[str, str]- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- termination_
protection_ enabled This property is required. bool - Flag that indicates whether termination protection is enabled on the cluster. If set to
true
, MongoDB Cloud won't delete the cluster. If set tofalse
, MongoDB Cloud will delete the cluster. - version_
release_ system This property is required. str - Method by which the cluster maintains the MongoDB versions.
- backup
Settings This property is required. Property Map - Flex backup configuration
- cluster
Type This property is required. String - Flex cluster topology.
- connection
Strings This property is required. Property Map - Collection of Uniform Resource Locators that point to the MongoDB database.
- create
Date This property is required. String - Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- id
This property is required. String - Unique 24-hexadecimal digit string that identifies the instance.
- mongo
Db Version This property is required. String - Version of MongoDB that the instance runs.
- name
This property is required. String - Human-readable label that identifies the instance.
- project
Id This property is required. String - Unique 24-hexadecimal character string that identifies the project.
- provider
Settings This property is required. Property Map - Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- state
Name This property is required. String - Human-readable label that indicates the current operating condition of this instance.
This property is required. Map<String>- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- termination
Protection Enabled This property is required. Boolean - Flag that indicates whether termination protection is enabled on the cluster. If set to
true
, MongoDB Cloud won't delete the cluster. If set tofalse
, MongoDB Cloud will delete the cluster. - version
Release System This property is required. String - Method by which the cluster maintains the MongoDB versions.
GetFlexClustersResultBackupSettings
- Enabled
This property is required. bool - Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- Enabled
This property is required. bool - Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- enabled
This property is required. Boolean - Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- enabled
This property is required. boolean - Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- enabled
This property is required. bool - Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- enabled
This property is required. Boolean - Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
GetFlexClustersResultConnectionStrings
- Standard
This property is required. string - Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- Standard
Srv This property is required. string - Public connection string that you can use to connect to this flex cluster. This connection string uses the
mongodb+srv://
protocol.
- Standard
This property is required. string - Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- Standard
Srv This property is required. string - Public connection string that you can use to connect to this flex cluster. This connection string uses the
mongodb+srv://
protocol.
- standard
This property is required. String - Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- standard
Srv This property is required. String - Public connection string that you can use to connect to this flex cluster. This connection string uses the
mongodb+srv://
protocol.
- standard
This property is required. string - Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- standard
Srv This property is required. string - Public connection string that you can use to connect to this flex cluster. This connection string uses the
mongodb+srv://
protocol.
- standard
This property is required. str - Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- standard_
srv This property is required. str - Public connection string that you can use to connect to this flex cluster. This connection string uses the
mongodb+srv://
protocol.
- standard
This property is required. String - Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- standard
Srv This property is required. String - Public connection string that you can use to connect to this flex cluster. This connection string uses the
mongodb+srv://
protocol.
GetFlexClustersResultProviderSettings
- Backing
Provider Name This property is required. string - Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- Disk
Size Gb This property is required. double - Storage capacity available to the flex cluster expressed in gigabytes.
- Provider
Name This property is required. string - Human-readable label that identifies the cloud service provider.
- Region
Name This property is required. string - Human-readable label that identifies the geographic location of your MongoDB flex cluster. The region you choose can affect network latency for clients accessing your databases. For a complete list of region names, see AWS, GCP, and Azure.
- Backing
Provider Name This property is required. string - Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- Disk
Size Gb This property is required. float64 - Storage capacity available to the flex cluster expressed in gigabytes.
- Provider
Name This property is required. string - Human-readable label that identifies the cloud service provider.
- Region
Name This property is required. string - Human-readable label that identifies the geographic location of your MongoDB flex cluster. The region you choose can affect network latency for clients accessing your databases. For a complete list of region names, see AWS, GCP, and Azure.
- backing
Provider Name This property is required. String - Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- disk
Size Gb This property is required. Double - Storage capacity available to the flex cluster expressed in gigabytes.
- provider
Name This property is required. String - Human-readable label that identifies the cloud service provider.
- region
Name This property is required. String - Human-readable label that identifies the geographic location of your MongoDB flex cluster. The region you choose can affect network latency for clients accessing your databases. For a complete list of region names, see AWS, GCP, and Azure.
- backing
Provider Name This property is required. string - Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- disk
Size Gb This property is required. number - Storage capacity available to the flex cluster expressed in gigabytes.
- provider
Name This property is required. string - Human-readable label that identifies the cloud service provider.
- region
Name This property is required. string - Human-readable label that identifies the geographic location of your MongoDB flex cluster. The region you choose can affect network latency for clients accessing your databases. For a complete list of region names, see AWS, GCP, and Azure.
- backing_
provider_ name This property is required. str - Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- disk_
size_ gb This property is required. float - Storage capacity available to the flex cluster expressed in gigabytes.
- provider_
name This property is required. str - Human-readable label that identifies the cloud service provider.
- region_
name This property is required. str - Human-readable label that identifies the geographic location of your MongoDB flex cluster. The region you choose can affect network latency for clients accessing your databases. For a complete list of region names, see AWS, GCP, and Azure.
- backing
Provider Name This property is required. String - Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- disk
Size Gb This property is required. Number - Storage capacity available to the flex cluster expressed in gigabytes.
- provider
Name This property is required. String - Human-readable label that identifies the cloud service provider.
- region
Name This property is required. String - Human-readable label that identifies the geographic location of your MongoDB flex cluster. The region you choose can affect network latency for clients accessing your databases. For a complete list of region names, see AWS, GCP, and Azure.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.