Add host/hostId to instance action events API
This patch adds a new microversion to
``GET /servers/{server_id}/os-instance-actions/{req_id}`` API to
include the ``host`` field for admin and an ``hostId`` for all users
by default. And the display of newly added ``host`` field will be
controlled by the same policy as the ``traceback`` field.
The newly added fields can be used to determine on which host a
given action event occurred.
Part of blueprint: add-host-to-instance-action-events
Change-Id: I2f8b4a12a088b9ed96b428eafde2e0c478fb1db5
This commit is contained in:
@@ -111,14 +111,16 @@ Response
|
||||
- events.finish_time: event_finish_time
|
||||
- events.result: event_result
|
||||
- events.traceback: event_traceback
|
||||
- events.hostId: event_hostId
|
||||
- events.host: event_host
|
||||
- updated_at: updated_instance_action
|
||||
|
||||
**Example Show Server Action Details For Admin (v2.1)**
|
||||
**Example Show Server Action Details For Admin (v2.62)**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-instance-actions/instance-action-get-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-instance-actions/v2.62/instance-action-get-resp.json
|
||||
:language: javascript
|
||||
|
||||
**Example Show Server Action Details For Non-Admin (v2.51)**
|
||||
**Example Show Server Action Details For Non-Admin (v2.62)**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-instance-actions/v2.51/instance-action-get-non-admin-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-instance-actions/v2.62/instance-action-get-non-admin-resp.json
|
||||
:language: javascript
|
||||
|
||||
Reference in New Issue
Block a user