Q: 3
The Cisco DNA Center Sites API must be used to add a device to a site, but only the site name is
available. Which API call must be used to retrieve the site identifier so that the device can be
properly added to the network?
Options
Discussion
Yeah, it's C in this case.
C
C makes sense here. The question asks for the API that returns the siteId when only the name is known, and that's exactly what the v1 endpoint is for. B looks right at first glance but it's missing the version, kind of a trap for older references I think. Anyone see it differently?
I don’t think D is right here. C is the one that actually gives you site details so you can match the name and grab the right siteId, since DNA Center usually expects you to fetch all sites and filter yourself. Pretty sure that's what most scripts do, unless I'm missing some special lookup call. Anyone disagree?
Its C. D looks tempting but that format is not a real DNA Center API, pretty sure C is used for this.
I think C is right since the v1 endpoint returns all site info so you can map the name to the ID. Seen this on a few labs, pretty standard approach. Happy to be corrected but that's how I remember it.
C not D, since you need the v1 in the endpoint for current DNA Center API versions. Option D looks tempting with 'siteName' but Cisco docs specify v1 for these calls. Pretty sure, but open if someone has different info from a recent lab.
Maybe D, since the endpoint mentions siteName directly. If you only have the name, wouldn't querying with siteName make more sense? Pretty sure most examples use v1 though. Anyone else read it that way?
That endpoint should be C. The "v1" is required in recent DNA Center APIs. If I'm wrong, let me know.
B not C. Seen a similar question on practice and the version wasn’t required there.
Be respectful. No spam.