cisco.dnac.template_version (2.0.7) — module

Manage TemplateVersion objects of ConfigurationTemplates

| "added in version" 1.0.0 of cisco.dnac"

Authors: Rafael Campos (@racampos)

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install cisco.dnac:==2.0.7


Add to requirements.yml

  collections:
    - name: cisco.dnac
      version: 2.0.7

Description

Creates Versioning for the current contents of the template.

Returns the versions of a specified template.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: version_template
  cisco.dnac.template_version:
    state: create  # required
    comments: SomeValue  # string
    templateId: SomeValue  # string
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get_template_versions
  cisco.dnac.template_version:
    state: query  # required
    template_id: SomeValue  # string, required
  register: nm_get_template_versions

Inputs

    
comments:
    description:
    - TemplateVersionRequestDTO's comments.
    type: str

templateId:
    description:
    - TemplateVersionRequestDTO's templateId.
    type: str

template_id:
    description:
    - TemplateId path parameter.
    - Required for state query.
    type: str

Outputs

dnac_response:
  description: A dictionary with the response returned by the DNA Center Python SDK
  returned: always
  sample:
    response: 29
    version: '1.0'
  type: dict
missing_params:
  description: Provided arguments do not comply with the schema of the DNA Center
    Python SDK function
  returned: when the function request schema is not satisfied
  sample: null
  type: list
sdk_function:
  description: The DNA Center SDK function used to execute the task
  returned: always
  sample: configuration_templates.get_template_versions
  type: str

See also