curl -X GET "http://10.6.27.1:5000/api/v2/globalconf/sites" -H "accept: application/json"
{
"message": "The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required."
}
UT as below, just use one as an example:
Without token: