How to programatically create a Cloud Monitoring (Stackdriver) Workspace & add a project to it?

301 views Asked by At

I want to programatically create a Cloud Monitoring (Stackdriver) workspace, and add projects to it. How do I do this with an API?

1

There are 1 answers

2
Derek Fender On

Every workspace must have a host project. So you would have to create the original project before trying to find a way to add more projects. From Google’s documentation : “Every Workspace has a host project. The host project is the Google Cloud project used to create the Workspace. The name of the Workspace is set to the name of host project. This isn't configurable.”