1

Ich folge https://cloud.google.com/endpoints/docs/quickstart-app-engineBereitstellung flexibler env App Engine

aber wenn ich laufen gcloud Service-Management-deploy openapi.yaml

ich bin schlagen to google: ERROR: (gcloud.service-Management. deploy) PERMISSION_DENIED: Nicht erlaubt, Projekteinstellungen für das Projekt zu erhalten instsmatttagger-162719

Ich bin nicht sicher, was ich tun muss, um es zu lösen.

die openapi.yml sieht aus wie

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" 
+0

vielleicht starten Sie hier: https://cloud.google.com/service-management/troubleshooting#how_do_i_fix_permission_denied_errors – zoran119

Antwort

2

sieht aus wie ich in einem anderen Konto angemeldet wurde und versuchte, an die App auf einem anderen Konto gehostet einzusetzen. eine gcloud Liste Projekte zu tun hat mir geholfen, es zu identifizieren

Verwandte Themen