mongodbatlas.getCloudProviderSnapshotBackupPolicy
WARNING: This data source is deprecated, use mongodbatlas.CloudBackupSchedule
mongodbatlas.CloudProviderSnapshotBackupPolicy
provides a Cloud Backup Snapshot Backup Policy datasource. An Atlas Cloud Backup Snapshot Policy provides the current snapshot schedule and retention settings for the cluster.
NOTE: Groups and projects are synonymous terms. You may find
groupId
in the official documentation.
Using getCloudProviderSnapshotBackupPolicy
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 getCloudProviderSnapshotBackupPolicy(args: GetCloudProviderSnapshotBackupPolicyArgs, opts?: InvokeOptions): Promise<GetCloudProviderSnapshotBackupPolicyResult>
function getCloudProviderSnapshotBackupPolicyOutput(args: GetCloudProviderSnapshotBackupPolicyOutputArgs, opts?: InvokeOptions): Output<GetCloudProviderSnapshotBackupPolicyResult>
def get_cloud_provider_snapshot_backup_policy(cluster_name: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudProviderSnapshotBackupPolicyResult
def get_cloud_provider_snapshot_backup_policy_output(cluster_name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudProviderSnapshotBackupPolicyResult]
func LookupCloudProviderSnapshotBackupPolicy(ctx *Context, args *LookupCloudProviderSnapshotBackupPolicyArgs, opts ...InvokeOption) (*LookupCloudProviderSnapshotBackupPolicyResult, error)
func LookupCloudProviderSnapshotBackupPolicyOutput(ctx *Context, args *LookupCloudProviderSnapshotBackupPolicyOutputArgs, opts ...InvokeOption) LookupCloudProviderSnapshotBackupPolicyResultOutput
> Note: This function is named LookupCloudProviderSnapshotBackupPolicy
in the Go SDK.
public static class GetCloudProviderSnapshotBackupPolicy
{
public static Task<GetCloudProviderSnapshotBackupPolicyResult> InvokeAsync(GetCloudProviderSnapshotBackupPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetCloudProviderSnapshotBackupPolicyResult> Invoke(GetCloudProviderSnapshotBackupPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudProviderSnapshotBackupPolicyResult> getCloudProviderSnapshotBackupPolicy(GetCloudProviderSnapshotBackupPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getCloudProviderSnapshotBackupPolicy:getCloudProviderSnapshotBackupPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Name string The name of the Atlas cluster that contains the snapshots backup policy you want to retrieve.
- Project
Id string The unique identifier of the project for the Atlas cluster.
- Cluster
Name string The name of the Atlas cluster that contains the snapshots backup policy you want to retrieve.
- Project
Id string The unique identifier of the project for the Atlas cluster.
- cluster
Name String The name of the Atlas cluster that contains the snapshots backup policy you want to retrieve.
- project
Id String The unique identifier of the project for the Atlas cluster.
- cluster
Name string The name of the Atlas cluster that contains the snapshots backup policy you want to retrieve.
- project
Id string The unique identifier of the project for the Atlas cluster.
- cluster_
name str The name of the Atlas cluster that contains the snapshots backup policy you want to retrieve.
- project_
id str The unique identifier of the project for the Atlas cluster.
- cluster
Name String The name of the Atlas cluster that contains the snapshots backup policy you want to retrieve.
- project
Id String The unique identifier of the project for the Atlas cluster.
getCloudProviderSnapshotBackupPolicy Result
The following output properties are available:
- Cluster
Id string Unique identifier of the Atlas cluster.
- Cluster
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Next
Snapshot string UTC ISO 8601 formatted point in time when Atlas will take the next snapshot.
- Policies
List<Get
Cloud Provider Snapshot Backup Policy Policy> A list of policy definitions for the cluster.
policies.#.id
- Unique identifier of the backup policy.
- Project
Id string - Reference
Hour intOf Day UTC Hour of day between 0 and 23 representing which hour of the day that Atlas takes a snapshot.
- Reference
Minute intOf Hour UTC Minute of day between 0 and 59 representing which minute of the referenceHourOfDay that Atlas takes the snapshot.
- Restore
Window intDays Specifies a restore window in days for cloud backup to maintain.
- Update
Snapshots bool
- Cluster
Id string Unique identifier of the Atlas cluster.
- Cluster
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Next
Snapshot string UTC ISO 8601 formatted point in time when Atlas will take the next snapshot.
- Policies
[]Get
Cloud Provider Snapshot Backup Policy Policy A list of policy definitions for the cluster.
policies.#.id
- Unique identifier of the backup policy.
- Project
Id string - Reference
Hour intOf Day UTC Hour of day between 0 and 23 representing which hour of the day that Atlas takes a snapshot.
- Reference
Minute intOf Hour UTC Minute of day between 0 and 59 representing which minute of the referenceHourOfDay that Atlas takes the snapshot.
- Restore
Window intDays Specifies a restore window in days for cloud backup to maintain.
- Update
Snapshots bool
- cluster
Id String Unique identifier of the Atlas cluster.
- cluster
Name String - id String
The provider-assigned unique ID for this managed resource.
- next
Snapshot String UTC ISO 8601 formatted point in time when Atlas will take the next snapshot.
- policies
List<Get
Cloud Provider Snapshot Backup Policy Policy> A list of policy definitions for the cluster.
policies.#.id
- Unique identifier of the backup policy.
- project
Id String - reference
Hour IntegerOf Day UTC Hour of day between 0 and 23 representing which hour of the day that Atlas takes a snapshot.
- reference
Minute IntegerOf Hour UTC Minute of day between 0 and 59 representing which minute of the referenceHourOfDay that Atlas takes the snapshot.
- restore
Window IntegerDays Specifies a restore window in days for cloud backup to maintain.
- update
Snapshots Boolean
- cluster
Id string Unique identifier of the Atlas cluster.
- cluster
Name string - id string
The provider-assigned unique ID for this managed resource.
- next
Snapshot string UTC ISO 8601 formatted point in time when Atlas will take the next snapshot.
- policies
Get
Cloud Provider Snapshot Backup Policy Policy[] A list of policy definitions for the cluster.
policies.#.id
- Unique identifier of the backup policy.
- project
Id string - reference
Hour numberOf Day UTC Hour of day between 0 and 23 representing which hour of the day that Atlas takes a snapshot.
- reference
Minute numberOf Hour UTC Minute of day between 0 and 59 representing which minute of the referenceHourOfDay that Atlas takes the snapshot.
- restore
Window numberDays Specifies a restore window in days for cloud backup to maintain.
- update
Snapshots boolean
- cluster_
id str Unique identifier of the Atlas cluster.
- cluster_
name str - id str
The provider-assigned unique ID for this managed resource.
- next_
snapshot str UTC ISO 8601 formatted point in time when Atlas will take the next snapshot.
- policies
Sequence[Get
Cloud Provider Snapshot Backup Policy Policy] A list of policy definitions for the cluster.
policies.#.id
- Unique identifier of the backup policy.
- project_
id str - reference_
hour_ intof_ day UTC Hour of day between 0 and 23 representing which hour of the day that Atlas takes a snapshot.
- reference_
minute_ intof_ hour UTC Minute of day between 0 and 59 representing which minute of the referenceHourOfDay that Atlas takes the snapshot.
- restore_
window_ intdays Specifies a restore window in days for cloud backup to maintain.
- update_
snapshots bool
- cluster
Id String Unique identifier of the Atlas cluster.
- cluster
Name String - id String
The provider-assigned unique ID for this managed resource.
- next
Snapshot String UTC ISO 8601 formatted point in time when Atlas will take the next snapshot.
- policies List<Property Map>
A list of policy definitions for the cluster.
policies.#.id
- Unique identifier of the backup policy.
- project
Id String - reference
Hour NumberOf Day UTC Hour of day between 0 and 23 representing which hour of the day that Atlas takes a snapshot.
- reference
Minute NumberOf Hour UTC Minute of day between 0 and 59 representing which minute of the referenceHourOfDay that Atlas takes the snapshot.
- restore
Window NumberDays Specifies a restore window in days for cloud backup to maintain.
- update
Snapshots Boolean
Supporting Types
GetCloudProviderSnapshotBackupPolicyPolicy
- id String
- policy
Items List<Property Map>
GetCloudProviderSnapshotBackupPolicyPolicyPolicyItem
- Frequency
Interval int - Frequency
Type string - Id string
- Retention
Unit string - Retention
Value int
- Frequency
Interval int - Frequency
Type string - Id string
- Retention
Unit string - Retention
Value int
- frequency
Interval Integer - frequency
Type String - id String
- retention
Unit String - retention
Value Integer
- frequency
Interval number - frequency
Type string - id string
- retention
Unit string - retention
Value number
- frequency_
interval int - frequency_
type str - id str
- retention_
unit str - retention_
value int
- frequency
Interval Number - frequency
Type String - id String
- retention
Unit String - retention
Value Number
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
mongodbatlas
Terraform Provider.