Свойство | Тип | Описание | |
---|---|---|---|
$clientId | |||
$defaultPriority | |||
$dtAdded | |||
$id | |||
$name | |||
$status |
Свойство | Тип | Описание | |
---|---|---|---|
$dbPropertyMap | |||
$dbTableName |
Метод | Описание | |
---|---|---|
__call ( $name, $arguments ) | ||
__get ( string $id ) : mixed | ||
addTeam ( $teamId ) | ||
applyGlobalVarsToValue ( $value ) | ||
aws ( string | DBServer | DBFarmRole | DBEBSVolume $awsRegion = null, string $awsAccessKeyId = null, string $awsSecretAccessKey = null, string $certificate = null, string $privateKey = null ) : |
Gets an Amazon Web Service (Aws) factory instance | |
azure ( ) : |
Gets an Azure client instance | |
clearTeams ( ) | ||
cloudCredentialsList ( array $clouds = null, array $credentialsFilter = [], array $propertiesFilter = [], boolean $cacheResult = true ) : |
Gets cloud credentials for listed clouds | |
cloudstack ( string $platform = 'cloudstack', string $apiUrl = null, string $apiKey = null, string $secretKey = null ) : |
Gets an CloudStack client instance | |
create ( $name, $clientId ) | ||
delete ( $id = null ) | ||
enablePlatform ( $platform, $enabled = true ) | ||
get ( string $serviceid ) : mixed | Gets an service or parameter by its id. | |
getAccountId ( ) : integer | Gets identifier of the Account | |
getAwsTags ( ) : array | Gets AWS tags that should be applied to the resource | |
getEnabledPlatforms ( $cacheResult = false, $clouds = null ) | ||
getFarmsCount ( ) | ||
getFullConfiguration ( ) : array | Gets client_environment_properties | |
getLocations ( ) | ||
getPlatformConfigValue ( string $key, boolean $encrypted = true, string $group = '' ) : mixed | Gets client_environment_properties value. | |
getRunningServersCount ( ) | ||
getTeams ( ) | ||
init ( string $className = null ) : Scalr_Environment | Init | |
isPlatformEnabled ( $platform ) | ||
keychain ( string $cloud ) : |
Gets specified cloud credentials for this environment | |
loadDefault ( $clientId ) | ||
openstack ( |
Gets an OpenStack client instance | |
removeTeam ( $teamId ) | ||
save ( $forceInsert = false ) | ||
setPlatformConfig ( array $props, boolean $encrypt = true, string $group = '' ) | Saves platform config value to database. |
Метод | Описание | |
---|---|---|
decryptValue ( $value ) | ||
encryptValue ( $value ) |
Метод | Описание | |
---|---|---|
getEncryptedVariables ( ) : array | TODO: remove all variables encapsulated in cloud credentials Gets the list of the variables which need to be encrypted when we store them to database. | |
getLinkedVariables ( string $linkid = null ) : array | TODO: migrate to the new cloud credentials entities Gets array of the linked variables |
public aws ( string | DBServer | DBFarmRole | DBEBSVolume $awsRegion = null, string $awsAccessKeyId = null, string $awsSecretAccessKey = null, string $certificate = null, string $privateKey = null ) : |
||
$awsRegion | string | DBServer | DBFarmRole | DBEBSVolume | optional The region or object which has both Scalr_Environment instance and cloud location itself |
$awsAccessKeyId | string | optional The AccessKeyId |
$awsSecretAccessKey | string | optional The SecretAccessKey |
$certificate | string | optional Contains x.509 certificate |
$privateKey | string | optional The private key for the certificate |
Результат | Returns Aws instance |
public azure ( ) : |
||
Результат | Returns azure instance from DI container |
public cloudCredentialsList ( array $clouds = null, array $credentialsFilter = [], array $propertiesFilter = [], boolean $cacheResult = true ) : |
||
$clouds | array | optional Clouds list |
$credentialsFilter | array | optional Criteria to filter by CloudCredentials properties |
$propertiesFilter | array | optional Criteria to filter by CloudCredentialsProperties |
$cacheResult | boolean | optional Cache result |
Результат |
public cloudstack ( string $platform = 'cloudstack', string $apiUrl = null, string $apiKey = null, string $secretKey = null ) : |
||
$platform | string | Platform name |
$apiUrl | string | The endpoint name url |
$apiKey | string | Api key |
$secretKey | string | Secret key |
Результат | Returns cloudstack instance from DI container |
public getAccountId ( ) : integer | ||
Результат | integer | Returns identifier of the Account |
public getAwsTags ( ) : array | ||
Результат | array | Returns list of the AWS tags |
public getEnabledPlatforms ( $cacheResult = false, $clouds = null ) |
public getFullConfiguration ( ) : array | ||
Результат | array | Returns all config entries |
public getPlatformConfigValue ( string $key, boolean $encrypted = true, string $group = '' ) : mixed | ||
$key | string | Property name. |
$encrypted | boolean | optional This value is ignored and never taken into account |
$group | string | optional Group name. |
Результат | mixed | Returns config value on success or NULL if value does not exist. |
public openstack ( |
||
$platform | The platform name or Openstack config | |
$region | string | optional The region |
Результат | Returns openstack instance from DI container |