blob: 3daaf2ac80df0f78c61b4419915413f4504e39ec [file] [log] [blame]
Jayanth Othayoth02dcec32017-05-18 23:31:32 -05001description: >
Dhruvaraj Subhashchandranb34d6fd2020-08-19 13:06:05 -05002 Implement to capture various types of dumps from the
3 host or BMC. This interface is for user to request a particular
4 type of dump.
5
6 Any OpenBMC implementation should provide one implementation
7 of xyz.openbmc_project.Dump.Create per dump type on
8 /xyz/openbmc_project/dump/<dump type>. On multi-host or on multi-BMC
9 systems the instance number can be added to the path to differentiate,
10 for example /xyz/openbmc_project/dump/<dump type><instance-id>.
11
Jayanth Othayoth02dcec32017-05-18 23:31:32 -050012
13methods:
14 - name: CreateDump
15 description: >
Dhruvaraj Subhashchandranb34d6fd2020-08-19 13:06:05 -050016 Method to create a manual Dump.
Dhruvaraj Subhashchandrane6085092020-10-13 02:41:32 -050017 parameters:
18 - name: AdditionalData
Dhruvaraj Subhashchandranc6f2d7a2021-06-23 06:33:32 -050019 type: dict[string, variant[string,uint64]]
Dhruvaraj Subhashchandrane6085092020-10-13 02:41:32 -050020 description: >
21 The additional data, if any, for initiating the dump.
22 The key in this case should be an implementation
23 specific enum defined for the specific type of dump
24 either in xyz or in a domain.
Dhruvaraj Subhashchandranc6f2d7a2021-06-23 06:33:32 -050025 The values can be either a string or a 64 bit number.
Dhruvaraj Subhashchandrane6085092020-10-13 02:41:32 -050026 The enum-format string is required to come from a
27 parallel class with this specific Enum name.
28 All of the Enum strings should be in the format
29 'domain.Dump.Create.CreateParameters.ParamName'.
30 e.g.:
31 {
32 "key1": "value1",
33 "key2": "value2"
34 }
35 ends up in AdditionaData like:
36 ["KEY1=value1", "KEY2=value2"]
Jayanth Othayoth02dcec32017-05-18 23:31:32 -050037 returns:
Dhruvaraj Subhashchandrana3943e62020-09-08 23:24:37 -050038 - name: Path
39 type: object_path
Jayanth Othayoth02dcec32017-05-18 23:31:32 -050040 description: >
Dhruvaraj Subhashchandrana3943e62020-09-08 23:24:37 -050041 The object path of the object that implements
42 xyz.openbmc_project.Common.Progress to track the progress
43 of the dump
Jayanth Othayoth02dcec32017-05-18 23:31:32 -050044 errors:
Jayanth Othayoth02dcec32017-05-18 23:31:32 -050045 - xyz.openbmc_project.Common.File.Error.Write
46 - xyz.openbmc_project.Dump.Create.Error.Disabled
47 - xyz.openbmc_project.Dump.Create.Error.QuotaExceeded
Dhruvaraj Subhashchandran47409122021-01-13 07:39:25 -060048 - xyz.openbmc_project.Common.Error.NotAllowed
Dhruvaraj Subhashchandran08e80992021-06-25 02:07:36 -050049 - xyz.openbmc_project.Common.Error.InvalidArgument