Pages

Wednesday, October 16, 2024

[curl] AMI Redfish - OData Service

OData Service

[curl]

curl -b cjar -k https://${bmc_ip}/redfish/v1/odata | json_pp -json_opt pretty,canonical

For example:
[curl in Linux]
$ curl -b cjar -k https://192.168.1.17/redfish/v1/odata | json_pp -json_opt pretty,canonical
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1321  100  1321    0     0  20640      0 --:--:-- --:--:-- --:--:-- 20640
{
   "@odata.context" : "/redfish/v1/$metadata",
   "@odata.etag" : "\"1729048547\"",
   "@odata.id" : "/redfish/v1/odata",
   "value" : [
      {
         "kind" : "Singleton",
         "name" : "Service",
         "url" : "/redfish/v1/"
      },
      {
         "kind" : "Singleton",
         "name" : "Systems",
         "url" : "/redfish/v1/Systems"
      },
      {
         "kind" : "Singleton",
         "name" : "Chassis",
         "url" : "/redfish/v1/Chassis"
      },
      {
         "kind" : "Singleton",
         "name" : "Managers",
         "url" : "/redfish/v1/Managers"
      },
      {
         "kind" : "Singleton",
         "name" : "Tasks",
         "url" : "/redfish/v1/TaskService"
      },
      {
         "kind" : "Singleton",
         "name" : "AccountService",
         "url" : "/redfish/v1/AccountService"
      },
      {
         "kind" : "Singleton",
         "name" : "SessionService",
         "url" : "/redfish/v1/SessionService"
      },
      {
         "kind" : "Singleton",
         "name" : "EventService",
         "url" : "/redfish/v1/EventService"
      },
      {
         "kind" : "Singleton",
         "name" : "JsonSchemas",
         "url" : "/redfish/v1/JsonSchemas"
      },
      {
         "kind" : "Singleton",
         "name" : "Registries",
         "url" : "/redfish/v1/Registries"
      },
      {
         "kind" : "Singleton",
         "name" : "CompositionService",
         "url" : "/redfish/v1/CompositionService"
      },
      {
         "kind" : "Singleton",
         "name" : "TelemetryService",
         "url" : "/redfish/v1/TelemetryService"
      },
      {
         "kind" : "Singleton",
         "name" : "UpdateService",
         "url" : "/redfish/v1/UpdateService"
      },
      {
         "kind" : "Singleton",
         "name" : "Sessions",
         "url" : "/redfish/v1/SessionService/Sessions"
      },
      {
         "kind" : "Singleton",
         "name" : "DynamicExtension",
         "url" : "/redfish/v1/DynamicExtension"
      },
      {
         "kind" : "Singleton",
         "name" : "configurations",
         "url" : "/redfish/v1/configurations"
      }
   ]
}


Reference
[1] "The Art Of Scripting HTTP Requests Using Curl" https://curl.se/docs/httpscripting.html
[2] "Redfish Schema Supplement", DMTF DSP0268 https://www.dmtf.org/dsp/DSP0268
[3] "Redfish Specification", DMTF DSP0266 https://www.dmtf.org/dsp/DSP0266
[4] "OData Documentation" https://www.odata.org/documentation/


Last Updated: 16-10-2024

No comments:

Post a Comment