Users Guide

Table Of Contents
Table 42. ome_template (continued)
Parameter Required Default Choices Comments
Attributes: List of dictionaries of attributes (if
any) to be modified in the deployment template.
This is applicable for when I(command) is
C(deploy) and C(modify).
Content: The XML content of template. This is
applicable when I(command) is C(import).
Type: Template type ID, indicating the type of
device for which configuration is supported, such
as chassis and servers. This is applicable when
I(command) is C(import).
TypeId: Template type ID, indicating the type of
device for which configuration is supported, such
as chassis and servers. This is applicable when
I(command) is C(create).
NOTE: See OpenManage Enterprise API
Reference Guide for more details.
Return Values
msg:
description: Overall status of the template operation.
returned: always
type: str
sample: "Successfully created a template with ID 123"
return_id:
description: ID of the template used for C(create), C(modify), C(import), and C(clone)
or task created in case of C(deploy).
returned: on success
type: int
sample: 12
TemplateId:
description: ID of the template for C(export).
returned: success, when I(command) is C(export)
type: int
sample: 13
Content:
description: XML content of the exported template.
returned: success, when I(command) is C(export)
type: str
sample: "<SystemConfiguration Model=\"PowerEdge R940\" ServiceTag=\"DG22TR2\"
TimeStamp=\"Tue Sep 24 09:20:57.872551
2019\">\n<Component FQDD=\"AHCI.Slot.6-1\">\n<Attribute
Name=\"RAIDresetConfig\">True</Attribute>\n<Attribute
Name=\"RAIDforeignConfig\">Clear</Attribute>\n</Component>\n<Component
FQDD=\"Disk.Direct.0-0:AHCI.Slot.6-1\">\n
<Attribute Name=\"RAIDPDState\">Ready</Attribute>\n<Attribute
Name=\"RAIDHotSpareStatus\">No</Attribute>\n
</Component>\n<Component FQDD=\"Disk.Direct.1-1:AHCI.Slot.6-1\">\n<Attribute
Name=\"RAIDPDState\">Ready
</Attribute>\n<Attribute Name=\"RAIDHotSpareStatus\">No</Attribute>\n</
Component>\n</SystemConfiguration>\n"
error_info:
description: Details of the HTTP Error.
returned: on HTTP error
type: dict
sample: {
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"MessageId": "GEN1234",
"RelatedProperties": [],
"Message": "Unable to process the request because an error occurred.",
"MessageArgs": [],
Modules for OpenManage Enterprise (OME)
55