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:bandwidth.
Located at OpenCloud/Compute/Resource/Server.php
Methods summary
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
|
|
public
Guzzle\Http\Message\Response
|
|
public
Guzzle\Http\Message\Response
|
|
public
object
|
|
public
Guzzle\Http\Message\Response
|
|
public
Guzzle\Http\Message\Response
|
Methods inherited from OpenCloud\Common\Resource\PersistentResource
checkExtension(),
delete(),
refresh(),
refreshFromLocationUrl(),
update(),
waitFor()
Methods inherited from OpenCloud\Common\Resource\BaseResource
findLink(),
getClient(),
getMetadata(),
getParent(),
getService(),
getUrl(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
parseResponse(),
resourceName(),
setMetadata(),
setParent(),
setService()
Methods inherited from OpenCloud\Common\Base
__call(),
checkJsonError(),
generateUuid(),
getInstance(),
getLogger(),
hasLogger(),
makeResourceIteratorOptions(),
populate(),
setLogger(),
stripNamespace(),
toCamel(),
toUnderscores()
Magic methods summary
Properties summary
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
|
$volume
The bootable volume for this server. |
|
public
boolean
|
$volumeDeleteOnTermination
Whether to delete the bootable volume when the server is terminated (deleted). |
|
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. |
|
public
string
|
$extendedStatus
Virtual machine status. |
|
public
string
|
$taskStatus
Status indicating a running task |
|
public
integer
|
$powerStatus
Power status of the VM |
|
public
string|object
|
$keypair
Keypair or string representation of keypair name |
|
public
string
|
$user_data
Cloud-init boot executable code |