why the object cannot list in rest api?

www ouyangxuan10 at 163.com
Thu Nov 7 22:34:26 AEDT 2019



The problem is not the command. If you restart mapperx, it will appear. It should be the problem of mapperx?


{
    "data": [
        "/xyz/openbmc_project/dump/entry",        restart mapperx, the object can be  display in rest-api
        "/xyz/openbmc_project/dump/entry/1",
        "/xyz/openbmc_project/dump/internal",
        "/xyz/openbmc_project/dump/internal/manager"
    ],
    "message": "200 OK",
    "status": "ok"
}


thanks,
Byron




At 2019-11-07 19:02:27, "Devender Rao" <devenrao at in.ibm.com> wrote:

Do check out this readme document for the commands
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-debug-collector/+/25357
 
----- Original message -----
From: www <ouyangxuan10 at 163.com>
Sent by: "openbmc" <openbmc-bounces+devenrao=in.ibm.com at lists.ozlabs.org>
To: "openbmc at lists.ozlabs.org" <openbmc at lists.ozlabs.org>
Cc:
Subject: [EXTERNAL] why the object cannot list in rest api?
Date: Thu, Nov 7, 2019 1:56 PM
 
Dear all,
 
There are some objects on DBUS that can be displayed with busctl command, but can't be displayed with rest API. Is there any reason for this?
└─/xyz
  └─/xyz/openbmc_project
    └─/xyz/openbmc_project/dump
      ├─/xyz/openbmc_project/dump/entry
      │ └─/xyz/openbmc_project/dump/entry/1
      └─/xyz/openbmc_project/dump/internal
        └─/xyz/openbmc_project/dump/internal/manager
 
curl -k -H "X-Auth-Token: $token" https://${bmc}/xyz/openbmc_project/dump/list
{
  "data": [
    "/xyz/openbmc_project/dump/internal",
    "/xyz/openbmc_project/dump/internal/manager"
  ],
  "message": "200 OK",
  "status": "ok"
}
 
thanks,
Byron
 
 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191107/6ce1052c/attachment.htm>


More information about the openbmc mailing list