API v2: IPMI πΒΆ
Note
This feature is available only if the deviceβs IPMI port is use.
Data StructuresΒΆ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Format: IPv4 address (e.g. |
|
number |
yes |
Value range: from |
|
string |
yes |
Format: IPv4 address (e.g. |
Retrieve Available Attributes of the IPMIModelΒΆ
Request
Method |
|
Path |
|
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 |
|
Path |
|
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 |
|
Path |
|
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 |
|
Path |
|
Headers |
|
Body |
|
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"
}