racampos.dnac.template_version (0.0.1) — module

Manage TemplateVersion objects of ConfigurationTemplates

| "added in version" 1.0 of racampos.dnac"

Authors: first last (@GitHubID)

preview | supported by community

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install racampos.dnac:==0.0.1


Add to requirements.yml

  collections:
    - name: racampos.dnac
      version: 0.0.1

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: query_result

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

get_template_versions:
  contains: null
  description: Returns the versions of a specified template.
  payload:
    contains:
      composite:
        description: It is the template version's composite.
        returned: always
        sample: false
        type: bool
      name:
        description: It is the template version's name.
        returned: always
        sample: <name>
        type: str
      projectId:
        description: It is the template version's projectId.
        returned: always
        sample: <projectid>
        type: str
      projectName:
        description: It is the template version's projectName.
        returned: always
        sample: <projectname>
        type: str
      templateId:
        description: It is the template version's templateId.
        returned: always
        sample: <templateid>
        type: str
      versionsInfo:
        contains:
          description:
            description: It is the template version's description.
            returned: always
            sample: <description>
            type: str
          id:
            description: It is the template version's id.
            returned: always
            sample: '478012'
            type: str
          versionTime:
            description: It is the template version's versionTime.
            returned: always
            sample: 0
            type: int
        description: It is the template version's versionsInfo.
        returned: always
        type: list
    description: It is the template version's payload.
    returned: always
    type: list
  returned: always
  type: dict
version_template:
  contains: null
  description: Creates Versioning for the current contents of the template.
  response:
    contains:
      taskId:
        description: It is the template version's taskId.
        returned: success
        type: dict
      url:
        description: It is the template version's url.
        returned: success
        sample: <url>
        type: str
    description: TemplateVersionRequestDTO's response.
    returned: success
    type: dict
  returned: success
  type: dict
  version:
    description: TemplateVersionRequestDTO's version.
    returned: success
    sample: '1.0'
    type: str

See also