Method: projects.locations.updateCmEnrollment

Updates the Compliance Manager enrollment for a resource to facilitate an audit. Use this method to enroll a resource in Compliance Manager or to create or update feature-specific configurations.

HTTP request

PATCH https://cloudsecuritycompliance.googleapis.com/v1/{cmEnrollment.name=projects/*/locations/*/cmEnrollment}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
cmEnrollment.name

string

Identifier. The name of the Compliance Manager enrollment.

Supported formats are the following:

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

Query parameters

Parameters
updateMask

string (FieldMask format)

Optional. The list of fields that you want to update.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of CmEnrollment.

Response body

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

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.update

For more information, see the IAM documentation.