HttpsHealthCheck
An HttpsHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTPS.
Note: gcp.compute.HttpsHealthCheck is a legacy health check. The newer gcp.compute.HealthCheck should be preferred for all uses except Network Load Balancers which still require the legacy version.
To get more information about HttpsHealthCheck, see:
- API documentation
- How-to Guides
Create a HttpsHealthCheck Resource
new HttpsHealthCheck(name: string, args?: HttpsHealthCheckArgs, opts?: CustomResourceOptions);def HttpsHealthCheck(resource_name, opts=None, check_interval_sec=None, description=None, healthy_threshold=None, host=None, name=None, port=None, project=None, request_path=None, timeout_sec=None, unhealthy_threshold=None, __props__=None);func NewHttpsHealthCheck(ctx *Context, name string, args *HttpsHealthCheckArgs, opts ...ResourceOption) (*HttpsHealthCheck, error)public HttpsHealthCheck(string name, HttpsHealthCheckArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args HttpsHealthCheckArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HttpsHealthCheckArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HttpsHealthCheckArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
HttpsHealthCheck Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The HttpsHealthCheck resource accepts the following input properties:
- Check
Interval intSec How often (in seconds) to send a health check. The default value is 5 seconds.
- Description string
An optional description of this resource. Provide this property when you create the resource.
- Healthy
Threshold int A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
- Host string
The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Port int
The TCP port number for the HTTPS health check request. The default value is 80.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Request
Path string The request path of the HTTPS health check request. The default value is /.
- Timeout
Sec int How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
- Unhealthy
Threshold int A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
- Check
Interval intSec How often (in seconds) to send a health check. The default value is 5 seconds.
- Description string
An optional description of this resource. Provide this property when you create the resource.
- Healthy
Threshold int A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
- Host string
The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Port int
The TCP port number for the HTTPS health check request. The default value is 80.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Request
Path string The request path of the HTTPS health check request. The default value is /.
- Timeout
Sec int How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
- Unhealthy
Threshold int A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
- check
Interval numberSec How often (in seconds) to send a health check. The default value is 5 seconds.
- description string
An optional description of this resource. Provide this property when you create the resource.
- healthy
Threshold number A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
- host string
The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
- name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- port number
The TCP port number for the HTTPS health check request. The default value is 80.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- request
Path string The request path of the HTTPS health check request. The default value is /.
- timeout
Sec number How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
- unhealthy
Threshold number A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
- check_
interval_ floatsec How often (in seconds) to send a health check. The default value is 5 seconds.
- description str
An optional description of this resource. Provide this property when you create the resource.
- healthy_
threshold float A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
- host str
The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
- name str
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- port float
The TCP port number for the HTTPS health check request. The default value is 80.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- request_
path str The request path of the HTTPS health check request. The default value is /.
- timeout_
sec float How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
- unhealthy_
threshold float A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
Outputs
All input properties are implicitly available as output properties. Additionally, the HttpsHealthCheck resource produces the following output properties:
Look up an Existing HttpsHealthCheck Resource
Get an existing HttpsHealthCheck resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HttpsHealthCheckState, opts?: CustomResourceOptions): HttpsHealthCheckstatic get(resource_name, id, opts=None, check_interval_sec=None, creation_timestamp=None, description=None, healthy_threshold=None, host=None, name=None, port=None, project=None, request_path=None, self_link=None, timeout_sec=None, unhealthy_threshold=None, __props__=None);func GetHttpsHealthCheck(ctx *Context, name string, id IDInput, state *HttpsHealthCheckState, opts ...ResourceOption) (*HttpsHealthCheck, error)public static HttpsHealthCheck Get(string name, Input<string> id, HttpsHealthCheckState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Check
Interval intSec How often (in seconds) to send a health check. The default value is 5 seconds.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional description of this resource. Provide this property when you create the resource.
- Healthy
Threshold int A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
- Host string
The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Port int
The TCP port number for the HTTPS health check request. The default value is 80.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Request
Path string The request path of the HTTPS health check request. The default value is /.
- Self
Link string The URI of the created resource.
- Timeout
Sec int How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
- Unhealthy
Threshold int A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
- Check
Interval intSec How often (in seconds) to send a health check. The default value is 5 seconds.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional description of this resource. Provide this property when you create the resource.
- Healthy
Threshold int A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
- Host string
The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Port int
The TCP port number for the HTTPS health check request. The default value is 80.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Request
Path string The request path of the HTTPS health check request. The default value is /.
- Self
Link string The URI of the created resource.
- Timeout
Sec int How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
- Unhealthy
Threshold int A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
- check
Interval numberSec How often (in seconds) to send a health check. The default value is 5 seconds.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- description string
An optional description of this resource. Provide this property when you create the resource.
- healthy
Threshold number A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
- host string
The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
- name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- port number
The TCP port number for the HTTPS health check request. The default value is 80.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- request
Path string The request path of the HTTPS health check request. The default value is /.
- self
Link string The URI of the created resource.
- timeout
Sec number How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
- unhealthy
Threshold number A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
- check_
interval_ floatsec How often (in seconds) to send a health check. The default value is 5 seconds.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- description str
An optional description of this resource. Provide this property when you create the resource.
- healthy_
threshold float A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
- host str
The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
- name str
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- port float
The TCP port number for the HTTPS health check request. The default value is 80.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- request_
path str The request path of the HTTPS health check request. The default value is /.
- self_
link str The URI of the created resource.
- timeout_
sec float How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
- unhealthy_
threshold float A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.