PHP 클래스 Scalr_UI_Controller_Tools_Aws_Ec2_Ebs_Volumes

상속: extends Scalr_UI_Controller
파일 보기 프로젝트 열기: scalr/scalr

보호된 프로퍼티들

프로퍼티 타입 설명
$filteringDecision Scalr\Acl\Resource\CloudResourceFilteringDecision
$listCache array Simple cache for volumes data
$managedFarms array List of the managed farms

공개 메소드들

메소드 설명
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 ( )

보호된 메소드들

메소드 설명
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

메소드 상세

attachAction() 공개 메소드

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

attachVolumeToServer() 보호된 메소드

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 createAction ( )

defaultAction() 공개 메소드

public defaultAction ( )

describeVolume() 보호된 메소드

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
리턴 Scalr\Service\Aws\Ec2\DataType\VolumeData Returns the volume data

getFilteringDecision() 보호된 메소드

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

getManagedFarms() 보호된 메소드

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

getRunningServersByAvailabilityZone() 보호된 메소드

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

hasAccess() 공개 메소드

public hasAccess ( )

viewAction() 공개 메소드

public viewAction ( )

xAttachAction() 공개 메소드

public xAttachAction ( )

xCreateAction() 공개 메소드

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 xDetachAction ( )

xGetServersListAction() 공개 메소드

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() 공개 메소드

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 xRemoveAction ( )

프로퍼티 상세

$filteringDecision 보호되어 있는 프로퍼티

protected CloudResourceFilteringDecision,Scalr\Acl\Resource $filteringDecision
리턴 Scalr\Acl\Resource\CloudResourceFilteringDecision

$listCache 보호되어 있는 프로퍼티

Simple cache for volumes data
protected array $listCache
리턴 array

$managedFarms 보호되어 있는 프로퍼티

List of the managed farms
protected array $managedFarms
리턴 array