Server interface.
Bases: novaclient.base.Resource
Actions – Retrieve server actions.
Add an IP address on a network.
| Parameters: | network_id – The ID of the network the IP should be on. |
|---|
Add floating IP to an instance
| Parameters: | address – The ip address or FloatingIP to add to the instance |
|---|
Add a security group to an instance.
Backup a server instance.
| Parameters: |
|
|---|
Update the password for a server.
Confirm that the resize worked, thus removing the original server.
Create an image based on this server.
| Parameters: |
|
|---|
Delete (i.e. shut down and delete the image) this server.
Diagnostics – Retrieve server diagnostics.
Get text console log output from Server.
| Parameters: | length – The number of lines you would like to retrieve (as int) |
|---|
Get vnc console for a Server.
| Parameters: | console_type – Type of console (‘novnc’ or ‘xvpvnc’) |
|---|
Migrates a running instance to a new machine.
Lock – Lock the instance from certain operations.
Migrate a server to a new host.
Generate a simplified list of addresses
Pause – Pause the running server.
Reboot the server.
| Parameters: | reboot_type – either REBOOT_SOFT for a software-level reboot, or REBOOT_HARD for a virtual power cycle hard reboot. |
|---|
Rebuild – shut down and then re-image – this server.
| Parameters: |
|
|---|
Remove an IP address.
| Parameters: | address – The IP address to remove. |
|---|
Remove floating IP from an instance
| Parameters: | address – The ip address or FloatingIP to remove |
|---|
Remova a security group from an instance.
Rescue – Rescue the problematic server.
Reset the state of an instance to active or error.
Resize the server’s resources.
| Parameters: | flavor – the Flavor (or its ID) to resize to. |
|---|
Until a resize event is confirmed with confirm_resize(), the old server will be kept around and you’ll be able to roll back to the old flavor quickly with revert_resize(). All resizes are automatically confirmed after 24 hours.
Resume – Resume the suspended server.
Revert a previous resize, switching back to the old server.
Start – Start the paused server.
Stop – Stop the running server.
Suspend – Suspend the running server.
Unlock – Remove instance lock.
Unpause – Unpause the paused server.
Unrescue – Unrescue the rescued server.
Update the name or the password for this server.
| Parameters: |
|
|---|
Bases: novaclient.v1_1.base.BootingManagerWithFind
Retrieve server actions.
Add an IP address on a network.
| Parameters: |
|
|---|
Add a floating ip to an instance
| Parameters: |
|
|---|
Add a Security Group to a instance
| Parameters: |
|
|---|
Backup a server instance.
| Parameters: |
|
|---|
Update the password for a server.
Confirm that the resize worked, thus removing the original server.
| Parameters: | server – The Server (or its ID) to share onto. |
|---|
Create (boot) a new server.
| Parameters: |
|
|---|
Snapshot a server.
| Parameters: |
|
|---|
Delete (i.e. shut down and delete the image) this server.
Delete metadata from an server :param server: The Server to add metadata to :param keys: A list of metadata keys to delete from the server
Retrieve server diagnostics.
Get text console log output from Server.
| Parameters: |
|
|---|
Get a vnc console for an instance
| Parameters: |
|
|---|
Get a list of servers. Optional detailed returns details server info. Optional reservation_id only returns instances with that reservation_id.
| Return type: | list of Server |
|---|
Migrates a running instance to a new machine.
| Parameters: |
|
|---|
Lock the server.
Pause the server.
Reboot a server.
| Parameters: |
|
|---|
Rebuild – shut down and then re-image – a server.
| Parameters: |
|
|---|
Remove an IP address.
| Parameters: |
|
|---|
Remove a floating IP address.
| Parameters: |
|
|---|
Add a Security Group to a instance
| Parameters: |
|
|---|
Rescue the server.
Reset the state of an instance to active or error.
| Parameters: |
|
|---|
Resize a server’s resources.
| Parameters: |
|
|---|
Until a resize event is confirmed with confirm_resize(), the old server will be kept around and you’ll be able to roll back to the old flavor quickly with revert_resize(). All resizes are automatically confirmed after 24 hours.
Resume the server.
Revert a previous resize, switching back to the old server.
| Parameters: | server – The Server (or its ID) to share onto. |
|---|
Set a servers metadata :param server: The Server to add metadata to :param metadata: A dict of metadata to add to the server
Start the server.
Stop the server.
Suspend the server.
Unlock the server.
Unpause the server.
Unrescue the server.