Changing interface name based on assigned device via API #12716
Answered
by
mtinberg
brianatlarge
asked this question in
Help Wanted!
Replies: 1 comment 1 reply
-
That does work the way you specified, I think you just forgot to make it a query parameter ie
/api/dcim/interfaces/?device=device_name or ?device_id=id_number
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
…________________________________
From: brianatlarge ***@***.***>
Sent: Thursday, May 25, 2023 9:58 AM
To: netbox-community/netbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [netbox-community/netbox] Changing interface name based on assigned device via API (Discussion #12716)
I'm wanting to change the names of interfaces to a switch that's added via the API. I can't seem to craft an API call to /api/dcim/interfaces/ that will only give me the interfaces associated with a device. I'd hope I could just do /api/dcim/interfaces/device=whatever but that's not valid.
How are you guys bulk renaming interfaces via the API for a particular device?
—
Reply to this email directly, view it on GitHub<#12716>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAS7UMZ5VDI2QJJH6YSU3NDXH5XRPANCNFSM6AAAAAAYO7BEUY>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
brianatlarge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wanting to change the names of interfaces to a switch that's added via the API. I can't seem to craft an API call to /api/dcim/interfaces/ that will only give me the interfaces associated with a device. I'd hope I could just do /api/dcim/interfaces/device=whatever but that's not valid.
How are you guys bulk renaming interfaces via the API for a particular device?
Beta Was this translation helpful? Give feedback.
All reactions