cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

942
Views
0
Helpful
3
Replies
jawicks
Cisco Employee

Listing configID

I create a new device under a given project via an API post to "/pnp-project/{projectId}/device" and I also need to specifiy the JSON format config-template which goes with that device for PnP.

The API documentation states that I should specifiy "configId (string, optional)" when creating the device but I cannot see where to query APIC to optain a valid "configId" which matches the JSON-config-template file I have pre-defined under "Network Plug and Play" --> "Configurations".

What do I need to query to list all the JSON-config-template files and their corresponding configID's ??

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Joe Clarke
Hall of Fame Cisco Employee

I'll admit this isn't very intuitive.  But you can use the fileservice to get the file ID.  Try:

GET https://apic-em/api/v1/file/namespace/config

View solution in original post

3 REPLIES 3
Joe Clarke
Hall of Fame Cisco Employee

I'll admit this isn't very intuitive.  But you can use the fileservice to get the file ID.  Try:

GET https://apic-em/api/v1/file/namespace/config

Brilliant, I think that looks like the right one (I'll just need to test that "id" works for my example), many thanks for the replies.

Capture.JPG

yawming
Cisco Employee

There is a configId form /pnp-device


GET /pnp-device

....

configId (string, optional): Configuration file ID,

Create
Recognize Your Peers
Content for Community-Ad