v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13203649.3 KB
admin

Creates a new subscription.

post/v1/admin/{+parent}/subscriptions

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

topicstring

The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

namestring

The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

Response

Successful response