1. Packages
  2. MongoDB Atlas
  3. API Docs
  4. getCloudBackupSnapshotRestoreJob
MongoDB Atlas v3.16.2 published on Friday, Jun 21, 2024 by Pulumi

mongodbatlas.getCloudBackupSnapshotRestoreJob

Explore with Pulumi AI

mongodbatlas logo
MongoDB Atlas v3.16.2 published on Friday, Jun 21, 2024 by Pulumi

    mongodbatlas.CloudBackupSnapshotRestoreJob provides a Cloud Backup Snapshot Restore Job datasource. Gets all the cloud backup snapshot restore jobs for the specified cluster.

    NOTE: Groups and projects are synonymous terms. You may find groupId in the official documentation.

    Example Usage

    First create a snapshot of the desired cluster. Then request that snapshot be restored in an automated fashion to the designated cluster and project.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      testCloudBackupSnapshot:
        type: mongodbatlas:CloudBackupSnapshot
        name: test
        properties:
          projectId: 5cf5a45a9ccf6400e60981b6
          clusterName: MyCluster
          description: MyDescription
          retentionInDays: 1
      testCloudBackupSnapshotRestoreJob:
        type: mongodbatlas:CloudBackupSnapshotRestoreJob
        name: test
        properties:
          projectId: 5cf5a45a9ccf6400e60981b6
          clusterName: MyCluster
          snapshotId: ${testCloudBackupSnapshot.id}
          deliveryType:
            - automated: true
              targetClusterName: MyCluster
              targetProjectId: 5cf5a45a9ccf6400e60981b6
    variables:
      test:
        fn::invoke:
          Function: mongodbatlas:getCloudBackupSnapshotRestoreJob
          Arguments:
            projectId: ${testCloudBackupSnapshotRestoreJob.projectId}
            clusterName: ${testCloudBackupSnapshotRestoreJob.clusterName}
            jobId: ${testCloudBackupSnapshotRestoreJob.id}
    

    Using getCloudBackupSnapshotRestoreJob

    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 getCloudBackupSnapshotRestoreJob(args: GetCloudBackupSnapshotRestoreJobArgs, opts?: InvokeOptions): Promise<GetCloudBackupSnapshotRestoreJobResult>
    function getCloudBackupSnapshotRestoreJobOutput(args: GetCloudBackupSnapshotRestoreJobOutputArgs, opts?: InvokeOptions): Output<GetCloudBackupSnapshotRestoreJobResult>
    def get_cloud_backup_snapshot_restore_job(cluster_name: Optional[str] = None,
                                              job_id: Optional[str] = None,
                                              project_id: Optional[str] = None,
                                              snapshot_restore_job_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetCloudBackupSnapshotRestoreJobResult
    def get_cloud_backup_snapshot_restore_job_output(cluster_name: Optional[pulumi.Input[str]] = None,
                                              job_id: Optional[pulumi.Input[str]] = None,
                                              project_id: Optional[pulumi.Input[str]] = None,
                                              snapshot_restore_job_id: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetCloudBackupSnapshotRestoreJobResult]
    func LookupCloudBackupSnapshotRestoreJob(ctx *Context, args *LookupCloudBackupSnapshotRestoreJobArgs, opts ...InvokeOption) (*LookupCloudBackupSnapshotRestoreJobResult, error)
    func LookupCloudBackupSnapshotRestoreJobOutput(ctx *Context, args *LookupCloudBackupSnapshotRestoreJobOutputArgs, opts ...InvokeOption) LookupCloudBackupSnapshotRestoreJobResultOutput

    > Note: This function is named LookupCloudBackupSnapshotRestoreJob in the Go SDK.

    public static class GetCloudBackupSnapshotRestoreJob 
    {
        public static Task<GetCloudBackupSnapshotRestoreJobResult> InvokeAsync(GetCloudBackupSnapshotRestoreJobArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudBackupSnapshotRestoreJobResult> Invoke(GetCloudBackupSnapshotRestoreJobInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudBackupSnapshotRestoreJobResult> getCloudBackupSnapshotRestoreJob(GetCloudBackupSnapshotRestoreJobArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: mongodbatlas:index/getCloudBackupSnapshotRestoreJob:getCloudBackupSnapshotRestoreJob
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterName string
    The name of the Atlas cluster for which you want to retrieve the restore job.
    ProjectId string
    The unique identifier of the project for the Atlas cluster.
    JobId string
    A base64-encoded ID of project_id, cluster_name, and job_id of this resource. Note: This attribute is deprecated, use snapshot_restore_job_id instead.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    SnapshotRestoreJobId string
    The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later.
    ClusterName string
    The name of the Atlas cluster for which you want to retrieve the restore job.
    ProjectId string
    The unique identifier of the project for the Atlas cluster.
    JobId string
    A base64-encoded ID of project_id, cluster_name, and job_id of this resource. Note: This attribute is deprecated, use snapshot_restore_job_id instead.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    SnapshotRestoreJobId string
    The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later.
    clusterName String
    The name of the Atlas cluster for which you want to retrieve the restore job.
    projectId String
    The unique identifier of the project for the Atlas cluster.
    jobId String
    A base64-encoded ID of project_id, cluster_name, and job_id of this resource. Note: This attribute is deprecated, use snapshot_restore_job_id instead.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    snapshotRestoreJobId String
    The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later.
    clusterName string
    The name of the Atlas cluster for which you want to retrieve the restore job.
    projectId string
    The unique identifier of the project for the Atlas cluster.
    jobId string
    A base64-encoded ID of project_id, cluster_name, and job_id of this resource. Note: This attribute is deprecated, use snapshot_restore_job_id instead.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    snapshotRestoreJobId string
    The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later.
    cluster_name str
    The name of the Atlas cluster for which you want to retrieve the restore job.
    project_id str
    The unique identifier of the project for the Atlas cluster.
    job_id str
    A base64-encoded ID of project_id, cluster_name, and job_id of this resource. Note: This attribute is deprecated, use snapshot_restore_job_id instead.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    snapshot_restore_job_id str
    The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later.
    clusterName String
    The name of the Atlas cluster for which you want to retrieve the restore job.
    projectId String
    The unique identifier of the project for the Atlas cluster.
    jobId String
    A base64-encoded ID of project_id, cluster_name, and job_id of this resource. Note: This attribute is deprecated, use snapshot_restore_job_id instead.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    snapshotRestoreJobId String
    The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later.

    getCloudBackupSnapshotRestoreJob Result

    The following output properties are available:

    Cancelled bool
    Indicates whether the restore job was canceled.
    ClusterName string
    CreatedAt string
    UTC ISO 8601 formatted point in time when Atlas created the restore job.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0.

    DeliveryType string
    Type of restore job to create. Possible values are: automated and download.
    DeliveryUrls 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.
    ExpiresAt string
    UTC ISO 8601 formatted point in time when the restore job expires.
    FinishedAt string
    UTC ISO 8601 formatted point in time when the restore job completed.
    Id string
    The provider-assigned unique ID for this managed resource.
    OplogInc int
    OplogTs int
    PointInTimeUtcSeconds int
    ProjectId string
    SnapshotId string
    Unique identifier of the source snapshot ID of the restore job.
    TargetClusterName string
    Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
    TargetProjectId string
    Name of the target Atlas project of the restore job. Only visible if deliveryType is automated.
    Timestamp string
    Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.

    • oplogTs - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    • oplogInc - Oplog operation number from which to you want to restore this snapshot.
    • pointInTimeUTCSeconds - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    JobId string

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    SnapshotRestoreJobId string
    Cancelled bool
    Indicates whether the restore job was canceled.
    ClusterName string
    CreatedAt string
    UTC ISO 8601 formatted point in time when Atlas created the restore job.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0.

    DeliveryType string
    Type of restore job to create. Possible values are: automated and download.
    DeliveryUrls []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.
    ExpiresAt string
    UTC ISO 8601 formatted point in time when the restore job expires.
    FinishedAt string
    UTC ISO 8601 formatted point in time when the restore job completed.
    Id string
    The provider-assigned unique ID for this managed resource.
    OplogInc int
    OplogTs int
    PointInTimeUtcSeconds int
    ProjectId string
    SnapshotId string
    Unique identifier of the source snapshot ID of the restore job.
    TargetClusterName string
    Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
    TargetProjectId string
    Name of the target Atlas project of the restore job. Only visible if deliveryType is automated.
    Timestamp string
    Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.

    • oplogTs - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    • oplogInc - Oplog operation number from which to you want to restore this snapshot.
    • pointInTimeUTCSeconds - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    JobId string

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    SnapshotRestoreJobId string
    cancelled Boolean
    Indicates whether the restore job was canceled.
    clusterName String
    createdAt String
    UTC ISO 8601 formatted point in time when Atlas created the restore job.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0.

    deliveryType String
    Type of restore job to create. Possible values are: automated and download.
    deliveryUrls List<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.
    expiresAt String
    UTC ISO 8601 formatted point in time when the restore job expires.
    finishedAt String
    UTC ISO 8601 formatted point in time when the restore job completed.
    id String
    The provider-assigned unique ID for this managed resource.
    oplogInc Integer
    oplogTs Integer
    pointInTimeUtcSeconds Integer
    projectId String
    snapshotId String
    Unique identifier of the source snapshot ID of the restore job.
    targetClusterName String
    Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
    targetProjectId String
    Name of the target Atlas project of the restore job. Only visible if deliveryType is automated.
    timestamp String
    Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.

    • oplogTs - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    • oplogInc - Oplog operation number from which to you want to restore this snapshot.
    • pointInTimeUTCSeconds - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    jobId String

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    snapshotRestoreJobId String
    cancelled boolean
    Indicates whether the restore job was canceled.
    clusterName string
    createdAt string
    UTC ISO 8601 formatted point in time when Atlas created the restore job.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0.

    deliveryType string
    Type of restore job to create. Possible values are: automated and download.
    deliveryUrls 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.
    expiresAt string
    UTC ISO 8601 formatted point in time when the restore job expires.
    finishedAt string
    UTC ISO 8601 formatted point in time when the restore job completed.
    id string
    The provider-assigned unique ID for this managed resource.
    oplogInc number
    oplogTs number
    pointInTimeUtcSeconds number
    projectId string
    snapshotId string
    Unique identifier of the source snapshot ID of the restore job.
    targetClusterName string
    Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
    targetProjectId string
    Name of the target Atlas project of the restore job. Only visible if deliveryType is automated.
    timestamp string
    Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.

    • oplogTs - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    • oplogInc - Oplog operation number from which to you want to restore this snapshot.
    • pointInTimeUTCSeconds - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    jobId string

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    snapshotRestoreJobId string
    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.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0.

    delivery_type str
    Type of restore job to create. Possible values are: automated and download.
    delivery_urls Sequence[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.
    oplog_inc int
    oplog_ts int
    point_in_time_utc_seconds int
    project_id str
    snapshot_id str
    Unique identifier of the source snapshot ID of the restore job.
    target_cluster_name str
    Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
    target_project_id str
    Name of the target Atlas project of the restore job. Only visible if deliveryType is automated.
    timestamp str
    Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.

    • oplogTs - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    • oplogInc - Oplog operation number from which to you want to restore this snapshot.
    • pointInTimeUTCSeconds - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    job_id str

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    snapshot_restore_job_id str
    cancelled Boolean
    Indicates whether the restore job was canceled.
    clusterName String
    createdAt String
    UTC ISO 8601 formatted point in time when Atlas created the restore job.

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0.

    deliveryType String
    Type of restore job to create. Possible values are: automated and download.
    deliveryUrls List<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.
    expiresAt String
    UTC ISO 8601 formatted point in time when the restore job expires.
    finishedAt String
    UTC ISO 8601 formatted point in time when the restore job completed.
    id String
    The provider-assigned unique ID for this managed resource.
    oplogInc Number
    oplogTs Number
    pointInTimeUtcSeconds Number
    projectId String
    snapshotId String
    Unique identifier of the source snapshot ID of the restore job.
    targetClusterName String
    Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.
    targetProjectId String
    Name of the target Atlas project of the restore job. Only visible if deliveryType is automated.
    timestamp String
    Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.

    • oplogTs - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    • oplogInc - Oplog operation number from which to you want to restore this snapshot.
    • pointInTimeUTCSeconds - Timestamp in the number of seconds that have elapsed since the UNIX epoch.
    jobId String

    Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.

    snapshotRestoreJobId String

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo
    MongoDB Atlas v3.16.2 published on Friday, Jun 21, 2024 by Pulumi