API v2: IPMI πŸ†•ΒΆ

Note

This feature is available only if the device’s IPMI port is use.

Data StructuresΒΆ

IPMIModelΒΆ

Attribute

Type

Required

Description

host

string

yes

Format: IPv4 address (e.g. 192.168.0.1).

mask

number

yes

Value range: from 0 to 32.”

gateway

string

yes

Format: IPv4 address (e.g. 192.168.0.1).

Retrieve Available Attributes of the IPMIModelΒΆ

Request

Method

GET

Path

/api/v2/objspec/ipmi

GET /api/v2/objspec/ipmi

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/objspec/ipmi'

Get IPMI Configuration SetupΒΆ

Request

Method

GET

Path

/api/v2/network/ipmi

GET /api/v2/network/ipmi

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/network/ipmi'

Response

{
    "ipmi": {
        "host": "192.168.1.100",
        "mask": 24,
        "gateway": "192.168.1.1"
    },
    "result": "success"
}

Get the Status of IPMIΒΆ

Request

Method

GET

Path

/network/ipmi/enabled

GET /api/v2/network/ipmi/enabled

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/network/ipmi/enabled'

Response

{
    "ipmi_enabled": false,
    "result": "success"
}

Create IPMI ConfigurationΒΆ

Request

Method

POST

Path

/api/v2/network/ipmi

Headers

Content-Type: Application/json

Body

IPMIModel

POST /api/v2/network/ipmi

Example Request

curl -s -k -X POST \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
      -H 'Content-Type: application/json' \
  'https://10.0.214.98/api/v2/network/ipmi' \
      -d'{"host": "192.168.1.100","mask": 24,"gateway": "192.168.1.1"}'

Response

{
    "ipmi": {
        "host": "192.168.1.100",
        "mask": 24,
        "gateway": "192.168.1.1"
    },
    "result": "success"
}