blob: bc4b1567c8404afd78941d61f220b8b214f8a6c8 [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 Williamsa1347412022-12-06 10:56:22 -060021 PSU Power good property It is a read-only property.
Kuiying Wangeb458372018-10-23 11:55:14 +080022 - name: State
23 type: int32
24 default: 0
25 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060026 System power status 0: power is off 1: power is on Setting its value
27 to change the system state Read its value to get the system state.