1. Registry
  2. Packages
  3. Mongodbatlas Provider
  4. API Docs
  5. getCloudBackupSnapshotDatabaseCollections
Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi
mongodbatlas logo mongodbatlas logo
Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi

    mongodbatlas.getCloudBackupSnapshotDatabaseCollections describes the collections in a database contained in a Cloud Backup snapshot. Use this data source to discover namespaces before creating a collection restore job. Point-in-time restores have no snapshot ID, so this data source does not apply to PIT restores.

    To use this data source, the requesting Service Account or API Key must have the Backup Manager or Project Owner role.

    Using getCloudBackupSnapshotDatabaseCollections

    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 getCloudBackupSnapshotDatabaseCollections(args: GetCloudBackupSnapshotDatabaseCollectionsArgs, opts?: InvokeOptions): Promise<GetCloudBackupSnapshotDatabaseCollectionsResult>
    function getCloudBackupSnapshotDatabaseCollectionsOutput(args: GetCloudBackupSnapshotDatabaseCollectionsOutputArgs, opts?: InvokeOutputOptions): Output<GetCloudBackupSnapshotDatabaseCollectionsResult>
    def get_cloud_backup_snapshot_database_collections(cluster_name: Optional[str] = None,
                                                       database_name: Optional[str] = None,
                                                       project_id: Optional[str] = None,
                                                       snapshot_id: Optional[str] = None,
                                                       opts: Optional[InvokeOptions] = None) -> GetCloudBackupSnapshotDatabaseCollectionsResult
    def get_cloud_backup_snapshot_database_collections_output(cluster_name: pulumi.Input[Optional[str]] = None,
                                                       database_name: pulumi.Input[Optional[str]] = None,
                                                       project_id: pulumi.Input[Optional[str]] = None,
                                                       snapshot_id: pulumi.Input[Optional[str]] = None,
                                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetCloudBackupSnapshotDatabaseCollectionsResult]
    func LookupCloudBackupSnapshotDatabaseCollections(ctx *Context, args *LookupCloudBackupSnapshotDatabaseCollectionsArgs, opts ...InvokeOption) (*LookupCloudBackupSnapshotDatabaseCollectionsResult, error)
    func LookupCloudBackupSnapshotDatabaseCollectionsOutput(ctx *Context, args *LookupCloudBackupSnapshotDatabaseCollectionsOutputArgs, opts ...InvokeOption) LookupCloudBackupSnapshotDatabaseCollectionsResultOutput

    > Note: This function is named LookupCloudBackupSnapshotDatabaseCollections in the Go SDK.

    public static class GetCloudBackupSnapshotDatabaseCollections 
    {
        public static Task<GetCloudBackupSnapshotDatabaseCollectionsResult> InvokeAsync(GetCloudBackupSnapshotDatabaseCollectionsArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudBackupSnapshotDatabaseCollectionsResult> Invoke(GetCloudBackupSnapshotDatabaseCollectionsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudBackupSnapshotDatabaseCollectionsResult> Invoke(GetCloudBackupSnapshotDatabaseCollectionsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCloudBackupSnapshotDatabaseCollectionsResult> getCloudBackupSnapshotDatabaseCollections(GetCloudBackupSnapshotDatabaseCollectionsArgs args, InvokeOptions options)
    public static Output<GetCloudBackupSnapshotDatabaseCollectionsResult> getCloudBackupSnapshotDatabaseCollections(GetCloudBackupSnapshotDatabaseCollectionsArgs args, InvokeOptions options)
    public static Output<GetCloudBackupSnapshotDatabaseCollectionsResult> getCloudBackupSnapshotDatabaseCollections(GetCloudBackupSnapshotDatabaseCollectionsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: mongodbatlas:index/getCloudBackupSnapshotDatabaseCollections:getCloudBackupSnapshotDatabaseCollections
      arguments:
        # arguments dictionary
    data "mongodbatlas_get_cloud_backup_snapshot_database_collections" "name" {
        # arguments
    }

    The following arguments are supported:

    ClusterName string
    Human-readable label that identifies the cluster.
    DatabaseName string
    Human-readable label that identifies the database.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    SnapshotId string
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    ClusterName string
    Human-readable label that identifies the cluster.
    DatabaseName string
    Human-readable label that identifies the database.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    SnapshotId string
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    cluster_name string
    Human-readable label that identifies the cluster.
    database_name string
    Human-readable label that identifies the database.
    project_id string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    snapshot_id string
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    clusterName String
    Human-readable label that identifies the cluster.
    databaseName String
    Human-readable label that identifies the database.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    snapshotId String
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    clusterName string
    Human-readable label that identifies the cluster.
    databaseName string
    Human-readable label that identifies the database.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    snapshotId string
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    cluster_name str
    Human-readable label that identifies the cluster.
    database_name str
    Human-readable label that identifies the database.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    snapshot_id str
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    clusterName String
    Human-readable label that identifies the cluster.
    databaseName String
    Human-readable label that identifies the database.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    snapshotId String
    Unique 24-hexadecimal digit string that identifies the desired snapshot.

    getCloudBackupSnapshotDatabaseCollections Result

    The following output properties are available:

    ClusterName string
    Human-readable label that identifies the cluster.
    DatabaseName string
    Human-readable label that identifies the database.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    Results List<GetCloudBackupSnapshotDatabaseCollectionsResult>
    List of returned documents that MongoDB Cloud provides when completing this request.
    SnapshotId string
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    ClusterName string
    Human-readable label that identifies the cluster.
    DatabaseName string
    Human-readable label that identifies the database.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    Results []GetCloudBackupSnapshotDatabaseCollectionsResult
    List of returned documents that MongoDB Cloud provides when completing this request.
    SnapshotId string
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    cluster_name string
    Human-readable label that identifies the cluster.
    database_name string
    Human-readable label that identifies the database.
    project_id string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    results list(object)
    List of returned documents that MongoDB Cloud provides when completing this request.
    snapshot_id string
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    clusterName String
    Human-readable label that identifies the cluster.
    databaseName String
    Human-readable label that identifies the database.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    results List<GetCloudBackupSnapshotDatabaseCollectionsResult>
    List of returned documents that MongoDB Cloud provides when completing this request.
    snapshotId String
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    clusterName string
    Human-readable label that identifies the cluster.
    databaseName string
    Human-readable label that identifies the database.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    results GetCloudBackupSnapshotDatabaseCollectionsResult[]
    List of returned documents that MongoDB Cloud provides when completing this request.
    snapshotId string
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    cluster_name str
    Human-readable label that identifies the cluster.
    database_name str
    Human-readable label that identifies the database.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    results Sequence[GetCloudBackupSnapshotDatabaseCollectionsResult]
    List of returned documents that MongoDB Cloud provides when completing this request.
    snapshot_id str
    Unique 24-hexadecimal digit string that identifies the desired snapshot.
    clusterName String
    Human-readable label that identifies the cluster.
    databaseName String
    Human-readable label that identifies the database.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    results List<Property Map>
    List of returned documents that MongoDB Cloud provides when completing this request.
    snapshotId String
    Unique 24-hexadecimal digit string that identifies the desired snapshot.

    Supporting Types

    GetCloudBackupSnapshotDatabaseCollectionsResult

    Name string
    Human-readable label that identifies the collection in the database within the snapshot.
    Name string
    Human-readable label that identifies the collection in the database within the snapshot.
    name string
    Human-readable label that identifies the collection in the database within the snapshot.
    name String
    Human-readable label that identifies the collection in the database within the snapshot.
    name string
    Human-readable label that identifies the collection in the database within the snapshot.
    name str
    Human-readable label that identifies the collection in the database within the snapshot.
    name String
    Human-readable label that identifies the collection in the database within the snapshot.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo mongodbatlas logo
    Viewing docs for MongoDB Atlas v4.15.0
    published on Friday, Aug 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial