To edit fully qualified domain name (FQDN), use the following request:

PATCH /virtual_machines/:virtual_machine_id/fqdn.xml
PATCH /virtual_machines/:virtual_machine_id/fqdn.json

XML Request Example

curl "http://onapp.test/virtual_machines/pwwdzgmqommwhe/fqdn.xml" -d '<virtual-machine><hostname>testhostname</hostname><domain>testlocaldomain</domain></virtual-machine>' -X PATCH \
	-u user:pass \
	-H "Accept: application/xml" \
	-H "Content-Type: application/xml"

JSON Request Example

curl "http://onapp.test/virtual_machines/cqhfzofpsrqqnn/fqdn.json" -d '{"virtual_machine":{"hostname":"testhostname","domain":"testlocaldomain"}}' -X PATCH \
	-u user:pass \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"


hostname - the name of your host

domain - the name of your domain

force - true, if FQDN update is enabled in case the transaction fails with a running virtual server, otherwise, false

shutdown_type - select the shutdown type from the dropdown list (can be Gracefully shutdown or power off).

required_startup - set 1 to start up the virtual server automatically after the FQDN is updated. Otherwise, set 0