pull-queue

pull queues authorization from compute

心不动则不痛 提交于 2019-12-04 01:06:12
问题 I'm trying to access a pull queue from google compute with the compute OAuth token using python from oauth2client import gce from apiclient.discovery import build import httplib2 credentials = gce.AppAssertionCredentials('') http = httplib2.Http() http=credentials.authorize(http) credentials.refresh(http) service = build('taskqueue', 'v1beta2', http=http) tq=service.taskqueues() tq.get(project=MY_APPENGINE_PROJECT, taskqueue=PULL_QUEUE_NAME, getStats=True).execute() I keep getting HttpError

pull queues authorization from compute

烂漫一生 提交于 2019-12-01 03:27:57
I'm trying to access a pull queue from google compute with the compute OAuth token using python from oauth2client import gce from apiclient.discovery import build import httplib2 credentials = gce.AppAssertionCredentials('') http = httplib2.Http() http=credentials.authorize(http) credentials.refresh(http) service = build('taskqueue', 'v1beta2', http=http) tq=service.taskqueues() tq.get(project=MY_APPENGINE_PROJECT, taskqueue=PULL_QUEUE_NAME, getStats=True).execute() I keep getting HttpError 403 "you are not allowed to make this api call" please help, what configure have I missing? thanks, Shay