Managed OpenStack
Latest
How To Set Custom VM Lease Using CLI
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}
Last updated on
Was this page helpful?
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered by
