API Guide

Template Service
/api/TemplateService/TemplateTypes
This URI represents the types of templates.
GET method for TemplateTypes
This method returns information about each type of template, indicating the types of devices for which configuration is supported, such as
chassis and servers.
Description Returns information for each supported template type.
Privilege VIEW
HTTP response
codes
200
Example response
body
{
"@odata.context": "/api/
$metadata#Collection(TemplateService.TemplateTypeModel)", "@odata.count": 4,
"value":
[
{
"@odata.id": "/api/TemplateService/TemplateTypes(0)", "Id": 0,
"Name": "None", "ConfigurationSections": []
},
{
"@odata.id": "/api/TemplateService/TemplateTypes(2)", "Id": 2,
"Name": "Server", "ConfigurationSections": []
},
{
"@odata.id": "/api/TemplateService/TemplateTypes(4)", "Id": 4,
"Name": "Chassis", "ConfigurationSections": []
},
{
"@odata.id": "/api/TemplateService/TemplateTypes(3)", "Id": 3,
"Name": "IO Module", "ConfigurationSections": []
}
]
}
NOTE: OME-Modular supports only the Server template type.
Table 81. Attributes
Attribute Description
Id Unique identifier for the template type.
Name The type of device for which this template type holds configuration
attributes.
/api/TemplateService/TemplateViewTypes
This URI represents the different features that support template operations.
GET method for TemplateViewTypes
This method returns the features that support template operations.
Description
Returns the features that support templates operations.
Privilege VIEW
Configure 143