Skip to content

Pub/Sub subscription push endpoint #1744

Closed

Description

@arbesfeld

Any consideration to have this API implemented?

gcloud alpha pubsub topics create [your-topic-name]
gcloud alpha pubsub subscriptions create [your-subscription-name] \
--topic [your-topic-name] \
--push-endpoint \
https://[your-app-id].appspot.com/pubsub/push?token=[your-token] \
--ack-deadline 30

Activity

  1. jgeewax commented on Oct 24, 2016

    @jgeewax
    Contributor

    Hm - seems like you can't set a push-endpoint for a subscription (at least according to our docs: https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.43.0/pubsub/topic?method=subscribe)

    We should probably allow this even though it wouldn't be a typical subscription you can listen on (since the requests will be going to the endpoint required)

  2. stephenplusplus commented on Oct 24, 2016

    @stephenplusplus
    Contributor

    Yes, this is a case of poor docs on our part. You can indeed get the push endpoint through:

    var topic = pubsub.topic('[your-topic-name]')
    
    topic.subscribe('[your-subscription-name]', {
      ackDeadlineSeconds: 30,
      pushConfig: {
        pushEndpoint: 'https://[your-app-id].appspot.com/pubsub/push?token=[your-token]'
      }
    }, function (err, subscription) {})

    Please let me know if that works!

  3. arbesfeld commented on Oct 24, 2016

    @arbesfeld
    ContributorAuthor

    This works - thanks :)

  4. prgtsrivastava commented on Nov 24, 2021

    @prgtsrivastava

    I have a requirement of one topic and many push subscription.
    Do every Subscriber have their own end points?

  5. added a commit that references this issue on Mar 11, 2026
    f308b8f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions