cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
854
Views
15
Helpful
1
Replies

One REST Query works only with read rights

udo.konstantin
Level 1
Level 1

Hello everone,

we notice a strange behavior while query the APIC with REST. 

 

A management system got a lot of informations via REST Queries to the fabric. Everything works fine except for one request:

 
We always receive the following answer:
{"totalCount":"0","imdata":[]}
 
The user for the query has read rights. This works for the the other queries fine. 
When we change the user to a user with write rights, anything works fine. 
 
Udo 
1 Reply 1

Sergiu.Daniluk
VIP Alumni
VIP Alumni

Looks like a bug. You should open a TAC case to correct this. I have seen some issues with roles and privileges where different MOs are missing from the predefined roles, without posibility to (easily) add them to custom-roles.

You can use the following resources to find more details about the roles/privileges/assigned MOs:

https://www.cisco.com/c/dam/en/us/td/docs/Website/datacenter/apicroles/roles.html

https://developer.cisco.com/site/apic-mim-ref-api/?version=5.2(1) -> here search for faultInfo, click on it, open it (using the square icon) and you will see under the Read Access that there is no role which has access to this MO. And the write one is empty, which means only admin has access to it (and a custom one if you configure it)

faultinfo.png

Stay safe,

Sergiu

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Save 25% on Day-2 Operations Add-On License