locationPolicyViolated constant
ErrorReason
const locationPolicyViolated
The request violates the location policies when creating resources in the restricted region.
Example of an ErrorInfo when creating the Cloud Storage Bucket by "projects/123" for service storage.googleapis.com:
{ "reason": "LOCATION_POLICY_VIOLATED",
"domain": "googleapis.com",
"metadata": {
"consumer": "projects/123",
"service": "storage.googleapis.com",
}
}
This response indicates creating the Cloud Storage Bucket in "locations/asia-northeast3" violates at least one location policy. The troubleshooting guidance is provided in the Help links.
Implementation
static const locationPolicyViolated = ErrorReason('LOCATION_POLICY_VIOLATED');