Skip to content

Commit eb399c5

Browse files
committed
Add server event command documentation for compute API 2.21
The 2.21 compute API microversion allows listing instance action events and getting action event details for a deleted server (which can be useful for auditing until the deleted server is purged). As far as OSC is concerned it's just a matter of specifying --os-compute-api-version 2.21 or higher when listing events or showing event details, so this change mentions 2.21 in the description of those commands. Related to nova blueprint os-instance-actions-read-deleted-instances Change-Id: If276c794f448b6fa5b0845499f3507a159acab85
1 parent 57dec52 commit eb399c5

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

openstackclient/compute/v2/server_event.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828

2929

3030
class ListServerEvent(command.Lister):
31-
_description = _("List recent events of a server")
31+
_description = _(
32+
"List recent events of a server. "
33+
"Specify ``--os-compute-api-version 2.21`` "
34+
"or higher to show events for a deleted server.")
3235

3336
def get_parser(self, prog_name):
3437
parser = super(ListServerEvent, self).get_parser(prog_name)
@@ -92,8 +95,11 @@ def take_action(self, parsed_args):
9295

9396
class ShowServerEvent(command.ShowOne):
9497
_description = _(
95-
"Show server event details. Specify ``--os-compute-api-version 2.51`` "
96-
"or higher to show events for non-admin users.")
98+
"Show server event details. "
99+
"Specify ``--os-compute-api-version 2.21`` "
100+
"or higher to show event details for a deleted server. "
101+
"Specify ``--os-compute-api-version 2.51`` "
102+
"or higher to show event details for non-admin users.")
97103

98104
def get_parser(self, prog_name):
99105
parser = super(ShowServerEvent, self).get_parser(prog_name)

0 commit comments

Comments
 (0)