Annulla o elimina richieste di prenotazione futura
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo documento descrive come annullare o eliminare le richieste di prenotazione future.
Prima che una richiesta di prenotazione futura raggiunga il suo
orario di blocco,
puoi impedire a Compute Engine di eseguire il provisioning delle risorse richieste
tramite una delle seguenti operazioni:
Annulla la richiesta di prenotazione futura. Questa operazione è utile per mantenere
la richiesta annullata come riferimento quando crei nuove richieste. Tuttavia,
se annulli una richiesta di prenotazione futura, finché non la elimini non potrai creare nuove richieste
con proprietà corrispondenti a quella annullata nel tuo progetto o
nei progetti con cui la richiesta è condivisa. Per ulteriori informazioni, consulta
Restrizioni di creazione.
Elimina la richiesta di prenotazione futura. Questa opzione è utile quando non hai più
bisogno della richiesta. Se elimini una richiesta di prenotazione futura, questa viene eliminata
definitivamente e vengono rimosse eventuali limitazioni alla creazione di nuove richieste.
Una volta terminato il periodo di una prenotazione futura evasa,
puoi eliminarla per rimuovere eventuali limitazioni alla creazione di nuove richieste. Tuttavia,
l'eliminazione di una prenotazione futura evasa non comporta l'eliminazione delle prenotazioni
create automaticamente. Per eliminare una prenotazione creata automaticamente al termine del relativo
periodo di prenotazione, consulta Elimina le prenotazioni.
Prima di iniziare
Se non l'hai ancora fatto, configura l'autenticazione.
L'autenticazione è il processo mediante il quale la tua identità viene verificata per l'accesso a servizi e API di Google Cloud .
Per eseguire codice o esempi da un ambiente di sviluppo locale, puoi autenticarti su Compute Engine selezionando una delle seguenti opzioni:
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and
APIs, you don't need to set up authentication.
gcloud
Install the Google Cloud CLI.
After installation,
initialize the Google Cloud CLI by running the following command:
Per ottenere le autorizzazioni
necessarie per annullare o eliminare le richieste di prenotazione futura,
chiedi all'amministratore di concederti il
ruolo IAM Compute Future Reservation Admin (roles/compute.futureReservationAdmin) nel progetto.
Per saperne di più sulla concessione dei ruoli, consulta Gestisci l'accesso a progetti, cartelle e organizzazioni.
Questo ruolo predefinito contiene
le autorizzazioni necessarie per annullare o eliminare le richieste di prenotazione future. Per vedere quali sono esattamente le autorizzazioni richieste, espandi la sezione Autorizzazioni obbligatorie:
Autorizzazioni obbligatorie
Per annullare o eliminare le richieste di prenotazione futura sono necessarie le seguenti autorizzazioni:
Per annullare una prenotazione futura:
compute.futureReservations.cancel
sul progetto
Per eliminare una prenotazione futura:
compute.futureReservations.delete
sul progetto
POST https://compute.googleapis.com/compute/beta/projects/PROJECT_ID/zones/ZONE/futureReservations/FUTURE_RESERVATION_NAME/cancel
Sostituisci quanto segue:
PROJECT_ID: l'ID del progetto in cui si trova la richiesta
di prenotazione futura
ZONE: la zona in cui si trova la richiesta
di prenotazione futura
FUTURE_RESERVATION_NAME: il nome della richiesta
di prenotazione futura
Elimina le richieste di prenotazione future
Puoi eliminare una richiesta di prenotazione futura solo nei seguenti casi:
La richiesta non ha ancora raggiunto l'orario di blocco e non è in attesa di approvazione.
La richiesta è stata evasa e il relativo periodo di prenotazione è terminato.
Per eliminare una richiesta di prenotazione futura in attesa di approvazione, devi prima
annullare la richiesta e poi eliminarla.
L'eliminazione di una prenotazione futura evasa non comporta l'eliminazione delle prenotazioni
create automaticamente. Per eliminare una prenotazione creata automaticamente al termine
del relativo periodo di prenotazione, consulta
Elimina le prenotazioni.
Per eliminare contemporaneamente più richieste di prenotazione futura, utilizza la
consoleGoogle Cloud . Altrimenti, per eliminare una singola richiesta di prenotazione futura,
seleziona una delle seguenti opzioni:
Console
Nella console Google Cloud , vai alla pagina Prenotazioni.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThis document details how to cancel or delete future reservation requests in Compute Engine before they reach their lock time, allowing you to prevent resource provisioning.\u003c/p\u003e\n"],["\u003cp\u003eCanceling a future reservation request retains the request for reference but prevents new requests with matching properties until the canceled request is deleted.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a future reservation request permanently removes the request and any associated restrictions on creating new requests.\u003c/p\u003e\n"],["\u003cp\u003eYou must have the Compute Future Reservation Admin IAM role, or custom/other roles that include the compute.futureReservations.cancel and compute.futureReservations.delete permissions to cancel or delete future reservation requests.\u003c/p\u003e\n"],["\u003cp\u003eFuture reservation requests can only be canceled if they are pending approval, have been declined, or have been approved but haven't reached their lock time; deletion is possible if the request hasn't reached lock time or if it's fulfilled and the period has ended.\u003c/p\u003e\n"]]],[],null,["# Cancel or delete future reservation requests\n\n*** ** * ** ***\n\n|\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis document describes how to cancel or delete future reservation requests.\n\nBefore a future reservation request reaches its\n[lock time](/compute/docs/instances/future-reservations-overview#lock-time),\nyou can prevent Compute Engine from provisioning the requested resources by\ndoing one of the following:\n\n- **Cancel the future reservation request** . This is useful to keep the\n canceled request for reference when creating new requests. However, a\n canceled future reservation request prevents you from creating new requests\n with properties that match the canceled request in your project, or in the\n projects that the request is shared with, until you delete it. For more\n information, see\n [Restrictions on creation](/compute/docs/instances/future-reservations-overview#restrictions-create).\n\n- **Delete the future reservation request**. This is useful when you no longer\n need the request. Deleting a future reservation request permanently\n deletes it and removes any restrictions on creating new requests.\n\nAfter a fulfilled future reservation reaches the end of its reservation period,\nyou can delete it to remove any restrictions on creating new requests. However,\ndeleting a fulfilled future reservation doesn't delete its auto-created\nreservations. To delete an auto-created reservation after its reservation period\nends, see [Delete reservations](/compute/docs/instances/reservations-delete).\n\nBefore you begin\n----------------\n\n- If you haven't already, set up [authentication](/compute/docs/authentication). Authentication verifies your identity for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:\n\n Select the tab for how you plan to use the samples on this page: \n\n ### Console\n\n\n When you use the Google Cloud console to access Google Cloud services and\n APIs, you don't need to set up authentication.\n\n ### gcloud\n\n 1.\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n After installation,\n [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command:\n\n ```bash\n gcloud init\n ```\n\n\n If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n | **Note:** If you installed the gcloud CLI previously, make sure you have the latest version by running `gcloud components update`.\n 2. [Set a default region and zone](/compute/docs/gcloud-compute#set_default_zone_and_region_in_your_local_client).\n\n ### REST\n\n\n To use the REST API samples on this page in a local development environment, you use the\n credentials you provide to the gcloud CLI.\n 1. [Install](/sdk/docs/install) the Google Cloud CLI. After installation, [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command: \n\n ```bash\n gcloud init\n ```\n 2. If you're using an external identity provider (IdP), you must first [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n\n For more information, see\n [Authenticate for using REST](/docs/authentication/rest)\n in the Google Cloud authentication documentation.\n\n### Required roles\n\n\nTo get the permissions that\nyou need to cancel or delete future reservation requests,\n\nask your administrator to grant you the\n\n\n[Compute Future Reservation Admin](/iam/docs/roles-permissions/compute#compute.futureReservationAdmin) (`roles/compute.futureReservationAdmin`)\nIAM role on the project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nThis predefined role contains\n\nthe permissions required to cancel or delete future reservation requests. To see the exact permissions that are\nrequired, expand the **Required permissions** section:\n\n\n#### Required permissions\n\nThe following permissions are required to cancel or delete future reservation requests:\n\n- To cancel a future reservation: ` compute.futureReservations.cancel` on the project\n- To delete a future reservation: ` compute.futureReservations.delete` on the project\n\n\nYou might also be able to get\nthese permissions\nwith [custom roles](/iam/docs/creating-custom-roles) or\nother [predefined roles](/iam/docs/roles-overview#predefined).\n\nCancel future reservation requests\n----------------------------------\n\nYou can only cancel a future reservation request in the following cases:\n\n- The request is pending approval or has been declined.\n\n- The request was approved, but its state hasn't changed to `PROCURING` yet.\n\nAfter you cancel a future reservation request, you can only\n[view its details](/compute/docs/instances/reservations-view#view-future-reservations)\nor\n[delete it](#delete-future-reservation).\n| **Important:** As long as a canceled request exists, it prevents you from creating new requests with properties that match the canceled requests in your project, or in any of the projects that the canceled request is shared with. To create new requests with properties that match the canceled request, [delete the canceled request](#delete-future-reservation) before creating new ones.\n\nTo cancel a future reservation request, select one of the following options: \n\n### gcloud\n\nTo cancel a future reservation request, use the\n[`gcloud beta compute future-reservations cancel` command](/sdk/gcloud/reference/beta/compute/future-reservations/cancel). \n\n gcloud beta compute future-reservations cancel \u003cvar translate=\"no\"\u003eFUTURE_RESERVATION_NAME\u003c/var\u003e \\\n --zone=\u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eFUTURE_RESERVATION_NAME\u003c/var\u003e: the name of an existing\n future reservation request.\n\n- \u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e: the zone where the future reservation request\n is located.\n\n### REST\n\nTo cancel a future reservation request, make a `POST` request to the\n[`beta.futureReservations.cancel` method](/compute/docs/reference/rest/beta/futureReservations/cancel). \n\n POST https://compute.googleapis.com/compute/beta/projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/zones/\u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e/futureReservations/\u003cvar translate=\"no\"\u003eFUTURE_RESERVATION_NAME\u003c/var\u003e/cancel\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of the project where the future\n reservation request is located.\n\n- \u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e: the zone where the future reservation request\n is located.\n\n- \u003cvar translate=\"no\"\u003eFUTURE_RESERVATION_NAME\u003c/var\u003e: the name of the future\n reservation request.\n\nDelete future reservation requests\n----------------------------------\n\nYou can only delete a future reservation request in the following cases:\n\n- The request hasn't reached its lock time yet (`PROCURING`) and isn't pending\n approval.\n\n- The request was fulfilled and its reservation period has ended.\n\nTo delete a future reservation request that is pending approval, you must\n[cancel the request](#cancel-future-reservation) before deleting it.\n\nDeleting a fulfilled future reservation doesn't delete its auto-created\nreservations. To delete an auto-created reservation after its reservation period\nends, see\n[Delete reservations](/compute/docs/instances/reservations-delete#deleting_a_reservation).\n\nTo delete multiple future reservation requests simultaneously, use the\nGoogle Cloud console. Otherwise, to delete a single future reservation request,\nselect any of the following options: \n\n### Console\n\n1. In the Google Cloud console, go to the **Reservations** page.\n\n [Go to Reservations](https://console.cloud.google.com/compute/reservations)\n2. Click the **Future reservations** tab.\n\n3. Select each future reservation request that you want to delete.\n\n4. Click delete **Delete reservation**.\n\n5. To confirm, click **Delete**.\n\n Deleting a future reservation request can take up to a minute to\n complete.\n\n### gcloud\n\nTo delete a future reservation request, use the\n[`gcloud beta compute future-reservations delete` command](/sdk/gcloud/reference/beta/compute/future-reservations/delete). \n\n gcloud beta compute future-reservations delete \u003cvar translate=\"no\"\u003eFUTURE_RESERVATION_NAME\u003c/var\u003e \\\n --zone=\u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eFUTURE_RESERVATION_NAME\u003c/var\u003e: the name of an existing\n future reservation request.\n\n- \u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e: the zone where the future reservation request\n is located.\n\n### REST\n\nTo delete a future reservation request, make a `DELETE` request to the\n[`beta.futureReservations.delete` method](/compute/docs/reference/rest/beta/futureReservations/delete). \n\n DELETE https://compute.googleapis.com/compute/beta/projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/zones/\u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e/futureReservations/\u003cvar translate=\"no\"\u003eFUTURE_RESERVATION_NAME\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of the project where the future\n reservation request is located.\n\n- \u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e: the zone where the future reservation request\n is located.\n\n- \u003cvar translate=\"no\"\u003eFUTURE_RESERVATION_NAME\u003c/var\u003e: the name of an existing\n future reservation request.\n\nWhat's next\n-----------\n\n- Learn how to [view future reservation requests](/compute/docs/instances/reservations-view#view-future-reservations)."]]