voxel.nova.servers.create

LABS: this method is considered a Labs method and may only be accessed if your account has been granted Labs access. To access Labs methods contact agile-support@internap.com.

Create a new nova server

Parameters

facility (required)
Openstack nova facility id
server_name (required)
Openstack nova server name
flavor_id (required)
Openstack nova numerical flavor id for server creation
image_id (required)
Openstack nova image id string for server creation
description (required)
Openstack nova server/image description metadata field

Example Response

<rsp stat="ok">
  <server id="2f57c041-a515-46ab-902d-905aea7463bf" name="tiny.lab1">
    <admin_password>pJhtcyR2nb56</admin_password>
    <power_state>0</power_state>
    <progress>0</progress>
    <status>BUILD</status>
    <host_id>e88558007d4d311fe807795ff2200baeb503b697f2948154224290ea</host_id>
    <flavor_id name="m1.tiny">1</flavor_id>
    <image_id name="test_image">a3eaea07-3c14-4854-b238-fb54b1410402</image_id>
    <description>tiny server</description>
    <date_created>2012-10-03T20:36:09Z</date_created>
    <date_updated>2012-10-03T20:36:09Z</date_updated>
  </server>
</rsp>

Notes

This method will create a VM with given flavor_id, image_id and server_name at the given facility/endpoint. Note that you must call this method from a secure endpoint because it returns login credentials.

Method Specific Error Codes

120: Unknown facility
The facility passed in can't be matched to a valid Openstack nova facility id.
122: Unknown nova server
The server_id passed in can't be matched to a valid Openstack nova server.
119: Unknown flavor
The flavor_id passed in can't be matched to a valid Openstack nova image.
121: Unknown nova image
The image_id passed in can't be matched to a valid Openstack nova image.