SetVmHostname
Sets the hostname of a VM instance. For
example,
SetVmHostname uuid=108af59a0f4e4d6cb838a5591db1016a hostname=vm2.zstack.org
Note: ZStack Cloud configures the hostname of a VM instance through
the DHCP server. If the VM instance has its own static hostname, the hostname configured
through this operation does not take effect.Parameters
| Name | Description | Optional | Valid Value | Starting Version |
|---|---|---|---|---|
| uuid | The VM instance UUID. | 0.6 | ||
| hostname | The hostname, which must conform to the RFC 1123 specification. | 0.6 | ||
| userTags | The user tags. For more information, see CreateUserTag. The resource type is VmInstanceVO. | Yes | 0.6 | |
| systemTags | The system tags. For more information, see CreateSystemTag. The resource type is VmInstanceVO. | Yes | 0.6 | |
| timeout | Yes |