cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
628
Views
1
Helpful
2
Replies

NDFC API

Vallee
Level 1
Level 1

Hello,

I'm working with Cisco Nexus Dashboard Fabric Controller (NDFC) API and i'm trying to understand how to effectively use the queryKey and fabricDBID parameters in the SAN Zone Manager api calls in the API swagger doc interface, as well as how to correctly structure the POST request body for creating a new zone mod in the SAN configuration. I would like to know what value should the queryKey hold? I wanted to open this discussion to gather advice from the community. Thank you!

2 Replies 2

@Vallee i did some looking here, but came up short - from what i have read, your queryKey should be a unique identifier that allows the API to locate the specific data you are looking for, like if you were querying for information on a specific zone, the queryKey might be the name or ID of that zone maybe and i am guessing the the fabricDBID parameter, is used to specify the fabric database ID that you want to interact with, so much likely an identifier for the specific NDFC fabric that you are managing.

Without clear guidance from the API documentation, it can be huge challenging to determine the appropriate value to use here.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Vallee
Level 1
Level 1

@bigevilbeard Thank you for your response!! - it looks like the queryKey needs this formatting: fabricDbID,VSAN,WWN,int,-1,user
i used that in the POST parameters and it worked for me.