Administrator Guide

Device Actions
SHM REST resources include device actions.
/api/SEM/1.0/adapters/{id}/drives/{id}/blink/ON|OFF [PUT]
/api/SEM/1.0/drives/{id}/firmware/blink/ON|OFF [PUT]
/api/SEM/1.0/adapters/{id}/enclosures/{id}/drives/{id}/blink/ON|OFF [PUT]
Firmware File Information
SHM REST resources include firmware file information.
/api/SEM/1.0/system/firmware [GET]
Object Aliases
For several of the object types, an alias may be used in place of the full name of the object as indicated in the table here:
Table 31. Object Aliases
Object Alias
adapters
a
enclosures
e
enclosures
enc
drives
d
For example, the following two REST calls are equivalent:
http://127.0.0.1:8012/api/SEM/1.0/adapters/0/enclosures/0/drives/10
http://127.0.0.1:8012/api/SEM/1.0/a/0/enc/0/d/10
Device inventory
All GET commands available in the SHM CLI are implemented in the REST API. The information returned from a REST query is different
from the output of a SHM CLI command. REST API calls return output equivalent to the output of SHM CLI information commands.
For example,
Get a list of adapters:
[base_url] /api/SEM/1.0/adapters
Get a list of enclosures for a specific adapter:
[base_url] /api/SEM/1.0/adapters/0/enclosures
Get a list of fans for specific enclosure:
[base_url] /api/SEM/1.0/adapters/0/enclosures/0/fans
[base_url] /api/SEM/1.0/ enclosures/[WWID]/fans
Get a list of all drives:
[base_url] /api/SEM/1.0/drives
Get a list of drives in a drawer in an enclosure:
[base_url] /api/SEM/1.0/adapters/0/enclosures/0/drawer/2/drives
44
Dell Storage enclosure REST API