GetCloudProviderSnapshotRestoreJob
mongodbatlas..CloudProviderSnapshotRestoreJob provides a Cloud Provider Snapshot Restore Job entry datasource. Gets all cloud provider snapshot restore jobs for the specified cluster.
NOTE: Groups and projects are synonymous terms. You may find
groupIdin the official documentation.
Example Usage
Coming soon!
Coming soon!
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testCloudProviderSnapshot = new mongodbatlas.CloudProviderSnapshot("test", {
clusterName: "MyCluster",
description: "MyDescription",
projectId: "5cf5a45a9ccf6400e60981b6",
retentionInDays: 1,
});
const testMongodbatlasCloudProviderSnapshotRestoreJob = new mongodbatlas.CloudProviderSnapshotRestoreJob("test", {
clusterName: "MyCluster",
deliveryType: {
automated: true,
target_cluster_name: "MyCluster",
target_project_id: "5cf5a45a9ccf6400e60981b6",
},
projectId: "5cf5a45a9ccf6400e60981b6",
snapshotId: testCloudProviderSnapshot.id,
});
const testCloudProviderSnapshotRestoreJob = pulumi.all([testMongodbatlasCloudProviderSnapshotRestoreJob.clusterName, testMongodbatlasCloudProviderSnapshotRestoreJob.id, testMongodbatlasCloudProviderSnapshotRestoreJob.projectId]).apply(([clusterName, id, projectId]) => mongodbatlas.getCloudProviderSnapshotRestoreJob({
clusterName: clusterName,
jobId: id,
projectId: projectId,
}, { async: true }));Using GetCloudProviderSnapshotRestoreJob
function getCloudProviderSnapshotRestoreJob(args: GetCloudProviderSnapshotRestoreJobArgs, opts?: InvokeOptions): Promise<GetCloudProviderSnapshotRestoreJobResult>function get_cloud_provider_snapshot_restore_job(cluster_name=None, job_id=None, project_id=None, opts=None)func LookupCloudProviderSnapshotRestoreJob(ctx *Context, args *LookupCloudProviderSnapshotRestoreJobArgs, opts ...InvokeOption) (*LookupCloudProviderSnapshotRestoreJobResult, error)Note: This function is named
LookupCloudProviderSnapshotRestoreJobin the Go SDK.
public static class GetCloudProviderSnapshotRestoreJob {
public static Task<GetCloudProviderSnapshotRestoreJobResult> InvokeAsync(GetCloudProviderSnapshotRestoreJobArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- cluster_
name str The name of the Atlas cluster for which you want to retrieve the restore job.
- job_
id str The unique identifier of the restore job to retrieve.
- project_
id str The unique identifier of the project for the Atlas cluster.
GetCloudProviderSnapshotRestoreJob Result
The following output properties are available:
- Cancelled bool
Indicates whether the restore job was canceled.
- Cluster
Name string - Created
At string UTC ISO 8601 formatted point in time when Atlas created the restore job.
- Delivery
Type string Type of restore job to create. Possible values are: automated and download.
- Delivery
Urls List<string> One or more URLs for the compressed snapshot files for manual download. Only visible if deliveryType is download.
- Expired bool
Indicates whether the restore job expired.
- Expires
At string UTC ISO 8601 formatted point in time when the restore job expires.
- Finished
At string UTC ISO 8601 formatted point in time when the restore job completed.
- Id string
The provider-assigned unique ID for this managed resource.
- Job
Id string - Project
Id string - Snapshot
Id string Unique identifier of the source snapshot ID of the restore job.
- Target
Cluster stringName Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
- Target
Project stringId - Timestamp string
Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.
- Cancelled bool
Indicates whether the restore job was canceled.
- Cluster
Name string - Created
At string UTC ISO 8601 formatted point in time when Atlas created the restore job.
- Delivery
Type string Type of restore job to create. Possible values are: automated and download.
- Delivery
Urls []string One or more URLs for the compressed snapshot files for manual download. Only visible if deliveryType is download.
- Expired bool
Indicates whether the restore job expired.
- Expires
At string UTC ISO 8601 formatted point in time when the restore job expires.
- Finished
At string UTC ISO 8601 formatted point in time when the restore job completed.
- Id string
The provider-assigned unique ID for this managed resource.
- Job
Id string - Project
Id string - Snapshot
Id string Unique identifier of the source snapshot ID of the restore job.
- Target
Cluster stringName Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
- Target
Project stringId - Timestamp string
Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.
- cancelled boolean
Indicates whether the restore job was canceled.
- cluster
Name string - created
At string UTC ISO 8601 formatted point in time when Atlas created the restore job.
- delivery
Type string Type of restore job to create. Possible values are: automated and download.
- delivery
Urls string[] One or more URLs for the compressed snapshot files for manual download. Only visible if deliveryType is download.
- expired boolean
Indicates whether the restore job expired.
- expires
At string UTC ISO 8601 formatted point in time when the restore job expires.
- finished
At string UTC ISO 8601 formatted point in time when the restore job completed.
- id string
The provider-assigned unique ID for this managed resource.
- job
Id string - project
Id string - snapshot
Id string Unique identifier of the source snapshot ID of the restore job.
- target
Cluster stringName Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
- target
Project stringId - timestamp string
Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.
- cancelled bool
Indicates whether the restore job was canceled.
- cluster_
name str - created_
at str UTC ISO 8601 formatted point in time when Atlas created the restore job.
- delivery_
type str Type of restore job to create. Possible values are: automated and download.
- delivery_
urls List[str] One or more URLs for the compressed snapshot files for manual download. Only visible if deliveryType is download.
- expired bool
Indicates whether the restore job expired.
- expires_
at str UTC ISO 8601 formatted point in time when the restore job expires.
- finished_
at str UTC ISO 8601 formatted point in time when the restore job completed.
- id str
The provider-assigned unique ID for this managed resource.
- job_
id str - project_
id str - snapshot_
id str Unique identifier of the source snapshot ID of the restore job.
- target_
cluster_ strname Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
- target_
project_ strid - timestamp str
Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.