- NAME
-
- gcloud compute health-checks update tcp - update a TCP health check
- SYNOPSIS
-
-
gcloud compute health-checks update tcpNAME[ --check-interval=CHECK_INTERVAL][ --description=DESCRIPTION][ --healthy-threshold=HEALTHY_THRESHOLD][ --proxy-header=PROXY_HEADER][ --request=REQUEST][ --response=RESPONSE][ --timeout=TIMEOUT][ --unhealthy-threshold=UNHEALTHY_THRESHOLD][ --port=PORT--port-name=PORT_NAME--use-serving-port][ GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
gcloud compute health-checks update tcpis used to update an existing TCP health check. Only arguments passed in will be updated on the health check. Other attributes will remain unaffected. - POSITIONAL ARGUMENTS
-
NAME- Name of the TCP health check to update.
- FLAGS
-
--check-interval=CHECK_INTERVAL-
How often to perform a health check for an instance. For example, specifying
will run the check every 10 seconds. See $ gcloud topic datetimes for information on duration formats.10s --description=DESCRIPTION- A textual description for the TCP health check. Pass in an empty string to unset.
--healthy-threshold=HEALTHY_THRESHOLD- The number of consecutive successful health checks before an unhealthy instance is marked as healthy.
--proxy-header=PROXY_HEADER-
The type of proxy protocol header to be sent to the backend.
PROXY_HEADERmust be one of:NONE- No proxy header is added.
PROXY_V1- Adds the header "PROXY UNKNOWN\r\n".
--request=REQUEST-
An optional string of up to 1024 characters to send once the health check TCP
connection has been established. The health checker then looks for a reply of
the string provided in the
--responsefield.If
--responseis not configured, the health checker does not wait for a response and regards the probe as successful if the TCP or SSL handshake was successful.Setting this to an empty string will clear any existing request value.
--response=RESPONSE-
An optional string of up to 1024 characters that the health checker expects to
receive from the instance. If the response is not received exactly, the health
check probe fails. If
--responseis configured, but not--request, the health checker will wait for a response anyway. Unless your system automatically sends out a message in response to a successful handshake, only configure--responseto match an explicit--request. Setting this to an empty string will clear any existing response value. --timeout=TIMEOUT-
If Google Compute Engine doesn't receive a healthy response from the instance by
the time specified by the value of this flag, the health check request is
considered a failure. For example, specifying
will cause the check to wait for 10 seconds before considering the request a failure. See $ gcloud topic datetimes for information on duration formats.10s --unhealthy-threshold=UNHEALTHY_THRESHOLD- The number of consecutive health check failures before a healthy instance is marked as unhealthy.
-
These flags configure the port that the health check monitors. If both
--portand--port-nameare specified,--porttakes precedence.--port=PORT- The TCP port number that this health check monitors.
--port-name=PORT_NAME- The port name that this health check monitors. By default, this is empty. Setting this to an empty string will clear any existing port-name value.
--use-serving-port-
If given, use the "serving port" for health checks:
- When health checking network endpoints in a Network Endpoint Group, use the port specified with each endpoint.
- When health checking other backends, use the port or named port of the backend service.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account,
--log-http, --project, --quiet, --trace-token, --user-output-enabled,
--verbosity. Run
$ gcloud helpfor details. - NOTES
-
These variants are also available:
$ gcloud alpha compute health-checks update tcp $ gcloud beta compute health-checks update tcp
- Cloud SDK
- Product Overview
- Documentation
- gcloud CLI Overview
- Quickstarts
- All Quickstarts
- For Linux
- For Debian and Ubuntu
- For Red Hat and CentOS
- For macOS
- For Windows
- How-to Guides
- All How-to Guides
- Installing the SDK
- Setting up the SDK
- Managing SDK Components
- Scripting gcloud CLI Commands
- Enabling accessibility features
- Using gcloud Interactive Shell
- APIs & Reference
- gcloud Reference
- Overview
- gcloud access-context-manager
- gcloud ai-platform
- gcloud alpha
- Overview
- access-context-manager
- ai-platform
- app
- asset
- auth
- bigtable
- billing
- bq
- builds
- cloud-shell
- composer
- compute
- Overview
- accelerator-types
- addresses
- backend-buckets
- backend-services
- commitments
- config-ssh
- connect-to-serial-port
- copy-files
- disk-types
- disks
- external-vpn-gateways
- firewall-rules
- forwarding-rules
- health-checks
- http-health-checks
- https-health-checks
- images
- instance-groups
- Overview
- describe
- get-named-ports
- list
- list-instances
- managed
- Overview
- abandon-instances
- create
- create-instance
- delete
- delete-instances
- describe
- export-autoscaling
- get-named-ports
- instance-configs
- list
- list-instances
- recreate-instances
- resize
- rolling-action
- set-autohealing
- set-autoscaling
- set-instance-template
- set-named-ports
- set-target-pools
- stop-autoscaling
- update
- update-autoscaling
- update-instances
- wait-until
- wait-until-stable
- set-named-ports
- unmanaged
- instance-templates
- instances
- Overview
- add-access-config
- add-iam-policy-binding
- add-labels
- add-metadata
- add-resource-policies
- add-tags
- attach-disk
- create
- create-with-container
- delete
- delete-access-config
- describe
- detach-disk
- get-guest-attributes
- get-iam-policy
- get-serial-port-output
- get-shielded-identity
- import
- list
- move
- network-interfaces
- os-inventory
- remove-iam-policy-binding
- remove-labels
- remove-metadata
- remove-resource-policies
- remove-tags
- reset
- resume
- set-disk-auto-delete
- set-iam-policy
- set-machine-type
- set-min-cpu-platform
- set-scheduling
- set-scopes
- simulate-maintenance-event
- start
- stop
- suspend
- tail-serial-port-output
- update
- update-access-config
- update-container
- interconnects
- machine-images
- machine-types
- network-endpoint-groups
- networks
- operations
- os-config
- os-login
- project-info
- regions
- reservations
- reset-windows-password
- resource-policies
- routers
- routes
- scp
- security-policies
- shared-vpc
- Overview
- associated-projects
- disable
- enable
- get-host-project
- list-associated-resources
- organizations
- sign-url
- snapshots
- sole-tenancy
- ssh
- ssl-certificates
- ssl-policies
- start-iap-tunnel
- target-http-proxies
- target-https-proxies
- target-instances
- target-pools
- target-ssl-proxies
- target-tcp-proxies
- target-vpn-gateways
- tpus
- url-maps
- vpn-gateways
- vpn-tunnels
- zones
- config
- container
- Overview
- binauthz
- Overview
- attestations
- attestors
- create-signature-payload
- policy
- clusters
- get-server-config
- hub
- images
- memberships
- node-pools
- operations
- subnets
- data-catalog
- dataflow
- dataproc
- Overview
- autoscaling-policies
- clusters
- jobs
- operations
- workflow-templates
- datastore
- deployment-manager
- dialogflow
- dlp
- domains
- emulators
- endpoints
- filestore
- firebase
- firestore
- functions
- genomics
- healthcare
- Overview
- annotation-stores
- datasets
- dicom-stores
- fhir-stores
- hl7v2-stores
- operations
- help
- iam
- Overview
- list-grantable-roles
- list-testable-permissions
- policies
- roles
- service-accounts
- iap
- init
- interactive
- iot
- Overview
- devices
- registries
- kms
- Overview
- asymmetric-decrypt
- asymmetric-sign
- decrypt
- encrypt
- keyrings
- keys
- locations
- logging
- ml
- ml-engine
- monitoring
- organizations
- projects
- pubsub
- Overview
- snapshots
- subscriptions
- topics
- redis
- remote-build-execution
- resource-manager
- resources
- run
- scc
- scheduler
- search-help
- services
- source
- spanner
- Overview
- databases
- instance-configs
- instances
- operations
- rows
- sql
- survey
- tasks
- web-security-scanner
- gcloud app
- gcloud asset
- gcloud auth
- gcloud beta
- Overview
- access-context-manager
- ai-platform
- app
- Overview
- browse
- create
- deploy
- describe
- domain-mappings
- firewall-rules
- gen-config
- instances
- logs
- migrate-config
- open-console
- operations
- regions
- repair
- services
- ssl-certificates
- update
- versions
- asset
- auth
- bigtable
- billing
- builds
- composer
- compute
- Overview
- accelerator-types
- addresses
- backend-buckets
- backend-services
- commitments
- config-ssh
- connect-to-serial-port
- copy-files
- disk-types
- disks
- external-vpn-gateways
- firewall-rules
- forwarding-rules
- health-checks
- http-health-checks
- https-health-checks
- images
- instance-groups
- Overview
- describe
- get-named-ports
- list
- list-instances
- managed
- set-named-ports
- unmanaged
- instance-templates
- instances
- Overview
- add-access-config
- add-iam-policy-binding
- add-labels
- add-metadata
- add-tags
- attach-disk
- create
- create-with-container
- delete
- delete-access-config
- describe
- detach-disk
- get-guest-attributes
- get-iam-policy
- get-serial-port-output
- get-shielded-identity
- list
- move
- network-interfaces
- os-inventory
- remove-iam-policy-binding
- remove-labels
- remove-metadata
- remove-tags
- reset
- set-disk-auto-delete
- set-iam-policy
- set-machine-type
- set-scheduling
- set-scopes
- simulate-maintenance-event
- start
- stop
- tail-serial-port-output
- update
- update-access-config
- update-container
- interconnects
- machine-types
- network-endpoint-groups
- networks
- operations
- os-login
- project-info
- regions
- reservations
- reset-windows-password
- resource-policies
- routers
- routes
- scp
- security-policies
- shared-vpc
- Overview
- associated-projects
- disable
- enable
- get-host-project
- list-associated-resources
- organizations
- sign-url
- snapshots
- sole-tenancy
- ssh
- ssl-certificates
- ssl-policies
- start-iap-tunnel
- target-http-proxies
- target-https-proxies
- target-instances
- target-pools
- target-ssl-proxies
- target-tcp-proxies
- target-vpn-gateways
- tpus
- url-maps
- vpn-gateways
- vpn-tunnels
- zones
- config
- container
- Overview
- binauthz
- Overview
- attestations
- attestors
- create-signature-payload
- policy
- clusters
- get-server-config
- images
- node-pools
- operations
- subnets
- data-catalog
- dataflow
- dataproc
- Overview
- autoscaling-policies
- clusters
- jobs
- operations
- workflow-templates
- datastore
- debug
- deployment-manager
- dns
- Overview
- dns-keys
- managed-zones
- operations
- policies
- project-info
- record-sets
- domains
- emulators
- endpoints
- error-reporting
- filestore
- firebase
- firestore
- functions
- help
- iam
- init
- interactive
- iot
- Overview
- devices
- registries
- kms
- logging
- ml
- ml-engine
- organizations
- projects
- pubsub
- Overview
- snapshots
- subscriptions
- topics
- redis
- resource-manager
- run
- runtime-config
- scheduler
- services
- source
- spanner
- Overview
- databases
- instance-configs
- instances
- operations
- rows
- sql
- tasks
- gcloud bigtable
- gcloud builds
- gcloud components
- gcloud composer
- gcloud compute
- Overview
- accelerator-types
- addresses
- backend-buckets
- backend-services
- commitments
- config-ssh
- connect-to-serial-port
- copy-files
- disk-types
- disks
- firewall-rules
- forwarding-rules
- health-checks
- http-health-checks
- https-health-checks
- images
- instance-groups
- Overview
- describe
- get-named-ports
- list
- list-instances
- managed
- set-named-ports
- unmanaged
- instance-templates
- instances
- Overview
- add-access-config
- add-iam-policy-binding
- add-labels
- add-metadata
- add-tags
- attach-disk
- create
- create-with-container
- delete
- delete-access-config
- describe
- detach-disk
- get-iam-policy
- get-serial-port-output
- get-shielded-identity
- list
- move
- network-interfaces
- remove-iam-policy-binding
- remove-labels
- remove-metadata
- remove-tags
- reset
- set-disk-auto-delete
- set-iam-policy
- set-machine-type
- set-scheduling
- set-service-account
- simulate-maintenance-event
- start
- stop
- tail-serial-port-output
- update
- update-access-config
- update-container
- interconnects
- machine-types
- network-endpoint-groups
- networks
- operations
- os-login
- project-info
- regions
- reset-windows-password
- routers
- routes
- scp
- security-policies
- shared-vpc
- Overview
- associated-projects
- disable
- enable
- get-host-project
- list-associated-resources
- organizations
- sign-url
- snapshots
- sole-tenancy
- ssh
- ssl-certificates
- ssl-policies
- target-http-proxies
- target-https-proxies
- target-instances
- target-pools
- target-ssl-proxies
- target-tcp-proxies
- target-vpn-gateways
- tpus
- url-maps
- vpn-tunnels
- zones
- gcloud config
- gcloud container
- gcloud dataflow
- gcloud dataproc
- Overview
- clusters
- jobs
- operations
- workflow-templates
- gcloud datastore
- gcloud debug
- gcloud deployment-manager
- gcloud dns
- gcloud docker
- gcloud domains
- gcloud endpoints
- gcloud feedback
- gcloud filestore
- gcloud firebase
- gcloud functions
- gcloud help
- gcloud iam
- gcloud info
- gcloud init
- gcloud iot
- Overview
- devices
- registries
- gcloud kms
- gcloud logging
- gcloud ml
- Overview
- language
- speech
- video
- vision
- gcloud ml-engine
- gcloud organizations
- gcloud projects
- gcloud pubsub
- gcloud redis
- gcloud resource-manager
- gcloud scheduler
- gcloud services
- gcloud source
- gcloud spanner
- Overview
- databases
- instance-configs
- instances
- operations
- rows
- gcloud sql
- gcloud tasks
- gcloud topic
- gcloud version
- Google Cloud Client Libraries
- Resources
- All Resources
- Release Notes
- Usage Statistics
- Support
- Getting Support


