PHP Class Scalr_UI_Controller_Tools_Aws_Ec2_Ebs_Volumes

Inheritance: extends Scalr_UI_Controller
Afficher le fichier Open project: scalr/scalr

Protected Properties

Свойство Type Description
$filteringDecision Scalr\Acl\Resource\CloudResourceFilteringDecision
$listCache array Simple cache for volumes data
$managedFarms array List of the managed farms

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode 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 méthode

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

attachVolumeToServer() protected méthode

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 méthode

public createAction ( )

defaultAction() public méthode

public defaultAction ( )

describeVolume() protected méthode

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
Résultat Scalr\Service\Aws\Ec2\DataType\VolumeData Returns the volume data

getFilteringDecision() protected méthode

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

getManagedFarms() protected méthode

Gets the list of the managed Farms
protected getManagedFarms ( ) : array
Résultat array Returns the list of the managed Farms

getRunningServersByAvailabilityZone() protected méthode

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

hasAccess() public méthode

public hasAccess ( )

viewAction() public méthode

public viewAction ( )

xAttachAction() public méthode

public xAttachAction ( )

xCreateAction() public méthode

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 méthode

public xDetachAction ( )

xGetServersListAction() public méthode

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 méthode

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 méthode

public xRemoveAction ( )

Property Details

$filteringDecision protected_oe property

protected CloudResourceFilteringDecision,Scalr\Acl\Resource $filteringDecision
Résultat Scalr\Acl\Resource\CloudResourceFilteringDecision

$listCache protected_oe property

Simple cache for volumes data
protected array $listCache
Résultat array

$managedFarms protected_oe property

List of the managed farms
protected array $managedFarms
Résultat array