Property | Type | Description | |
---|---|---|---|
$scalingRuleNamespace | string | Namespace for scaling rule adapters |
Method | Description | |
---|---|---|
adapter ( string | |
Gets a new Instance of the adapter | |
createAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope | Create a new Farm role in this Environment | |
createScalingRuleAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Add new scaling metric configuration for farm-role | |
createVariableAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Creates farm role's global var | |
deleteAction ( string $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Delete an Farm role | |
deleteScalingRuleAction ( integer $farmRoleId, string $scalingRuleName ) : Scalr\Api\DataType\ResultEnvelope | Delete farm role scaling metric | |
deleteVariableAction ( integer $farmRoleId, string $name ) : Scalr\Api\DataType\ResultEnvelope | Deletes farm role's global variable | |
describeAction ( integer $farmId ) : Scalr\Api\DataType\ListResultEnvelope | Retrieves the list of the farm roles | |
describeInstanceAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Describes instance configuration | |
describePlacementAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Describes placement configuration | |
describeScalingAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Describes placement configuration | |
describeServersAction ( integer $farmRoleId ) : Scalr\Api\DataType\ListResultEnvelope | Gets list of farm role's servers | |
describeVariablesAction ( integer $farmRoleId ) : Scalr\Api\DataType\ListResultEnvelope | List Global Variables associated with this Farm role | |
fetchAction ( string $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Fetches detailed info about one farm role | |
fetchScalingRuleAction ( integer $farmRoleId, string $scalingRuleName ) : Scalr\Api\DataType\ResultEnvelope | Gets specific scaling metric of the farm role | |
fetchVariableAction ( integer $farmRoleId, string $name ) : Scalr\Api\DataType\ResultEnvelope | Gets specific global var of the farm role | |
getFarm ( integer $farmId, boolean $modify = false ) : |
Gets farm from database using User's Environment | |
getFarmRole ( string $farmRoleId, integer $farmId = null, boolean $modify = false ) : |
Gets specified Farm Role taking into account both scope and authentication token | |
getRole ( integer $roleId ) : |
Gets role from database using User's Environment | |
getScalingRule ( integer $farmRoleId, string $scalingRuleName, boolean $modify = false ) : |
Gets specified farm role scaling metric entity | |
getVariableInstance ( ) : Scalr_Scripting_GlobalVariable\Scalr_Scripting_GlobalVariables | Gets global variable object | |
importServerAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Import non-scalarizr server to the Farm Role | |
modifyAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Change farm role attributes. | |
modifyInstanceAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Change instance configuration | |
modifyPlacementAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Change placement configuration | |
modifyScalingAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | Change scaling configuration of farm-role | |
modifyScalingRuleAction ( integer $farmRoleId, string $scalingRuleName ) : Scalr\Api\DataType\ResultEnvelope | Change farm role scaling metric attributes. | |
modifyVariableAction ( integer $farmRoleId, string $name ) : Scalr\Api\DataType\ResultEnvelope | Modifies farm role's global variable |
public adapter ( string | |
||
$name | string | |
The name of the adapter or FarmRoleScalingMetric entity or farm role scaling metric data |
$scope | string | optional The scope of the adapter |
$version | string | optional The version of the adapter |
return |
public createAction ( integer $farmId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmId | integer | Identifier of the Farm, for which Farm role creates |
return | Scalr\Api\DataType\ResultEnvelope |
public createScalingRuleAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
return | Scalr\Api\DataType\ResultEnvelope |
public createVariableAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Numeric identifier of the Farm Role |
return | Scalr\Api\DataType\ResultEnvelope |
public deleteAction ( string $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | string | Unique identifier of the script |
return | Scalr\Api\DataType\ResultEnvelope |
public deleteScalingRuleAction ( integer $farmRoleId, string $scalingRuleName ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
$scalingRuleName | string | Scaling metric's name. |
return | Scalr\Api\DataType\ResultEnvelope |
public deleteVariableAction ( integer $farmRoleId, string $name ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Numeric identifier of the Farm Role |
$name | string | Name of variable |
return | Scalr\Api\DataType\ResultEnvelope |
public describeAction ( integer $farmId ) : Scalr\Api\DataType\ListResultEnvelope | ||
$farmId | integer | Identifier of the Farm containing Farm role |
return | Scalr\Api\DataType\ListResultEnvelope | Returns describe result |
public describeInstanceAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
return | Scalr\Api\DataType\ResultEnvelope |
public describePlacementAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
return | Scalr\Api\DataType\ResultEnvelope |
public describeScalingAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
return | Scalr\Api\DataType\ResultEnvelope |
public describeServersAction ( integer $farmRoleId ) : Scalr\Api\DataType\ListResultEnvelope | ||
$farmRoleId | integer | Identifier of the Farm Role |
return | Scalr\Api\DataType\ListResultEnvelope |
public describeVariablesAction ( integer $farmRoleId ) : Scalr\Api\DataType\ListResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
return | Scalr\Api\DataType\ListResultEnvelope |
public fetchAction ( string $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | string | Numeric identifier of the farm role |
return | Scalr\Api\DataType\ResultEnvelope |
public fetchScalingRuleAction ( integer $farmRoleId, string $scalingRuleName ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
$scalingRuleName | string | Scaling metric's name. |
return | Scalr\Api\DataType\ResultEnvelope |
public fetchVariableAction ( integer $farmRoleId, string $name ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Numeric identifier of the Farm Role |
$name | string | Name of variable |
return | Scalr\Api\DataType\ResultEnvelope |
public getFarmRole ( string $farmRoleId, integer $farmId = null, boolean $modify = false ) : |
||
$farmRoleId | string | Numeric identifier of the Farm role |
$farmId | integer | optional Identifier of the Farm containing Farm role |
$modify | boolean | optional Flag checking write permissions |
return | Returns the Script Entity on success |
public getScalingRule ( integer $farmRoleId, string $scalingRuleName, boolean $modify = false ) : |
||
$farmRoleId | integer | Unique farm-role identifier |
$scalingRuleName | string | Scaling metric's name. |
$modify | boolean | optional Flag checking write permissions |
return |
public getVariableInstance ( ) : Scalr_Scripting_GlobalVariable\Scalr_Scripting_GlobalVariables | ||
return | Scalr_Scripting_GlobalVariable\Scalr_Scripting_GlobalVariables |
public importServerAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | |
return | Scalr\Api\DataType\ResultEnvelope |
public modifyAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique identifier of the farm role |
return | Scalr\Api\DataType\ResultEnvelope |
public modifyInstanceAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Farm role unique identifier |
return | Scalr\Api\DataType\ResultEnvelope |
public modifyPlacementAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
return | Scalr\Api\DataType\ResultEnvelope |
public modifyScalingAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
return | Scalr\Api\DataType\ResultEnvelope |
public modifyScalingRuleAction ( integer $farmRoleId, string $scalingRuleName ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Unique farm-role identifier |
$scalingRuleName | string | Scaling metric's name. |
return | Scalr\Api\DataType\ResultEnvelope |
public modifyVariableAction ( integer $farmRoleId, string $name ) : Scalr\Api\DataType\ResultEnvelope | ||
$farmRoleId | integer | Numeric identifier of the Farm Role |
$name | string | Name of variable |
return | Scalr\Api\DataType\ResultEnvelope |
protected static string $scalingRuleNamespace | ||
return | string |