gcloud alpha pubsub lite-subscriptions update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha pubsub lite-subscriptions update - update a Pub/Sub Lite subscription
- SYNOPSIS
gcloud alpha pubsub lite-subscriptions update(SUBSCRIPTION:--location=LOCATION)(--delivery-requirement=DELIVERY_REQUIREMENT--export-dead-letter-topic=EXPORT_DEAD_LETTER_TOPIC--export-desired-state=EXPORT_DESIRED_STATE--export-pubsub-topic=EXPORT_PUBSUB_TOPIC)[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Update a Pub/Sub Lite subscription.- EXAMPLES
- To update a Pub/Sub Lite subscription, run:
gcloudalphapubsublite-subscriptionsupdatemysubscription--location=us-central1-a--delivery-requirement=DELIVER_IMMEDIATELY - POSITIONAL ARGUMENTS
- Subscription resource - Subscription to update. The arguments in this group canbe used to specify the attributes of this resource. (NOTE) Some attributes arenot given arguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
subscriptionon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
SUBSCRIPTION- ID of the subscription or fully qualified identifier for the subscription.
To set the
subscriptionattribute:- provide the argument
subscriptionon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--location=LOCATION- ID of the location of the Pub/Sub Lite resource.To set the
locationattribute:- provide the argument
subscriptionon the command line with a fullyspecified name; - provide the argument
--locationon the command line; - provide the argument
--zoneon the command line.
- provide the argument
- provide the argument
- Subscription resource - Subscription to update. The arguments in this group canbe used to specify the attributes of this resource. (NOTE) Some attributes arenot given arguments in this group but can be set in other ways.
- REQUIRED FLAGS
- At least one of these must be specified:
--delivery-requirement=DELIVERY_REQUIREMENT- When this subscription should send messages to subscribers relative to messagespersistence in storage. Seehttps://cloud.google.com/pubsub/lite/docs/subscriptions#creating_lite_subscriptionsfor more info.
DELIVERY_REQUIREMENTmust be one of:deliver-after-stored,deliver-immediately. --export-dead-letter-topic=EXPORT_DEAD_LETTER_TOPIC- The name of the Pub/Sub Lite topic to write messages that cannot be exported.Must be in the same project and location as the subscription to be created. Notethat this is a Lite topic.
--export-desired-state=EXPORT_DESIRED_STATE- The desired state of the export. Process messages by setting the value to ACTIVEor pause message processing by setting the value to PAUSED.
EXPORT_DESIRED_STATEmust be one of:active,paused. --export-pubsub-topic=EXPORT_PUBSUB_TOPIC- The name of the destination Pub/Sub topic to which messages are exported. Mustbe the topic's fully specified path if it is not in the same project as thesubscription to be created.
- At least one of these must be specified:
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--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. - API REFERENCE
- This command uses the
pubsublite/v1API. The full documentation forthis API can be found at:https://cloud.google.com/pubsub/lite/docs - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudpubsublite-subscriptionsupdategcloudbetapubsublite-subscriptionsupdate
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.