1. Packages
  2. MongoDB Atlas
  3. API Docs
  4. getClusterOutageSimulation
MongoDB Atlas v3.14.3 published on Monday, Apr 1, 2024 by Pulumi

mongodbatlas.getClusterOutageSimulation

Explore with Pulumi AI

mongodbatlas logo
MongoDB Atlas v3.14.3 published on Monday, Apr 1, 2024 by Pulumi

    Example Usage

    S

    import * as pulumi from "@pulumi/pulumi";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    const outageSimulation = mongodbatlas.getClusterOutageSimulation({
        clusterName: "Cluster0",
        projectId: "64707f06c519c20c3a2b1b03",
    });
    
    import pulumi
    import pulumi_mongodbatlas as mongodbatlas
    
    outage_simulation = mongodbatlas.get_cluster_outage_simulation(cluster_name="Cluster0",
        project_id="64707f06c519c20c3a2b1b03")
    
    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{
    			ClusterName: "Cluster0",
    			ProjectId:   "64707f06c519c20c3a2b1b03",
    		}, 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()
        {
            ClusterName = "Cluster0",
            ProjectId = "64707f06c519c20c3a2b1b03",
        });
    
    });
    
    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()
                .clusterName("Cluster0")
                .projectId("64707f06c519c20c3a2b1b03")
                .build());
    
        }
    }
    
    variables:
      outageSimulation:
        fn::invoke:
          Function: mongodbatlas:getClusterOutageSimulation
          Arguments:
            clusterName: Cluster0
            projectId: 64707f06c519c20c3a2b1b03
    

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: mongodbatlas:index/getClusterOutageSimulation:getClusterOutageSimulation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterName string
    Name of the Atlas Cluster that is undergoing outage simulation.
    ProjectId string
    The unique ID for the project that contains the cluster that is undergoing outage simulation.
    ClusterName string
    Name of the Atlas Cluster that is undergoing outage simulation.
    ProjectId string
    The unique ID for the project that contains the cluster that is undergoing outage simulation.
    clusterName String
    Name of the Atlas Cluster that is undergoing outage simulation.
    projectId String
    The unique ID for the project that contains the cluster that is undergoing outage simulation.
    clusterName string
    Name of the Atlas Cluster that is undergoing outage simulation.
    projectId 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.
    clusterName String
    Name of the Atlas Cluster that is undergoing outage simulation.
    projectId 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:
    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:
    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:
    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:
    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:
    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:

    Supporting Types

    GetClusterOutageSimulationOutageFilter

    CloudProvider string
    The cloud provider of the region that undergoes the outage simulation. Following values are supported:
    RegionName string
    The Atlas name of the region undergoing an outage simulation.
    Type string
    The type of cluster outage simulation. Following values are supported:
    CloudProvider string
    The cloud provider of the region that undergoes the outage simulation. Following values are supported:
    RegionName string
    The Atlas name of the region undergoing an outage simulation.
    Type string
    The type of cluster outage simulation. Following values are supported:
    cloudProvider String
    The cloud provider of the region that undergoes the outage simulation. Following values are supported:
    regionName String
    The Atlas name of the region undergoing an outage simulation.
    type String
    The type of cluster outage simulation. Following values are supported:
    cloudProvider string
    The cloud provider of the region that undergoes the outage simulation. Following values are supported:
    regionName string
    The Atlas name of the region undergoing an outage simulation.
    type string
    The type of cluster outage simulation. Following values are supported:
    cloud_provider str
    The cloud provider of the region that undergoes the outage simulation. Following values are supported:
    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:
    cloudProvider String
    The cloud provider of the region that undergoes the outage simulation. Following values are supported:
    regionName String
    The Atlas name of the region undergoing an outage simulation.
    type String
    The type of cluster outage simulation. Following values are supported:

    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.14.3 published on Monday, Apr 1, 2024 by Pulumi