Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
mongodbatlas.getFlexRestoreJob describes a flex restore job.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const restoreJob = mongodbatlas.getFlexRestoreJob({
projectId: projectId,
name: example_cluster.name,
restoreJobId: restoreJobId,
});
const restoreJobs = mongodbatlas.getFlexRestoreJobs({
projectId: projectId,
name: example_cluster.name,
});
export const mongodbatlasFlexRestoreJob = restoreJob.then(restoreJob => restoreJob.name);
export const mongodbatlasFlexRestoreJobs = restoreJobs.then(restoreJobs => .map(restoreJob => (restoreJob.restoreJobId)));
import pulumi
import pulumi_mongodbatlas as mongodbatlas
restore_job = mongodbatlas.get_flex_restore_job(project_id=project_id,
name=example_cluster["name"],
restore_job_id=restore_job_id)
restore_jobs = mongodbatlas.get_flex_restore_jobs(project_id=project_id,
name=example_cluster["name"])
pulumi.export("mongodbatlasFlexRestoreJob", restore_job.name)
pulumi.export("mongodbatlasFlexRestoreJobs", [restore_job.restore_job_id for restoreJob in restore_jobs.results])
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var restoreJob = Mongodbatlas.GetFlexRestoreJob.Invoke(new()
{
ProjectId = projectId,
Name = example_cluster.Name,
RestoreJobId = restoreJobId,
});
var restoreJobs = Mongodbatlas.GetFlexRestoreJobs.Invoke(new()
{
ProjectId = projectId,
Name = example_cluster.Name,
});
return new Dictionary<string, object?>
{
["mongodbatlasFlexRestoreJob"] = restoreJob.Apply(getFlexRestoreJobResult => getFlexRestoreJobResult.Name),
["mongodbatlasFlexRestoreJobs"] = .Select(restoreJob =>
{
return restoreJob.Apply(getFlexRestoreJobResult => getFlexRestoreJobResult.RestoreJobId);
}).ToList(),
};
});
Example coming soon!
Example coming soon!
Using getFlexRestoreJob
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 getFlexRestoreJob(args: GetFlexRestoreJobArgs, opts?: InvokeOptions): Promise<GetFlexRestoreJobResult>
function getFlexRestoreJobOutput(args: GetFlexRestoreJobOutputArgs, opts?: InvokeOptions): Output<GetFlexRestoreJobResult>def get_flex_restore_job(name: Optional[str] = None,
project_id: Optional[str] = None,
restore_job_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFlexRestoreJobResult
def get_flex_restore_job_output(name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
restore_job_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFlexRestoreJobResult]func GetFlexRestoreJob(ctx *Context, args *GetFlexRestoreJobArgs, opts ...InvokeOption) (*GetFlexRestoreJobResult, error)
func GetFlexRestoreJobOutput(ctx *Context, args *GetFlexRestoreJobOutputArgs, opts ...InvokeOption) GetFlexRestoreJobResultOutput> Note: This function is named GetFlexRestoreJob in the Go SDK.
public static class GetFlexRestoreJob
{
public static Task<GetFlexRestoreJobResult> InvokeAsync(GetFlexRestoreJobArgs args, InvokeOptions? opts = null)
public static Output<GetFlexRestoreJobResult> Invoke(GetFlexRestoreJobInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFlexRestoreJobResult> getFlexRestoreJob(GetFlexRestoreJobArgs args, InvokeOptions options)
public static Output<GetFlexRestoreJobResult> getFlexRestoreJob(GetFlexRestoreJobArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getFlexRestoreJob:getFlexRestoreJob
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- Restore
Job stringId
- Name string
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- Restore
Job stringId
- name String
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- restore
Job StringId
- name string
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- restore
Job stringId
- name str
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- restore_
job_ strid
- name String
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- restore
Job StringId
getFlexRestoreJob Result
The following output properties are available:
- Delivery
Type string - Expiration
Date string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- Restore
Finished stringDate - Restore
Job stringId - Restore
Scheduled stringDate - Snapshot
Finished stringDate - Snapshot
Id string - Snapshot
Url string - Status string
- Target
Deployment stringItem Name - Target
Project stringId
- Delivery
Type string - Expiration
Date string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- Restore
Finished stringDate - Restore
Job stringId - Restore
Scheduled stringDate - Snapshot
Finished stringDate - Snapshot
Id string - Snapshot
Url string - Status string
- Target
Deployment stringItem Name - Target
Project stringId
- delivery
Type String - expiration
Date String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- restore
Finished StringDate - restore
Job StringId - restore
Scheduled StringDate - snapshot
Finished StringDate - snapshot
Id String - snapshot
Url String - status String
- target
Deployment StringItem Name - target
Project StringId
- delivery
Type string - expiration
Date string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- restore
Finished stringDate - restore
Job stringId - restore
Scheduled stringDate - snapshot
Finished stringDate - snapshot
Id string - snapshot
Url string - status string
- target
Deployment stringItem Name - target
Project stringId
- delivery_
type str - expiration_
date str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- restore_
finished_ strdate - restore_
job_ strid - restore_
scheduled_ strdate - snapshot_
finished_ strdate - snapshot_
id str - snapshot_
url str - status str
- target_
deployment_ stritem_ name - target_
project_ strid
- delivery
Type String - expiration
Date String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Human-readable label that identifies the flex cluster whose snapshot you want to restore.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- restore
Finished StringDate - restore
Job StringId - restore
Scheduled StringDate - snapshot
Finished StringDate - snapshot
Id String - snapshot
Url String - status String
- target
Deployment StringItem Name - target
Project StringId
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
