限制对Google Cloud Endpoints中的一个API的API密钥访问权限

时间:2017-12-08 06:15:49

标签: security google-app-engine google-cloud-platform api-key google-cloud-endpoints-v2

我已使用apiKeyRequired = AnnotationBoolean.TRUE部署了Google Cloud Endpoints v2 API,以限制对具有api密钥的客户端的访问。我在Cloud平台的Credentials页面中创建了一个api密钥,我可以使用密钥访问api。enter image description here

我现在想将此API密钥提供给第三方消费者,但由于我已经使用Google Cloud Endpoints部署了多个API,因此我想让他们只访问其中一个。 我怎样才能做到这一点?

1 个答案:

答案 0 :(得分:0)

查看此article。基本上,客户应使用自己的API密钥,并且您应该通过云控制台授予对API的访问权限。