gcloud pubsub lite-subscriptions create

NAME
gcloud pubsub lite-subscriptions create - create a Pub/Sub Lite subscription
SYNOPSIS
gcloud pubsub lite-subscriptions create SUBSCRIPTION --topic=TOPIC --zone=ZONE [--delivery-requirement=DELIVERY_REQUIREMENT; default="deliver-immediately"] [GCLOUD_WIDE_FLAG]
DESCRIPTION
Create a Pub/Sub Lite subscription.
EXAMPLES
To create a Pub/Sub Lite subscription, run:
gcloud pubsub lite-subscriptions create mysubscription  --zone=us-central1-a  --topic=mytopic
POSITIONAL ARGUMENTS
SUBSCRIPTION
Subscription ID.
REQUIRED FLAGS
--topic=TOPIC
Topic ID associated with the subscription.
Location resource - Identifies the Cloud zone this command will be executed on. This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the project attribute:
  • provide the argument --zone on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project. This must be specified.
--zone=ZONE
ID of the location or fully qualified identifier for the location. To set the zone attribute:
  • provide the argument --zone on the command line.
OPTIONAL FLAGS
--delivery-requirement=DELIVERY_REQUIREMENT; default="deliver-immediately"
When this subscription should send messages to subscribers relative to messages persistence in storage. See https://cloud.google.com/pubsub/lite/docs/subscriptions#creating_lite_subscriptions for more info. DELIVERY_REQUIREMENT must be one of: deliver-after-stored, deliver-immediately.
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 help for details.

API REFERENCE
This command uses the pubsublite/v1 API. The full documentation for this API can be found at: https://cloud.google.com/pubsub/lite/docs
NOTES
These variants are also available:
gcloud alpha pubsub lite-subscriptions create
gcloud beta pubsub lite-subscriptions create