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

Author: N.V.
Inheritance: extends Scalr\Api\Rest\Controller\ApiController, use trait GlobalVariableTrait
Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Méthode Description
cloneAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope Creates clone for the farm
createAction ( ) : Scalr\Api\DataType\ResultEnvelope Create a new Farm in this Environment
createVariableAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope Creates farm's global var
deleteAction ( string $farmId ) : Scalr\Api\DataType\ResultEnvelope Delete an Farm from this Environment
deleteVariableAction ( integer $farmId, string $name ) : Scalr\Api\DataType\ResultEnvelope Deletes farm's global variable
describeAction ( ) : Scalr\Api\DataType\ListResultEnvelope Retrieves the list of the farms
describeServersAction ( integer $farmId ) : Scalr\Api\DataType\ListResultEnvelope Gets list of farm's servers
describeVariablesAction ( integer $farmId ) : Scalr\Api\DataType\ListResultEnvelope Gets the list of the available Global Variables of the farm
fetchAction ( string $farmId ) : Scalr\Api\DataType\ResultEnvelope Fetches detailed info about one farm
fetchVariableAction ( integer $farmId, string $name ) : Scalr\Api\DataType\ResultEnvelope Gets specific global var of the farm
getFarm ( string $farmId, boolean | string $modify = false ) : Farm Gets specified Farm taking into account both scope and authentication token
getVariableInstance ( ) : Scalr_Scripting_GlobalVariables Gets global variable object
launchAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope Launch specified farm
modifyAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope Change farm attributes.
modifyVariableAction ( integer $farmId, string $name ) : Scalr\Api\DataType\ResultEnvelope Modifies farm's global variable
terminateAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope Terminates specified farm

Private Methods

Méthode Description
getDefaultCriteria ( ) : array Gets default search criteria according environment scope

Method Details

cloneAction() public méthode

Creates clone for the farm
public cloneAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Unique farm identifier
Résultat Scalr\Api\DataType\ResultEnvelope

createAction() public méthode

Create a new Farm in this Environment
public createAction ( ) : Scalr\Api\DataType\ResultEnvelope
Résultat Scalr\Api\DataType\ResultEnvelope

createVariableAction() public méthode

Creates farm's global var
public createVariableAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Numeric identifier of the Farm
Résultat Scalr\Api\DataType\ResultEnvelope

deleteAction() public méthode

Delete an Farm from this Environment
public deleteAction ( string $farmId ) : Scalr\Api\DataType\ResultEnvelope
$farmId string Unique identifier of the script
Résultat Scalr\Api\DataType\ResultEnvelope

deleteVariableAction() public méthode

Deletes farm's global variable
public deleteVariableAction ( integer $farmId, string $name ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Numeric identifier of the Farm
$name string Name of variable
Résultat Scalr\Api\DataType\ResultEnvelope

describeAction() public méthode

Retrieves the list of the farms
public describeAction ( ) : Scalr\Api\DataType\ListResultEnvelope
Résultat Scalr\Api\DataType\ListResultEnvelope Returns describe result

describeServersAction() public méthode

Gets list of farm's servers
public describeServersAction ( integer $farmId ) : Scalr\Api\DataType\ListResultEnvelope
$farmId integer Identifier of the Farm
Résultat Scalr\Api\DataType\ListResultEnvelope

describeVariablesAction() public méthode

Gets the list of the available Global Variables of the farm
public describeVariablesAction ( integer $farmId ) : Scalr\Api\DataType\ListResultEnvelope
$farmId integer Numeric identifier of the Farm
Résultat Scalr\Api\DataType\ListResultEnvelope

fetchAction() public méthode

Fetches detailed info about one farm
public fetchAction ( string $farmId ) : Scalr\Api\DataType\ResultEnvelope
$farmId string Numeric identifier of the farm
Résultat Scalr\Api\DataType\ResultEnvelope

fetchVariableAction() public méthode

Gets specific global var of the farm
public fetchVariableAction ( integer $farmId, string $name ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Numeric identifier of the Farm
$name string Name of variable
Résultat Scalr\Api\DataType\ResultEnvelope

getFarm() public méthode

Gets specified Farm taking into account both scope and authentication token
public getFarm ( string $farmId, boolean | string $modify = false ) : Farm
$farmId string Numeric identifier of the Farm
$modify boolean | string optional Permission identifier
Résultat Scalr\Model\Entity\Farm Returns the Farm Entity on success

getVariableInstance() public méthode

Gets global variable object
public getVariableInstance ( ) : Scalr_Scripting_GlobalVariables
Résultat Scalr_Scripting_GlobalVariables

launchAction() public méthode

Launch specified farm
public launchAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Unique farm identifier
Résultat Scalr\Api\DataType\ResultEnvelope

modifyAction() public méthode

Change farm attributes.
public modifyAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Unique identifier of the script
Résultat Scalr\Api\DataType\ResultEnvelope

modifyVariableAction() public méthode

Modifies farm's global variable
public modifyVariableAction ( integer $farmId, string $name ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Numeric identifier of the Farm
$name string Name of variable
Résultat Scalr\Api\DataType\ResultEnvelope

terminateAction() public méthode

Terminates specified farm
public terminateAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Unique farm identifier
Résultat Scalr\Api\DataType\ResultEnvelope