organizations

Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.

post/v1/{+name}:restrictAllowedResources

Request

  • Base URL: https://assuredworkloads.googleapis.com
  • URL: https://assuredworkloads.googleapis.com/v1/{+name}:restrictAllowedResources
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

Path parameters

namestring required

Required. The resource name of the Workload. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".

Request body

restrictionType'RESTRICTION_TYPE_UNSPECIFIED' | 'ALLOW_ALL_GCP_RESOURCES' | 'ALLOW_COMPLIANT_RESOURCES' | 'APPEND_COMPLIANT_RESOURCES'

Required. The type of restriction for using gcp products in the Workload environment.

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status