- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise Software
- >
- *resolved* Question around API permissions and 're...
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 01:15 PM
05-11-2022 01:15 PM
*resolved* Question around API permissions and 'removeTags'
Hello,
I’m working up a Python script to either Add or Remove a specific tag based on which catalog item is selected, but I’m hitting an issue in Morpheus 5.4.5. I’m using https://apidocs.morpheusdata.com/#updating-an-instance as a guide
I can read in the instance JSON info from requests and pull out the bits of existing info I need/want , and adding a new tag is working fine.
The issue is, when I’m PUTing JSON of:
data = { ‘Instance’: { ‘removeTags’: [{ ‘name’: ‘name of tag’ }]}}
I’m receiving an
{‘error’: ‘unauthorized’, ‘error_description’: ‘Full authentication is required to access this resource’}
The parts of the script prior to work fine (I can get the instanceId from the API querying via name, I can read the currently existing tags from the instance, etc so I know the Auth Bearer token is valid and the account to pull that is an admin level).
Any suggestion on the cause and a fix/work around?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 01:22 PM
05-11-2022 01:22 PM
Re: *resolved* Question around API permissions and 'removeTags'
Sigh this was a case of looking over what you had several times and not catching the smallest typo until after you create a post looking for a hint.
The full authorization error has been resolved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 01:31 PM
05-11-2022 01:31 PM
Re: *resolved* Question around API permissions and 'removeTags'
I literally just had the same thing effect me and couldn’t see the error without asking someone else ![]()