Property | Type | Description | |
---|---|---|---|
$ClientID | |||
$Comments | |||
$EnvID | |||
$Hash | |||
$ID | |||
$Name | |||
$RolesLaunchOrder | |||
$ScalarizrCertificate | |||
$Status | |||
$TermOnSyncFail | |||
$changedByUserId | |||
$changedTime | |||
$createdByUserEmail | |||
$ownerId |
Method | Description | |
---|---|---|
AddRole ( DBRole $DBRole, string $platform, string $cloudLocation, integer $launchIndex, string $alias = "" ) : DBFarmRole | Adds a role to farm | |
GetAllSettings ( ) : unknown_type | Returns all farm settings | |
GetEnvironmentObject ( ) : Scalr_Environment | ||
GetFarmRoleByBehavior ( string $behavior ) : |
||
GetFarmRoleByRoleID ( integer $role_id ) : DBFarmRole | ||
GetFarmRoleIdByAlias ( $alias ) | ||
GetFarmRoles ( ) : DBFarmRole[] | Gets the list of the FarmRoles ordered by launch index. | |
GetMySQLInstances ( $only_master = false, $only_slaves = false ) | ||
GetServersByFilter ( array $filter_args = [], array $ufilter_args = [] ) : DBServer[] | Gets the list of the servers by specified filter | |
GetSetting ( string $name ) : mixed | Get Farm setting by name | |
LoadByID ( $id ) : DBFarm | Load DBInstance by database id | |
LoadByIDOnlyName ( $id ) | ||
SetSetting ( string $name, mixed $value ) : void | Set farm setting | |
__construct ( $id = null ) : void | Constructor | |
__getNewFarmObject ( ) : |
||
__sleep ( ) | ||
__wakeup ( ) | ||
applyGlobalVarsToValue ( $value ) | ||
cloneFarm ( string | boolean $name = false, Scalr_Account_User $user, integer $envId ) : DBFarm | Creates clone for the farm | |
cloneFarmRoles ( DBFarm $newFarm ) | Clones FarmRoles with settings from this Farm to a new Farm | |
create ( string $name, Scalr_Account_User $user, integer $envId ) : DBFarm | Initializes a new farm | |
getAwsTags ( ) : array | Gets AWS tags that should be applied to the resource | |
getDefinition ( ) | ||
isLocked ( $throwException = true ) : boolean | Check if farm is locked | |
loadFields ( array $record ) : DBFarm | Load DBInstance | |
lock ( $userId, $comment, $restrict ) | ||
save ( ) | ||
setProject ( |
Associates cost analytics project with the farm | |
unlock ( $userId ) |
public AddRole ( DBRole $DBRole, string $platform, string $cloudLocation, integer $launchIndex, string $alias = "" ) : DBFarmRole | ||
$DBRole | DBRole | The role object |
$platform | string | The cloud platform |
$cloudLocation | string | The cloud location |
$launchIndex | integer | Launch index |
$alias | string | optional |
return | DBFarmRole |
public GetAllSettings ( ) : unknown_type | ||
return | unknown_type |
public GetEnvironmentObject ( ) : Scalr_Environment | ||
return | Scalr_Environment |
public GetFarmRoleByBehavior ( string $behavior ) : |
||
$behavior | string | |
return |
public GetFarmRoleByRoleID ( integer $role_id ) : DBFarmRole | ||
$role_id | integer | |
return | DBFarmRole |
public GetFarmRoles ( ) : DBFarmRole[] | ||
return | DBFarmRole[] | Returns the list of the FarmRoles |
public GetMySQLInstances ( $only_master = false, $only_slaves = false ) |
public GetServersByFilter ( array $filter_args = [], array $ufilter_args = [] ) : DBServer[] | ||
$filter_args | array | optional Positive logic of filtering |
$ufilter_args | array | optional Negation logic of filtering |
return | DBServer[] | Returns the list of the DBServers |
public GetSetting ( string $name ) : mixed | ||
$name | string | |
return | mixed |
public static LoadByID ( $id ) : DBFarm | ||
$id | ||
return | DBFarm |
public __getNewFarmObject ( ) : |
||
return |
public cloneFarmRoles ( DBFarm $newFarm ) | ||
$newFarm | DBFarm | A Farm into which Roles be cloned |
public getAwsTags ( ) : array | ||
return | array | Returns list of the AWS tags |
public static loadFields ( array $record ) : DBFarm | ||
$record | array | Array of farm fields |
return | DBFarm |
public lock ( $userId, $comment, $restrict ) | ||
$userId | integer | |
$comment | string | |
$restrict | bool |
public setProject ( |
||
$project | The project entity or its identifier | |
return | string | Returns identifier of the associated project |