Wondering if anyone has gotten this to work.
I'm plugging in my values on the website directly which produces this
curl --request POST \
--url https://us1.api.central.arubanetworks.com/network-config/v1alpha1/config-assignments/86811126654554112/ACCESS_SWITCH/layer2-vlan/8 \
--header 'accept: application/json' \
--header 'authorization: Bearer {{token_goes_here}}' \
--header 'content-type: application/json' \
--data '
{
"device-function": "ACCESS_SWITCH",
"profile-instance": "8",
"profile-type": "layer2-vlan",
"scope-id": "86811126654554112"
}
'
I keep getting
{
"errorCode": "HPE_GL_ERROR_BAD_REQUEST",
"httpStatusCode": 400,
"message": "Invalid payload",
"debugId": "480916939e90ef9b536291fd497b9700"
}
Here is the output for that vlan if i manually assign and GET the API
{
"scope-id": "86811126654554112",
"device-function": "ACCESS_SWITCH",
"profile-type": "layer2-vlan",
"profile-instance": "8",
"scope-name": "Site_Col",
"scope-type": "SITE_COLLECTION"
},
-------------------------------------------