You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating project role permissions and I wanted to enter wildcard "*", CLI returned "unauthorised" despite that my API key has the root admin permission, it seems to be similar to urllib module in python.
"Note
If you have API calls which contain * (asterisk) characters, you will need to add the option “safe = ‘’” for the URL encoding. The reason is that Python’s urllib will encode * characters by default, while CloudStack’s internal encoder does not encode them; this results in an authentication failure for your API call. In the above you would replace “urllib.quote_plus(request[k])” with “urllib.quote_plus(request[k], safe=’’)”."
The text was updated successfully, but these errors were encountered:
When creating project role permissions and I wanted to enter wildcard "*", CLI returned "unauthorised" despite that my API key has the root admin permission, it seems to be similar to urllib module in python.
https://docs.cloudstack.apache.org/projects/archived-cloudstack-getting-started/en/latest/dev.html
"Note
If you have API calls which contain * (asterisk) characters, you will need to add the option “safe = ‘’” for the URL encoding. The reason is that Python’s urllib will encode * characters by default, while CloudStack’s internal encoder does not encode them; this results in an authentication failure for your API call. In the above you would replace “urllib.quote_plus(request[k])” with “urllib.quote_plus(request[k], safe=’’)”."
The text was updated successfully, but these errors were encountered: