【问题标题】:deploying to google app engine flexible env部署到谷歌应用引擎灵活的环境
【发布时间】:2017-03-26 22:06:12
【问题描述】:

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

但是当我跑步时 gcloud service-management 部署 openapi.yaml

我正在打: 错误: (gcloud.service-management.deploy) PERMISSION_DENIED: Not allowed to get project settings for project instasmarttagger-162719

我不确定我必须做些什么来解决它。

openapi.yml 看起来像

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"

【问题讨论】:

标签: google-app-engine google-cloud-endpoints app-engine-flexible


【解决方案1】:

我好像登录了另一个帐户,并试图部署到另一个帐户上托管的应用程序。做一个 gcloud list projects 帮助我识别它

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-08-01
    • 2021-04-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-02
    • 2019-08-02
    • 1970-01-01
    相关资源
    最近更新 更多