Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Cloud Endpoints usa Service Management para administrar tu API. Cuando implementas tu documento de OpenAPI con el comando gcloud endpoints services
deploy, el comando usa Administración de servicios a fin de crear un servicio administrado para tu API.
Si borras un servicio administrado con el comando gcloud endpoints services delete, la Administración de servicios no lo borrará de inmediato. La Administración de servicios inhabilita el servicio administrado durante 30 días, lo que te permite restablecerlo si es necesario. Luego de 30 días, la Administración de servicios borra el servicio administrado de forma permanente.
Cuando el servicio administrado está inhabilitado, la Administración de servicios no permite crear otro servicio administrado con el mismo nombre.
Para restablecer un servicio administrado, haz lo siguiente:
Asegúrate de que Google Cloud CLI (gcloud) esté autorizado para acceder a tus datos y servicios en Google Cloud:
gcloudauthlogin
Restablece el servicio administrado y asígnalo al proyecto deGoogle Cloud en el que se creó en un principio. Reemplaza [SERVICE_NAME] por el nombre de tu servicio administrado.
gcloudendpointsservicesundelete[SERVICE_NAME]
Soluciona problemas
Si el comando gcloud endpoints services undelete falla con un error de permiso similar al siguiente, sigue estos pasos:
ERROR: (gcloud.endpoints.services.undelete) User [EMAIL] does not have permission to access service
Ejecuta gcloud auth login y asegúrate de seleccionar una cuenta de usuario que tenga permiso para acceder al proyecto en el que se encuentra el servicio administrado.
Verifica que tienes la función de IAM de administrador para la Administración de servicios (roles/servicemanagement.admin).
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eCloud Endpoints utilizes Service Management to oversee APIs, creating a managed service upon deployment via the \u003ccode\u003egcloud endpoints services deploy\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a managed service with \u003ccode\u003egcloud endpoints services delete\u003c/code\u003e only disables it for 30 days, allowing for potential restoration before permanent deletion.\u003c/p\u003e\n"],["\u003cp\u003eDuring the 30-day disabled period, Service Management prevents the creation of another managed service with the same name.\u003c/p\u003e\n"],["\u003cp\u003eManaged services can be restored during this period using the \u003ccode\u003egcloud endpoints services undelete [SERVICE_NAME]\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eIf the undelete command fails due to permission issues, ensure you've logged in with an account that has the required permissions and has the Service Management Administrator role.\u003c/p\u003e\n"]]],[],null,["# Restoring a managed service\n\n\u003cbr /\u003e\n\nCloud Endpoints uses Service Management to manage your API. When\nyou deployed your OpenAPI document by using the `gcloud endpoints services\ndeploy` command, the command used Service Management to create a\nmanaged service for your API.\n\nIf you deleted a managed service by using the `gcloud endpoints services delete`\ncommand, Service Management doesn't immediately delete the managed\nservice. Service Management disables the managed service for 30 days,\nwhich allows you time to restore it if you need to. After 30 days,\nService Management permanently deletes the managed service.\n\nWhile the managed service is in the disabled state, Service Management\ndoesn't allow the creation of another managed service with the same name.\n\nTo restore a managed service:\n\n1. Make sure that the Google Cloud CLI (`gcloud`) is authorized to access your data\n and services on Google Cloud:\n\n gcloud auth login\n\n2. Restore the managed service and assign it to the\n Google Cloud project that it was originally created in. Replace\n `[SERVICE_NAME]` with the name of your managed service.\n\n gcloud endpoints services undelete [SERVICE_NAME]\n\nTroubleshooting\n---------------\n\nIf the `gcloud endpoints services undelete` command fails with a permission\nerror similar to: \n\n```\nERROR: (gcloud.endpoints.services.undelete) User [EMAIL] does not have permission to access service\n```\n\n\u003cbr /\u003e\n\n- Run `gcloud auth login` and make sure to choose a user account that has\n permission to access the project that the managed service is in.\n\n- Make sure you have been granted the Service Management Administrator IAM role\n (`roles/servicemanagement.admin`).\n\nWhat's next\n-----------\n\n- [Roles that control access to services](/endpoints/docs/frameworks/api-access-overview#roles_that_control_access_to_services).\n\n- [Granting, changing, and revoking access to resources](/iam/docs/granting-changing-revoking-access#grant_access).\n\n- See the\n [`gcloud` reference](/sdk/gcloud/reference)\n for more information on the `gcloud` commands used on this page."]]