Returns a paginated list of Volumes you have permission to view.
LinodeClient linodeClient =newLinodeClient("apikey");// Get AllList<Volume> list =awaitlinodeClient.Volume.Get();
Get One
Get information about a single Volume.
LinodeClient linodeClient =newLinodeClient("apikey");long volumeId =2035197;// Get AllList<Volume> list =awaitlinodeClient.Volume.Get(volumeId);
Create
Creates a Volume on your Account. In order for this to complete successfully, your User must have the add_volumes grant. Creating a new Volume will start accruing additional charges on your account.
Deletes a Volume you have permission to read_write.
Deleting a Volume is a destructive action and cannot be undone.
Deleting stops billing for the Volume. You will be billed for time used within the billing period the Volume was active.
Volumes that are migrating cannot be deleted until the migration is finished.
LinodeClient linodeClient =newLinodeClient("apikey");// Get volumeVolume volume =awaitlinodeClient.Volume.Get(2035297);// You can delete it by passing the object as a parameterawaitlinodeClient.Volume.Delete(volume);// You can also delete it by passing the ID as a parameter.awaitlinodeClient.Volume.Delete(2035297);
Attach
Attaches a Volume on your Account to an existing Linode on your Account. In order for this request to complete successfully, your User must have read_write permission to the Volume and read_write permission to the Linode. Additionally, the Volume and Linode must be located in the same Region.
Detaches a Volume on your Account from a Linode on your Account. In order for this request to complete successfully, your User must have read_write access to the Volume and read_write access to the Linode.
Resize an existing Volume on your Account. In order for this request to complete successfully, your User must have the read_write permissions to the Volume.
Volumes can only be resized up.
Only Volumes with a status of “active” can be resized.
Creates a Volume on your Account. In order for this request to complete successfully, your User must have the add_volumes grant. The new Volume will have the same size and data as the source Volume. Creating a new Volume will incur a charge on your Account.
Only Volumes with a status of “active” can be cloned.