Table 31. Accessing the ReST serviceParameter DescriptionHost The address of the host running the ReST server. This address can be the FullyQualified Domain Name (FQDN) of the host or an IP address.Port The port number opened for ReST traffic. The default port is 8012.Program_Space The application namespace: “SEM”.Version The major working version number. Currently “1.0”.For example, the base URL http://127.0.0.1:8012/api/SEM/1.0/ is used to access the ReST server locally.NOTE: For the remainder of this chapter, [base_url] is used in place of the base URL syntax.To obtain information about different devices, you must use the following ReST query:[base_url]/To obtain information about a single device, you must use the following ReST query:[base_url]//The variable represents the different types of devices contained within the storageenclosure. Following are the item_group values (device types):• adapters2• currentsensors• drawers• drives1, 2• driveslots• enclosures2• emms1• emmslots• fans• locks• powersupplies• voltagesensorsNOTE: 1EMM and drive item groups are queried at a higher level without having to reference anadapter or enclosure.NOTE: 2Adapters, enclosures, and drives are the only item groups that can provide more detail on asingle device in the item group by specifying an index value or World Wide ID (WWID).Device inventoryAll GET commands available in the are implemented in the ReST API. The information returned from aReST query is different from the output of a command. ReST API calls return output equivalent to theoutput of information commands.43