cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
962
Views
0
Helpful
3
Replies

Listing configID

jawicks
Cisco Employee
Cisco Employee

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 Hall of Fame Cisco Employee
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 Hall of Fame Cisco Employee
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
Cisco Employee

There is a configId form /pnp-device


GET /pnp-device

....

configId (string, optional): Configuration file ID,

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:

Recognize Your Peers