Unable to add a Device Interface without specifying the VDC ID #18440
Unanswered
codrinb93
asked this question in
Help Wanted!
Replies: 0 comments
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 am running the following API Call at /api/dcim/interfaces/ and I am unable to specify the VDC by name and device name
When running the same API Call using the VDC id, everything works perfectly.
{
"name": "INTERFACE_NAME",
"type": "virtual",
"device": { "name": "DEVICE_NAME" },
"vdcs": [
{
"name": "VDC_NAME",
"device": { "name": "VDC_DEVICE" }
}
],
"parent": { "name": "PARENT_INTERFACE" }
}
I get the following error
{
"vdcs": [
"Incorrect type. Expected pk value, received dict."
]
}
I could run a query to find the VDC ID, but then I am also unable to filter by DEVICE NAME. I have VDCs with identical names but on different devices, so I always get multiple answers to my query.
Beta Was this translation helpful? Give feedback.
All reactions