cisco.dnac.template_project (2.0.7) — module

Manage TemplateProject 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

Returns the projects in the system.

Creates a new project.

Updates an existing project.

Deletes an existing Project.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get_projects
  cisco.dnac.template_project:
    state: query  # required
    name: SomeValue  # string
  register: nm_get_projects
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create_project
  cisco.dnac.template_project:
    state: create  # required
    createTime: 1  #  integer
    description: SomeValue  # string
    id: SomeValue  # string
    lastUpdateTime: 1  #  integer
    name: SomeValue  # string
    tags:
    - SomeValue  # string
    templates: None
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: update_project
  cisco.dnac.template_project:
    state: update  # required
    createTime: 1  #  integer
    description: SomeValue  # string
    id: SomeValue  # string
    lastUpdateTime: 1  #  integer
    name: SomeValue  # string
    tags:
    - SomeValue  # string
    templates: None
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: delete_project
  cisco.dnac.template_project:
    state: delete  # required
    project_id: SomeValue  # string, required

Inputs

    
id:
    description:
    - ProjectDTO's id.
    type: str

name:
    description:
    - Name of project to be searched.
    - ProjectDTO's name.
    type: str

tags:
    description:
    - ProjectDTO's tags (list of strings).
    type: list

templates:
    description:
    - ProjectDTO's templates.
    type: dict

createTime:
    description:
    - ProjectDTO's createTime.
    type: int

project_id:
    description:
    - ProjectId path parameter.
    - Required for state delete.
    type: str

description:
    description:
    - ProjectDTO's description.
    type: str

lastUpdateTime:
    description:
    - ProjectDTO's lastUpdateTime.
    type: int

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.create_project
  type: str

See also