GetAutopilotHealth
The consul..getAutopilotHealth data source returns
autopilot health information
about the current Consul cluster.
Example Usage
using Pulumi;
using Consul = Pulumi.Consul;
class MyStack : Stack
{
public MyStack()
{
var read = Output.Create(Consul.GetAutopilotHealth.InvokeAsync());
this.Health = read.Apply(read => read.Healthy);
}
[Output("health")]
public Output<string> Health { get; set; }
}
Coming soon!
import pulumi
import pulumi_consul as consul
read = consul.get_autopilot_health()
pulumi.export("health", read.healthy)import * as pulumi from "@pulumi/pulumi";
import * as consul from "@pulumi/consul";
const read = pulumi.output(consul.getAutopilotHealth({ async: true }));
export const health = read.healthy;Using GetAutopilotHealth
function getAutopilotHealth(args: GetAutopilotHealthArgs, opts?: InvokeOptions): Promise<GetAutopilotHealthResult>function get_autopilot_health(datacenter=None, opts=None)func GetAutopilotHealth(ctx *Context, args *GetAutopilotHealthArgs, opts ...InvokeOption) (*GetAutopilotHealthResult, error)public static class GetAutopilotHealth {
public static Task<GetAutopilotHealthResult> InvokeAsync(GetAutopilotHealthArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Datacenter string
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- Datacenter string
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- datacenter string
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- datacenter str
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
GetAutopilotHealth Result
The following output properties are available:
- Failure
Tolerance int The number of redundant healthy servers that could fail without causing an outage
- Healthy bool
Whether the server is healthy according to the current Autopilot configuration
- Id string
The provider-assigned unique ID for this managed resource.
- Servers
List<Get
Autopilot Health Server> A list of server health information. See below for details on the available information.
- Datacenter string
- Failure
Tolerance int The number of redundant healthy servers that could fail without causing an outage
- Healthy bool
Whether the server is healthy according to the current Autopilot configuration
- Id string
The provider-assigned unique ID for this managed resource.
- Servers
[]Get
Autopilot Health Server A list of server health information. See below for details on the available information.
- Datacenter string
- failure
Tolerance number The number of redundant healthy servers that could fail without causing an outage
- healthy boolean
Whether the server is healthy according to the current Autopilot configuration
- id string
The provider-assigned unique ID for this managed resource.
- servers
Get
Autopilot Health Server[] A list of server health information. See below for details on the available information.
- datacenter string
- failure_
tolerance float The number of redundant healthy servers that could fail without causing an outage
- healthy bool
Whether the server is healthy according to the current Autopilot configuration
- id str
The provider-assigned unique ID for this managed resource.
- servers
List[Get
Autopilot Health Server] A list of server health information. See below for details on the available information.
- datacenter str
Supporting Types
GetAutopilotHealthServer
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Address string
The address of the server
- Healthy bool
Whether the server is healthy according to the current Autopilot configuration
- Id string
The Raft ID of the server
- Last
Contact string The time elapsed since the server’s last contact with the leader
- Last
Index int The index of the server’s last committed Raft log entry
- Last
Term int The server’s last known Raft leader term
- Leader bool
Whether the server is currently leader
- Name string
The node name of the server
- Serf
Status string The status of the SerfHealth check of the server
- Stable
Since string The time this server has been in its current
Healthystate- Version string
The Consul version of the server
- Voter bool
Whether the server is a voting member of the Raft cluster
- Address string
The address of the server
- Healthy bool
Whether the server is healthy according to the current Autopilot configuration
- Id string
The Raft ID of the server
- Last
Contact string The time elapsed since the server’s last contact with the leader
- Last
Index int The index of the server’s last committed Raft log entry
- Last
Term int The server’s last known Raft leader term
- Leader bool
Whether the server is currently leader
- Name string
The node name of the server
- Serf
Status string The status of the SerfHealth check of the server
- Stable
Since string The time this server has been in its current
Healthystate- Version string
The Consul version of the server
- Voter bool
Whether the server is a voting member of the Raft cluster
- address string
The address of the server
- healthy boolean
Whether the server is healthy according to the current Autopilot configuration
- id string
The Raft ID of the server
- last
Contact string The time elapsed since the server’s last contact with the leader
- last
Index number The index of the server’s last committed Raft log entry
- last
Term number The server’s last known Raft leader term
- leader boolean
Whether the server is currently leader
- name string
The node name of the server
- serf
Status string The status of the SerfHealth check of the server
- stable
Since string The time this server has been in its current
Healthystate- version string
The Consul version of the server
- voter boolean
Whether the server is a voting member of the Raft cluster
- address str
The address of the server
- healthy bool
Whether the server is healthy according to the current Autopilot configuration
- id str
The Raft ID of the server
- last
Contact str The time elapsed since the server’s last contact with the leader
- last
Index float The index of the server’s last committed Raft log entry
- last
Term float The server’s last known Raft leader term
- leader bool
Whether the server is currently leader
- name str
The node name of the server
- serf
Status str The status of the SerfHealth check of the server
- stable
Since str The time this server has been in its current
Healthystate- version str
The Consul version of the server
- voter bool
Whether the server is a voting member of the Raft cluster
Package Details
- Repository
- https://github.com/pulumi/pulumi-consul
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
consulTerraform Provider.