PHP Class Scalr_UI_Controller_Servers

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

Méthodes publiques

Méthode Description
consoleOutputAction ( )
createSnapshotAction ( string $serverId )
dashboardAction ( )
defaultAction ( )
downloadScalarizrDebugLogAction ( )
getList ( array $status = [] )
getServerEntity ( string $serverId ) : Server Check if given server exists, is allowed for current environment and has farm, farmRole, role
getServerStatus ( DBServer $dbServer, boolean $cached = true, integer $timeout ) : array | null
getSshConsoleSettingsAction ( string $serverId )
messagesAction ( )
sshConsoleAction ( string $serverId )
viewAction ( )
xChangeInstanceTypeAction ( string $serverId, string $instanceType ) xChangeInstanceType Resizes Ec2 instance
xEnableEnhancedNetworkingAction ( string $serverId ) Enables enhanced networking for specified server
xGetEnhancedNetworkingStatusAction ( string $serverId ) Gets info about enhanced network availability for specified server
xGetHealthDetailsAction ( )
xGetServerRealStatusAction ( string $serverId, integer $timeout = 30 )
xGetStorageDetailsAction ( )
xGetWindowsPasswordAction ( string $serverId ) Retrieve password for a Windows machine
xListMessagesAction ( string $serverId )
xListServersAction ( string $cloudServerId = null, string $cloudServerLocation = null, string $hostname = null, integer $farmId = null, integer $farmRoleId = null, integer $roleId = null, string $serverId = null, string $imageId = null, boolean $showTerminated = null, string $uptime = null ) Get list of servers
xListServersUpdateAction ( JsonData $servers = null ) Update server's information
xLockAction ( )
xResendMessageAction ( )
xResumeServersAction ( )
xServerCancelAction ( )
xServerCancelOperationAction ( )
xServerCreateSnapshotAction ( string $serverId, string $name = '', string $description = '', boolean $createRole = false, string $scope = '', string $replaceRole = '', boolean $replaceImage = false, integer $rootVolumeSize, string $rootVolumeType = '', integer $rootVolumeIops )
xServerDeleteAction ( $serverId )
xServerExcludeFromDnsAction ( )
xServerGetLaAction ( string $serverId ) Returns server's LA
xServerIncludeInDnsAction ( )
xServerRebootServersAction ( JsonData $servers, string $type = 'hard' ) Reboots servers with given ids
xServerTerminateServersAction ( )
xSuspendServersAction ( )
xSzrRestartAction ( )
xSzrUpdateAction ( )

Private Methods

Méthode Description
getSshConsoleSettings ( $dbServer )
hasDatabaseBehavior ( array $behaviors ) : boolean Check if at least one of given behaviors is database one
listServersResponseHelper ( array &$response ) Helper for the server lister
propertyFilter ( array $array, string $value ) : array

Method Details

consoleOutputAction() public méthode

public consoleOutputAction ( )

createSnapshotAction() public méthode

public createSnapshotAction ( string $serverId )
$serverId string

dashboardAction() public méthode

public dashboardAction ( )

defaultAction() public méthode

public defaultAction ( )

downloadScalarizrDebugLogAction() public méthode

getList() public méthode

public getList ( array $status = [] )
$status array

getServerEntity() public méthode

Check if given server exists, is allowed for current environment and has farm, farmRole, role
public getServerEntity ( string $serverId ) : Server
$serverId string
Résultat Scalr\Model\Entity\Server

getServerStatus() public méthode

public getServerStatus ( DBServer $dbServer, boolean $cached = true, integer $timeout ) : array | null
$dbServer DBServer
$cached boolean check only cached information
$timeout integer
Résultat array | null

getSshConsoleSettingsAction() public méthode

public getSshConsoleSettingsAction ( string $serverId )
$serverId string

messagesAction() public méthode

public messagesAction ( )

sshConsoleAction() public méthode

public sshConsoleAction ( string $serverId )
$serverId string

viewAction() public méthode

public viewAction ( )

xChangeInstanceTypeAction() public méthode

xChangeInstanceType Resizes Ec2 instance
public xChangeInstanceTypeAction ( string $serverId, string $instanceType )
$serverId string
$instanceType string

xEnableEnhancedNetworkingAction() public méthode

Enables enhanced networking for specified server
public xEnableEnhancedNetworkingAction ( string $serverId )
$serverId string

xGetEnhancedNetworkingStatusAction() public méthode

Gets info about enhanced network availability for specified server
public xGetEnhancedNetworkingStatusAction ( string $serverId )
$serverId string

xGetHealthDetailsAction() public méthode

xGetServerRealStatusAction() public méthode

public xGetServerRealStatusAction ( string $serverId, integer $timeout = 30 )
$serverId string
$timeout integer

xGetStorageDetailsAction() public méthode

xGetWindowsPasswordAction() public méthode

Retrieve password for a Windows machine
public xGetWindowsPasswordAction ( string $serverId )
$serverId string

xListMessagesAction() public méthode

public xListMessagesAction ( string $serverId )
$serverId string

xListServersAction() public méthode

Get list of servers
public xListServersAction ( string $cloudServerId = null, string $cloudServerLocation = null, string $hostname = null, integer $farmId = null, integer $farmRoleId = null, integer $roleId = null, string $serverId = null, string $imageId = null, boolean $showTerminated = null, string $uptime = null )
$cloudServerId string optional Cloud server ID
$cloudServerLocation string optional Cloud server location
$hostname string optional Hostname
$farmId integer optional Farm ID
$farmRoleId integer optional Farm role ID
$roleId integer optional Role ID
$serverId string optional Server ID
$imageId string optional Image ID
$showTerminated boolean optional Whether to show terminated servers as well
$uptime string optional Uptime

xListServersUpdateAction() public méthode

Update server's information
public xListServersUpdateAction ( JsonData $servers = null )
$servers Scalr\UI\Request\JsonData optional List of servers to check against

xLockAction() public méthode

public xLockAction ( )

xResendMessageAction() public méthode

xResumeServersAction() public méthode

xServerCancelAction() public méthode

public xServerCancelAction ( )

xServerCancelOperationAction() public méthode

xServerCreateSnapshotAction() public méthode

public xServerCreateSnapshotAction ( string $serverId, string $name = '', string $description = '', boolean $createRole = false, string $scope = '', string $replaceRole = '', boolean $replaceImage = false, integer $rootVolumeSize, string $rootVolumeType = '', integer $rootVolumeIops )
$serverId string
$name string
$description string
$createRole boolean
$scope string
$replaceRole string
$replaceImage boolean
$rootVolumeSize integer
$rootVolumeType string
$rootVolumeIops integer

xServerDeleteAction() public méthode

public xServerDeleteAction ( $serverId )

xServerExcludeFromDnsAction() public méthode

xServerGetLaAction() public méthode

Returns server's LA
public xServerGetLaAction ( string $serverId )
$serverId string

xServerIncludeInDnsAction() public méthode

xServerRebootServersAction() public méthode

Reboots servers with given ids
public xServerRebootServersAction ( JsonData $servers, string $type = 'hard' )
$servers Scalr\UI\Request\JsonData
$type string

xServerTerminateServersAction() public méthode

xSuspendServersAction() public méthode

xSzrRestartAction() public méthode

public xSzrRestartAction ( )

xSzrUpdateAction() public méthode

public xSzrUpdateAction ( )