https://pulumi.com logo
#general
Title
# general
e

early-musician-41645

07/30/2019, 6:34 PM
Is there a document somewhere with details about Pulumi's REST api? Specifically, I'd like to list all stack tags (key/values) for stacks in a given project.
w

white-balloon-205

07/30/2019, 6:36 PM
The REST API is not currently documented, but we can show you how to use any specific APIs you need that exist already today. We are aiming to document the API, along with cleaning it up significantly to be easier for direct usage, in the not-too-distant-future.
e

early-musician-41645

07/30/2019, 6:42 PM
If you can just add a few GET/POST examples for working with stack tags that would be very helpful
- list all stacks in a project - list all tags for a stack - list all tags for all stacks
Adding a few updates to that, few minutes...
e

early-musician-41645

07/30/2019, 6:57 PM
I'm seeing my personal projects, not those in my org
is there an org-API as well?
w

white-balloon-205

07/30/2019, 6:58 PM
The only REST API currently for listing stacks lists all stacks a user has access to - it include both - but you can filter by
orgName
.
g

gentle-diamond-70147

07/30/2019, 6:59 PM
Actually, yea, that's what I was just looking for.
e

early-musician-41645

07/30/2019, 7:01 PM
I was using the wrong token, got it working for all org stacks, thanks
@gentle-diamond-70147, @white-balloon-205 do the requests have a query param, e.g. to only return tags? Right now I see that the entire stack state, tags, etc. are all returned
w

white-balloon-205

07/30/2019, 8:26 PM
No - not currently.