White Papers

Introduction to REST API in OpenManage Enterprise
14 End to End Automation with REST API in Dell EMC OpenManage Enterprise 3.0
By cloning a built-in template provided by OpenManage Enterprise.
This section discusses the first optionCreating a template from a reference device.
A device must be discovered by OpenManage Enterprise before it can be used as a reference device. The
following URI and payload are used to create a system configuration template:
HTTP Method: POST
URI: https://<ip-addr>/api/TemplateService/Templates
Example payload:
The following example creates a new template named “Test Template”, using the device with ID 25010 as the
reference device.
The “TypeId” field is not used for template creation and can be ignored.
The “ViewTypeId” should be 2 to specify a system configuration template for deployment usage.
The “Fqdds” field provides functionality to copy only certain areas of system configuration from the specified
reference server. One or more of the following values may be specified in a comma-separated string:
iDRAC, System, BIOS, NIC, LifeCycleController, RAID, and EventFilters
Note—OpenManage Enterprise 3.0 does not include “FC” as an option for this list. In order to get Fibre
Channel configuration from a reference server, the “All” string must be specified.
The string “All” specifies to get the entire system configuration from the reference device.
OpenManage Enterprise supports the creation of templates for both servers and chassis. The device type of
the specified Source Device ID determines the template type that gets created.
If the Create Template request is successful, the returned status is “201 Created” and the reply contains the
ID of the new template, such as the following, indicating that a template was created with an ID of 11:
2.12 Assign Identity Pool and Network Settings to Template
Associating an Identity Pool with a Template tells OpenManage Enterprise to (a) create a virtual identity for
each device to which the template is deployed, and (b) get identity values from that Identity Pool when it
needs to create a virtual identity for a device (for example, when deploying system configuration to a device).
11