Class HealthcheckState
Inheritance
System.Object
HealthcheckState
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Pulumi.Cloudflare.dll
Syntax
public sealed class HealthcheckState : ResourceArgs
Constructors
View Source
HealthcheckState()
Declaration
public HealthcheckState()
Properties
View Source
Address
The hostname or IP address of the origin server to run health checks on.
Declaration
public Input<string> Address { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
AllowInsecure
Do not validate the certificate when the health check uses HTTPS. Valid values: true or false (Default: false).
Declaration
public Input<bool> AllowInsecure { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
CheckRegions
A list of regions from which to run health checks. If not set Cloudflare will pick a default region. Valid values: WNAM, ENAM, WEU, EEU, NSAM, SSAM, OC, ME, NAF, SAF, IN, SEAS, NEAS, ALL_REGIONS.
Declaration
public InputList<string> CheckRegions { get; set; }
Property Value
View Source
ConsecutiveFails
The number of consecutive fails required from a health check before changing the health to unhealthy. (Default: 1)
Declaration
public Input<int> ConsecutiveFails { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
ConsecutiveSuccesses
The number of consecutive successes required from a health check before changing the health to healthy. (Default: 1)
Declaration
public Input<int> ConsecutiveSuccesses { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
CreatedOn
Declaration
public Input<string> CreatedOn { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Description
A human-readable description of the health check.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
ExpectedBody
A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.
Declaration
public Input<string> ExpectedBody { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
ExpectedCodes
The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check. (Default: ["200"])
Declaration
public InputList<string> ExpectedCodes { get; set; }
Property Value
View Source
FollowRedirects
Follow redirects if the origin returns a 3xx status code. Valid values: true or false (Default: false).
Declaration
public Input<bool> FollowRedirects { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
Declaration
public InputList<HealthcheckHeaderGetArgs> Headers { get; set; }
Property Value
View Source
Interval
The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. (Default: 60)
Declaration
public Input<int> Interval { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
Method
The TCP connection method to use for the health check. Valid values: connection_established (Default: connection_established).
Declaration
public Input<string> Method { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
ModifiedOn
Declaration
public Input<string> ModifiedOn { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Name
A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
NotificationEmailAddresses
A list of email addresses we want to send the notifications to.
Declaration
public InputList<string> NotificationEmailAddresses { get; set; }
Property Value
View Source
NotificationSuspended
Whether the notifications are suspended or not. Useful for maintenance periods. Valid values: true or false (Default: false).
Declaration
public Input<bool> NotificationSuspended { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
Path
The endpoint path to health check against. (Default: /)
Declaration
public Input<string> Path { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Port
Port number to connect to for the health check. Valid values are in the rage 0-65535 (Default: 80).
Declaration
public Input<int> Port { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
Retries
The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. (Default: 2)
Declaration
public Input<int> Retries { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
Suspended
If suspended, no health checks are sent to the origin. Valid values: true or false (Default: false).
Declaration
public Input<bool> Suspended { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
Timeout
The timeout (in seconds) before marking the health check as failed. (Default: 5)
Declaration
public Input<int> Timeout { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
Type
The protocol to use for the health check. Valid values: HTTP, HTTPS, TCP.
Declaration
public Input<string> Type { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
ZoneId
The DNS zone ID to which apply settings.
Declaration
public Input<string> ZoneId { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|