class OpenStack

This class is the primary entry point for working with the SDK. It allows for the easy creation of OpenStack services.

Methods

__construct (array $options = array(), Builder $builder = null)

No description

computeV2 (array $options = array()) : Service

Creates a new Compute v2 service.

networkingV2 (array $options = array()) : Service

Creates a new Networking v2 service.

networkingV2ExtLayer3 (array $options = array()) : Service

Creates a new Networking v2 Layer 3 service.

networkingV2ExtSecGroups (array $options = array()) : Service

Creates a new Networking v2 Layer 3 service.

identityV2 (array $options = array()) : Service

Creates a new Identity v2 service.

identityV3 (array $options = array()) : Service

Creates a new Identity v3 service.

objectStoreV1 (array $options = array()) : Service

Creates a new Object Store v1 service.

blockStorageV2 (array $options = array()) : Service

Creates a new Block Storage v2 service.

imagesV2 (array $options = array()) : Service

Creates a new Images v2 service.

metricGnocchiV1 (array $options = array()) : Service

Creates a new Gnocchi Metric service v1

Details

__construct(array $options = array(), Builder $builder = null)

Parameters

$options array User-defined options

$options['username'] = (string) Your OpenStack username [REQUIRED] ['password'] = (string) Your OpenStack password [REQUIRED] ['tenantId'] = (string) Your tenant ID [REQUIRED if tenantName omitted] ['tenantName'] = (string) Your tenant name [REQUIRED if tenantId omitted] ['authUrl'] = (string) The Keystone URL [REQUIRED] ['debugLog'] = (bool) Whether to enable HTTP logging [OPTIONAL] ['logger'] = (LoggerInterface) Must set if debugLog is true [OPTIONAL] ['messageFormatter'] = (MessageFormatter) Must set if debugLog is true [OPTIONAL] ['requestOptions'] = (array) Guzzle Http request options [OPTIONAL]

$builder Builder

Example code

$openStack->__construct($options, $builder);

computeV2(array $options = array())

Creates a new Compute v2 service.

Parameters

$options array Options that will be used in configuring the service.

Return value

Service

Example code

$service = $openStack->computeV2($options);

networkingV2(array $options = array())

Creates a new Networking v2 service.

Parameters

$options array Options that will be used in configuring the service.

Return value

Service

Example code

$service = $openStack->networkingV2($options);

networkingV2ExtLayer3(array $options = array())

Creates a new Networking v2 Layer 3 service.

Parameters

$options array Options that will be used in configuring the service.

Return value

Service

Example code

$service = $openStack->networkingV2ExtLayer3($options);

networkingV2ExtSecGroups(array $options = array())

Creates a new Networking v2 Layer 3 service.

Parameters

$options array Options that will be used in configuring the service.

Return value

Service

Example code

$service = $openStack->networkingV2ExtSecGroups($options);

identityV2(array $options = array())

Creates a new Identity v2 service.

Parameters

$options array Options that will be used in configuring the service.

Return value

Service

Example code

$service = $openStack->identityV2($options);

identityV3(array $options = array())

Creates a new Identity v3 service.

Parameters

$options array Options that will be used in configuring the service.

Return value

Service

Example code

$service = $openStack->identityV3($options);

objectStoreV1(array $options = array())

Creates a new Object Store v1 service.

Parameters

$options array Options that will be used in configuring the service.

Return value

Service

Example code

$service = $openStack->objectStoreV1($options);

blockStorageV2(array $options = array())

Creates a new Block Storage v2 service.

Parameters

$options array Options that will be used in configuring the service.

Return value

Service

Example code

$service = $openStack->blockStorageV2($options);

imagesV2(array $options = array())

Creates a new Images v2 service.

Parameters

$options array Options that will be used in configuring the service.

Return value

Service

Example code

$service = $openStack->imagesV2($options);

metricGnocchiV1(array $options = array())

Creates a new Gnocchi Metric service v1

Parameters

$options array

Return value

Service

Example code

$service = $openStack->metricGnocchiV1($options);