Module openstack_sdk::api::compute::v2::server::create_237
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§
- Builder for
BlockDeviceMapping. - Builder for
BlockDeviceMappingV2. - Builder for
Networks. - Builder for
OsSchHntSchedulerHints. - The dictionary of data to send to the scheduler. Alternatively, you can specify
OS-SCH-HNT:scheduler_hintsas the key in the request body. - Builder for
OsSchedulerHints. - Builder for
Personality. - Builder for
Request. - Builder for
SecurityGroups. - A
serverobject. - Builder for
Server.
Enums§
- Error type for BlockDeviceMappingBuilder
- Error type for BlockDeviceMappingV2Builder
- Error type for NetworksBuilder
- Error type for OsSchHntSchedulerHintsBuilder
- Error type for OsSchedulerHintsBuilder
- Error type for PersonalityBuilder
- Error type for RequestBuilder
- Error type for SecurityGroupsBuilder
- Error type for ServerBuilder