v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13195274.7 KB
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

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