1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. getClusterOutageSimulation
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",
});
Copy
import pulumi
import pulumi_mongodbatlas as mongodbatlas

outage_simulation = mongodbatlas.get_cluster_outage_simulation(project_id="64707f06c519c20c3a2b1b03",
    cluster_name="Cluster0")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  outageSimulation:
    fn::invoke:
      function: mongodbatlas:getClusterOutageSimulation
      arguments:
        projectId: 64707f06c519c20c3a2b1b03
        clusterName: Cluster0
Copy

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>
Copy
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]
Copy
func LookupClusterOutageSimulation(ctx *Context, args *LookupClusterOutageSimulationArgs, opts ...InvokeOption) (*LookupClusterOutageSimulationResult, error)
func LookupClusterOutageSimulationOutput(ctx *Context, args *LookupClusterOutageSimulationOutputArgs, opts ...InvokeOption) LookupClusterOutageSimulationResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetClusterOutageSimulationResult> getClusterOutageSimulation(GetClusterOutageSimulationArgs args, InvokeOptions options)
public static Output<GetClusterOutageSimulationResult> getClusterOutageSimulation(GetClusterOutageSimulationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: mongodbatlas:index/getClusterOutageSimulation:getClusterOutageSimulation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterName This property is required. string
Name of the Atlas Cluster that is undergoing outage simulation.
ProjectId This property is required. string
The unique ID for the project that contains the cluster that is undergoing outage simulation.
ClusterName This property is required. string
Name of the Atlas Cluster that is undergoing outage simulation.
ProjectId This property is required. string
The unique ID for the project that contains the cluster that is undergoing outage simulation.
clusterName This property is required. String
Name of the Atlas Cluster that is undergoing outage simulation.
projectId This property is required. String
The unique ID for the project that contains the cluster that is undergoing outage simulation.
clusterName This property is required. string
Name of the Atlas Cluster that is undergoing outage simulation.
projectId This property is required. string
The unique ID for the project that contains the cluster that is undergoing outage simulation.
cluster_name This property is required. str
Name of the Atlas Cluster that is undergoing outage simulation.
project_id This property is required. str
The unique ID for the project that contains the cluster that is undergoing outage simulation.
clusterName This property is required. String
Name of the Atlas Cluster that is undergoing outage simulation.
projectId This property is required. String
The unique ID for the project that contains the cluster that is undergoing outage simulation.

getClusterOutageSimulation Result

The following output properties are available:

ClusterName string
Id string
The provider-assigned unique ID for this managed resource.
OutageFilters List<GetClusterOutageSimulationOutageFilter>
List of settings that specify the type of cluster outage simulation.
ProjectId string
SimulationId string
Unique 24-hexadecimal character string that identifies the outage simulation.
StartRequestDate string
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.
ClusterName string
Id string
The provider-assigned unique ID for this managed resource.
OutageFilters []GetClusterOutageSimulationOutageFilter
List of settings that specify the type of cluster outage simulation.
ProjectId string
SimulationId string
Unique 24-hexadecimal character string that identifies the outage simulation.
StartRequestDate string
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.
clusterName String
id String
The provider-assigned unique ID for this managed resource.
outageFilters List<GetClusterOutageSimulationOutageFilter>
List of settings that specify the type of cluster outage simulation.
projectId String
simulationId String
Unique 24-hexadecimal character string that identifies the outage simulation.
startRequestDate String
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.
clusterName string
id string
The provider-assigned unique ID for this managed resource.
outageFilters GetClusterOutageSimulationOutageFilter[]
List of settings that specify the type of cluster outage simulation.
projectId string
simulationId string
Unique 24-hexadecimal character string that identifies the outage simulation.
startRequestDate string
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[GetClusterOutageSimulationOutageFilter]
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_date str
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.
clusterName String
id String
The provider-assigned unique ID for this managed resource.
outageFilters List<Property Map>
List of settings that specify the type of cluster outage simulation.
projectId String
simulationId String
Unique 24-hexadecimal character string that identifies the outage simulation.
startRequestDate String
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

CloudProvider This property is required. string
The cloud provider of the region that undergoes the outage simulation. Following values are supported:

  • AWS
  • GCP
  • AZURE
RegionName This property is required. string
The Atlas name of the region undergoing an outage simulation.
Type This property is required. string
The type of cluster outage simulation. Following values are supported:

  • REGION (Simulates a cluster outage for a region)
CloudProvider This property is required. string
The cloud provider of the region that undergoes the outage simulation. Following values are supported:

  • AWS
  • GCP
  • AZURE
RegionName This property is required. string
The Atlas name of the region undergoing an outage simulation.
Type This property is required. string
The type of cluster outage simulation. Following values are supported:

  • REGION (Simulates a cluster outage for a region)
cloudProvider This property is required. String
The cloud provider of the region that undergoes the outage simulation. Following values are supported:

  • AWS
  • GCP
  • AZURE
regionName This property is required. String
The Atlas name of the region undergoing an outage simulation.
type This property is required. String
The type of cluster outage simulation. Following values are supported:

  • REGION (Simulates a cluster outage for a region)
cloudProvider This property is required. string
The cloud provider of the region that undergoes the outage simulation. Following values are supported:

  • AWS
  • GCP
  • AZURE
regionName This property is required. string
The Atlas name of the region undergoing an outage simulation.
type This property is required. string
The type of cluster outage simulation. Following values are supported:

  • REGION (Simulates a cluster outage for a region)
cloud_provider This property is required. str
The cloud provider of the region that undergoes the outage simulation. Following values are supported:

  • AWS
  • GCP
  • AZURE
region_name This property is required. str
The Atlas name of the region undergoing an outage simulation.
type This property is required. str
The type of cluster outage simulation. Following values are supported:

  • REGION (Simulates a cluster outage for a region)
cloudProvider This property is required. String
The cloud provider of the region that undergoes the outage simulation. Following values are supported:

  • AWS
  • GCP
  • AZURE
regionName This property is required. String
The Atlas name of the region undergoing an outage simulation.
type This property is required. 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 mongodbatlas Terraform Provider.