blob: 702152ef8b3e12a3523ca5533c7b7dd0b2760885 [file] [log] [blame]
Kuiying Wangeb458372018-10-23 11:55:14 +08001description: >
2 Power control service
3methods:
4 - name: forcePowerOff
5 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -05006 Force power off the host.
Kuiying Wangeb458372018-10-23 11:55:14 +08007 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -05008 - name: status
9 type: boolean
10 description: >
11 The result of power off command.
Kuiying Wangeb458372018-10-23 11:55:14 +080012 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050013 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
14 - xyz.openbmc_project.Chassis.Common.Error.IOError
Kuiying Wangeb458372018-10-23 11:55:14 +080015
16properties:
17 - name: PGood
18 type: boolean
19 default: false
20 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050021 PSU Power good property
22 It is a read-only property.
Kuiying Wangeb458372018-10-23 11:55:14 +080023 - name: State
24 type: int32
25 default: 0
26 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050027 System power status
28 0: power is off
29 1: power is on
30 Setting its value to change the system state
31 Read its value to get the system state.