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

DNA Center 2.3.3.4 - Report API Issue #68

Closed
jumaluwati opened this issue Aug 11, 2022 · 2 comments
Closed

DNA Center 2.3.3.4 - Report API Issue #68

jumaluwati opened this issue Aug 11, 2022 · 2 comments
Labels
api-improvement DNA Center API should include this as improvement. bug Something isn't working

Comments

@jumaluwati
Copy link

jumaluwati commented Aug 11, 2022

Issue description:
The report creation API doesn't work on DNA Center 2.3.3.4 version (the latest when writing this ). All the parameters are provided and they do work on earlier DNA Center releases (I've tried it on 2.2.3.4) and it works perfectly with dnacentersdk versions 2.2.3.3 & 2.3.3.0

The output when running the code is as follows:

dnacentersdk.exceptions.ApiError: [412] Precondition Failed - report create validation fail message 'category cant be null/empty

I'm not sure whether there is a new parameter called category or its a bug.

Any feedback would be appreciated,

Thank you

PS the code I'm using along with a mini documentation are available on my account https://github.com/jumaluwati/dnac

@bvargasre bvargasre added bug Something isn't working api-improvement DNA Center API should include this as improvement. labels Aug 12, 2022
@jumaluwati
Copy link
Author

jumaluwati commented Nov 21, 2022

Update:

I found a workaround for this issue, simply to add the category of the report - i.e. if I'm interested in creating an AP report; that should fall under the AP category.

How to add the category type:
In the payload parameter add the following

payload = {'dataCategory': 'AP'}

That works for me even with the latest DNAC version as of today 2.3.3.5

@bvargasre
Copy link
Collaborator

Hi @jumaluwati , if it was a doc error, in the new version of dnacentersdk 2.7.1 it was added.
I will close the issue, in case the problem persists feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-improvement DNA Center API should include this as improvement. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants