Свойство | Тип | Описание | |
---|---|---|---|
$accountId | integer | The identifier of the Account | |
$added | DateTime | The timestamp when this environment was added | |
$defaultPriority | integer | The default priority of the environment | |
$id | integer | The identifier of the Environment | |
$name | string | The name of the environment | |
$status | string | The status of the environment |
Метод | Описание | |
---|---|---|
__construct ( string $accountId = null ) | Constructor | |
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 | |
cloudCredentialsList ( array $clouds = null, array $credentialsFilter = [], array $propertiesFilter = [], boolean $cacheResult = true ) : |
Gets cloud credentials for listed clouds | |
delete ( boolean $force = false ) | ||
getAccountId ( ) : integer | Gets identifier of the Account | |
getProperties ( ) : |
Gets environment properties list | |
getProperty ( string $name ) : |
Gets environment property | |
keychain ( string $cloud ) : |
Gets specified cloud credentials for this environment | |
save ( ) | ||
setProperty ( string $name, string $value ) | Sets Environment property |
public __construct ( string $accountId = null ) | ||
$accountId | string | optional The identifier of the account |
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 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 getAccountId ( ) : integer | ||
Результат | integer | Returns identifier of the Account |
public getProperties ( ) : |
||
Результат |
public getProperty ( string $name ) : |
||
$name | string | Property name |
Результат |
public setProperty ( string $name, string $value ) | ||
$name | string | Property name |
$value | string | Property value |
public DateTime $added | ||
Результат | DateTime |
public int $defaultPriority | ||
Результат | integer |