Documentation

ServerPowerStatus : string
in package

Instance Power State

Table of Contents

CRASHED  = 'crashed'
NO_STATE  = 'noState'
PAUSED  = 'paused'
RUNNING  = 'running'
SHUTDOWN  = 'shutdown'
SUSPENDED  = 'suspended'
fromOpenStackPowerState()  : ServerPowerStatus
Parse the remote PowerState in expected Bennu value

Cases

Methods

fromOpenStackPowerState()

Parse the remote PowerState in expected Bennu value

public static fromOpenStackPowerState(string $powerState) : ServerPowerStatus

0: NOSTATE 1: RUNNING 3: PAUSED 4: SHUTDOWN 6: CRASHED 7: SUSPENDED

Parameters
$powerState : string

the power state returned from the remote API

Return values
ServerPowerStatus

the correspondent value

Search results