mongodbatlas.getCloudProviderSnapshots
WARNING: This datasource is deprecated, use mongodbatlas.getCloudBackupSnapshots
mongodbatlas.getCloudProviderSnapshots
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!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.CloudProviderSnapshot;
import com.pulumi.mongodbatlas.CloudProviderSnapshotArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetCloudProviderSnapshotsArgs;
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 testCloudProviderSnapshot = new CloudProviderSnapshot("testCloudProviderSnapshot", CloudProviderSnapshotArgs.builder()
.groupId("5d0f1f73cf09a29120e173cf")
.clusterName("MyClusterTest")
.description("SomeDescription")
.retentionInDays(1)
.build());
final var testCloudProviderSnapshots = MongodbatlasFunctions.getCloudProviderSnapshots(GetCloudProviderSnapshotsArgs.builder()
.groupId(mongodbatlas_cloud_provider_snapshots.test().group_id())
.clusterName(mongodbatlas_cloud_provider_snapshots.test().cluster_name())
.pageNum(1)
.itemsPerPage(5)
.build());
}
}
Coming soon!
Coming soon!
resources:
testCloudProviderSnapshot:
type: mongodbatlas:CloudProviderSnapshot
properties:
groupId: 5d0f1f73cf09a29120e173cf
clusterName: MyClusterTest
description: SomeDescription
retentionInDays: 1
variables:
testCloudProviderSnapshots:
fn::invoke:
Function: mongodbatlas:getCloudProviderSnapshots
Arguments:
groupId: ${mongodbatlas_cloud_provider_snapshots.test.group_id}
clusterName: ${mongodbatlas_cloud_provider_snapshots.test.cluster_name}
pageNum: 1
itemsPerPage: 5
Using getCloudProviderSnapshots
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 getCloudProviderSnapshots(args: GetCloudProviderSnapshotsArgs, opts?: InvokeOptions): Promise<GetCloudProviderSnapshotsResult>
function getCloudProviderSnapshotsOutput(args: GetCloudProviderSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetCloudProviderSnapshotsResult>
def get_cloud_provider_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) -> GetCloudProviderSnapshotsResult
def get_cloud_provider_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[GetCloudProviderSnapshotsResult]
func LookupCloudProviderSnapshots(ctx *Context, args *LookupCloudProviderSnapshotsArgs, opts ...InvokeOption) (*LookupCloudProviderSnapshotsResult, error)
func LookupCloudProviderSnapshotsOutput(ctx *Context, args *LookupCloudProviderSnapshotsOutputArgs, opts ...InvokeOption) LookupCloudProviderSnapshotsResultOutput
> Note: This function is named LookupCloudProviderSnapshots
in the Go SDK.
public static class GetCloudProviderSnapshots
{
public static Task<GetCloudProviderSnapshotsResult> InvokeAsync(GetCloudProviderSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetCloudProviderSnapshotsResult> Invoke(GetCloudProviderSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudProviderSnapshotsResult> getCloudProviderSnapshots(GetCloudProviderSnapshotsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getCloudProviderSnapshots:getCloudProviderSnapshots
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
.
getCloudProviderSnapshots 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 Provider Snapshots Result> Includes cloudProviderSnapshot object for each item detailed in the results array section.
- 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 Provider Snapshots Result Includes cloudProviderSnapshot object for each item detailed in the results array section.
- 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 Provider Snapshots Result> Includes cloudProviderSnapshot object for each item detailed in the results array section.
- 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 Provider Snapshots Result[] Includes cloudProviderSnapshot object for each item detailed in the results array section.
- 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 Provider Snapshots Result] Includes cloudProviderSnapshot object for each item detailed in the results array section.
- 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.
- total
Count Number - items
Per NumberPage - page
Num Number
Supporting Types
GetCloudProviderSnapshotsResult
- 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 of the 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.
- Mongod
Version string Version of the MongoDB server.
- 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.
- 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 of the 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.
- Mongod
Version string Version of the MongoDB server.
- 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.
- 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 of the 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.
- mongod
Version String Version of the MongoDB server.
- 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.
- 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 of the 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.
- mongod
Version string Version of the MongoDB server.
- 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.
- 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 of the 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.
- mongod_
version str Version of the MongoDB server.
- 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.
- 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 of the 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.
- mongod
Version String Version of the MongoDB server.
- 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.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
mongodbatlas
Terraform Provider.