cisco-en-programmability / dnacentersdk

Cisco DNA Center Python SDK
https://dnacentersdk.readthedocs.io/en/latest/
MIT License
70 stars 31 forks source link

Configuration template export template - request validator error #135

Closed HongPhatTL closed 6 months ago

HongPhatTL commented 8 months ago

Prerequisites

Prerequisites I was running the Ansible module cisco.dnac.configuration_template_export_template, (which indirectly using the dnacentersdk), the validator : validators/v2_3_5_3/jsd_dc254215fdf25cd5b7ba797e8f8faebf.py raised a exception that list of ids is invalid, it must be object (further details in screeshots). But when I disabled the request validator, the codes work just fine.

Expected behavior According to DNACenter's developer toolkit, the request body for /dna/intent/api/v1/template-programmer/template/exporttemplates (POST) has to be a list of template IDs (further details in screeshots).

Screenshots Result of using API directly on DNAC developer toolkit, errors in code terminal and the Ansible playbook code.

issue_3

issue_2

issue_1

Environment (please complete the following information):

fmunozmiranda commented 6 months ago

This issue will be addressed here: https://github.com/cisco-en-programmability/dnacentersdk/issues/138