Is there any google API to check and count number of Armor Policies rules defined under a project. i have to count number of custom rules so that once it crosses the quota limit that is 20 then it should throw an error.
I Have to write a ansible script for the same to throw error msg if it crosses maximum quota for advanced custom rules
google API to check and count number of Armor Policies rules defined under a project.
You can issue a gCloud command, gcloud compute project-info describe --project PROJECT_NAME
and pull the number from the metric: SECURITY_POLICY_CEVAL_RULES
stanza. It will list the current project quota and the number of rules in use.
There is a beta feature you could try to pull the quota for the specific resource.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.