Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How To Set Custom VM Lease Using CLI
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
- Set expiry lease on the VM using CLI
Environment
- Platform9 Managed OpenStack - v4.0 and Higher
- Nova
- Mors
Procedure
Currently we do not have an option to increase the VM lease using OpenStack CLI, run the below listed commands to extend the lease of VM.
# TOKEN=`openstack token issue -c id -f value` [< this command will provide authentication token# curl -X POST -H "X-Auth-Token:$TOKEN" -H "Content-type: application/json" https://<HOST_URL]/mors/v1/tenant/[tenant_UUID]/instance/[instance_uuid] -d '{"instance_uuid":"[instance_uuid]","expiry": "[date_time]"}'{ "success": true}VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Unable to start pf9-neutron-ovs-agent on the NodeDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message