1. Packages
  2. Pulumi Vault Provider
  3. API Docs
  4. getRaftAutopilotState
HashiCorp Vault v6.4.0 published on Wednesday, Nov 20, 2024 by Pulumi

vault.getRaftAutopilotState

Explore with Pulumi AI

vault logo
HashiCorp Vault v6.4.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vault from "@pulumi/vault";
    
    export = async () => {
        const main = await vault.getRaftAutopilotState({});
        return {
            "failure-tolerance": main.failureTolerance,
        };
    }
    
    import pulumi
    import pulumi_vault as vault
    
    main = vault.get_raft_autopilot_state()
    pulumi.export("failure-tolerance", main.failure_tolerance)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		main, err := vault.GetRaftAutopilotState(ctx, &vault.GetRaftAutopilotStateArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("failure-tolerance", main.FailureTolerance)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vault = Pulumi.Vault;
    
    return await Deployment.RunAsync(() => 
    {
        var main = Vault.GetRaftAutopilotState.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["failure-tolerance"] = main.Apply(getRaftAutopilotStateResult => getRaftAutopilotStateResult.FailureTolerance),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vault.VaultFunctions;
    import com.pulumi.vault.inputs.GetRaftAutopilotStateArgs;
    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 main = VaultFunctions.getRaftAutopilotState();
    
            ctx.export("failure-tolerance", main.applyValue(getRaftAutopilotStateResult -> getRaftAutopilotStateResult.failureTolerance()));
        }
    }
    
    variables:
      main:
        fn::invoke:
          Function: vault:getRaftAutopilotState
          Arguments: {}
    outputs:
      failure-tolerance: ${main.failureTolerance}
    

    Using getRaftAutopilotState

    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 getRaftAutopilotState(args: GetRaftAutopilotStateArgs, opts?: InvokeOptions): Promise<GetRaftAutopilotStateResult>
    function getRaftAutopilotStateOutput(args: GetRaftAutopilotStateOutputArgs, opts?: InvokeOptions): Output<GetRaftAutopilotStateResult>
    def get_raft_autopilot_state(namespace: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetRaftAutopilotStateResult
    def get_raft_autopilot_state_output(namespace: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetRaftAutopilotStateResult]
    func GetRaftAutopilotState(ctx *Context, args *GetRaftAutopilotStateArgs, opts ...InvokeOption) (*GetRaftAutopilotStateResult, error)
    func GetRaftAutopilotStateOutput(ctx *Context, args *GetRaftAutopilotStateOutputArgs, opts ...InvokeOption) GetRaftAutopilotStateResultOutput

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

    public static class GetRaftAutopilotState 
    {
        public static Task<GetRaftAutopilotStateResult> InvokeAsync(GetRaftAutopilotStateArgs args, InvokeOptions? opts = null)
        public static Output<GetRaftAutopilotStateResult> Invoke(GetRaftAutopilotStateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRaftAutopilotStateResult> getRaftAutopilotState(GetRaftAutopilotStateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: vault:index/getRaftAutopilotState:getRaftAutopilotState
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    Namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    namespace String
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    namespace str
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    namespace String
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.

    getRaftAutopilotState Result

    The following output properties are available:

    FailureTolerance int
    How many nodes could fail before the cluster becomes unhealthy.
    Healthy bool
    Cluster health status.
    Id string
    The provider-assigned unique ID for this managed resource.
    Leader string
    The current leader of Vault.
    OptimisticFailureTolerance int
    The cluster-level optimistic failure tolerance.
    RedundancyZones Dictionary<string, string>
    Additional output related to redundancy zones stored as a serialized map of strings.
    RedundancyZonesJson string
    Additional output related to redundancy zones.
    Servers Dictionary<string, string>
    Additionaly output related to servers in the cluster stored as a serialized map of strings.
    ServersJson string
    Additionaly output related to servers in the cluster.
    UpgradeInfo Dictionary<string, string>
    Additional output related to upgrade information stored as a serialized map of strings.
    UpgradeInfoJson string
    Additional output related to upgrade information.
    Voters List<string>
    The voters in the Vault cluster.
    Namespace string
    FailureTolerance int
    How many nodes could fail before the cluster becomes unhealthy.
    Healthy bool
    Cluster health status.
    Id string
    The provider-assigned unique ID for this managed resource.
    Leader string
    The current leader of Vault.
    OptimisticFailureTolerance int
    The cluster-level optimistic failure tolerance.
    RedundancyZones map[string]string
    Additional output related to redundancy zones stored as a serialized map of strings.
    RedundancyZonesJson string
    Additional output related to redundancy zones.
    Servers map[string]string
    Additionaly output related to servers in the cluster stored as a serialized map of strings.
    ServersJson string
    Additionaly output related to servers in the cluster.
    UpgradeInfo map[string]string
    Additional output related to upgrade information stored as a serialized map of strings.
    UpgradeInfoJson string
    Additional output related to upgrade information.
    Voters []string
    The voters in the Vault cluster.
    Namespace string
    failureTolerance Integer
    How many nodes could fail before the cluster becomes unhealthy.
    healthy Boolean
    Cluster health status.
    id String
    The provider-assigned unique ID for this managed resource.
    leader String
    The current leader of Vault.
    optimisticFailureTolerance Integer
    The cluster-level optimistic failure tolerance.
    redundancyZones Map<String,String>
    Additional output related to redundancy zones stored as a serialized map of strings.
    redundancyZonesJson String
    Additional output related to redundancy zones.
    servers Map<String,String>
    Additionaly output related to servers in the cluster stored as a serialized map of strings.
    serversJson String
    Additionaly output related to servers in the cluster.
    upgradeInfo Map<String,String>
    Additional output related to upgrade information stored as a serialized map of strings.
    upgradeInfoJson String
    Additional output related to upgrade information.
    voters List<String>
    The voters in the Vault cluster.
    namespace String
    failureTolerance number
    How many nodes could fail before the cluster becomes unhealthy.
    healthy boolean
    Cluster health status.
    id string
    The provider-assigned unique ID for this managed resource.
    leader string
    The current leader of Vault.
    optimisticFailureTolerance number
    The cluster-level optimistic failure tolerance.
    redundancyZones {[key: string]: string}
    Additional output related to redundancy zones stored as a serialized map of strings.
    redundancyZonesJson string
    Additional output related to redundancy zones.
    servers {[key: string]: string}
    Additionaly output related to servers in the cluster stored as a serialized map of strings.
    serversJson string
    Additionaly output related to servers in the cluster.
    upgradeInfo {[key: string]: string}
    Additional output related to upgrade information stored as a serialized map of strings.
    upgradeInfoJson string
    Additional output related to upgrade information.
    voters string[]
    The voters in the Vault cluster.
    namespace string
    failure_tolerance int
    How many nodes could fail before the cluster becomes unhealthy.
    healthy bool
    Cluster health status.
    id str
    The provider-assigned unique ID for this managed resource.
    leader str
    The current leader of Vault.
    optimistic_failure_tolerance int
    The cluster-level optimistic failure tolerance.
    redundancy_zones Mapping[str, str]
    Additional output related to redundancy zones stored as a serialized map of strings.
    redundancy_zones_json str
    Additional output related to redundancy zones.
    servers Mapping[str, str]
    Additionaly output related to servers in the cluster stored as a serialized map of strings.
    servers_json str
    Additionaly output related to servers in the cluster.
    upgrade_info Mapping[str, str]
    Additional output related to upgrade information stored as a serialized map of strings.
    upgrade_info_json str
    Additional output related to upgrade information.
    voters Sequence[str]
    The voters in the Vault cluster.
    namespace str
    failureTolerance Number
    How many nodes could fail before the cluster becomes unhealthy.
    healthy Boolean
    Cluster health status.
    id String
    The provider-assigned unique ID for this managed resource.
    leader String
    The current leader of Vault.
    optimisticFailureTolerance Number
    The cluster-level optimistic failure tolerance.
    redundancyZones Map<String>
    Additional output related to redundancy zones stored as a serialized map of strings.
    redundancyZonesJson String
    Additional output related to redundancy zones.
    servers Map<String>
    Additionaly output related to servers in the cluster stored as a serialized map of strings.
    serversJson String
    Additionaly output related to servers in the cluster.
    upgradeInfo Map<String>
    Additional output related to upgrade information stored as a serialized map of strings.
    upgradeInfoJson String
    Additional output related to upgrade information.
    voters List<String>
    The voters in the Vault cluster.
    namespace String

    Package Details

    Repository
    Vault pulumi/pulumi-vault
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vault Terraform Provider.
    vault logo
    HashiCorp Vault v6.4.0 published on Wednesday, Nov 20, 2024 by Pulumi