Class HTTPHealthCheck (0.3.0)

HTTPHealthCheck(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

NameDescription
host str
The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
port int
The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
port_name str
Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
port_specification google.cloud.compute_v1.types.HTTPHealthCheck.PortSpecification
Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP health check follows behavior specified in port and portName fields.
proxy_header google.cloud.compute_v1.types.HTTPHealthCheck.ProxyHeader
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
request_path str
The request path of the HTTP health check request. The default value is /.
response str
The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.

Classes

PortSpecification

PortSpecification(value)

Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.

If not specified, HTTP health check follows behavior specified in port and portName fields.

ProxyHeader

ProxyHeader(value)

Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.