Method: projects.getVirtualMachineThreatDetectionSettings

Get the VirtualMachineThreatDetectionSettings resource.

In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, projects.getVirtualMachineThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use virtualMachineThreatDetectionSettings.calculate for this purpose.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The name of the VirtualMachineThreatDetectionSettings to retrieve.


  • organizations/{organization}/virtualMachineThreatDetectionSettings
  • folders/{folder}/virtualMachineThreatDetectionSettings
  • projects/{project}/virtualMachineThreatDetectionSettings

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of VirtualMachineThreatDetectionSettings.

Authorization scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.