[Disks] attachDisk

attachDisk

Process Overview of the Function

Disk is added to the specified virtual server.

Request Parameters

Specify the following parameter(s) when executing this function.

ParameterDescriptionRequired
Identifier

VM Identifier

Specify the identifier of a target virtual server to which the disk is to be added. .
The virtual server identifier can be obtained from the 4.1. listNodes function.
In the 4.1. listNodes function response object, the corresponding field is, identifier.

data_store_id

Datastore ID

Specify the ID of the datastore to which the target disk is to belong.

disk_size

Disk Size [GB]

Specify the disk size (disk space) of the target disk.

Unit is in GB (GigaByte).

is_swap

Swap Setting

Specify whether the target disk is to be a swap disk or not.
true : Swap disk
false : Not a swap disk

×
mount_point

Mount Point Specification

Specify the mount point to be allocated to the target disk.

×
add_to_linux_fstab

Add to fstab Specification

Specify whether to add the target disk to /etc/fstab or not.
When adding to /etc/fstab/, the below-mentioned parameter, require_format_disk, needs to be set to true,
and the disk needs to be formatted.

true : Add to fstab
false : Do not add to fstab

×
require_format_disk

Disk Format Requirement

Specify whether to format the target disk or not.

1 : Format
0 : Do not format

×

Response Object

If the request to add the specified disk is successful then the following format is used in the response.

FieldDescription
disk_id

Returns the id allocated to the added disk.

If the request to add the specified disk failed then the resulting error message is returned.

 

Request Sample

https://api.gmocloud.com/Cloud-Zone-ID/?Action=editDisk&AccessKeyId=AccessKeyId&Version=1.0&disk_id=ID_of_Disk&disk_size=6&has_autobackups=false&Signature=Signature

Response Sample

{
"disk_id": ID_of_Disk
}

Note: GMO CLOUD AMERICA INC. does not make any guarantee with regard to the content of this manual and will not be held responsible for any damages resulting from customers or third parties.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk