Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Enum
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • Flavor
  • Image
  • Network
  • Server
  • ServerMetadata
  • VolumeAttachment
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class Network

The Network class represents a single virtual network

OpenCloud\Common\Base
Extended by OpenCloud\Common\Resource\BaseResource
Extended by OpenCloud\Common\Resource\PersistentResource
Extended by OpenCloud\Common\PersistentObject
Extended by OpenCloud\Compute\Resource\Network
Namespace: OpenCloud\Compute\Resource
Located at OpenCloud/Compute/Resource/Network.php
Methods summary
public OpenCloud\Compute\Resource\Network
# __construct( OpenCloud\Compute\Service $service, string|null $id = null )

Creates a new isolated Network object

Creates a new isolated Network object

NOTE: contains hacks to recognize the Rackspace public and private networks. These are not really networks, but they show up in lists.

Parameters

$service
OpenCloud\Compute\Service
$service The compute service associated with the network
$id
string|null
$id The ID of the network (this handles the pseudo-networks Network::RAX_PUBLIC and Network::RAX_PRIVATE

Returns

OpenCloud\Compute\Resource\Network

Overrides

OpenCloud\Common\Resource\BaseResource::__construct()
public Guzzle\Http\Message\Response
# update( array $params = array() )

Always throws an error; updates are not permitted

Always throws an error; updates are not permitted

Parameters

$params
array
$params

Returns

Guzzle\Http\Message\Response

Throws

OpenCloud\Common\Exceptions\NetworkUpdateError
always

Overrides

OpenCloud\Common\Resource\PersistentResource::update()
public OpenCloud\HttpResponse
# delete( )

Deletes an isolated network

Deletes an isolated network

Returns

OpenCloud\HttpResponse

Throws

NetworkDeleteError
if HTTP status is not Success

Api

Overrides

OpenCloud\Common\Resource\PersistentResource::delete()
public string
# name( )

returns the visible name (label) of the network

returns the visible name (label) of the network

Returns

string

Throws

NameError

Api

Overrides

OpenCloud\Common\Resource\PersistentResource::name()
protected object
# createJson( )

Creates the JSON object for the Create() method

Creates the JSON object for the Create() method

Returns

object

Throws

RuntimeException

Overrides

OpenCloud\Common\Resource\PersistentResource::createJson()
public mixed
# getUrl( null $path = null, array $query = array() )

Rackspace Cloud Networks operates on a different URI than OpenStack Neutron. Get this resource's URL

Rackspace Cloud Networks operates on a different URI than OpenStack Neutron. Get this resource's URL

Parameters

$path
null
$path URI path to add on
$query
array
$query Query to add on

Returns

mixed

Overrides

OpenCloud\Common\Resource\BaseResource::getUrl()
public string
# getResourcePath( )

Ascertain the correct URI path.

Ascertain the correct URI path.

Returns

string
Methods inherited from OpenCloud\Common\Resource\PersistentResource
checkExtension(), create(), getAlias(), noCreate(), noDelete(), noUpdate(), refresh(), refreshFromLocationUrl(), updateJson(), waitFor()
Methods inherited from OpenCloud\Common\Resource\BaseResource
findLink(), getClient(), getMetadata(), getParent(), getService(), jsonCollectionElement(), jsonCollectionName(), jsonName(), parseResponse(), primaryKeyField(), resourceName(), setMetadata(), setParent(), setService()
Methods inherited from OpenCloud\Common\Base
__call(), checkJsonError(), generateUuid(), getInstance(), getJsonHeader(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()
Properties summary
public mixed $id
#
public mixed $label
#
public mixed $cidr
#
protected static string $json_name 'network'
#
protected static string $url_resource 'os-networksv2'
#
protected static string $openStackResourcePath 'os-networks'
#
Properties inherited from OpenCloud\Common\Resource\BaseResource
$metadata, $parent, $service
Properties inherited from OpenCloud\Common\Base
$aliases
PHP OpenCloud API API documentation generated by ApiGen 2.8.0