Mettre à jour les contrôles des données Google Managed
POST/v1/user_profiles/{user_profile_id}/providers/google/data_controls
Requires
anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.Activez ou désactivez un contrôle, ou modifiez la clé ou le bucket défini pour une région. Les contrôles et les régions que vous omettez restent inchangés.
Parameters
Returns
Mettre à jour les contrôles des données Google Managed
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"),
)
betaGoogleManagedDataControls, err := client.Beta.UserProfiles.Providers.Google.DataControls.Update(
context.TODO(),
"uprof_011CZkZCu8hGbp5mYRQgUmz9",
anthropic.BetaUserProfileProviderGoogleDataControlUpdateParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaGoogleManagedDataControls.UserProfileID)
}Response 200
{
"bucket_label_value": "2f6d8c3a-91b4-4e57-8a0c-d5e1f7b3a924",
"cmek": {
"retired_keys": [
{
"expires_at": "2026-09-29T09:14:03Z",
"external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
"region": "us"
}
],
"type": "disabled"
},
"storage": {
"retired_buckets": [],
"type": "disabled"
},
"type": "google_managed_data_controls",
"updated_at": "2026-08-30T09:14:03Z",
"user_profile_id": "uprof_011CZkZCu8hGbp5mYRQgUmz9"
}Returns Examples
Response 200
{
"bucket_label_value": "2f6d8c3a-91b4-4e57-8a0c-d5e1f7b3a924",
"cmek": {
"retired_keys": [
{
"expires_at": "2026-09-29T09:14:03Z",
"external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
"region": "us"
}
],
"type": "disabled"
},
"storage": {
"retired_buckets": [],
"type": "disabled"
},
"type": "google_managed_data_controls",
"updated_at": "2026-08-30T09:14:03Z",
"user_profile_id": "uprof_011CZkZCu8hGbp5mYRQgUmz9"
}