Volume
Volumes are network attached storage such as the EBS service within Amazon Web Services. This class inherits from TopLevelResource and has direct access to the resource’s database object.
Attribute |
Description |
---|---|
resource_id |
The provider ID of the volume |
organization_service_id |
The ID of the parent organization service (cloud) |
region_name |
The region that the volume resides in |
volume_id |
The provider ID of the volume |
name |
The name of the volume |
instance_resource_id |
The resource ID of the instance this volume is associated with |
snapshot_resource_id |
The resource ID of the snapshot this volume was built from |
create_time |
Timestamp of when this volume was created |
device |
The device that a volume is mapped to on the instance (e.g., /dev/sdf) |
state |
The current state of the volume (available or in-use) |
volume_type |
The type of volume (e.g., pd-standard, gp2, premium_LRS, etc.) |
size |
The size in gigabytes of the volume |
availability_zone |
The availability_zone where the volume resides |
iops |
The total IOPS allocated to this volume (provisioned volumes only) |
encrypted |
Denotes whether the volume is encrypted |
delete_on_termination |
Whether or not the volume is set to automatically delete when the parent instance is terminated |
snapshots |
Returns a list of associated snapshots of this volume |
Volume Operations
delete(user_resource_id=None)
get_attached_instance_resource_id()
get_availability_zone()
get_date_created()
static get_db_class()
get_device()
get_parent_resource_id()
static get_provider_id_field()
static get_resource_type()
get_size()
get_snapshots()
get_supported_actions()
get_volume_backup_scheduled_events()
get_volume_type()
handle_resource_created(user_resource_id=None, project_resource_id=None)
handle_resource_destroyed(user_resource_id=None)
handle_resource_modified(resource, *args, **kwargs)
modify(iops=None, size=None, volume_type=None, user_resource_id=None)
schedule_modification(*args, **kwargs)
top_level_resource = True
volume
volume_id