This endpoint enables Assured Workloads service to offer compliance updates for the folder based assured workload. It sets up an Assured Workloads Service Agent, having permissions to read compliance controls (for example: Org Policies) applied on the workload. The caller must have resourcemanager.folders.getIamPolicy and resourcemanager.folders.setIamPolicy permissions on the assured workload folder.
HTTP request
PUT https://{endpoint}/v1beta1/{name=organizations/*/locations/*/workloads/*}:enableComplianceUpdates
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-30 UTC."],[[["\u003cp\u003eThis endpoint updates compliance for folder-based assured workloads by setting up a service agent with permissions to read compliance controls.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePUT\u003c/code\u003e HTTP method is used to send a request to the specified URL, with the format \u003ccode\u003ehttps://{endpoint}/v1beta1/{name=organizations/*/locations/*/workloads/*}:enableComplianceUpdates\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter is a required string identifying the workload, with a specific format required.\u003c/p\u003e\n"],["\u003cp\u003eBoth the request and response bodies for this endpoint are expected to be empty.\u003c/p\u003e\n"],["\u003cp\u003eUtilizing this endpoint necessitates the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003eassuredworkloads.workload.update\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: organizations.locations.workloads.enableComplianceUpdates\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n\nThis endpoint enables Assured Workloads service to offer compliance updates for the folder based assured workload. It sets up an Assured Workloads Service Agent, having permissions to read compliance controls (for example: Org Policies) applied on the workload. The caller must have `resourcemanager.folders.getIamPolicy` and `resourcemanager.folders.setIamPolicy` permissions on the assured workload folder.\n\n### HTTP request\n\n`PUT https://{endpoint}/v1beta1/{name=organizations/*/locations/*/workloads/*}:enableComplianceUpdates`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/assured-workloads/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `assuredworkloads.workload.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]