While trying to configure the AVI-NSALB plugin using the Portal VNA Gateway and the following curl command it's failing with an Authentication Error:
curl -X 'POST' \
'http://user:pass@<AVIHOST>:8080/vna/rest/v1/admin/plugins/NSXALB%20Plugin?configDesc=avitest' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"PLUGIN_CONFIG" : {
"CONTROLLER_HOSTS" : [ "<AVIHOST>" ],
"CONTROLLER_PORT" : 443,
"CONTROLLER_USERNAME" : "<user>",
"CONTROLLER_PASSWORD" : "Pass#]word+c3",
"PROTOCOL" : "https",
"USE_PROXY" : false,
"PROXY_IP" : "172.0.0.1",
"PROXY_PORT" : 80,
"PROXY_PROTOCOL" : "http",
"PROXY_USERNAME" : "proxy",
"PROXY_PASSWORD" : "proxy",
"INVENTORY_POLL_RATE" : "0 */10 *",
"INVENTORY_DELTA_TIME" : 600,
"PERFORMANCE_POLL_RATE" : "0 */1 *",
"PERFORMANCE_DELTA_TIME" : 60,
"MAX_THREADS" : 3,
"DOMAIN_ID" : 1
}
}
'
VNA: 24.3.12
The Special Characters in the "Pass#]word+c3" were not being handled correctly.
URL Encoding can be used in the password for Special characters. For Example: