Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

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

Class Network

The Network class represents a single virtual network

OpenCloud\Common\Base
Extended by OpenCloud\Common\PersistentObject
Extended by OpenCloud\Compute\Network
Namespace: OpenCloud\Compute
Located at OpenCloud/Compute/Network.php
Methods summary
public
# __construct( OpenCloud\Compute\Service $service, string $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 The compute service associated with the network
$id
string
$id The ID of the network (this handles the pseudo-networks RAX_PUBLIC and RAX_PRIVATE

Overrides

OpenCloud\Common\PersistentObject::__construct()
public
# Update( mixed $params = array() )

Always throws an error; updates are not permitted

Always throws an error; updates are not permitted

Throws

NetworkUpdateError
always
public OpenCloud\HttpResponse
# Delete( )

Deletes an isolated network

Deletes an isolated network

Returns

OpenCloud\HttpResponse

Throws

NetworkDeleteError
if HTTP status is not Success

Api

public string
# Name( )

returns the visible name (label) of the network

returns the visible name (label) of the network

Returns

string

Api

protected
# CreateJson( )

Creates the JSON object for the Create() method

Creates the JSON object for the Create() method

Methods inherited from OpenCloud\Common\PersistentObject
__set(), action(), checkExtension(), create(), createJson(), createUrl(), customAction(), delete(), findLink(), getParent(), getService(), id(), jsonCollectionElement(), jsonCollectionName(), jsonName(), name(), noCreate(), noDelete(), noUpdate(), parent(), primaryKeyField(), refresh(), region(), resourceName(), service(), setParent(), setService(), status(), update(), updateJson(), url(), waitFor()
Methods inherited from OpenCloud\Common\Base
checkJsonError(), getHttpRequestObject(), getLogger(), makeQueryString(), populate(), setLogger(), setProperty()
Properties summary
public mixed $id
#
public mixed $label
#
public mixed $cidr
#
protected static string $json_name 'network'
#
protected static string $url_resource 'os-networksv2'
#
PHP OpenCloud API API documentation generated by ApiGen 2.8.0