osc compute server set294
Updates the editable attributes of an existing server.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Usage: osc compute server set294 [OPTIONS] <ID>
Arguments:
<ID>
— id parameter for /v2.1/servers/{id} API
Options:
-
--access-ipv4 <ACCESS_IPV4>
— IPv4 address that should be used to access this server -
--access-ipv6 <ACCESS_IPV6>
— IPv6 address that should be used to access this server -
--description <DESCRIPTION>
— A free form description of the server. Limited to 255 characters in length. Before microversion 2.19 this was set to the server name.New in version 2.19
-
--hostname <HOSTNAME>
— The hostname to configure for the instance in the metadata service.Starting with microversion 2.94, this can be a Fully Qualified Domain Name (FQDN) of up to 255 characters in length.
Note
This information is published via the metadata service and requires application such as
cloud-init
to propagate it through to the instance.New in version 2.90
-
--name <NAME>
— The server name -
--os-dcf-disk-config <OS_DCF_DISK_CONFIG>
— Controls how the API partitions the disk when you create, rebuild, or resize servers. A server inherits theOS-DCF:diskConfig
value from the image from which it was created, and an image inherits theOS-DCF:diskConfig
value from the server from which it was created. To override the inherited setting, you can include this attribute in the request body of a server create, rebuild, or resize request. If theOS-DCF:diskConfig
value for an image isMANUAL
, you cannot create a server from that image and set itsOS-DCF:diskConfig
value toAUTO
. A valid value is:AUTO
. The API builds the server with a single partition the size of the target flavor disk. The API automatically adjusts the file system to fit the entire partition. -MANUAL
. The API builds the server by using whatever partition scheme and file system is in the source image. If the target flavor disk is larger, the API does not partition the remaining disk space.
Possible values:
auto
,manual