https://pulumi.com logo
#automation-api
Title
# automation-api
h

high-kilobyte-6384

12/04/2023, 6:47 AM
Hey, I was wondering if there's a way to retrieve the parent and children of a resource. Specifically, I've created a ComponentResource and I'm curious about how to find out what children it has. Any ideas?
l

lemon-agent-27707

12/04/2023, 6:03 PM
Have you taken a look at the resource search API? https://www.pulumi.com/docs/pulumi-cloud/cloud-rest-api/#resource-search You can write a query
parent:URN
to find all resources that share a parent.
h

high-kilobyte-6384

12/05/2023, 2:57 AM
Thanks, but I'm using a local file as the backend. It seems like these APIs aren't working. And is it possible to obtain the connections between resources prior to their deployment?
2 Views