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/pubsub/lite_subscriptions/seek.yaml
release_tracks: [ALPHA, BETA, GA]
help_text:
  brief: Seek a Pub/Sub Lite subscription.
  description: |
    Initiate an out-of-band seek operation for a Pub/Sub Lite subscription to a specified target,
    which may be timestamps or named locations within the message backlog.

    The seek operation will complete once subscriber clients react to the seek for all partitions of
    the topic. Note that the seek operation will not complete until subscribers are online. It may
    take some time (usually within 30 seconds) for the seek to propagate if subscribers are online.
    Use the --async flag if it's not necessary to wait for completion.
  examples: |
    To seek a Pub/Sub Lite subscription to the beginning of the message backlog, run:

        $ {command} mysubscription \
            --location=us-central1-a \
            --starting-offset=beginning

    To seek a Pub/Sub Lite subscription to a publish time without waiting for the operation to
    complete, run:

        $ {command} mysubscription \
            --location=us-central1-a \
            --publish-time="2021-01-01T12:00:00Z"
            --async

request:
  collection: pubsublite.admin.projects.locations.subscriptions
  method: seek
  modify_request_hooks:
  - googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest
  - googlecloudsdk.command_lib.pubsub.lite_util:SetSeekTarget

async:
  collection: pubsublite.admin.projects.locations.operations
  # The response does not contain a resource. Print operation metadata instead.
  extract_resource_result: false

arguments:
  resource:
    help_text: Subscription to seek.
    spec: !REF googlecloudsdk.command_lib.pubsub.resources:lite_subscription

  params:
  - group:
      mutex: true
      required: true
      params:
      - _REF_: googlecloudsdk.command_lib.pubsub.flags:starting-offset
      - _REF_: googlecloudsdk.command_lib.pubsub.flags:publish-time
      - _REF_: googlecloudsdk.command_lib.pubsub.flags:event-time