White Papers

62 REST API Guide OpenManage Essentials | Revision A02
The attributes associated with the discovery action enumeration are defined in the following table.
Enum Value
Description
0
Do not perform discovery or inventory
1
Perform only discovery
2
Perform both discovery and inventory
2.17.1 Get list of Discovery Groups and Discovery Ranges
The following resource URI can be used to get list of discovery groups and discovery ranges in OpenManage
Essentials:
<BASE_URI>/DiscoveryRanges
Operations supported: GET
A GET operation on an URI retrieves all the child groups and the ranges under child groups and root group
(All Ranges).
Note: If there is any group without discovery range(s), then it will show only GroupID and GroupName.
2.17.2 Group creation and add Discovery Range(s)
The following resource URI can be used to create a group and add discovery rang(s) to this group in
OpenManage Essentials:
<BASE_URI>/DiscoveryRanges
Operations supported: POST
A sample XML that would comprise the payload when initiating a POST operation to create a group and add
discovery range(s) is as follows:
<RESTAddDiscoveryRange>
<DiscoveryRanges>
<GroupName>groupname</GroupName>
<Ranges>
<DiscoveryRange>
<Address>IPRange</Address>
<Name>rangename</Name>
<NetMask>netmask</NetMask>
</DiscoveryRange>
<DiscoveryRange>
<Address>IPRange</Address>
<Name>rangename</Name>
<NetMask>netmask</NetMask>