MongoDB Atlas v3.18.0 published on Thursday, Sep 12, 2024 by Pulumi
mongodbatlas.getCloudBackupSnapshots
Explore with Pulumi AI
# Data Source: mongodbatlas.getCloudBackupSnapshots
mongodbatlas.getCloudBackupSnapshots
provides an Cloud Backup Snapshot datasource. Atlas Cloud Backup Snapshots provide localized backup storage using the native snapshot functionality of the cluster’s cloud service.
NOTE: Groups and projects are synonymous terms. You may find
groupId
in the official documentation.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.cloudBackupSnapshots;
import com.pulumi.mongodbatlas.CloudBackupSnapshotsArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetCloudBackupSnapshotsArgs;
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) {
var testCloudBackupSnapshots = new CloudBackupSnapshots("testCloudBackupSnapshots", CloudBackupSnapshotsArgs.builder()
.groupId("5d0f1f73cf09a29120e173cf")
.clusterName("MyClusterTest")
.description("SomeDescription")
.retentionInDays(1)
.build());
final var test = MongodbatlasFunctions.getCloudBackupSnapshots(GetCloudBackupSnapshotsArgs.builder()
.groupId(testCloudBackupSnapshots.groupId())
.clusterName(testCloudBackupSnapshots.clusterName())
.pageNum(1)
.itemsPerPage(5)
.build());
}
}
resources:
testCloudBackupSnapshots:
type: mongodbatlas:cloudBackupSnapshots
name: test
properties:
groupId: 5d0f1f73cf09a29120e173cf
clusterName: MyClusterTest
description: SomeDescription
retentionInDays: 1
variables:
test:
fn::invoke:
Function: mongodbatlas:getCloudBackupSnapshots
Arguments:
groupId: ${testCloudBackupSnapshots.groupId}
clusterName: ${testCloudBackupSnapshots.clusterName}
pageNum: 1
itemsPerPage: 5
Using getCloudBackupSnapshots
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 getCloudBackupSnapshots(args: GetCloudBackupSnapshotsArgs, opts?: InvokeOptions): Promise<GetCloudBackupSnapshotsResult>
function getCloudBackupSnapshotsOutput(args: GetCloudBackupSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetCloudBackupSnapshotsResult>
def get_cloud_backup_snapshots(cluster_name: Optional[str] = None,
items_per_page: Optional[int] = None,
page_num: Optional[int] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudBackupSnapshotsResult
def get_cloud_backup_snapshots_output(cluster_name: Optional[pulumi.Input[str]] = None,
items_per_page: Optional[pulumi.Input[int]] = None,
page_num: Optional[pulumi.Input[int]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudBackupSnapshotsResult]
func LookupCloudBackupSnapshots(ctx *Context, args *LookupCloudBackupSnapshotsArgs, opts ...InvokeOption) (*LookupCloudBackupSnapshotsResult, error)
func LookupCloudBackupSnapshotsOutput(ctx *Context, args *LookupCloudBackupSnapshotsOutputArgs, opts ...InvokeOption) LookupCloudBackupSnapshotsResultOutput
> Note: This function is named LookupCloudBackupSnapshots
in the Go SDK.
public static class GetCloudBackupSnapshots
{
public static Task<GetCloudBackupSnapshotsResult> InvokeAsync(GetCloudBackupSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetCloudBackupSnapshotsResult> Invoke(GetCloudBackupSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudBackupSnapshotsResult> getCloudBackupSnapshots(GetCloudBackupSnapshotsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getCloudBackupSnapshots:getCloudBackupSnapshots
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Name string - The name of the Atlas cluster that contains the snapshot you want to retrieve.
- Project
Id string - Items
Per intPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - Page
Num int - The page to return. Defaults to
1
.
- Cluster
Name string - The name of the Atlas cluster that contains the snapshot you want to retrieve.
- Project
Id string - Items
Per intPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - Page
Num int - The page to return. Defaults to
1
.
- cluster
Name String - The name of the Atlas cluster that contains the snapshot you want to retrieve.
- project
Id String - items
Per IntegerPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - page
Num Integer - The page to return. Defaults to
1
.
- cluster
Name string - The name of the Atlas cluster that contains the snapshot you want to retrieve.
- project
Id string - items
Per numberPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - page
Num number - The page to return. Defaults to
1
.
- cluster_
name str - The name of the Atlas cluster that contains the snapshot you want to retrieve.
- project_
id str - items_
per_ intpage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - page_
num int - The page to return. Defaults to
1
.
- cluster
Name String - The name of the Atlas cluster that contains the snapshot you want to retrieve.
- project
Id String - items
Per NumberPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - page
Num Number - The page to return. Defaults to
1
.
getCloudBackupSnapshots Result
The following output properties are available:
- Cluster
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Results
List<Get
Cloud Backup Snapshots Result> - Includes cloudProviderSnapshot object for each item detailed in the results array section.
totalCount
- Count of the total number of items in the result set. It may be greater than the number of objects in the results array if the entire result set is paginated.
- Total
Count int - Items
Per intPage - Page
Num int
- Cluster
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Results
[]Get
Cloud Backup Snapshots Result - Includes cloudProviderSnapshot object for each item detailed in the results array section.
totalCount
- Count of the total number of items in the result set. It may be greater than the number of objects in the results array if the entire result set is paginated.
- Total
Count int - Items
Per intPage - Page
Num int
- cluster
Name String - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - results
List<Get
Cloud Backup Snapshots Result> - Includes cloudProviderSnapshot object for each item detailed in the results array section.
totalCount
- Count of the total number of items in the result set. It may be greater than the number of objects in the results array if the entire result set is paginated.
- total
Count Integer - items
Per IntegerPage - page
Num Integer
- cluster
Name string - id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - results
Get
Cloud Backup Snapshots Result[] - Includes cloudProviderSnapshot object for each item detailed in the results array section.
totalCount
- Count of the total number of items in the result set. It may be greater than the number of objects in the results array if the entire result set is paginated.
- total
Count number - items
Per numberPage - page
Num number
- cluster_
name str - id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - results
Sequence[Get
Cloud Backup Snapshots Result] - Includes cloudProviderSnapshot object for each item detailed in the results array section.
totalCount
- Count of the total number of items in the result set. It may be greater than the number of objects in the results array if the entire result set is paginated.
- total_
count int - items_
per_ intpage - page_
num int
- cluster
Name String - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - results List<Property Map>
- Includes cloudProviderSnapshot object for each item detailed in the results array section.
totalCount
- Count of the total number of items in the result set. It may be greater than the number of objects in the results array if the entire result set is paginated.
- total
Count Number - items
Per NumberPage - page
Num Number
Supporting Types
GetCloudBackupSnapshotsResult
- Cloud
Provider string - Cloud provider that stores this snapshot.
- Created
At string - UTC ISO 8601 formatted point in time when Atlas took the snapshot.
- Description string
- UDescription of the snapshot. Only present for on-demand snapshots.
- Expires
At string - UTC ISO 8601 formatted point in time when Atlas will delete the snapshot.
- Id string
- Unique identifier for the sharded cluster snapshot.
- Master
Key stringUuid - Unique ID of the AWS KMS Customer Master Key used to encrypt the snapshot. Only visible for clusters using Encryption at Rest via Customer KMS.
- Members
List<Get
Cloud Backup Snapshots Result Member> - Block of List of snapshots and the cloud provider where the snapshots are stored. See below
- Mongod
Version string - Version of the MongoDB server.
- Replica
Set stringName - Label given to a shard or config server from which Atlas took this snapshot.
- Snapshot
Ids List<string> - Unique identifiers of the snapshots created for the shards and config server for a sharded cluster.
- Snapshot
Type string - Specified the type of snapshot. Valid values are onDemand and scheduled.
- Status string
- Current status of the snapshot. One of the following values: queued, inProgress, completed, failed.
- Storage
Size intBytes - Specifies the size of the snapshot in bytes.
- Type string
- Specifies the type of cluster: replicaSet or shardedCluster.
- Cloud
Provider string - Cloud provider that stores this snapshot.
- Created
At string - UTC ISO 8601 formatted point in time when Atlas took the snapshot.
- Description string
- UDescription of the snapshot. Only present for on-demand snapshots.
- Expires
At string - UTC ISO 8601 formatted point in time when Atlas will delete the snapshot.
- Id string
- Unique identifier for the sharded cluster snapshot.
- Master
Key stringUuid - Unique ID of the AWS KMS Customer Master Key used to encrypt the snapshot. Only visible for clusters using Encryption at Rest via Customer KMS.
- Members
[]Get
Cloud Backup Snapshots Result Member - Block of List of snapshots and the cloud provider where the snapshots are stored. See below
- Mongod
Version string - Version of the MongoDB server.
- Replica
Set stringName - Label given to a shard or config server from which Atlas took this snapshot.
- Snapshot
Ids []string - Unique identifiers of the snapshots created for the shards and config server for a sharded cluster.
- Snapshot
Type string - Specified the type of snapshot. Valid values are onDemand and scheduled.
- Status string
- Current status of the snapshot. One of the following values: queued, inProgress, completed, failed.
- Storage
Size intBytes - Specifies the size of the snapshot in bytes.
- Type string
- Specifies the type of cluster: replicaSet or shardedCluster.
- cloud
Provider String - Cloud provider that stores this snapshot.
- created
At String - UTC ISO 8601 formatted point in time when Atlas took the snapshot.
- description String
- UDescription of the snapshot. Only present for on-demand snapshots.
- expires
At String - UTC ISO 8601 formatted point in time when Atlas will delete the snapshot.
- id String
- Unique identifier for the sharded cluster snapshot.
- master
Key StringUuid - Unique ID of the AWS KMS Customer Master Key used to encrypt the snapshot. Only visible for clusters using Encryption at Rest via Customer KMS.
- members
List<Get
Cloud Backup Snapshots Result Member> - Block of List of snapshots and the cloud provider where the snapshots are stored. See below
- mongod
Version String - Version of the MongoDB server.
- replica
Set StringName - Label given to a shard or config server from which Atlas took this snapshot.
- snapshot
Ids List<String> - Unique identifiers of the snapshots created for the shards and config server for a sharded cluster.
- snapshot
Type String - Specified the type of snapshot. Valid values are onDemand and scheduled.
- status String
- Current status of the snapshot. One of the following values: queued, inProgress, completed, failed.
- storage
Size IntegerBytes - Specifies the size of the snapshot in bytes.
- type String
- Specifies the type of cluster: replicaSet or shardedCluster.
- cloud
Provider string - Cloud provider that stores this snapshot.
- created
At string - UTC ISO 8601 formatted point in time when Atlas took the snapshot.
- description string
- UDescription of the snapshot. Only present for on-demand snapshots.
- expires
At string - UTC ISO 8601 formatted point in time when Atlas will delete the snapshot.
- id string
- Unique identifier for the sharded cluster snapshot.
- master
Key stringUuid - Unique ID of the AWS KMS Customer Master Key used to encrypt the snapshot. Only visible for clusters using Encryption at Rest via Customer KMS.
- members
Get
Cloud Backup Snapshots Result Member[] - Block of List of snapshots and the cloud provider where the snapshots are stored. See below
- mongod
Version string - Version of the MongoDB server.
- replica
Set stringName - Label given to a shard or config server from which Atlas took this snapshot.
- snapshot
Ids string[] - Unique identifiers of the snapshots created for the shards and config server for a sharded cluster.
- snapshot
Type string - Specified the type of snapshot. Valid values are onDemand and scheduled.
- status string
- Current status of the snapshot. One of the following values: queued, inProgress, completed, failed.
- storage
Size numberBytes - Specifies the size of the snapshot in bytes.
- type string
- Specifies the type of cluster: replicaSet or shardedCluster.
- cloud_
provider str - Cloud provider that stores this snapshot.
- created_
at str - UTC ISO 8601 formatted point in time when Atlas took the snapshot.
- description str
- UDescription of the snapshot. Only present for on-demand snapshots.
- expires_
at str - UTC ISO 8601 formatted point in time when Atlas will delete the snapshot.
- id str
- Unique identifier for the sharded cluster snapshot.
- master_
key_ struuid - Unique ID of the AWS KMS Customer Master Key used to encrypt the snapshot. Only visible for clusters using Encryption at Rest via Customer KMS.
- members
Sequence[Get
Cloud Backup Snapshots Result Member] - Block of List of snapshots and the cloud provider where the snapshots are stored. See below
- mongod_
version str - Version of the MongoDB server.
- replica_
set_ strname - Label given to a shard or config server from which Atlas took this snapshot.
- snapshot_
ids Sequence[str] - Unique identifiers of the snapshots created for the shards and config server for a sharded cluster.
- snapshot_
type str - Specified the type of snapshot. Valid values are onDemand and scheduled.
- status str
- Current status of the snapshot. One of the following values: queued, inProgress, completed, failed.
- storage_
size_ intbytes - Specifies the size of the snapshot in bytes.
- type str
- Specifies the type of cluster: replicaSet or shardedCluster.
- cloud
Provider String - Cloud provider that stores this snapshot.
- created
At String - UTC ISO 8601 formatted point in time when Atlas took the snapshot.
- description String
- UDescription of the snapshot. Only present for on-demand snapshots.
- expires
At String - UTC ISO 8601 formatted point in time when Atlas will delete the snapshot.
- id String
- Unique identifier for the sharded cluster snapshot.
- master
Key StringUuid - Unique ID of the AWS KMS Customer Master Key used to encrypt the snapshot. Only visible for clusters using Encryption at Rest via Customer KMS.
- members List<Property Map>
- Block of List of snapshots and the cloud provider where the snapshots are stored. See below
- mongod
Version String - Version of the MongoDB server.
- replica
Set StringName - Label given to a shard or config server from which Atlas took this snapshot.
- snapshot
Ids List<String> - Unique identifiers of the snapshots created for the shards and config server for a sharded cluster.
- snapshot
Type String - Specified the type of snapshot. Valid values are onDemand and scheduled.
- status String
- Current status of the snapshot. One of the following values: queued, inProgress, completed, failed.
- storage
Size NumberBytes - Specifies the size of the snapshot in bytes.
- type String
- Specifies the type of cluster: replicaSet or shardedCluster.
GetCloudBackupSnapshotsResultMember
- Cloud
Provider string - Cloud provider that stores this snapshot.
- Id string
- Unique identifier for the sharded cluster snapshot.
- Replica
Set stringName - Label given to a shard or config server from which Atlas took this snapshot.
- Cloud
Provider string - Cloud provider that stores this snapshot.
- Id string
- Unique identifier for the sharded cluster snapshot.
- Replica
Set stringName - Label given to a shard or config server from which Atlas took this snapshot.
- cloud
Provider String - Cloud provider that stores this snapshot.
- id String
- Unique identifier for the sharded cluster snapshot.
- replica
Set StringName - Label given to a shard or config server from which Atlas took this snapshot.
- cloud
Provider string - Cloud provider that stores this snapshot.
- id string
- Unique identifier for the sharded cluster snapshot.
- replica
Set stringName - Label given to a shard or config server from which Atlas took this snapshot.
- cloud_
provider str - Cloud provider that stores this snapshot.
- id str
- Unique identifier for the sharded cluster snapshot.
- replica_
set_ strname - Label given to a shard or config server from which Atlas took this snapshot.
- cloud
Provider String - Cloud provider that stores this snapshot.
- id String
- Unique identifier for the sharded cluster snapshot.
- replica
Set StringName - Label given to a shard or config server from which Atlas took this snapshot.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.