Public Class methods
Public Instance methods
Create a new slice
Parameters
- flavor_id<~Integer> - Id of flavor to create slice with
- image_id<~Integer> - Id of image to create slice with
- name<~String> - Name of slice
Returns
- response<~Excon::Response>:
- body<~Hash>:
- ‘addresses’<~Array> - Ip addresses for the slice
- ‘backup-id’<~Integer> - Id of backup slice was booted
from
- ‘bw-in’<~Integer> - Incoming bandwidth total for current
billing cycle, in Gigabytes
- ‘bw-out’<~Integer> - Outgoing bandwidth total for current
billing cycle, in Gigabytes
- ‘flavor-id’<~Integer> - Id of flavor slice was booted
from
- ‘id’<~Integer> - Id of the slice
- ‘image-id’<~Integer> - Id of image slice was booted from
- ‘name’<~String> - Name of the slice
- ‘progress’<~Integer> - Progress of current action, in
percentage
- ‘root-password’<~String> - Root password of slice
- ‘status’<~String> - Current status of the slice
Delete a given slice
Parameters
- slice_id<~Integer> - Id of slice to delete
Returns
- response<~Excon::Response>: - HTTP status code is the return value
Get list of backups
Returns
- response<~Excon::Response>:
- body<~Array>:
- ‘date’<~Time> - Timestamp
of backup creation
- ‘id’<~Integer> - Id of the backup
- ‘name’<~String> - Name of the backup
- ‘slice-id’<~Integer> - Id of slice the backup was made
from
Get details of a flavor
Parameters
- flavor_id<~Integer> - Id of flavor to lookup
Returns
- response<~Excon::Response>:
- body<~Array>:
- ‘id’<~Integer> - Id of the flavor
- ‘name’<~String> - Name of the flavor
- ‘price’<~Integer> - Price in cents
- ‘ram’<~Integer> - Amount of ram for the flavor
Get list of flavors
Returns
- response<~Excon::Response>:
- body<~Array>:
- ‘id’<~Integer> - Id of the flavor
- ‘name’<~String> - Name of the flavor
- ‘price’<~Integer> - Price in cents
- ‘ram’<~Integer> - Amount of ram for the flavor
Get details of an image
Parameters
- image_id<~Integer> - Id of image to lookup
Returns
- response<~Excon::Response>:
- body<~Array>:
- ‘id’<~Integer> - Id of the image
- ‘name’<~String> - Name of the image
Get list of images
Returns
- response<~Excon::Response>:
- body<~Array>:
- ‘id’<~Integer> - Id of the image
- ‘name’<~String> - Name of the image
Get details of a slice
Parameters
- slice_id<~Integer> - Id of slice to lookup
Returns
- response<~Excon::Response>:
- body<~Hash>:
- ‘addresses’<~Array> - Ip addresses for the slice
- ‘backup-id’<~Integer> - Id of backup slice was booted
from
- ‘bw-in’<~Float> - Incoming bandwidth total for current
billing cycle, in Gigabytes
- ‘bw-out’<~Float> - Outgoing bandwidth total for current
billing cycle, in Gigabytes
- ‘flavor_id’<~Integer> - Id of flavor slice was booted
from
- ‘id’<~Integer> - Id of the slice
- ‘image-id’<~Integer> - Id of image slice was booted from
- ‘name’<~String> - Name of the slice
- ‘progress’<~Integer> - Progress of current action, in
percentage
- ‘status’<~String> - Current status of the slice
Get list of slices
Returns
- response<~Excon::Response>:
- body<~Array>:
- ‘addresses’<~Array> - Ip addresses for the slice
- ‘backup-id’<~Integer> - Id of backup slice was booted
from
- ‘bw-in’<~Float> - Incoming bandwidth total for current
billing cycle, in Gigabytes
- ‘bw-out’<~Float> - Outgoing bandwidth total for current
billing cycle, in Gigabytes
- ‘flavor_id’<~Integer> - Id of flavor slice was booted
from
- ‘id’<~Integer> - Id of the slice
- ‘image-id’<~Integer> - Id of image slice was booted from
- ‘name’<~String> - Name of the slice
- ‘progress’<~Integer> - Progress of current action, in
percentage
- ‘status’<~String> - Current status of the slice
Reboot slice
Parameters
- slice_id<~Integer> - Id of server to reboot
- type<~String> - Type of reboot, must be in [‘HARD’,
‘SOFT’]
Returns
- response<~Excon::Response>:
- body<~Hash>:
- ‘addresses’<~Array> - Ip addresses for the slice
- ‘backup-id’<~Integer> - Id of backup slice was booted
from
- ‘bw-in’<~Float> - Incoming bandwidth total for current
billing cycle, in Gigabytes
- ‘bw-out’<~Float> - Outgoing bandwidth total for current
billing cycle, in Gigabytes
- ‘flavor_id’<~Integer> - Id of flavor slice was booted
from
- ‘id’<~Integer> - Id of the slice
- ‘image-id’<~Integer> - Id of image slice was booted from
- ‘name’<~String> - Name of the slice
- ‘progress’<~Integer> - Progress of current action, in
percentage
- ‘status’<~String> - Current status of the slice