I am following this guide for deploying an API to the Google Cloud: https://cloud.google.com/endpoints/docs/quickstart-compute-engine. I successfully entered the command: "gcloud beta service-management deploy swagger.yaml", for deploying the sample API. I then deleted the service by mistake. When I try to deploy the sample API again I get this message:
"ERROR: (gcloud.beta.service-management.deploy) FAILED_PRECONDITION: Service exergo-143912.appspot.com has been deleted and will be purged after 30 days. To reuse this service, please undelete the service following https://cloud.google.com/service-management/create-delete."
I followed the instructions given on: https://cloud.google.com/service-management/create-delete for restoring the service. I used following command: "curl -d '{}' https://servicemanagement.googleapis.com/v1/services/exergo-143912.appspot.com:undelete". However I get the following error message:
{ "error": { "code": 403, "message": "The request cannot be identified with a client project. Please pass a valid API key with the request.", "status": "PERMISSION_DENIED" } }
Any help would be much appreciated. Thanks