How to Enable SCC Premium Programmatically?

Hi @All,

Iโ€™m trying to enable Security Command Center (SCC) Premium programmatically for my Google Cloud project. However, I couldnโ€™t find a clear way to do this in the documentation. If itโ€™s possible to enable SCC Premium programmatically, could someone guide me on how to do it?

Any code snippets, API references, or step-by-step instructions would be greatly appreciated.
Thanks in advance for your help!

1 6 285
6 REPLIES 6

What exactly do you mean - programmatically? 

The documentation walks through each step required to enable this SCC.   

https://cloud.google.com/security-command-center/docs/activate-scc-overview

Then underneath this there are several sections related to the API.  

https://cloud.google.com/security-command-center/docs/how-to-api-list-findings#gcloud

Please let us know if anything further is needed.  


@dnehoda wrote:

What exactly do you mean - programmatically? 

The documentation walks through each step required to enable this SCC.   

https://cloud.google.com/security-command-center/docs/activate-scc-overview

Then underneath this there are several sections related to the API.  

https://cloud.google.com/security-command-center/docs/how-to-api-list-findings#gcloud

Please let us know if anything further is needed.  


Currently I have to go to security command center each time when I want enable or disable the premium. I was exploring way to automate this process either using sdk or api but I did not find any solution for this, so I just wanted to know if that is possible or not. If yes it would be very helpful for me

 

Thanks

Please elaborate on why you need to enable multiple SCCE instances.

Not multiple just for one project I want to enable or disable according to my use of that findings data.

At the moment i don't think we have a way to programmatically enable the premium tier for a project basis. I've seen this question a few times in the past and it could be a great feature to be added in the future. If possible and if you have access to GCP support i would recommend raising a request for this feature to be included in the future as a support ticket, meanwhile we will collect the feedback provided here as well and share it with our product management teams

Thanks @andras