@pulumi/vault
Version:
A Pulumi package for creating and managing HashiCorp Vault cloud resources.
118 lines (117 loc) • 3.58 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vault from "@pulumi/vault";
*
* export = async () => {
* const main = await vault.getRaftAutopilotState({});
* return {
* "failure-tolerance": main.failureTolerance,
* };
* }
* ```
*/
export declare function getRaftAutopilotState(args?: GetRaftAutopilotStateArgs, opts?: pulumi.InvokeOptions): Promise<GetRaftAutopilotStateResult>;
/**
* A collection of arguments for invoking getRaftAutopilotState.
*/
export interface GetRaftAutopilotStateArgs {
/**
* 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](https://www.terraform.io/docs/providers/vault/index.html#namespace).
* *Available only for Vault Enterprise*.
*/
namespace?: string;
}
/**
* A collection of values returned by getRaftAutopilotState.
*/
export interface GetRaftAutopilotStateResult {
/**
* How many nodes could fail before the cluster becomes unhealthy.
*/
readonly failureTolerance: number;
/**
* Cluster health status.
*/
readonly healthy: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The current leader of Vault.
*/
readonly leader: string;
readonly namespace?: string;
/**
* The cluster-level optimistic failure tolerance.
*/
readonly optimisticFailureTolerance: number;
/**
* Additional output related to redundancy zones stored as a serialized map of strings.
*/
readonly redundancyZones: {
[key: string]: string;
};
/**
* Additional output related to redundancy zones.
*/
readonly redundancyZonesJson: string;
/**
* Additionaly output related to servers in the cluster stored as a serialized map of strings.
*/
readonly servers: {
[key: string]: string;
};
/**
* Additionaly output related to servers in the cluster.
*/
readonly serversJson: string;
/**
* Additional output related to upgrade information stored as a serialized map of strings.
*/
readonly upgradeInfo: {
[key: string]: string;
};
/**
* Additional output related to upgrade information.
*/
readonly upgradeInfoJson: string;
/**
* The voters in the Vault cluster.
*/
readonly voters: string[];
}
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vault from "@pulumi/vault";
*
* export = async () => {
* const main = await vault.getRaftAutopilotState({});
* return {
* "failure-tolerance": main.failureTolerance,
* };
* }
* ```
*/
export declare function getRaftAutopilotStateOutput(args?: GetRaftAutopilotStateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRaftAutopilotStateResult>;
/**
* A collection of arguments for invoking getRaftAutopilotState.
*/
export interface GetRaftAutopilotStateOutputArgs {
/**
* 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](https://www.terraform.io/docs/providers/vault/index.html#namespace).
* *Available only for Vault Enterprise*.
*/
namespace?: pulumi.Input<string>;
}