12-04-2024 11:21 AM
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!
12-05-2024 02:58 AM
@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.
01-27-2025 10:43 AM
@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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide