public interface ElasticBlockStoreClient
Modifier and Type | Method and Description |
---|---|
void |
addCreateVolumePermissionsToSnapshotInRegion(String region,
Iterable<String> userIds,
Iterable<String> userGroups,
String snapshotId)
Adds
createVolumePermission s to an EBS snapshot. |
Attachment |
attachVolumeInRegion(String region,
String volumeId,
String instanceId,
String device)
Attaches an Amazon EBS volume to a running instance and exposes it as the specified device.
|
Snapshot |
createSnapshotInRegion(String region,
String volumeId,
CreateSnapshotOptions... options)
Creates a snapshot of an Amazon EBS volume and stores it in Amazon S3.
|
Volume |
createVolumeFromSnapshotInAvailabilityZone(String availabilityZone,
int size,
String snapshotId)
Creates a new Amazon EBS volume to which any Amazon EC2 instance can attach within the same
Availability Zone.
|
Volume |
createVolumeFromSnapshotInAvailabilityZone(String availabilityZone,
String snapshotId)
Creates a new Amazon EBS volume to which any Amazon EC2 instance can attach within the same
Availability Zone.
|
Volume |
createVolumeInAvailabilityZone(String availabilityZone,
int size)
Creates a new Amazon EBS volume to which any Amazon EC2 instance can attach within the same
Availability Zone.
|
void |
deleteSnapshotInRegion(String region,
String snapshotId)
Deletes a snapshot of an Amazon EBS volume that you own.
|
void |
deleteVolumeInRegion(String region,
String volumeId)
Deletes an Amazon EBS volume that you own.
|
Set<Snapshot> |
describeSnapshotsInRegion(String region,
DescribeSnapshotsOptions... options)
Returns information about Amazon EBS snapshots available to the user.
|
Set<Volume> |
describeVolumesInRegion(String region,
String... volumeIds)
Describes the specified Amazon EBS volumes that you own.
|
void |
detachVolumeInRegion(String region,
String volumeId,
boolean force,
DetachVolumeOptions... options)
Attaches an Amazon EBS volume to a running instance and exposes it as the specified device.
|
Permission |
getCreateVolumePermissionForSnapshotInRegion(String region,
String snapshotId)
Returns the
Permission s of an snapshot. |
void |
removeCreateVolumePermissionsFromSnapshotInRegion(String region,
Iterable<String> userIds,
Iterable<String> userGroups,
String snapshotId)
Removes
createVolumePermission s from an EBS snapshot. |
void |
resetCreateVolumePermissionsOnSnapshotInRegion(String region,
String snapshotId)
Resets the
createVolumePermission s on an EBS snapshot. |
Volume createVolumeFromSnapshotInAvailabilityZone(String availabilityZone, String snapshotId)
availabilityZone
- An Amazon EBS volume must be located within the same Availability Zone as the
instance to which it attaches.snapshotId
- The snapshot from which to create the new volume.describeVolumesInRegion(java.lang.String, java.lang.String...)
,
deleteVolumeInRegion(java.lang.String, java.lang.String)
,
attachVolumeInRegion(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
,
detachVolumeInRegion(java.lang.String, java.lang.String, boolean, org.jclouds.ec2.options.DetachVolumeOptions...)
,
AvailabilityZoneAndRegionClient.describeAvailabilityZonesInRegion(java.lang.String, org.jclouds.ec2.options.DescribeAvailabilityZonesOptions...)
,
Volume createVolumeFromSnapshotInAvailabilityZone(String availabilityZone, int size, String snapshotId)
createVolumeFromSnapshotInAvailabilityZone(java.lang.String, java.lang.String)
,
which creates a volume with a specific size.
For more information about Amazon EBS, go to the Amazon Elastic Compute
Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide.availabilityZone
- An Amazon EBS volume must be located within the same Availability Zone as the
instance to which it attaches.size
- Size of volume to be createdsnapshotId
- The snapshot from which to create the new volume.createVolumeFromSnapshotInAvailabilityZone(java.lang.String, java.lang.String)
,
describeVolumesInRegion(java.lang.String, java.lang.String...)
,
deleteVolumeInRegion(java.lang.String, java.lang.String)
,
attachVolumeInRegion(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
,
detachVolumeInRegion(java.lang.String, java.lang.String, boolean, org.jclouds.ec2.options.DetachVolumeOptions...)
,
AvailabilityZoneAndRegionClient.describeAvailabilityZonesInRegion(java.lang.String, org.jclouds.ec2.options.DescribeAvailabilityZonesOptions...)
,
Volume createVolumeInAvailabilityZone(String availabilityZone, int size)
availabilityZone
- An Amazon EBS volume must be located within the same Availability Zone as the
instance to which it attaches.size
- The size of the volume, in GiBs (1-1024). Required if you are not creating a volume
from a snapshot.describeVolumesInRegion(java.lang.String, java.lang.String...)
,
deleteVolumeInRegion(java.lang.String, java.lang.String)
,
attachVolumeInRegion(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
,
detachVolumeInRegion(java.lang.String, java.lang.String, boolean, org.jclouds.ec2.options.DetachVolumeOptions...)
,
AvailabilityZoneAndRegionClient.describeAvailabilityZonesInRegion(java.lang.String, org.jclouds.ec2.options.DescribeAvailabilityZonesOptions...)
,
Set<Volume> describeVolumesInRegion(@Nullable String region, String... volumeIds)
region
- region where the volume is definedvolumeIds
- The ID of the volume to list. Defaults to describe all volumes that you own.createSnapshotInRegion(java.lang.String, java.lang.String, org.jclouds.ec2.options.CreateSnapshotOptions...)
,
#describeSnapshotInRegion
,
void deleteVolumeInRegion(@Nullable String region, String volumeId)
region
- region where the volume is definedvolumeId
- The ID of the volume to delete. The volume remains in the deleting state for several
minutes after entering this command.describeVolumesInRegion(java.lang.String, java.lang.String...)
,
#createVolumeInRegion
,
attachVolumeInRegion(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
,
detachVolumeInRegion(java.lang.String, java.lang.String, boolean, org.jclouds.ec2.options.DetachVolumeOptions...)
,
void detachVolumeInRegion(@Nullable String region, String volumeId, boolean force, DetachVolumeOptions... options)
region
- region where the volume is definedvolumeId
- The ID of the volume to delete. The volume remains in the deleting state for several
minutes after entering this command.force
- Forces detachment if the previous detachment attempt did not occur cleanly (logging
into an instance, unmounting the volume, and detaching normally). This option can
lead to data loss or a corrupted file system. Use this option only as a last resort
to detach a volume from a failed instance. The instance will not have an opportunity
to flush file system caches nor file system meta data. If you use this option, you
must perform file system check and repair procedures.options
- options like force()describeVolumesInRegion(java.lang.String, java.lang.String...)
,
#createVolumeInRegion
,
attachVolumeInRegion(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
,
deleteVolumeInRegion(java.lang.String, java.lang.String)
,
Attachment attachVolumeInRegion(@Nullable String region, String volumeId, String instanceId, String device)
region
- region where the volume is definedvolumeId
- The ID of the Amazon EBS volume. The volume and instance must be within the same
Availability Zone and the instance must be running.instanceId
- The ID of the instance to which the volume attaches. The volume and instance must be
within the same Availability Zone and the instance must be running.device
- Specifies how the device is exposed to the instance (e.g., /dev/sdh).describeVolumesInRegion(java.lang.String, java.lang.String...)
,
#createVolumeInRegion
,
detachVolumeInRegion(java.lang.String, java.lang.String, boolean, org.jclouds.ec2.options.DetachVolumeOptions...)
,
deleteVolumeInRegion(java.lang.String, java.lang.String)
,
Snapshot createSnapshotInRegion(@Nullable String region, String volumeId, CreateSnapshotOptions... options)
umount - d / dev / sdhFor Windows, open Disk Management, right-click the volume to unmount, and select Change Drive Letter and Path. Then, select the mount point to remove and click Remove.
region
- Snapshots are tied to Regions and can only be used for volumes within the same
Region.volumeId
- The ID of the Amazon EBS volume of which to take a snapshot.options
- options like passing a description.describeSnapshotsInRegion(java.lang.String, org.jclouds.ec2.options.DescribeSnapshotsOptions...)
,
deleteSnapshotInRegion(java.lang.String, java.lang.String)
,
Set<Snapshot> describeSnapshotsInRegion(@Nullable String region, DescribeSnapshotsOptions... options)
Permission | Description |
public | The owner of the snapshot granted create volume permissions for the snapshot to the all group. All users have create volume permissions for these snapshots. |
explicit | The owner of the snapshot granted create volume permissions to a specific user. |
implicit | A user has implicit create volume permissions for all snapshots he or she owns. |
region
- Snapshots are tied to Regions and can only be used for volumes within the same
Region.options
- specify the snapshot ids or other parameters to clarify the list.#createSnapshotsInRegion
,
deleteSnapshotInRegion(java.lang.String, java.lang.String)
,
void deleteSnapshotInRegion(@Nullable String region, String snapshotId)
region
- Snapshots are tied to Regions and can only be used for volumes within the same
Region.snapshotId
- The ID of the Amazon EBS snapshot to delete.createSnapshotInRegion(java.lang.String, java.lang.String, org.jclouds.ec2.options.CreateSnapshotOptions...)
,
deleteSnapshotInRegion(java.lang.String, java.lang.String)
,
Permission getCreateVolumePermissionForSnapshotInRegion(@Nullable String region, String snapshotId)
Permission
s of an snapshot.region
- AMIs are tied to the Region where its files are located within Amazon S3.snapshotId
- The ID of the AMI for which an attribute will be described#describeSnapshots
,
#modifySnapshotAttribute
,
#resetSnapshotAttribute
,
,
DescribeSnapshotsOptions
void addCreateVolumePermissionsToSnapshotInRegion(@Nullable String region, Iterable<String> userIds, Iterable<String> userGroups, String snapshotId)
createVolumePermission
s to an EBS snapshot.region
- Snapshots are tied to Regions and can only be used for volumes within the same
Region.userIds
- AWS Access Key ID.userGroups
- Name of the groups. Currently supports \"all.\""snapshotId
- The ID of the Amazon EBS snapshot.#removeCreateVolumePermissionsFromSnapshot
,
#describeSnapshotAttribute
,
#resetSnapshotAttribute
,
void resetCreateVolumePermissionsOnSnapshotInRegion(@Nullable String region, String snapshotId)
createVolumePermission
s on an EBS snapshot.void removeCreateVolumePermissionsFromSnapshotInRegion(@Nullable String region, Iterable<String> userIds, Iterable<String> userGroups, String snapshotId)
createVolumePermission
s from an EBS snapshot.region
- Snapshots are tied to Regions and can only be used for volumes within the same
Region.userIds
- AWS Access Key ID.userGroups
- Name of the groups. Currently supports \"all.\""snapshotId
- The ID of the Amazon EBS snapshot.#addCreateVolumePermissionsToSnapshot
,
#describeSnapshotAttribute
,
#resetSnapshotAttribute
,
Copyright © 2009-2012 jclouds. All Rights Reserved.