PHP Class Scalr_UI_Controller_Tools_Aws_Ec2_Ebs_Volumes

Inheritance: extends Scalr_UI_Controller
Datei anzeigen Open project: scalr/scalr

Protected Properties

Property Type Description
$filteringDecision Scalr\Acl\Resource\CloudResourceFilteringDecision
$listCache array Simple cache for volumes data
$managedFarms array List of the managed farms

Public Methods

Method Description
attachAction ( string $cloudLocation, string $volumeId ) Attach volume
createAction ( )
defaultAction ( )
hasAccess ( )
viewAction ( )
xAttachAction ( )
xCreateAction ( string $cloudLocation, string $availabilityZone, integer $size, string $snapshotId = null, boolean $encrypted = false, string $kmsKeyId = null, string $type = 'standard', integer $iops = null, string $serverId = null, boolean $mount = false, string $mountPoint = null )
xDetachAction ( )
xGetServersListAction ( string $availabilityZone ) Gets the list of the servers which should be used to attach a new volume to it
xListVolumesAction ( string $cloudLocation, string $volumeId = null, integer $farmId = null, integer $farmRoleId = null ) List volumes
xRemoveAction ( )

Protected Methods

Method Description
attachVolumeToServer ( VolumeData $info ) Attaches volume to server
describeVolume ( string $cloudLocation, string $id ) : VolumeData Describes volume on the EC2 and checks ACL permissions
getFilteringDecision ( ) : Scalr\Acl\Resource\CloudResourceFilteringDecision Gets Cloud Resource filtering decision that is based on the User
getManagedFarms ( ) : array Gets the list of the managed Farms
getRunningServersByAvailabilityZone ( string $availabilityZone ) : array Gets the list of the running servers by the specified availability zone

Method Details

attachAction() public method

Attach volume
public attachAction ( string $cloudLocation, string $volumeId )
$cloudLocation string
$volumeId string

attachVolumeToServer() protected method

It uses request params and can't be used without UI request
protected attachVolumeToServer ( VolumeData $info )
$info Scalr\Service\Aws\Ec2\DataType\VolumeData AWS EBS Volume info

createAction() public method

public createAction ( )

defaultAction() public method

public defaultAction ( )

describeVolume() protected method

Describes volume on the EC2 and checks ACL permissions
protected describeVolume ( string $cloudLocation, string $id ) : VolumeData
$cloudLocation string Cloud location
$id string ID of the volume
return Scalr\Service\Aws\Ec2\DataType\VolumeData Returns the volume data

getFilteringDecision() protected method

Gets Cloud Resource filtering decision that is based on the User
protected getFilteringDecision ( ) : Scalr\Acl\Resource\CloudResourceFilteringDecision
return Scalr\Acl\Resource\CloudResourceFilteringDecision

getManagedFarms() protected method

Gets the list of the managed Farms
protected getManagedFarms ( ) : array
return array Returns the list of the managed Farms

getRunningServersByAvailabilityZone() protected method

It takes into consideration Managed Farm ACL permission
protected getRunningServersByAvailabilityZone ( string $availabilityZone ) : array
$availabilityZone string
return array Returns array looks like [serverId => name by convention]

hasAccess() public method

public hasAccess ( )

viewAction() public method

public viewAction ( )

xAttachAction() public method

public xAttachAction ( )

xCreateAction() public method

public xCreateAction ( string $cloudLocation, string $availabilityZone, integer $size, string $snapshotId = null, boolean $encrypted = false, string $kmsKeyId = null, string $type = 'standard', integer $iops = null, string $serverId = null, boolean $mount = false, string $mountPoint = null )
$cloudLocation string
$availabilityZone string
$size integer
$snapshotId string
$encrypted boolean
$kmsKeyId string
$type string
$iops integer
$serverId string
$mount boolean
$mountPoint string

xDetachAction() public method

public xDetachAction ( )

xGetServersListAction() public method

Gets the list of the servers which should be used to attach a new volume to it
public xGetServersListAction ( string $availabilityZone )
$availabilityZone string Availability zone

xListVolumesAction() public method

List volumes
public xListVolumesAction ( string $cloudLocation, string $volumeId = null, integer $farmId = null, integer $farmRoleId = null )
$cloudLocation string The location of a cloud
$volumeId string optional Volume ID
$farmId integer optional Farm ID
$farmRoleId integer optional Role ID tied to the farm

xRemoveAction() public method

public xRemoveAction ( )

Property Details

$filteringDecision protected_oe property

protected CloudResourceFilteringDecision,Scalr\Acl\Resource $filteringDecision
return Scalr\Acl\Resource\CloudResourceFilteringDecision

$listCache protected_oe property

Simple cache for volumes data
protected array $listCache
return array

$managedFarms protected_oe property

List of the managed farms
protected array $managedFarms
return array