cisco.dnac.template – Manage Template objects of ConfigurationTemplates¶
Note
This plugin is part of the cisco.dnac collection (version 2.0.7).
To install it use: ansible-galaxy collection install cisco.dnac
.
To use it in a playbook, specify: cisco.dnac.template
.
New in version 1.0.0: of cisco.dnac
Synopsis¶
Creates a new Template.
List the Templates available.
Updates an existing Template.
Returns details of the specified Template.
Deletes an existing Template.
Note
This module has a corresponding action plugin.
Parameters¶
See Also¶
See also
- cisco.dnac.plugins.module_utils.definitions.template
The official documentation on the cisco.dnac.plugins.module_utils.definitions.template module.
- Template reference
Complete reference of the Template object model.
- Template reference
SDK reference.
Examples¶
- name: create_template
cisco.dnac.template:
state: create # required
project_id: SomeValue # string, required
author: SomeValue # string
composite: True # boolean
containingTemplates:
- composite: True # boolean
id: SomeValue # string
name: SomeValue # string
version: SomeValue # string
createTime: 1 # integer
description: SomeValue # string
deviceTypes:
- productFamily: SomeValue # string
productSeries: SomeValue # string
productType: SomeValue # string
failurePolicy: # valid values are 'ABORT_ON_ERROR',
# 'CONTINUE_ON_ERROR',
# 'ROLLBACK_ON_ERROR',
# 'ROLLBACK_TARGET_ON_ERROR',
# 'ABORT_TARGET_ON_ERROR'.
SomeValue # string
id: SomeValue # string
lastUpdateTime: 1 # integer
name: SomeValue # string
parentTemplateId: SomeValue # string
projectId: SomeValue # string
projectName: SomeValue # string
rollbackTemplateContent: SomeValue # string
rollbackTemplateParams:
- binding: SomeValue # string
dataType: SomeValue # string
defaultValue: SomeValue # string
description: SomeValue # string
displayName: SomeValue # string
group: SomeValue # string
id: SomeValue # string
instructionText: SomeValue # string
key: SomeValue # string
notParam: True # boolean
order: 1 # integer
paramArray: True # boolean
parameterName: SomeValue # string
provider: SomeValue # string
range:
- id: SomeValue # string
maxValue: 1 # integer
minValue: 1 # integer
required: True # boolean
selection:
id: SomeValue # string
selectionType: SomeValue # string
selectionValues:
softwareType: SomeValue # string
softwareVariant: SomeValue # string
softwareVersion: SomeValue # string
tags:
- SomeValue # string
templateContent: SomeValue # string
templateParams:
- binding: SomeValue # string
dataType: SomeValue # string
defaultValue: SomeValue # string
description: SomeValue # string
displayName: SomeValue # string
group: SomeValue # string
id: SomeValue # string
instructionText: SomeValue # string
key: SomeValue # string
notParam: True # boolean
order: 1 # integer
paramArray: True # boolean
parameterName: SomeValue # string
provider: SomeValue # string
range:
- id: SomeValue # string
maxValue: 1 # integer
minValue: 1 # integer
required: True # boolean
selection:
id: SomeValue # string
selectionType: SomeValue # string
selectionValues:
version: SomeValue # string
- name: gets_the_templates_available
cisco.dnac.template:
state: query # required
filter_conflicting_templates: True # boolean
product_family: SomeValue # string
product_series: SomeValue # string
product_type: SomeValue # string
project_id: SomeValue # string
software_type: SomeValue # string
software_version: SomeValue # string
register: nm_gets_the_templates_available
- name: update_template
cisco.dnac.template:
state: update # required
author: SomeValue # string
composite: True # boolean
containingTemplates:
- composite: True # boolean
id: SomeValue # string
name: SomeValue # string
version: SomeValue # string
createTime: 1 # integer
description: SomeValue # string
deviceTypes:
- productFamily: SomeValue # string
productSeries: SomeValue # string
productType: SomeValue # string
failurePolicy: # valid values are 'ABORT_ON_ERROR',
# 'CONTINUE_ON_ERROR',
# 'ROLLBACK_ON_ERROR',
# 'ROLLBACK_TARGET_ON_ERROR',
# 'ABORT_TARGET_ON_ERROR'.
SomeValue # string
id: SomeValue # string
lastUpdateTime: 1 # integer
name: SomeValue # string
parentTemplateId: SomeValue # string
projectId: SomeValue # string
projectName: SomeValue # string
rollbackTemplateContent: SomeValue # string
rollbackTemplateParams:
- binding: SomeValue # string
dataType: SomeValue # string
defaultValue: SomeValue # string
description: SomeValue # string
displayName: SomeValue # string
group: SomeValue # string
id: SomeValue # string
instructionText: SomeValue # string
key: SomeValue # string
notParam: True # boolean
order: 1 # integer
paramArray: True # boolean
parameterName: SomeValue # string
provider: SomeValue # string
range:
- id: SomeValue # string
maxValue: 1 # integer
minValue: 1 # integer
required: True # boolean
selection:
id: SomeValue # string
selectionType: SomeValue # string
selectionValues:
softwareType: SomeValue # string
softwareVariant: SomeValue # string
softwareVersion: SomeValue # string
tags:
- SomeValue # string
templateContent: SomeValue # string
templateParams:
- binding: SomeValue # string
dataType: SomeValue # string
defaultValue: SomeValue # string
description: SomeValue # string
displayName: SomeValue # string
group: SomeValue # string
id: SomeValue # string
instructionText: SomeValue # string
key: SomeValue # string
notParam: True # boolean
order: 1 # integer
paramArray: True # boolean
parameterName: SomeValue # string
provider: SomeValue # string
range:
- id: SomeValue # string
maxValue: 1 # integer
minValue: 1 # integer
required: True # boolean
selection:
id: SomeValue # string
selectionType: SomeValue # string
selectionValues:
version: SomeValue # string
- name: get_template_details
cisco.dnac.template:
state: query # required
template_id: SomeValue # string, required
latest_version: True # boolean
register: nm_get_template_details
- name: delete_template
cisco.dnac.template:
state: delete # required
template_id: SomeValue # string, required
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Rafael Campos (@racampos)