PHP 클래스 Scalr\Api\Service\User\V1beta0\Controller\Farms

저자: N.V.
상속: extends Scalr\Api\Rest\Controller\ApiController, use trait GlobalVariableTrait
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 메소드들

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

비공개 메소드들

메소드 설명
getDefaultCriteria ( ) : array Gets default search criteria according environment scope

메소드 상세

cloneAction() 공개 메소드

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

createAction() 공개 메소드

Create a new Farm in this Environment
public createAction ( ) : Scalr\Api\DataType\ResultEnvelope
리턴 Scalr\Api\DataType\ResultEnvelope

createVariableAction() 공개 메소드

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

deleteAction() 공개 메소드

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

deleteVariableAction() 공개 메소드

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
리턴 Scalr\Api\DataType\ResultEnvelope

describeAction() 공개 메소드

Retrieves the list of the farms
public describeAction ( ) : Scalr\Api\DataType\ListResultEnvelope
리턴 Scalr\Api\DataType\ListResultEnvelope Returns describe result

describeServersAction() 공개 메소드

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

describeVariablesAction() 공개 메소드

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
리턴 Scalr\Api\DataType\ListResultEnvelope

fetchAction() 공개 메소드

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

fetchVariableAction() 공개 메소드

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
리턴 Scalr\Api\DataType\ResultEnvelope

getFarm() 공개 메소드

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
리턴 Scalr\Model\Entity\Farm Returns the Farm Entity on success

getVariableInstance() 공개 메소드

Gets global variable object
public getVariableInstance ( ) : Scalr_Scripting_GlobalVariables
리턴 Scalr_Scripting_GlobalVariables

launchAction() 공개 메소드

Launch specified farm
public launchAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Unique farm identifier
리턴 Scalr\Api\DataType\ResultEnvelope

modifyAction() 공개 메소드

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

modifyVariableAction() 공개 메소드

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
리턴 Scalr\Api\DataType\ResultEnvelope

terminateAction() 공개 메소드

Terminates specified farm
public terminateAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope
$farmId integer Unique farm identifier
리턴 Scalr\Api\DataType\ResultEnvelope