Method: folders.locations.cmEnrollment.calculate

Calculates the effective Compliance Manager enrollment for a resource. An effective enrollment is either a direct enrollment of a resource (if it exists), or an enrollment of the closest parent of a resource that's enrolled in Compliance Manager.

HTTP request

GET https://cloudsecuritycompliance.googleapis.com/v1/{name=folders/*/locations/*/cmEnrollment}:calculate

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the Compliance Manager enrollment to calculate.

Supported formats are the following:

  • organizations/{organization_id}/locations/{location}/cmEnrollment
  • folders/{folder_id}/locations/{location}/cmEnrollment
  • projects/{projectId}/locations/{location}/cmEnrollment

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • cloudsecuritycompliance.cmEnrollments.get

For more information, see the IAM documentation.