gdcloud compute health-checks create https

名称

gdcloud compute health-checks create https - 为负载均衡器创建 HTTPS 健康检查。

摘要

gdcloud compute health-checks create https HEALTH_CHECK_NAME [flags]

示例

To create a global HTTPS health check named "https-health-check", run:

    gdcloud compute health-checks create https https-health-check \
      --port=443 \
      --global

To create a zonal HTTPS health check named "https-health-check", run:

    gdcloud compute health-checks create https https-health-check \
      --port=443

可选标志

      --check-interval int        Time (in seconds) from the start of one probe to the start of the next one. (default 5)
      --global                    If set, the global health check object is created.
      --healthy-threshold int     Number of sequential probes that must succeed for the endpoint to be considered healthy. (default 2)
      --host string               Value of the host header in the HTTPS health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent.
      --port int                  Port number on which to perform the health check. (default 443)
      --request-path string       Request path of the HTTPS health check request. This field does not support query parameters. Must comply with RFC 3986. (default "/")
      --response string           Creates a content-based HTTPS health check. In addition to the required 200 status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body.
      --timeout int               Time (in seconds) to wait before claiming failure. (default 5)
      --unhealthy-threshold int   Number of sequential probes that must fail for the endpoint to be considered unhealthy. (default 2)
      --zone string               Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.

GDCLOUD 全局标志

以下标志适用于所有命令:--configuration--format--help--project--quiet

如需了解详情,请参阅 gdcloud CLI 参考概览页面。