https://pulumi.com logo
#google-cloud
Title
# google-cloud
b

bland-queen-27621

07/06/2021, 8:45 PM
Hello, is there any way to list all subnetworks in google native? The below documentation seems to indicate that the
subnetworks.get
returns only one at a time. https://www.pulumi.com/docs/reference/pkg/gcp/compute/subnetwork/#look-up However, the code comment on the method is a little misleading.
Returns the specified subnetwork. Gets a list of available subnetworks list() request.
cc: @tall-librarian-49374
Just dug up a bit more about it… looks like we need to generate a list function along with the get where applicable https://github.com/pulumi/pulumi-google-native/blob/087a4ee255de7aca15a7ef3e83ca567b85c1fbcb/provider/pkg/gen/schema.go#L152
t

tall-librarian-49374

07/07/2021, 6:23 AM
You could use a Google Cloud SDK to do that from your Pulumi program