Server
class Server extends OperatorResource implements Creatable, Updateable, Deletable, Retrievable, Listable
Traits
Properties
$id | string | |
$ipv4 | string | |
$ipv6 | string | |
$addresses | array | |
$created | DateTimeImmutable | |
$updated | DateTimeImmutable | |
$flavor | Flavor | |
$hostId | string | |
$hypervisorHostname | string | |
$image | Image | |
$links | array | |
$metadata | array | |
$name | string | |
$progress | string | |
$status | string | |
$tenantId | string | |
$userId | string | |
$adminPass | string | |
$taskState | string | |
$powerState | string | |
$vmState | string | |
$fault | Fault |
Methods
Update the current resource with the configuration set out in the user options.
Permanently delete this resource.
Retrieve details of the current resource from the remote API.
Changes the root password for a server.
Reboots the server.
Starts server
Stops server
Rebuilds the server.
Rescues the server.
Unrescues the server.
Resizes the server to a new flavor. Once this operation is complete and server has transitioned to an active state, you will either need to call {see confirmResize()} or {see revertResize()}.
Confirms a previous resize operation.
Reverts a previous resize operation.
Gets a VNC console for a server.
Gets a RDP console for a server.
Gets a Spice console for a server.
Gets a serial console for a server.
Creates an image for the current server.
Iterates over all the IP addresses for this server.
Returns Generator for InterfaceAttachment
Gets an interface attachment.
Creates an interface attachment.
Detaches an interface attachment.
Retrieves metadata from the API.
Resets all the metadata for this server with the values provided. All existing metadata keys will either be replaced or removed.
Merges the existing metadata for the server with the values provided. Any existing keys referenced in the user options will be replaced with the user's new values. All other existing keys will remain unaffected.
Retrieve the value for a specific metadata key.
Remove a specific metadata key.
Add security group to a server (addSecurityGroup action)
Add security group to a server (addSecurityGroup action)
No description
Returns Generator for SecurityGroups
Returns Generator for VolumeAttachment
Attach a volume and returns volume that was attached
Detach a volume
Details
resize(string $flavorId)
Resizes the server to a new flavor. Once this operation is complete and server has transitioned to an active state, you will either need to call {see confirmResize()} or {see revertResize()}.
resetMetadata(array $metadata)
Resets all the metadata for this server with the values provided. All existing metadata keys will either be replaced or removed.
mergeMetadata(array $metadata)
Merges the existing metadata for the server with the values provided. Any existing keys referenced in the user options will be replaced with the user's new values. All other existing keys will remain unaffected.