Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cisco.dnac.client_enrichment_details: Provided arguments do not comply with the function schema #7

Closed
020003 opened this issue Apr 14, 2021 · 1 comment

Comments

@020003
Copy link

020003 commented Apr 14, 2021

Hi,

I tried to use the client_enrichment_details module but I was not succesful.
The error message I recieve is:

"msg": "Provided arguments do not comply with the function schema",

The example in the module documentation is also not really helping me getting this thing to work :) .
It's just mentioning headers, so I looked them up in the api documentation and added them.

- name: get_client_enrichment_details
  cisco.dnac.client_enrichment_details:
    state: query  # required
    headers:  # required
  register: nm_get_client_enrichment_details

Following playbook was used.

- name: Play 1 Query DNAC by User
  hosts: all
  connection: local


  tasks:



   - name: get_client_enrichment_details
     cisco.dnac.client_enrichment_details:
       dnac_host: "{{ inventory_hostname }}"
       dnac_username: "{{ lookup('env','ANSIBLE_NET_USERNAME') }}"
       dnac_password: "{{ lookup('env','ANSIBLE_NET_PASSWORD') }}"
       dnac_verify: false
       state: query  # required
       headers: 
           entity_type: "network_user_id"
           entity_value: "{{ userId }}" 
     register: qResult

@wastorga
Copy link
Contributor

wastorga commented Sep 4, 2021

Hi, @020003.

Thank you for reporting the issue.

We moved from using custom states like query, in favor of _info modules, since version 3.

We recommend you to update the ansible collection to the latest version (v3.1.1), which requires you to upgrade the dnacentersdk to the latest (v2.3.1).

@wastorga wastorga closed this as completed Nov 1, 2021
fmunozmiranda pushed a commit that referenced this issue Oct 13, 2023
Support validating nested list of dictionary as input, make base clas…
bvargasre pushed a commit that referenced this issue Feb 5, 2024
bug fix for when dnac_log_level not specified in the playbook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants