- Community Home
- >
- Software
- >
- HPE OneView
- >
- How to set access rights to OneView REST API
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО11-23-2021 03:12 AM - last edited on тАО11-23-2021 08:21 PM by support_s
тАО11-23-2021 03:12 AM - last edited on тАО11-23-2021 08:21 PM by support_s
How to set access rights to OneView REST API
Hi,
My OneView-user account has the role "Infrastructure administrator".
if I try to access HPE OneView REST API via browser or Terraform provider "oneview", the following error occurs:
https://hponeview/rest/server-hardware
-->
BROWSER:
{"errorCode":"AUTHORIZATION_MISSING_AUTH_HEADER","message":"Authorization error: Missing 'auth' header.","details":"Missing 'auth' header from the request.","recommendedActions":["Please provide the missing 'auth' header value and try again."],"errorSource":null,"nestedErrors":[],"data":{}}
TERRAFORM:
тФВ Error: Error in response: Forbidden
тФВ Response Status: 403 Forbidden
тФВ Response Details: You are not allowed to access the requested resource.
тФВ
тФВ with provider["registry.terraform.io/hewlettpackard/oneview"],
тФВ on main.tf line 31, in provider "oneview":
тФВ 31: provider "oneview" {
Could someone provide me with a working CURL command line, so I can verify my user profile access rights ?
What access settings are needed for the REST API in OneView ?
Regards and thanks in advance.
- Tags:
- OneView
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2021 04:12 AM
тАО11-23-2021 04:12 AM
Query: How to set access rights to OneView REST API
System recommended content:
1. HP OneView REST API Reference
If the above information is helpful, then please click on "Thumbs Up/Kudo" icon.
Thank you for being a HPE community member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2021 04:19 AM
тАО11-23-2021 04:19 AM
Re: Query: How to set access rights to OneView REST API
Thanks, but I still have read this document.
Is the REST API accessible only via port 37441 ?
Probably I have an firewall issue here.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2021 11:54 AM
тАО11-23-2021 11:54 AM
Re: Query: How to set access rights to OneView REST API
Thanks, but I still have read this document.
Is the REST API accessible only via port 37441 ?
Probably I have an firewall issue here.
No. The REST API is part of the HTTPS web service. You cannot access it directly with your web browser unless you are using a browser plugin like Postman.
Have you defined the authentication appropriately in your runbook configuration for the Terraform provider? You need to follow the instructions here on how to configure what appliance and what your credentials should be. The credentials can be whatever you use to provide in the login page of the UI. You cannot just use the OneView Terraform provider directly without first following the instructions I provided.
For further help here using the Terraform provider, I would suggest you use the project's GitHub Issue Tracker. That is unless you are will-code-for-pizza, and have already asked the question there.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2021 12:14 AM
тАО11-24-2021 12:14 AM
Re: Query: How to set access rights to OneView REST API
Hi Chris, thanks for the fast reply.
I always thought - as mentioned in
GitHub /437#issuecomment-977628555
that I was aware of all needed variables.
Probably we should contine discussing on Github.
Many thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2021 12:37 AM
тАО11-24-2021 12:37 AM
Re: Query: How to set access rights to OneView REST API
Solved:
I struggled with a proxy-setting problem.
Terraform ignores the 'no_proxy' env variable and the 'access denied' message was sent by proxy.
Many thanks!