2016-07-05 157 views
3

我正在关注如何创建一个简单的helloWorld函数并将其部署到谷歌云上的谷歌教程。我的机器是Windows 7 - 64位。 我下面这个链接:https://cloud.google.com/functions/docs/tutorials/http谷歌云功能

However I am facing few issues here: 
1. Before You Begin -> Enable the API: getting the following error: "You have no permissions to use requested API" 

2. Install the Cloud SDK: When I run the downloaded installer, following error comes: "Unzip failed: Error opening ZIP file" 
I however installed SDK from another link: 
https://cloud.google.com/sdk/downloads#versioned 

3. Unable to install alpha component. Used this command: 
gcloud components install alpha 

4. Deploying the function: 
ERROR: (gcloud.alpha.functions.deploy) ResponseError: status=[403], code=[Forbid 
den], message=[Cannot access Google Cloud Functions API in project gcf-project-1 
] 

If anybody knows the solution, please help. 

Thanks, 
Robin 

回答

0

谷歌云功能目前为Alpha,这意味着它只能是白名单。您收到此错误是因为您的帐户未列入白名单。您需要注册才能访问Alpha,您可以这样做here

+1

是否需要一段时间,一旦签署了白名单以访问阿尔法,还是应该立即发生的呢? –

7

它可能是愚蠢的,但一定要启用云功能API中的gcloud仪表板网站上的项目设置。

enter image description here