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 dictionaryThe following arguments are supported:
- ProjectId string
- Unique 24-hexadecimal character string that identifies the project.
- ProjectId string
- Unique 24-hexadecimal character string that identifies the project.
- projectId String
- Unique 24-hexadecimal character string that identifies the project.
- projectId string
- Unique 24-hexadecimal character string that identifies the project.
- project_id str
- Unique 24-hexadecimal character string that identifies the project.
- projectId 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.
- ProjectId string
- Unique 24-hexadecimal character string that identifies the project.
- Results
List<GetFlex Clusters Result> 
- List of documents that MongoDB Cloud returns for this request.
- Id string
- The provider-assigned unique ID for this managed resource.
- ProjectId string
- Unique 24-hexadecimal character string that identifies the project.
- Results
[]GetFlex Clusters Result 
- List of documents that MongoDB Cloud returns for this request.
- id String
- The provider-assigned unique ID for this managed resource.
- projectId String
- Unique 24-hexadecimal character string that identifies the project.
- results
List<GetFlex Clusters Result> 
- List of documents that MongoDB Cloud returns for this request.
- id string
- The provider-assigned unique ID for this managed resource.
- projectId string
- Unique 24-hexadecimal character string that identifies the project.
- results
GetFlex 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[GetFlex Clusters Result] 
- List of documents that MongoDB Cloud returns for this request.
- id String
- The provider-assigned unique ID for this managed resource.
- projectId 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   
- BackupSettings GetFlex Clusters Result Backup Settings 
- Flex backup configuration
- ClusterType string
- Flex cluster topology.
- ConnectionStrings GetFlex Clusters Result Connection Strings 
- Collection of Uniform Resource Locators that point to the MongoDB database.
- CreateDate string
- Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- Id string
- Unique 24-hexadecimal digit string that identifies the instance.
- MongoDb stringVersion 
- Version of MongoDB that the instance runs.
- Name string
- Human-readable label that identifies the instance.
- ProjectId string
- Unique 24-hexadecimal character string that identifies the project.
- ProviderSettings GetFlex Clusters Result Provider Settings 
- Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- StateName string
- Human-readable label that indicates the current operating condition of this instance.
- Dictionary<string, string>
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- TerminationProtection boolEnabled 
- 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.
- VersionRelease stringSystem 
- Method by which the cluster maintains the MongoDB versions.
- BackupSettings GetFlex Clusters Result Backup Settings 
- Flex backup configuration
- ClusterType string
- Flex cluster topology.
- ConnectionStrings GetFlex Clusters Result Connection Strings 
- Collection of Uniform Resource Locators that point to the MongoDB database.
- CreateDate string
- Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- Id string
- Unique 24-hexadecimal digit string that identifies the instance.
- MongoDb stringVersion 
- Version of MongoDB that the instance runs.
- Name string
- Human-readable label that identifies the instance.
- ProjectId string
- Unique 24-hexadecimal character string that identifies the project.
- ProviderSettings GetFlex Clusters Result Provider Settings 
- Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- StateName string
- Human-readable label that indicates the current operating condition of this instance.
- map[string]string
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- TerminationProtection boolEnabled 
- 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.
- VersionRelease stringSystem 
- Method by which the cluster maintains the MongoDB versions.
- backupSettings GetFlex Clusters Result Backup Settings 
- Flex backup configuration
- clusterType String
- Flex cluster topology.
- connectionStrings GetFlex Clusters Result Connection Strings 
- Collection of Uniform Resource Locators that point to the MongoDB database.
- createDate String
- Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- id String
- Unique 24-hexadecimal digit string that identifies the instance.
- mongoDb StringVersion 
- Version of MongoDB that the instance runs.
- name String
- Human-readable label that identifies the instance.
- projectId String
- Unique 24-hexadecimal character string that identifies the project.
- providerSettings GetFlex Clusters Result Provider Settings 
- Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- stateName String
- Human-readable label that indicates the current operating condition of this instance.
- Map<String,String>
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- terminationProtection BooleanEnabled 
- 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.
- versionRelease StringSystem 
- Method by which the cluster maintains the MongoDB versions.
- backupSettings GetFlex Clusters Result Backup Settings 
- Flex backup configuration
- clusterType string
- Flex cluster topology.
- connectionStrings GetFlex Clusters Result Connection Strings 
- Collection of Uniform Resource Locators that point to the MongoDB database.
- createDate string
- Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- id string
- Unique 24-hexadecimal digit string that identifies the instance.
- mongoDb stringVersion 
- Version of MongoDB that the instance runs.
- name string
- Human-readable label that identifies the instance.
- projectId string
- Unique 24-hexadecimal character string that identifies the project.
- providerSettings GetFlex Clusters Result Provider Settings 
- Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- stateName string
- Human-readable label that indicates the current operating condition of this instance.
- {[key: string]: string}
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- terminationProtection booleanEnabled 
- 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.
- versionRelease stringSystem 
- Method by which the cluster maintains the MongoDB versions.
- backup_settings GetFlex Clusters Result Backup Settings 
- Flex backup configuration
- cluster_type str
- Flex cluster topology.
- connection_strings GetFlex Clusters Result Connection Strings 
- Collection of Uniform Resource Locators that point to the MongoDB database.
- create_date str
- Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- id str
- Unique 24-hexadecimal digit string that identifies the instance.
- mongo_db_ strversion 
- Version of MongoDB that the instance runs.
- name str
- Human-readable label that identifies the instance.
- project_id str
- Unique 24-hexadecimal character string that identifies the project.
- provider_settings GetFlex Clusters Result Provider Settings 
- Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- state_name str
- Human-readable label that indicates the current operating condition of this instance.
- Mapping[str, str]
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- termination_protection_ boolenabled 
- 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_ strsystem 
- Method by which the cluster maintains the MongoDB versions.
- backupSettings Property Map
- Flex backup configuration
- clusterType String
- Flex cluster topology.
- connectionStrings Property Map
- Collection of Uniform Resource Locators that point to the MongoDB database.
- createDate String
- Date and time when MongoDB Cloud created this instance. This parameter expresses its value in ISO 8601 format in UTC.
- id String
- Unique 24-hexadecimal digit string that identifies the instance.
- mongoDb StringVersion 
- Version of MongoDB that the instance runs.
- name String
- Human-readable label that identifies the instance.
- projectId String
- Unique 24-hexadecimal character string that identifies the project.
- providerSettings Property Map
- Group of cloud provider settings that configure the provisioned MongoDB flex cluster.
- stateName String
- Human-readable label that indicates the current operating condition of this instance.
- Map<String>
- Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the instance.
- terminationProtection BooleanEnabled 
- 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.
- versionRelease StringSystem 
- Method by which the cluster maintains the MongoDB versions.
GetFlexClustersResultBackupSettings     
- Enabled bool
- Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- Enabled bool
- Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- enabled Boolean
- Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- enabled boolean
- Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- enabled bool
- Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
- enabled Boolean
- Flag that indicates whether backups are performed for this flex cluster. Backup uses flex cluster backups.
GetFlexClustersResultConnectionStrings     
- Standard string
- Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- StandardSrv string
- Public connection string that you can use to connect to this flex cluster. This connection string uses the mongodb+srv://protocol.
- Standard string
- Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- StandardSrv string
- Public connection string that you can use to connect to this flex cluster. This connection string uses the mongodb+srv://protocol.
- standard String
- Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- standardSrv String
- Public connection string that you can use to connect to this flex cluster. This connection string uses the mongodb+srv://protocol.
- standard string
- Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- standardSrv string
- Public connection string that you can use to connect to this flex cluster. This connection string uses the mongodb+srv://protocol.
- standard str
- Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- standard_srv str
- Public connection string that you can use to connect to this flex cluster. This connection string uses the mongodb+srv://protocol.
- standard String
- Public connection string that you can use to connect to this cluster. This connection string uses the mongodb:// protocol.
- standardSrv String
- Public connection string that you can use to connect to this flex cluster. This connection string uses the mongodb+srv://protocol.
GetFlexClustersResultProviderSettings     
- BackingProvider stringName 
- Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- DiskSize doubleGb 
- Storage capacity available to the flex cluster expressed in gigabytes.
- ProviderName string
- Human-readable label that identifies the cloud service provider.
- RegionName 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.
- BackingProvider stringName 
- Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- DiskSize float64Gb 
- Storage capacity available to the flex cluster expressed in gigabytes.
- ProviderName string
- Human-readable label that identifies the cloud service provider.
- RegionName 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.
- backingProvider StringName 
- Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- diskSize DoubleGb 
- Storage capacity available to the flex cluster expressed in gigabytes.
- providerName String
- Human-readable label that identifies the cloud service provider.
- regionName 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.
- backingProvider stringName 
- Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- diskSize numberGb 
- Storage capacity available to the flex cluster expressed in gigabytes.
- providerName string
- Human-readable label that identifies the cloud service provider.
- regionName 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_ strname 
- Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- disk_size_ floatgb 
- Storage capacity available to the flex cluster expressed in gigabytes.
- provider_name str
- Human-readable label that identifies the cloud service provider.
- region_name 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.
- backingProvider StringName 
- Cloud service provider on which MongoDB Cloud provisioned the flex cluster.
- diskSize NumberGb 
- Storage capacity available to the flex cluster expressed in gigabytes.
- providerName String
- Human-readable label that identifies the cloud service provider.
- regionName 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 mongodbatlasTerraform Provider.