Unable to edit or delete customer rules that contain special characters from the Usage Meter API request using CURL.
VCF usage meter 9.0
When executed the command below, getting an error: HTTP/2 401
curl -k -X POST -H 'Authorization: <Bearer TOKEN>' -H 'Content-Type: application/json' https://UMIP:8443/api/v1/login
Because Access token is different from the bearer token.
Before proceeding, take a snapshot of the affected virtual appliance.
curl -v -X POST -k -u 'usagemeter: <usagemeter_password' https://UMIP/api/v1/login
curl -H 'Authorization: <value>' https://{api_host}/api/v1/rules
Delete the customer rule appropriately using the command below.
curl -X DELETE -H 'Authorization: <value>' https://{api_host}/api/v1/rules?name=v