HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/lib/surface/compute/composite_health_checks/create.yaml
- release_tracks: [ALPHA, BETA]
  help_text:
    brief: "Create a composite health check."
    description: "Create a composite health check."
    examples: |
      The following command creates a new composite health check:

        $ {command} <COMPOSITE_HEALTH_CHECK_NAME> \
          --region=<REGION> \
          --health-sources=my-hs \
          --health-destination=my-fr

  request:
    ALPHA:
      api_version: alpha
    BETA:
      api_version: beta
    collection: compute.regionCompositeHealthChecks
    method: insert
    modify_request_hooks:
    - googlecloudsdk.api_lib.compute.composite_health_checks.modify_request_hooks:add_name_to_payload
    - googlecloudsdk.api_lib.compute.composite_health_checks.modify_request_hooks:parse_health_sources_create
    - googlecloudsdk.api_lib.compute.composite_health_checks.modify_request_hooks:parse_health_destination_create

  async:
    collection: compute.regionOperations
    response_name_field: selfLink
    state:
      field: status
      success_values: ['DONE']

  arguments:
    resource:
      help_text: The name of the composite health check you want to create.
      spec: !REF googlecloudsdk.command_lib.compute.resources:composite_health_check

    params:
    - arg_name: description
      api_field: compositeHealthCheck.description
      help_text: |
        A textual description of this resource.

    - arg_name: health-sources
      type: googlecloudsdk.command_lib.compute.common:ArgList:min_length=1
      api_field: compositeHealthCheck.healthSources
      help_text: |
        URLs to the HealthSource resources whose results are AND'ed. I.e. the aggregated result is
        HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10.
        Must be regional and in the same region as the CompositeHealthCheck. Can be mutated.
      required: true

    - arg_name: health-destination
      api_field: compositeHealthCheck.healthDestination
      help_text: |
        URL to the destination resource. Must be set. Must be a ForwardingRule. The ForwardingRule
        must have load balancing scheme INTERNAL or INTERNAL_MANAGED and must be regional and in the
        same region as the CompositeHealthCheck (cross-region deployment for INTERNAL_MANAGED is not
        supported). Can be mutated.
      required: true