Class Server
A virtual machine (VM) instance in the Cloud Servers environment.
- OpenCloud\Common\Base
-
OpenCloud\Common\Resource\BaseResource
-
OpenCloud\Common\Resource\PersistentResource
-
OpenCloud\Common\Resource\NovaResource
-
OpenCloud\Compute\Resource\Server implements OpenCloud\DNS\Resource\HasPtrRecordsInterface
Note: This implementation supports extension attributes OS-DCF:diskConfig, RAX-SERVER:bandwidth, rax-bandwidth:bandwith.
Located at OpenCloud/Compute/Resource/Server.php
public
|
#
__construct(
Creates a new Server object and associates it with a Compute service |
public
string
|
|
public
Guzzle\Http\Message\Response
|
|
public
|
|
public
Guzzle\Http\Message\Response
|
|
public
boolean|
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
HttpResponse
|
|
public
|
|
public
object
|
|
public
|
#
attachVolume(
Attaches a volume to a server |
public
|
#
detachVolume(
Removes a volume attachment from a server |
public
|
|
public
Collection
|
|
public
|
|
public
|
|
protected
object
|
|
protected
|
action()
|
checkExtension(),
delete(),
getAlias(),
noCreate(),
noDelete(),
noUpdate(),
refresh(),
refreshFromLocationUrl(),
update(),
waitFor()
|
public
string
|
$status |
|
#
The server status. |
public
string
|
$updated |
|
#
The time stamp for the last update. |
public
string
|
$hostId |
|
#
The compute provisioning algorithm has an anti-affinity property that attempts to spread customer VMs across hosts. Under certain situations, VMs from the same customer might be placed on the same host. $hostId represents the host your server runs on and can be used to determine this scenario if it is relevant to your application. |
public
type
|
$addresses |
|
#
Public and private IP addresses for this server. |
public
array
|
$links |
|
#
Server links. |
public
|
$image |
|
#
The Image for this server. |
public
type
|
$flavor |
|
#
The Flavor for this server. |
public
type
|
$networks | array() |
|
public
string
|
$id |
|
#
The server ID. |
public
string
|
$user_id |
|
#
The user ID. |
public
string
|
$name |
|
#
The server name. |
public
string
|
$created |
|
#
The time stamp for the creation date. |
public
string
|
$tenant_id |
|
#
The tenant ID. |
public
string
|
$accessIPv4 |
|
#
The public IP version 4 access address. |
public
string
|
$accessIPv6 |
|
#
The public IP version 6 access address. |
public
integer
|
$progress |
|
#
The build completion progress, as a percentage. Value is from 0 to 100. |
public
string
|
$adminPass |
|
#
The root password (only populated on server creation). |
public
mixed
|
$metadata |
|
#
Metadata key and value pairs. |
protected static
string
|
$json_name | 'server' |
|
protected static
string
|
$url_resource | 'servers' |
|
public
string|object
|
$keypair |
|
#
Keypair or string representation of keypair name |
public
string
|
$user_data |
|
#
Cloud-init boot executable code |
$parent,
$service
|
$aliases
|