admin
Creates a new subscription.
post/v1/admin/{+parent}/subscriptions
Request
- Base URL: https://pubsublite.googleapis.com
- URL: https://pubsublite.googleapis.com/v1/admin/{+parent}/subscriptions
- Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)
Path parameters
parentstring required
Required. The parent location in which to create the subscription. Structured like projects/{project_number}/locations/{location}.
Query parameters
skipBacklogboolean
If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
subscriptionIdstring
Required. The ID to use for the subscription, which will become the final component of the subscription's name. This value is structured like: my-sub-name.
Request body
Response
Successful response
Changes
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status
- breaking