[英]GCP patch compliance data of VM Instances - get/list API
How to get the details in the below dashboard (whether the VM Instances are compliance or not).如何在下面的仪表板中获取详细信息(VM 实例是否合规)。
Steps to reach in console:进入控制台的步骤:
Already tried the APIs here , but it only returns Patch Job specific data, not vm instance specific details.已经在这里尝试了 API,但它只返回特定于补丁作业的数据,而不是特定于虚拟机实例的详细信息。
You can follow examples provided in the compliance reports documentation :您可以按照合规性报告文档中提供的示例进行操作:
To view detailed compliance state for a specific VM, create a GET request to the projects.locations.instanceOSPoliciesCompliances.get method.
要查看特定 VM 的详细合规性状态,请创建对 projects.locations.instanceOSPoliciesCompliances.get 方法的 GET 请求。
GET https://osconfig.googleapis.com/v1alpha/projects/PROJECT_ID/locations/ZONE/instanceOSPoliciesCompliances/INSTANCE
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.