# openstack.compute.v2.server_action

## The ServerAction Class

The `ServerAction` class inherits from `Resource`.

class openstack.compute.v2.server_action.ServerAction(_synchronized=False, connection=None, **attrs)

  The base resource

  Parameters:

    - _synchronized (bool) – This is not intended to be used directly. See `new()` and `existing()`.

    - connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of `self._connection` in Resource code should protect itself with a check for None.

  resource_key = 'instanceAction'

    Singular form of key for resource.

  resources_key = 'instanceActions'

    Plural form of key for resource.

  base_path = '/servers/%(server_id)s/os-instance-actions'

    The base part of the URI for this resource.

  allow_fetch = True

    Allow get operation for this resource.

  allow_list = True

    Allow list operation for this resource.

  server_id

    The ID of the server that this action relates to.

  action

    The name of the action.

  request_id

    The ID of the request that this action related to.

  user_id

    The ID of the user which initiated the server action.

  project_id

    The ID of the project that this server belongs to.

  message

    The related error message for when an action fails.

  events

    Events

## The ServerActionEvent Class

The `ServerActionEvent` class inherits from `Resource`.

class openstack.compute.v2.server_action.ServerActionEvent(_synchronized=False, connection=None, **attrs)

  The base resource

  Parameters:

    - _synchronized (bool) – This is not intended to be used directly. See `new()` and `existing()`.

    - connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of `self._connection` in Resource code should protect itself with a check for None.

  event

    The name of the event

  start_time

    The date and time when the event was started. The date and time stamp format is ISO 8601

  finish_time

    The date and time when the event finished. The date and time stamp format is ISO 8601

  result

    The result of the event

  traceback

    The traceback stack if an error occurred in this event. This is only visible to cloud admins by default.

  host

    The name of the host on which the event occurred. This is only visible to cloud admins by default.

  host_id

    An obfuscated hashed host ID string, or the empty string if there is no host for the event. This is a hashed value so will not actually look like a hostname, and is hashed with data from the project_id, so the same physical host as seen by two different project_ids will be different. This is useful when within the same project you need to determine if two events occurred on the same or different physical hosts.

  details

    Details of the event. May be unset.

this page last updated: 2026-01-16 23:06:19

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.