New-VsanHealthCheckThreshold Command | Vmware PowerCLI Reference

New-VsanHealthCheckThreshold

This cmdlet creates a vSAN health check threshold object locally. This cmdlet is used to set a capacity threshold in Set-VsanClusterConfiguration.

Syntax

New-VsanHealthCheckThreshold
-Enabled < Boolean >
-RedValue < Int64 >
-YellowValue < Int64 >
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Enabled Boolean named
Specifies whether the health check threshold is enabled.
required
RedValue Int64 named
Specifies the red line value, which is a percentage ranging from 0 to 100.
required
Target VsanHealthCheckThresholdTarget named
Specifies the target, on which you want to set a health check threshold. The possible values are VsanDatastore and VsanDirectDatastore.
required
YellowValue Int64 named
Specifies the yellow line value, which is a percentage ranging from 0 to 100.

Output

VMware.VimAutomation.Storage.Types.V1.Vsan.VsanHealthCheckThreshold

Examples

Example 1

New-VsanHealthCheckThreshold -Enabled 1 -YellowValue 95 -RedValue 99 -Target VsanDatastore

Creates a vSAN health check threshold object locally with 95 yellow value, 99 red value, and VsanDatastore as the target.

Example 2

New-VsanHealthCheckThreshold -Enabled 1 -YellowValue 90 -RedValue 99 -Target VsanDirectDatastore

Creates a vSAN health check threshold object locally with 90 yellow value, 99 red value, and VsanDirectDatastore as the target.

Related Commands

VsanHCIMeshDatastore

This cmdlet retrieves vSAN HCI Mesh datastores based on the specified filters.

VsanHCIMeshDatastoreSource

This cmdlet retrieves vSAN HCI Mesh datastore sources based on the specified filters.

This cmdlet creates a new vSAN HCI Mesh datastore source for the local vCenter Server from a remote vCenter Server.

This cmdlet removes a vSAN HCI Mesh datastore source with the specified information.

VsanHclDatabase

This cmdlet updates the vSAN hardware compatibility list (HCL) database.

VsanHealthCheckThreshold

This cmdlet creates a vSAN health check threshold object locally. This cmdlet is used to set a capacity threshold in Set-VsanClusterConfiguration.