MongoDB Atlas v3.30.0 published on Friday, Mar 21, 2025 by Pulumi
mongodbatlas.getClusterOutageSimulation
Explore with Pulumi AI
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const outageSimulation = mongodbatlas.getClusterOutageSimulation({
    projectId: "64707f06c519c20c3a2b1b03",
    clusterName: "Cluster0",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
outage_simulation = mongodbatlas.get_cluster_outage_simulation(project_id="64707f06c519c20c3a2b1b03",
    cluster_name="Cluster0")
package main
import (
	"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mongodbatlas.LookupClusterOutageSimulation(ctx, &mongodbatlas.LookupClusterOutageSimulationArgs{
			ProjectId:   "64707f06c519c20c3a2b1b03",
			ClusterName: "Cluster0",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() => 
{
    var outageSimulation = Mongodbatlas.GetClusterOutageSimulation.Invoke(new()
    {
        ProjectId = "64707f06c519c20c3a2b1b03",
        ClusterName = "Cluster0",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetClusterOutageSimulationArgs;
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) {
        final var outageSimulation = MongodbatlasFunctions.getClusterOutageSimulation(GetClusterOutageSimulationArgs.builder()
            .projectId("64707f06c519c20c3a2b1b03")
            .clusterName("Cluster0")
            .build());
    }
}
variables:
  outageSimulation:
    fn::invoke:
      function: mongodbatlas:getClusterOutageSimulation
      arguments:
        projectId: 64707f06c519c20c3a2b1b03
        clusterName: Cluster0
Using getClusterOutageSimulation
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 getClusterOutageSimulation(args: GetClusterOutageSimulationArgs, opts?: InvokeOptions): Promise<GetClusterOutageSimulationResult>
function getClusterOutageSimulationOutput(args: GetClusterOutageSimulationOutputArgs, opts?: InvokeOptions): Output<GetClusterOutageSimulationResult>def get_cluster_outage_simulation(cluster_name: Optional[str] = None,
                                  project_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetClusterOutageSimulationResult
def get_cluster_outage_simulation_output(cluster_name: Optional[pulumi.Input[str]] = None,
                                  project_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetClusterOutageSimulationResult]func LookupClusterOutageSimulation(ctx *Context, args *LookupClusterOutageSimulationArgs, opts ...InvokeOption) (*LookupClusterOutageSimulationResult, error)
func LookupClusterOutageSimulationOutput(ctx *Context, args *LookupClusterOutageSimulationOutputArgs, opts ...InvokeOption) LookupClusterOutageSimulationResultOutput> Note: This function is named LookupClusterOutageSimulation in the Go SDK.
public static class GetClusterOutageSimulation 
{
    public static Task<GetClusterOutageSimulationResult> InvokeAsync(GetClusterOutageSimulationArgs args, InvokeOptions? opts = null)
    public static Output<GetClusterOutageSimulationResult> Invoke(GetClusterOutageSimulationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClusterOutageSimulationResult> getClusterOutageSimulation(GetClusterOutageSimulationArgs args, InvokeOptions options)
public static Output<GetClusterOutageSimulationResult> getClusterOutageSimulation(GetClusterOutageSimulationArgs args, InvokeOptions options)
fn::invoke:
  function: mongodbatlas:index/getClusterOutageSimulation:getClusterOutageSimulation
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Cluster
Name string - Name of the Atlas Cluster that is undergoing outage simulation.
 - Project
Id string - The unique ID for the project that contains the cluster that is undergoing outage simulation.
 
- Cluster
Name string - Name of the Atlas Cluster that is undergoing outage simulation.
 - Project
Id string - The unique ID for the project that contains the cluster that is undergoing outage simulation.
 
- cluster
Name String - Name of the Atlas Cluster that is undergoing outage simulation.
 - project
Id String - The unique ID for the project that contains the cluster that is undergoing outage simulation.
 
- cluster
Name string - Name of the Atlas Cluster that is undergoing outage simulation.
 - project
Id string - The unique ID for the project that contains the cluster that is undergoing outage simulation.
 
- cluster_
name str - Name of the Atlas Cluster that is undergoing outage simulation.
 - project_
id str - The unique ID for the project that contains the cluster that is undergoing outage simulation.
 
- cluster
Name String - Name of the Atlas Cluster that is undergoing outage simulation.
 - project
Id String - The unique ID for the project that contains the cluster that is undergoing outage simulation.
 
getClusterOutageSimulation Result
The following output properties are available:
- Cluster
Name string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Outage
Filters List<GetCluster Outage Simulation Outage Filter>  - List of settings that specify the type of cluster outage simulation.
 - Project
Id string - Simulation
Id string - Unique 24-hexadecimal character string that identifies the outage simulation.
 - Start
Request stringDate  - Date and time when MongoDB Cloud started the regional outage simulation.
 - State string
 - Current phase of the outage simulation:
START_REQUESTED- User has requested cluster outage simulation.STARTING- MongoDB Cloud is starting cluster outage simulation.SIMULATING- MongoDB Cloud is simulating cluster outage.RECOVERY_REQUESTED- User has requested recovery from the simulated outage.RECOVERING- MongoDB Cloud is recovering the cluster from the simulated outage.COMPLETE- MongoDB Cloud has completed the cluster outage simulation.
 
- Cluster
Name string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Outage
Filters []GetCluster Outage Simulation Outage Filter  - List of settings that specify the type of cluster outage simulation.
 - Project
Id string - Simulation
Id string - Unique 24-hexadecimal character string that identifies the outage simulation.
 - Start
Request stringDate  - Date and time when MongoDB Cloud started the regional outage simulation.
 - State string
 - Current phase of the outage simulation:
START_REQUESTED- User has requested cluster outage simulation.STARTING- MongoDB Cloud is starting cluster outage simulation.SIMULATING- MongoDB Cloud is simulating cluster outage.RECOVERY_REQUESTED- User has requested recovery from the simulated outage.RECOVERING- MongoDB Cloud is recovering the cluster from the simulated outage.COMPLETE- MongoDB Cloud has completed the cluster outage simulation.
 
- cluster
Name String - id String
 - The provider-assigned unique ID for this managed resource.
 - outage
Filters List<GetCluster Outage Simulation Outage Filter>  - List of settings that specify the type of cluster outage simulation.
 - project
Id String - simulation
Id String - Unique 24-hexadecimal character string that identifies the outage simulation.
 - start
Request StringDate  - Date and time when MongoDB Cloud started the regional outage simulation.
 - state String
 - Current phase of the outage simulation:
START_REQUESTED- User has requested cluster outage simulation.STARTING- MongoDB Cloud is starting cluster outage simulation.SIMULATING- MongoDB Cloud is simulating cluster outage.RECOVERY_REQUESTED- User has requested recovery from the simulated outage.RECOVERING- MongoDB Cloud is recovering the cluster from the simulated outage.COMPLETE- MongoDB Cloud has completed the cluster outage simulation.
 
- cluster
Name string - id string
 - The provider-assigned unique ID for this managed resource.
 - outage
Filters GetCluster Outage Simulation Outage Filter[]  - List of settings that specify the type of cluster outage simulation.
 - project
Id string - simulation
Id string - Unique 24-hexadecimal character string that identifies the outage simulation.
 - start
Request stringDate  - Date and time when MongoDB Cloud started the regional outage simulation.
 - state string
 - Current phase of the outage simulation:
START_REQUESTED- User has requested cluster outage simulation.STARTING- MongoDB Cloud is starting cluster outage simulation.SIMULATING- MongoDB Cloud is simulating cluster outage.RECOVERY_REQUESTED- User has requested recovery from the simulated outage.RECOVERING- MongoDB Cloud is recovering the cluster from the simulated outage.COMPLETE- MongoDB Cloud has completed the cluster outage simulation.
 
- cluster_
name str - id str
 - The provider-assigned unique ID for this managed resource.
 - outage_
filters Sequence[GetCluster Outage Simulation Outage Filter]  - List of settings that specify the type of cluster outage simulation.
 - project_
id str - simulation_
id str - Unique 24-hexadecimal character string that identifies the outage simulation.
 - start_
request_ strdate  - Date and time when MongoDB Cloud started the regional outage simulation.
 - state str
 - Current phase of the outage simulation:
START_REQUESTED- User has requested cluster outage simulation.STARTING- MongoDB Cloud is starting cluster outage simulation.SIMULATING- MongoDB Cloud is simulating cluster outage.RECOVERY_REQUESTED- User has requested recovery from the simulated outage.RECOVERING- MongoDB Cloud is recovering the cluster from the simulated outage.COMPLETE- MongoDB Cloud has completed the cluster outage simulation.
 
- cluster
Name String - id String
 - The provider-assigned unique ID for this managed resource.
 - outage
Filters List<Property Map> - List of settings that specify the type of cluster outage simulation.
 - project
Id String - simulation
Id String - Unique 24-hexadecimal character string that identifies the outage simulation.
 - start
Request StringDate  - Date and time when MongoDB Cloud started the regional outage simulation.
 - state String
 - Current phase of the outage simulation:
START_REQUESTED- User has requested cluster outage simulation.STARTING- MongoDB Cloud is starting cluster outage simulation.SIMULATING- MongoDB Cloud is simulating cluster outage.RECOVERY_REQUESTED- User has requested recovery from the simulated outage.RECOVERING- MongoDB Cloud is recovering the cluster from the simulated outage.COMPLETE- MongoDB Cloud has completed the cluster outage simulation.
 
Supporting Types
GetClusterOutageSimulationOutageFilter     
- Cloud
Provider string - The cloud provider of the region that undergoes the outage simulation. Following values are supported:
AWSGCPAZURE
 - Region
Name string - The Atlas name of the region undergoing an outage simulation.
 - Type string
 - The type of cluster outage simulation. Following values are supported:
REGION(Simulates a cluster outage for a region)
 
- Cloud
Provider string - The cloud provider of the region that undergoes the outage simulation. Following values are supported:
AWSGCPAZURE
 - Region
Name string - The Atlas name of the region undergoing an outage simulation.
 - Type string
 - The type of cluster outage simulation. Following values are supported:
REGION(Simulates a cluster outage for a region)
 
- cloud
Provider String - The cloud provider of the region that undergoes the outage simulation. Following values are supported:
AWSGCPAZURE
 - region
Name String - The Atlas name of the region undergoing an outage simulation.
 - type String
 - The type of cluster outage simulation. Following values are supported:
REGION(Simulates a cluster outage for a region)
 
- cloud
Provider string - The cloud provider of the region that undergoes the outage simulation. Following values are supported:
AWSGCPAZURE
 - region
Name string - The Atlas name of the region undergoing an outage simulation.
 - type string
 - The type of cluster outage simulation. Following values are supported:
REGION(Simulates a cluster outage for a region)
 
- cloud_
provider str - The cloud provider of the region that undergoes the outage simulation. Following values are supported:
AWSGCPAZURE
 - region_
name str - The Atlas name of the region undergoing an outage simulation.
 - type str
 - The type of cluster outage simulation. Following values are supported:
REGION(Simulates a cluster outage for a region)
 
- cloud
Provider String - The cloud provider of the region that undergoes the outage simulation. Following values are supported:
AWSGCPAZURE
 - region
Name String - The Atlas name of the region undergoing an outage simulation.
 - type String
 - The type of cluster outage simulation. Following values are supported:
REGION(Simulates a cluster outage for a region)
 
Package Details
- Repository
 - MongoDB Atlas pulumi/pulumi-mongodbatlas
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
mongodbatlasTerraform Provider.