gcloud alpha endpoints services undelete - undeletes a service configuration that was previously deleted
gcloud alpha endpoints services undelete SERVICE [--async] [GCLOUD_WIDE_FLAG ...]
(ALPHA) Services that are deleted will be retained in the system for 30 days. If a deleted service is still within this retention window, it can be undeleted with this command.
Note that this means that this command will not be effective for service configurations marked for deletion more than 30 days ago.
To undelete a service named my-service, run:
$ gcloud alpha endpoints services undelete my-service
To run the same command asynchronously (non-blocking), run:
$ gcloud alpha endpoints services undelete my-service --async
- SERVICE
The name of the service to undelete.
- --async
Return immediately, without waiting for the operation in progress to complete.
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist. These variants are also available:
$ gcloud endpoints services undelete
$ gcloud beta endpoints services undelete