Class Port
A port represents a virtual switch port on a logical network switch,
represented by OpenCloud\Networking\Resource\Network
. Virtual instances
(such as servers created using the OpenCloud\Compute\Service
) attach
their interfaces into ports. The port also defines the MAC address and the IP
address(es) to be assigned to the interfaces plugged into them. When IP
addresses are associated to a port, this also implies the port is associated
with a OpenCloud\Networking\Resource\Subnet
, as the IP address is taken
from the allocation pool for a specific subnet.
- OpenCloud\Common\Base
-
OpenCloud\Common\Resource\BaseResource
-
OpenCloud\Common\Resource\PersistentResource
-
OpenCloud\Networking\Resource\Port
Package: OpenCloud\Networking\Resource
See: http://docs.openstack.org/api/openstack-network/2.0/content/Overview-d1e71.html#Port
Located at OpenCloud/Networking/Resource/Port.php
public
object
|
#
createJson( )
This method is inherited. The inherited method has protected scope but we are
widening the scope to public so this method may be called from other classes
such as |
PATCH_CONTENT_TYPE
|
protected static
string
|
$url_resource
|
# 'ports' |
protected static
string
|
$json_name
|
# 'port' |
protected
mixed
|
$id
|
|
protected
mixed
|
$name
|
|
protected
mixed
|
$adminStateUp
|
|
protected
mixed
|
$networkId
|
|
protected
mixed
|
$deviceId
|
|
protected
mixed
|
$deviceOwner
|
|
protected
mixed
|
$fixedIps
|
|
protected
mixed
|
$macAddress
|
|
protected
mixed
|
$securityGroups
|
|
protected
mixed
|
$status
|
|
protected
mixed
|
$tenantId
|
|
protected
mixed
|
$links
|
|
protected
array
|
$aliases
The aliases configure for the properties of the instance. |
# array(
'admin_state_up' => 'adminStateUp',
'network_id' => 'networkId',
'device_id' => 'deviceId',
'device_owner' => 'deviceOwner',
'fixed_ips' => 'fixedIps',
'mac_address' => 'macAddress',
'security_groups' => 'securityGroups',
'tenant_id' => 'tenantId',
'subnet_id' => 'subnetId',
'ip_address' => 'ipAddress'
) |
protected
array
|
$createKeys
|
# array(
'name',
'adminStateUp',
'networkId',
'deviceId',
'deviceOwner',
'fixedIps',
'macAddress',
'securityGroups',
'tenantId'
) |
protected
array
|
$updateKeys
|
# array(
'name',
'deviceId'
) |
$metadata,
$parent,
$service
|