/mgmt/status/default/OtherSensors GET

Use the HTTP GET method with the /mgmt/status/default/OtherSensors resource to request status information about the sensors on the appliance that have true or false values.

Resource URL

https://host:port/mgmt/status/default/OtherSensors
Where port is 5554 by default.

Request headers

The following header must be sent with the request:
Authorization
This header must be sent to perform authentication.

Request body format

None.

Security requirements

The caller must be authenticated as an appliance user with sufficient authority. For more information about security, see Types of user and how they are authenticated and User authorization, credential mapping, and access profiles.

Response status codes

200
Status information retrieved successfully.
400
Invalid data provided.
401
Not authenticated.
The caller must be authenticated as an appliance user. See Types of user and how they are authenticated for more information.
403
Not authorized.
The caller is authenticated but does not the authority to perform this action. See User authorization, credential mapping, and access profiles for more information.

Response headers

Content-Type
This header is returned with a value of application/json.

Response body format

The response is in JSON format. The response includes information about appliance sensors. Each object contains the following fields:
Name
String.
The name of the sensor that is being monitored. The name is in the form of a descriptive predicate. If the value of the sensor is true, the descriptive predicate is true; if the value of the sensor is false, the descriptive predicate is false. For example, the sensor name Intrusion detected with a value of false means that intrusion is not detected.
Value
String.
The value of the sensor. The value is either true or false.
ReadingStatus
String.
The current status of the sensor. The status can be one of the following values:
  • ok The reading of the sensor is normal.
  • failure The reading of the sensor indicates a problem or a failure in the appliance.
  • noReading No reading of the sensor is available at this time. An internal hardware or software error might occur. Contact IBM Support.
  • invalid The appliance software requested a sensor reading by using an invalid sensor identifier. An internal software error might occur. Contact IBM Support.

Examples

The following example requests information about appliance sensors.

The following URL is used with the HTTP GET method:
https://localhost:5554/mgmt/status/default/OtherSensors
The following listing shows an example received response:
{
  "_links": {
    "self": {
      "href": "/mgmt/status/default/OtherSensors"
    },
    "doc": {
      "href": "/mgmt/docs/status/OtherSensors"
    }
  },
  "OtherSensors": [
    {
      "Name": "Intrusion Detected",
      "Value": "false",
      "ReadingStatus": "ok"
    },
    {
      "Name": "Power Supply 1 AC Lost",
      "Value": "false",
      "ReadingStatus": "ok"
    },
    {
      "Name": "Power Supply 1 Output Failure",
      "Value": "true",
      "ReadingStatus": "failure"
    },
    {
      "Name": "Power Supply 2 AC Lost",
      "Value": "false",
      "ReadingStatus": "ok"
    },
    {
      "Name": "Power Supply 2 Output Failure",
      "Value": "false",
      "ReadingStatus": "ok"
    }
  ]
}