PHP Class Scalr\Api\Service\User\V1beta0\Controller\Servers

Author: Vlad Dobrovolskiy ([email protected])
Inheritance: extends Scalr\Api\Rest\Controller\ApiController
Afficher le fichier Open project: scalr/scalr

Méthodes publiques

Méthode Description
describeAction ( ) Retrieves the list of the roles that are available on the Environment scope
fetchAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope Fetches detailed info about one server
getServer ( string $serverId ) : Server Gets specified Server
rebootAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope Reboots instance
resumeAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope Resumes instance
suspendAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope Stops instance
terminateAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope Terminates instance

Private Methods

Méthode Description
getDefaultCriteria ( ) : array Gets Default search criteria for the Environment scope

Method Details

describeAction() public méthode

Retrieves the list of the roles that are available on the Environment scope
public describeAction ( )

fetchAction() public méthode

Fetches detailed info about one server
public fetchAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope
$serverId string UUID of the server
Résultat Scalr\Api\DataType\ResultEnvelope

getServer() public méthode

Gets specified Server
public getServer ( string $serverId ) : Server
$serverId string UUID of the server
Résultat Scalr\Model\Entity\Server Returns the Server Entity on success

rebootAction() public méthode

Reboots instance
public rebootAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope
$serverId string UUID of the server
Résultat Scalr\Api\DataType\ResultEnvelope

resumeAction() public méthode

Resumes instance
public resumeAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope
$serverId string UUID of the server
Résultat Scalr\Api\DataType\ResultEnvelope

suspendAction() public méthode

Stops instance
public suspendAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope
$serverId string UUID of the server
Résultat Scalr\Api\DataType\ResultEnvelope

terminateAction() public méthode

Terminates instance
public terminateAction ( string $serverId ) : Scalr\Api\DataType\ResultEnvelope
$serverId string UUID of the server
Résultat Scalr\Api\DataType\ResultEnvelope