SA and Audience in the Pubsub Subscriptions Api

252 views
Skip to first unread message

Ben Neil

unread,
Jan 29, 2020, 8:39:31 AM1/29/20
to Google Cloud Pub/Sub Discussions
This may be the wrong place to ask, but I was curious how/when the addition of 
--push-auth-service-account and --push-auth-token-audience from the gcloud cli 
will be added to the pubsub projects subscriptions api?

https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/create

Jun Lu

unread,
Jan 29, 2020, 2:58:08 PM1/29/20
to Google Cloud Pub/Sub Discussions
Hi, 

Is there any reasons that you would like to add the --push-auth-service-account and --push-auth-token-audience from the gcloud cli to the pubsub projects subscriptions api?

Ben Neil

unread,
Jan 30, 2020, 8:13:53 AM1/30/20
to Google Cloud Pub/Sub Discussions
I'm trying to use the push_endpoint from a subscription to trigger a cloud function, i wanted to use a specific service account for that push which is when i noticed i could do it via the gui and cli but not using the api like I was hoping too. 

Jun Lu

unread,
Jan 31, 2020, 10:32:04 AM1/31/20
to Google Cloud Pub/Sub Discussions
HI, 

Thanks for the information, and it looks there is a feature request of Add support for push-auth-service-account to pubsub_subscription that you can star to get further updates on the progress.  

Preston Holmes

unread,
Feb 1, 2020, 8:55:01 AM2/1/20
to Google Cloud Pub/Sub Discussions
It is in the API

https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions#PushConfig

Specifics of how are best clarified in the context of a specific language client library

Reply all
Reply to author
Forward
0 new messages