Module create_257

Source
Expand description

Creates a server.

The progress of this operation depends on the location of the requested image, network I/O, host load, selected flavor, and other factors.

To check the progress of the request, make a GET /servers/{id} request. This call returns a progress attribute, which is a percentage value from 0 to 100.

The Location header returns the full URL to the newly created server and is available as a self and bookmark link in the server representation.

When you create a server, the response shows only the server ID, its links, and the admin password. You can get additional attributes through subsequent GET requests on the server.

Include the block_device_mapping_v2 parameter in the create request body to boot a server from a volume.

Include the key_name parameter in the create request body to add a keypair to the server when you create it. To create a keypair, make a create keypair request.

Preconditions

Asynchronous postconditions

Troubleshooting

Normal response codes: 202

Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)

Structs§

BlockDeviceMapping
BlockDeviceMappingBuilder
Builder for BlockDeviceMapping.
BlockDeviceMappingV2
BlockDeviceMappingV2Builder
Builder for BlockDeviceMappingV2.
Networks
NetworksBuilder
Builder for Networks.
OsSchHntSchedulerHints
OsSchHntSchedulerHintsBuilder
Builder for OsSchHntSchedulerHints.
OsSchedulerHints
The dictionary of data to send to the scheduler. Alternatively, you can specify OS-SCH-HNT:scheduler_hints as the key in the request body.
OsSchedulerHintsBuilder
Builder for OsSchedulerHints.
Request
RequestBuilder
Builder for Request.
SecurityGroups
SecurityGroupsBuilder
Builder for SecurityGroups.
Server
A server object.
ServerBuilder
Builder for Server.

Enums§

BlockDeviceMappingBuilderError
Error type for BlockDeviceMappingBuilder
BlockDeviceMappingV2BuilderError
Error type for BlockDeviceMappingV2Builder
DestinationType
NetworksBuilderError
Error type for NetworksBuilder
NetworksStringEnum
OsDcfDiskConfig
OsSchHntSchedulerHintsBuilderError
Error type for OsSchHntSchedulerHintsBuilder
OsSchedulerHintsBuilderError
Error type for OsSchedulerHintsBuilder
RequestBuilderError
Error type for RequestBuilder
SecurityGroupsBuilderError
Error type for SecurityGroupsBuilder
ServerBuilderError
Error type for ServerBuilder
ServerNetworks
SourceType