The OS-EXT-STS:power_state attribute in a server GET response
is enum values which are meaningless unless you look at the
nova/compute/power_states.py code. This change adds a mapping
to the description on that field in the api-ref.
Note there are gaps in the sequence, those are for unused values
as seen in the nova.objects.fields.InstancePowerState class.
Change-Id: I2ef9f493e66ab04b13f439e73247dc306a1514b4
type: string
OS-EXT-STS:power_state:
description: |
- The power state of the instance.
+ The power state of the instance. This is an enum value that is mapped as::
+
+ 0: NOSTATE
+ 1: RUNNING
+ 3: PAUSED
+ 4: SHUTDOWN
+ 6: CRASHED
+ 7: SUSPENDED
in: body
required: true
type: integer