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
{{ message }}
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
Hi @chris-rock, Thanks for the report. I verified and it's true.
When I use project API key and call c.Projects.List(nil), I will get the project record in the result slice, and there will be only the parent project of the API key.
But when I try to do c.Projects.Get(project_id, nil) with auth token from project with ID project_id, the Metal API will return 404 Not Found.
It would make sense for the c.Project.Get(project_id, nil) to succeed for the parent project of the API Key.
This is an API bug. @displague can you please bring to attention of API devs?
I try to get the project information for a project api key:
This always throws an 401 error. If I use
c.Projects.List
it returns the project. Is that behavior intended?I try to implement a similar behavior as your terraform provider https://github.com/packethost/terraform-provider-packet/blob/master/packet/datasource_packet_project.go#L116-L122. I wonder if this works with project api keys?
The text was updated successfully, but these errors were encountered: