Datastore Groups

Entity

Datastore Group

Datastore group resource:

Field Explanation
id data store group identifier
label data store group label

Datastore group list:

[data_store_group resource 1, data_store_group resource 2, ...]

Operations

Get Datastore group

Method:GET
Url:/account/<account_id>/data_store_group/<data_store_group_id>
Success Code:200
Returned Data:Data Store group resource
Has Token:Yes

List Datastore groups

Method:GET
Url:/account/<account_id>/data_store_groups
Success Code:200
Returned Data:Data store group list resource
Has Token:Yes

Parameters:

  • label

Remove datastore from datastore group

Warning

Admin only call.

Method:DELETE
Url:/account/<account_id>/data_store_group/<data_store_group_id>/data_store/<data_store_id>
Success Code:204
Returned Data:No data returned
Has Token:No

Create disk

Method:POST
Url:/account/<account_id>/data_store_group/<data_store_group_id>/disk
Success Code:202
Returned Data:Disk resource
Has Token:No

Create a new disk for a virtual machine.

Mandatory parameters:

  • disk_size: disk space in GB
  • virtual_machine_id: virtual machine where to attach the disk

Optional parameters:

  • is_swap: Set true if this is a swap disk. Defaults to false
  • mount_point: a physical location in the partition used as a root filesystem
  • add_to_linux_fstab: set true to add
  • require_format_disk: set true to format disk; otherwise set false
  • autobackup: set to 1 to activate autobackup; otherwise set to 0
  • require_build_disk

Curl example

curl -i -X POST https://api.gigas.com/account/ACCOUNT_ID/data_store_group/DATASTORE_ID/disk -d '{"disk_size": "5", "virtual_machine_id": "VM_ID"}' -H "Authorization: $TOKEN" -H "Content-Type: application/json"

Table Of Contents

Previous topic

Datastore

Next topic

Disk