Skip to content

Mapped server.hostname and server.rootDeviceName #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/Compute/v2/Models/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Server extends OperatorResource implements Creatable, Updateable, Deletabl
/** @var string */
public $hostId;

/** @var string */
/** @var string The hypervisor host name provided by the Nova virt driver */
public $hypervisorHostname;

/** @var Image */
Expand Down Expand Up @@ -95,6 +95,12 @@ class Server extends OperatorResource implements Creatable, Updateable, Deletabl
/** @var string */
public $keyName;

/** @var string The hostname set on the instance when it is booted. New in micro version 2.3 */
public $hostname;

/** @var string The root device name for the instance. New in micro version 2.3 */
public $rootDeviceName;

protected $resourceKey = 'server';
protected $resourcesKey = 'servers';
protected $markerKey = 'id';
Expand All @@ -111,6 +117,8 @@ class Server extends OperatorResource implements Creatable, Updateable, Deletabl
'OS-EXT-STS:power_state' => 'powerState',
'OS-EXT-STS:vm_state' => 'vmState',
'OS-EXT-SRV-ATTR:hypervisor_hostname' => 'hypervisorHostname',
'OS-EXT-SRV-ATTR:hostname' => 'hostname',
'OS-EXT-SRV-ATTR:root_device_name' => 'rootDeviceName',
];

/**
Expand Down