HashiCorp Vault v6.6.0 published on Thursday, Mar 13, 2025 by Pulumi
vault.getRaftAutopilotState
Explore with Pulumi AI
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)
public static Output<GetRaftAutopilotStateResult> getRaftAutopilotState(GetRaftAutopilotStateArgs args, InvokeOptions options)
fn::invoke:
  function: vault:index/getRaftAutopilotState:getRaftAutopilotState
  arguments:
    # arguments dictionaryThe following arguments are supported:
getRaftAutopilotState Result
The following output properties are available:
- Failure
Tolerance 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.
 - Optimistic
Failure intTolerance  - The cluster-level optimistic failure tolerance.
 - Redundancy
Zones Dictionary<string, string> - Additional output related to redundancy zones stored as a serialized map of strings.
 - Redundancy
Zones stringJson  - 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.
 - Servers
Json string - Additionaly output related to servers in the cluster.
 - Upgrade
Info Dictionary<string, string> - Additional output related to upgrade information stored as a serialized map of strings.
 - Upgrade
Info stringJson  - Additional output related to upgrade information.
 - Voters List<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 string
 - The provider-assigned unique ID for this managed resource.
 - Leader string
 - The current leader of Vault.
 - Optimistic
Failure intTolerance  - The cluster-level optimistic failure tolerance.
 - Redundancy
Zones map[string]string - Additional output related to redundancy zones stored as a serialized map of strings.
 - Redundancy
Zones stringJson  - 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.
 - Servers
Json string - Additionaly output related to servers in the cluster.
 - Upgrade
Info map[string]string - Additional output related to upgrade information stored as a serialized map of strings.
 - Upgrade
Info stringJson  - Additional output related to upgrade information.
 - Voters []string
 - The voters in the Vault cluster.
 - Namespace string
 
- failure
Tolerance 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.
 - optimistic
Failure IntegerTolerance  - The cluster-level optimistic failure tolerance.
 - redundancy
Zones Map<String,String> - Additional output related to redundancy zones stored as a serialized map of strings.
 - redundancy
Zones StringJson  - 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.
 - servers
Json String - Additionaly output related to servers in the cluster.
 - upgrade
Info Map<String,String> - Additional output related to upgrade information stored as a serialized map of strings.
 - upgrade
Info StringJson  - Additional output related to upgrade information.
 - voters List<String>
 - The voters in the Vault cluster.
 - namespace String
 
- failure
Tolerance 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.
 - optimistic
Failure numberTolerance  - The cluster-level optimistic failure tolerance.
 - redundancy
Zones {[key: string]: string} - Additional output related to redundancy zones stored as a serialized map of strings.
 - redundancy
Zones stringJson  - 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.
 - servers
Json string - Additionaly output related to servers in the cluster.
 - upgrade
Info {[key: string]: string} - Additional output related to upgrade information stored as a serialized map of strings.
 - upgrade
Info stringJson  - 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_ inttolerance  - 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_ strjson  - 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_ strjson  - Additional output related to upgrade information.
 - voters Sequence[str]
 - The voters in the Vault cluster.
 - namespace str
 
- failure
Tolerance 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.
 - optimistic
Failure NumberTolerance  - The cluster-level optimistic failure tolerance.
 - redundancy
Zones Map<String> - Additional output related to redundancy zones stored as a serialized map of strings.
 - redundancy
Zones StringJson  - Additional output related to redundancy zones.
 - servers Map<String>
 - Additionaly output related to servers in the cluster stored as a serialized map of strings.
 - servers
Json String - Additionaly output related to servers in the cluster.
 - upgrade
Info Map<String> - Additional output related to upgrade information stored as a serialized map of strings.
 - upgrade
Info StringJson  - 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 
vaultTerraform Provider.