1
votes

I've been looking for a programmatic way to get the support plan for each sub-account we have from GCP. I've looked under Google::Cloud::ResourceManager (Ruby SDK) but it only gives me administrative information (like labels, name, id, etc.)

2

2 Answers

1
votes

After talking with Google support there is no API or programmatic way to get the support level for projects (and by definition - sub-accounts)

0
votes

You may consider taking advantage of the useful "gcloud compute project-info" command, documented on the similarly-titled page.