首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >部署到google应用引擎灵活环境

部署到google应用引擎灵活环境
EN

Stack Overflow用户
提问于 2017-03-27 06:06:12
回答 1查看 886关注 0票数 2

我在关注https://cloud.google.com/endpoints/docs/quickstart-app-engine

但是当我运行gcloud服务-管理部署openapi.yaml时

我正在点击:错误:(gcloud.service-management.deploy) PERMISSION_DENIED:不允许获取项目的项目设置instasmarttagger-162719

我不确定我必须做些什么来解决这个问题。

openapi.yml看起来像这样

代码语言:javascript
复制
VSKUMAR-mac:appengine vskumar$ vi openapi.yaml 

      - "application/json"
      responses:
        200:
          description: "Authenication info."
          schema:
            $ref: "#/definitions/authInfoResponse"
      x-security:
      - google_id_token:
          audiences:
          # Your OAuth2 client's Client ID must be added here. You can add
          # multiple client IDs to accept tokens from multiple clients.
          - "YOUR-CLIENT-ID"
definitions:
  echoMessage:
    properties:
      message:
        type: "string"
  authInfoResponse:
    properties:
      id:
        type: "string"
      email:
        type: "string"
# This section requires all requests to any path to require an API key.
security:
- api_key: []
securityDefinitions:
  # This section configures basic authentication with an API key.
  api_key:
    type: "apiKey"
    name: "key"
    in: "query"
  # This section configures authentication using Google API Service Accounts
  # to sign a json web token. This is mostly used for server-to-server
  # communication.
  google_jwt:
    authorizationUrl: ""
    flow: "implicit"
    type: "oauth2"
    # This must match the 'iss' field in the JWT.
    x-google-issuer: "jwt-client.endpoints.sample.google.com"
    # Update this with your service account's email address.
    x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/jwk/YOUR-SERVICE-ACCOUNT-EMAIL"
  # This section configures authentication using Google OAuth2 ID Tokens.
  # ID Tokens can be obtained using OAuth2 clients, and can be used to access
  # your API on behalf of a particular user.
  google_id_token:
    authorizationUrl: ""
    flow: "implicit"
    type: "oauth2"
    x-google-issuer: "accounts.google.com"
    x-google-jwks_uri: "https://www.googleapis.com/oauth2/v1/certs"
EN

回答 1

Stack Overflow用户

发布于 2017-03-28 03:53:29

看起来我登录到了一个不同的帐户,并尝试部署到另一个帐户托管的应用程序。做一个gcloud列表项目帮助我识别了它。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43035141

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档