clever-dog-35937
08/19/2025, 8:29 PMpulumi up
all stacks that import the environment.
I looked in the API docs and couldn't find it or another best practice. Currently the alternative seems to be getting all projects, then looping through each project and seeing if it imports the environment 😞
In the webapp basically exactly what I want is coming from <https://api.pulumi.com/api/esc/environments/><org>/<esc_project>/<environment>/referrers?allRevisions=true&latestStackVersionOnly=true
{
"referrers": {
"latest": [
{
"stack": {
"project": "<project1>",
"stack": "dev",
"version": 6
}
},
{
"stack": {
"project": "<project2>",
"stack": "dev",
"version": 47
}
},
{
"stack": {
"project": "<project3>",
"stack": "qa",
"version": 8
}
},
{
"stack": {
"project": "<project4>",
"stack": "dev",
"version": 20
}
}
]
},
"continuationToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
mammoth-restaurant-4670
08/19/2025, 9:58 PM