HTTPHealthCheck(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Attributes
Name | Description |
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. This field is a member of oneof _ _host .
|
port |
int
The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535. This field is a member of oneof _ _port .
|
port_name |
str
Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. This field is a member of oneof _ _port_name .
|
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. This field is a member of oneof _ _port_specification .
|
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. This field is a member of oneof _ _proxy_header .
|
request_path |
str
The request path of the HTTP health check request. The default value is /. This field is a member of oneof _ _request_path .
|
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. This field is a member of oneof _ _response .
|
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.