Update Google-Managed Project Data Controls
POST/v1/organizations/providers/google/projects/{project_number}/data_controls
Requires
anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.Turn a control on or off, or change the key or bucket set for a region. Controls and regions that you leave out stay as they are.
Your organization must have proved that it owns the project. Only one organization at a time can have controls turned on for a project.
Requires a credential that identifies a user or a service account: an OAuth access token with the org:admin scope, or an organization-scoped API key that belongs to a user or service account whose organization role can update these controls. The admin, owner and primary_owner roles can. An Admin API key gets a 403 error.
Update Google-Managed Project Data Controls
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go/v2"
"github.com/anthropics/anthropic-sdk-go/v2/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
betaGoogleManagedProjectDataControls, err := client.Beta.Organization.Providers.Google.Projects.DataControls.Update(
context.TODO(),
"123456789012",
anthropic.BetaOrganizationProviderGoogleProjectDataControlUpdateParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaGoogleManagedProjectDataControls.CMEK)
}Response 200
{
"cmek": {
"retired_keys": [
{
"expires_at": "2019-12-27T18:11:19.117Z",
"external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
"region": "us"
}
],
"type": "disabled"
},
"project_number": "123456789012",
"storage": {
"retired_buckets": [
{
"bucket_name": "bucket_name",
"expires_at": "2019-12-27T18:11:19.117Z",
"project_number": "project_number",
"region": "us"
}
],
"type": "disabled"
},
"type": "google_managed_project_data_controls",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
Response 200
{
"cmek": {
"retired_keys": [
{
"expires_at": "2019-12-27T18:11:19.117Z",
"external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
"region": "us"
}
],
"type": "disabled"
},
"project_number": "123456789012",
"storage": {
"retired_buckets": [
{
"bucket_name": "bucket_name",
"expires_at": "2019-12-27T18:11:19.117Z",
"project_number": "project_number",
"region": "us"
}
],
"type": "disabled"
},
"type": "google_managed_project_data_controls",
"updated_at": "2019-12-27T18:11:19.117Z"
}