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/current/lib/surface/redis/clusters/remove_cluster_endpoints.yaml
- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: |
      Remove existing Memorystore cluster endpoints.
    description: |
      To remove one cluster endpoint from an existing Redis cluster, two PSC connections MUST be removed as a pair: one to the Redis cluster's discovery service attachment and the other to its additional service attachment.

      Multiple cluster endpoints COULD be removed simultaneously.

      This command can fail for the following reasons:
        * The cluster specified does not exist.
        * Some connections in the to be removed list do not exist.
    examples: |
      To remove an endpoint from redis cluster, run:

        $ {command} my-redis-cluster remove-cluster-endpoints --cluster-endpoint='["psc-connection":[{"psc-connection-id":"$PSC_CONNECTION_ID"},{$ADDITIONAL_PSC_CONNECTION}]]' --cluster_endpoint=$ADDITIONAL_CLUSTER_ENDPOINT
        $PSCConnectionID SHOULD be extracted from forwarding rules. E.g. 75311697652483351

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.redis.resources:cluster
      help_text: |
        Arguments and flags that specify the Memorystore Redis cluster you want to update.
    params:
    - arg_name: cluster-endpoint
      api_field: cluster.clusterEndpoints
      repeated: true
      required: true
      help_text: |
        Resource details of a redis cluster endpoint
      type: arg_object
      spec:
      - api_field: connections
        json_name: psc-connection
        type: arg_object
        spec:
        - api_field: pscConnection.pscConnectionId
          json_name: psc-connection-id

  async:
    collection: redis.projects.locations.operations

  request:
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta1
    GA:
      api_version: v1
    modify_request_hooks:
    - googlecloudsdk.command_lib.redis.psc_update_util:RemoveClusterEndpoints
    collection: redis.projects.locations.clusters
    method: patch