published on Friday, Aug 28, 2026 by Pulumi
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 dictionarydata "mongodbatlas_get_cloud_backup_snapshot_database_collections" "name" {
# arguments
}The following arguments are supported:
- 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
groupIdin the official documentation. - Snapshot
Id 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
groupIdin the official documentation. - Snapshot
Id 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
groupIdin the official documentation. - snapshot_
id 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
groupIdin the official documentation. - snapshot
Id 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
groupIdin the official documentation. - snapshot
Id 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
groupIdin the official documentation. - snapshot_
id str - 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
groupIdin the official documentation. - snapshot
Id String - Unique 24-hexadecimal digit string that identifies the desired snapshot.
getCloudBackupSnapshotDatabaseCollections Result
The following output properties are available:
- 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
groupIdin the official documentation. - Results
List<Get
Cloud Backup Snapshot Database Collections Result> - 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.
- 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
groupIdin the official documentation. - Results
[]Get
Cloud Backup Snapshot Database Collections Result - 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.
- 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
groupIdin 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.
- 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
groupIdin the official documentation. - results
List<Get
Cloud Backup Snapshot Database Collections Result> - 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.
- 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
groupIdin the official documentation. - results
Get
Cloud Backup Snapshot Database Collections Result[] - 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.
- 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
groupIdin the official documentation. - results
Sequence[Get
Cloud Backup Snapshot Database Collections Result] - 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.
- 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
groupIdin the official documentation. - results List<Property Map>
- 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.
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
mongodbatlasTerraform Provider.
published on Friday, Aug 28, 2026 by Pulumi