Amit
Amit

Reputation: 397

Mapping dependencies/requirements for GCP APIs/services

Does anyone knows a way to map the dependencies or requirements of any GCP API? E.g. enabling container.googleapis.com would automatically enable compute.googleapis.com and others into a same chart/table/text/anything.

The GCP docs don't specify any such dependency for any API (from what I have seen so far). So I'm either looking for a Doc which specifies this, a gcloud command or a completely different tool that can help mapping it.

Upvotes: 3

Views: 1194

Answers (4)

offbyone
offbyone

Reputation: 1192

I did end up opening a feature request for this and the fact that I had to do so still boggles the mind.

Upvotes: 1

Jack
Jack

Reputation: 10613

One workaround could be to use the Service Usage API. The disable method has a disableDependentServices field which disables all services that depend on the services being disabled.

You could enable a bunch of services in GCP, disable a service, and observe which dependent services are also disabled.

Upvotes: 1

Alexis D.
Alexis D.

Reputation: 65

did you open a Feature Request as suggested ? If so, can you share the link ?

As a faint consolation, you can have a look at this article from which we can tell that the API interdependency information was once available through the serviceusage API.

There you'll find a diagram as of october 2020 (see screenshot bellow)

GCP API dependency diagram excerpt

Upvotes: 1

Ali Reza Izadi
Ali Reza Izadi

Reputation: 134

We don't have any public external documentation around service dependencies for now. therefore please open a FR in refer to this link

Upvotes: 1

Related Questions