Table of Contents
Table of Contents | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Introduction
Virtual Machine Retirement Requests provide a workflow to manage the retirement and deletion of virtual machines, along with automated messages before the retirement date.
...
This guide will walk you through the process of setting up a retirement request and managing the retirement process.
Setting Up a Retirement Request
You can set up a retirement request using the compute vm set <id> retire mk
command. This command allows you to specify the retirement type and value.
Setting a Retirement Date
New Virtual Machine
To set a retirement date upon deployment, use the following command:
...
Replace <deployment-method>
with either shell
, from-clib
, from-clone
, from-template
, <type>
with timedelta
or datetime
, <value>
with the value for the retirement type, and <days>
with the number of days before retirement to notify.
Existent Virtual Machine
To set a retirement date, use the following command:
...
If you don't specify a warning period, the command will prompt for confirmation before decommissioning the instance.
Verifying the Retirement Request
To verify the retirement request, use the following command:
...
This command will display information about the retirement request, including the status, retirement date, and warning period.
Confirming or Canceling the Retirement Request
To confirm or cancel the retirement request, use the following commands:
...
Replace <id>
with the ID of the retirement request.
Example Scenario
To retire an instance 6 months from now and have a notification 15 days before, use the following command:
...
By following these steps, you can manage the retirement and deletion of virtual machines using Virtual Machine Retirement Requests.
\uD83D\uDCCB Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|