---
title: Google
url: https://platform.claude.com/docs/en/api/go/beta/user_profiles/providers/google
---

# Google

## Google › Data Controls

### Get Google-Managed Data Controls

`client.Beta.UserProfiles.Providers.Google.DataControls.Get(ctx, userProfileID, query) (*BetaGoogleManagedDataControls, error)`

**GET** `/v1/user_profiles/{user_profile_id}/providers/google/data_controls`

Get the profile's encryption keys and storage buckets for Claude on Google Cloud's Agent Platform, with each region's status.

#### Parameters

- `userProfileID string` (path parameter)

  The ID of the user profile whose Google-managed data controls to retrieve (`uprof_...`).

- `query BetaUserProfileProviderGoogleDataControlGetParams`

  - `Betas []AnthropicBeta Optional` (header parameter)

    This endpoint is in beta: requests must send `google-managed-data-controls-2026-09-01` in this header.

    - `const AnthropicBetaComputerUse2024_10_22 AnthropicBeta = "computer-use-2024-10-22"`

    - `const AnthropicBetaComputerUse2025_01_24 AnthropicBeta = "computer-use-2025-01-24"`

    - `const AnthropicBetaOutput128k2025_02_19 AnthropicBeta = "output-128k-2025-02-19"`

    - `const AnthropicBetaMCPClient2025_04_04 AnthropicBeta = "mcp-client-2025-04-04"`

    - `const AnthropicBetaMCPClient2025_11_20 AnthropicBeta = "mcp-client-2025-11-20"`

    - `const AnthropicBetaDevFullThinking2025_05_14 AnthropicBeta = "dev-full-thinking-2025-05-14"`

    - `const AnthropicBetaInterleavedThinking2025_05_14 AnthropicBeta = "interleaved-thinking-2025-05-14"`

    - `const AnthropicBetaCodeExecution2025_05_22 AnthropicBeta = "code-execution-2025-05-22"`

    - `const AnthropicBetaContext1m2025_08_07 AnthropicBeta = "context-1m-2025-08-07"`

    - `const AnthropicBetaContextManagement2025_06_27 AnthropicBeta = "context-management-2025-06-27"`

    - `const AnthropicBetaModelContextWindowExceeded2025_08_26 AnthropicBeta = "model-context-window-exceeded-2025-08-26"`

    - `const AnthropicBetaFastMode2026_02_01 AnthropicBeta = "fast-mode-2026-02-01"`

    - `const AnthropicBetaOutput300k2026_03_24 AnthropicBeta = "output-300k-2026-03-24"`

    - `const AnthropicBetaUserProfiles2026_03_24 AnthropicBeta = "user-profiles-2026-03-24"`

    - `const AnthropicBetaUserProfiles2026_08_18 AnthropicBeta = "user-profiles-2026-08-18"`

    - `const AnthropicBetaUserProfiles2026_09_04 AnthropicBeta = "user-profiles-2026-09-04"`

    - `const AnthropicBetaAdvisorTool2026_03_01 AnthropicBeta = "advisor-tool-2026-03-01"`

    - `const AnthropicBetaManagedAgents2026_04_01 AnthropicBeta = "managed-agents-2026-04-01"`

    - `const AnthropicBetaDreaming2026_04_21 AnthropicBeta = "dreaming-2026-04-21"`

    - `const AnthropicBetaThinkingTokenCount2026_05_13 AnthropicBeta = "thinking-token-count-2026-05-13"`

    - `const AnthropicBetaServerSideFallback2026_06_01 AnthropicBeta = "server-side-fallback-2026-06-01"`

    - `const AnthropicBetaServerSideFallback2026_07_01 AnthropicBeta = "server-side-fallback-2026-07-01"`

    - `const AnthropicBetaFallbackCredit2026_06_01 AnthropicBeta = "fallback-credit-2026-06-01"`

    - `const AnthropicBetaFallbackCredit2026_07_01 AnthropicBeta = "fallback-credit-2026-07-01"`

    - `const AnthropicBetaAgentMemory2026_07_22 AnthropicBeta = "agent-memory-2026-07-22"`

    - `const AnthropicBetaMidConversationToolChanges2026_07_01 AnthropicBeta = "mid-conversation-tool-changes-2026-07-01"`

    - `const AnthropicBetaCompact2026_01_12 AnthropicBeta = "compact-2026-01-12"`

    - `const AnthropicBetaComputerUse2025_11_24 AnthropicBeta = "computer-use-2025-11-24"`

    - `const AnthropicBetaMCPTunnels2026_06_22 AnthropicBeta = "mcp-tunnels-2026-06-22"`

    - `const AnthropicBetaStructuredOutputs2025_11_13 AnthropicBeta = "structured-outputs-2025-11-13"`

    - `const AnthropicBetaTaskBudgets2026_03_13 AnthropicBeta = "task-budgets-2026-03-13"`

    - `const AnthropicBetaThinkingDisplayUpdates2026_08_18 AnthropicBeta = "thinking-display-updates-2026-08-18"`

    - `const AnthropicBetaMidConversationOutputConfig2026_07_01 AnthropicBeta = "mid-conversation-output-config-2026-07-01"`

    - `const AnthropicBetaThinkingBindingControls2026_08_01 AnthropicBeta = "thinking-binding-controls-2026-08-01"`

    - `const AnthropicBetaMidConversationSystemClearAt2026_08_21 AnthropicBeta = "mid-conversation-system-clear-at-2026-08-21"`

    - `const AnthropicBetaCompact2026_09_04 AnthropicBeta = "compact-2026-09-04"`

    - `const AnthropicBetaInlineTools2026_09_15 AnthropicBeta = "inline-tools-2026-09-15"`

    - `const AnthropicBetaMCPClient2026_09_15 AnthropicBeta = "mcp-client-2026-09-15"`

    - `const AnthropicBetaCEPlugins2026_09_01 AnthropicBeta = "ce-plugins-2026-09-01"`

    - `const AnthropicBetaSpendLimitReads2026_09_26 AnthropicBeta = "spend-limit-reads-2026-09-26"`

    - `const AnthropicBetaTelemetryDestinations2026_08_11 AnthropicBeta = "telemetry-destinations-2026-08-11"`

    - `const AnthropicBetaWebhooks2026_10_07 AnthropicBeta = "webhooks-2026-10-07"`

    - `const AnthropicBetaAdminUserSignOut2026_10_08 AnthropicBeta = "admin-user-sign-out-2026-10-08"`

    - `const AnthropicBetaMessageThreads2026_08_12 AnthropicBeta = "message-threads-2026-08-12"`

    - `const AnthropicBetaAnalyticsUsageCost2026_08_24 AnthropicBeta = "analytics-usage-cost-2026-08-24"`

    - `const AnthropicBetaExperimentalClaudeTag2026_10_21 AnthropicBeta = "experimental-claude-tag-2026-10-21"`

    - `const AnthropicBetaCEClaudeCodeManagedSettings2026_10_06 AnthropicBeta = "ce-claude-code-managed-settings-2026-10-06"`

    - `const AnthropicBetaEfs2026_10_01 AnthropicBeta = "efs-2026-10-01"`

    - `const AnthropicBetaGoogleManagedDataControls2026_09_01 AnthropicBeta = "google-managed-data-controls-2026-09-01"`

    - `const AnthropicBetaUserProfilesBilling2026_10_01 AnthropicBeta = "user-profiles-billing-2026-10-01"`

    - `const AnthropicBetaMessageBatches2024_09_24 AnthropicBeta = "message-batches-2024-09-24"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaPromptCaching2024_07_31 AnthropicBeta = "prompt-caching-2024-07-31"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaPDFs2024_09_25 AnthropicBeta = "pdfs-2024-09-25"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaTokenCounting2024_11_01 AnthropicBeta = "token-counting-2024-11-01"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaTokenEfficientTools2025_02_19 AnthropicBeta = "token-efficient-tools-2025-02-19"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaFilesAPI2025_04_14 AnthropicBeta = "files-api-2025-04-14"`

      **Deprecated**: Sending this value selects the beta response shapes. Removing it moves you to the current shapes, so follow the migration steps: https://platform.claude.com/docs/en/build-with-claude/files#migrate-from-files-api-2025-04-14

    - `const AnthropicBetaExtendedCacheTTL2025_04_11 AnthropicBeta = "extended-cache-ttl-2025-04-11"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaSkills2025_10_02 AnthropicBeta = "skills-2025-10-02"`

      **Deprecated**: Sending this value selects the beta response shapes. Removing it moves you to the current shapes, so follow the migration steps: https://platform.claude.com/docs/en/build-with-claude/skills-guide#migrate-from-skills-2025-10-02

    - `const AnthropicBetaCacheDiagnosis2026_04_07 AnthropicBeta = "cache-diagnosis-2026-04-07"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaCEUserManagement2026_07_13 AnthropicBeta = "ce-user-management-2026-07-13"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

  - `WorkspaceID param.Opt[string] Optional` (header parameter)

    Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

    Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

#### Returns

- `type BetaGoogleManagedDataControls`

  A user profile's encryption key and storage bucket settings for Claude on Google Cloud's Agent Platform. Every user profile has one of these objects. You can read and update it, but not create or delete it. Keys and buckets are set for each region. A request's region depends on the Google endpoint it is sent to: `us` is the US multi-region endpoint and the regional endpoint of every location whose name starts with `us-`, `eu` is the EU multi-region endpoint and the regional endpoint of every location whose name starts with `europe-`, `sg` is the `asia-southeast1` regional endpoint, and `global` is the global endpoint, wherever Google serves the request. Anthropic may add regions.

  - `Type GoogleManagedDataControls`

    Object type. Always `google_managed_data_controls`.

  - `BucketLabelValue string`

    The label value that every bucket set up for this profile must have. It never changes.

  - `CMEK BetaGoogleManagedCMEKControlUnion`

    The customer-managed encryption key control: the key in the end customer's Google Cloud KMS that is set for each region.

    - `type BetaGoogleManagedCMEKDisabled`

      The control is off and has no keys.

      - `Type Disabled`

      - `RetiredKeys []BetaGoogleManagedRetiredKey`

        Keys that a region has retired, earliest `expires_at` first.

        - `ExpiresAt Time`

          When this entry is removed, in RFC 3339 format.

          format: date-time

        - `ExternalKeyID string`

          The ID of the retired External Key (`ekey_...`).

        - `Region string`

          The code of the region that retired the key.

    - `type BetaGoogleManagedCMEKEnabled`

      The control is on and has a key for at least one region.

      - `Type Enabled`

      - `ExternalKeyIDs map[string]string`

        The ID of the External Key configured for each region (`ekey_...`), keyed by region code. A region with no key is left out.

      - `RetiredKeys []BetaGoogleManagedRetiredKey`

        Keys that a region has retired, earliest `expires_at` first.

        - `ExpiresAt Time`

          When this entry is removed, in RFC 3339 format.

          format: date-time

        - `ExternalKeyID string`

          The ID of the retired External Key (`ekey_...`).

        - `Region string`

          The code of the region that retired the key.

      - `Status map[string]BetaGoogleManagedCMEKRegionStatusUnion`

        Each region's status for the control, keyed by region code. A region that your organization is not offered may have no entry, and Anthropic may add regions.

        - `type BetaGoogleManagedCMEKRegionNotConfigured`

          No key is set for this region.

          - `Type NotConfigured`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

        - `type BetaGoogleManagedCMEKRegionPending`

          The region is validating the configured key, or the key has passed validation and the region has not started to apply it.

          - `Type Pending`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

          - `Error string`

            Why the latest validation attempt failed. `null` when no attempt has failed.

        - `type BetaGoogleManagedCMEKRegionActive`

          The configured key passed validation, and the region applies it.

          - `Type Active`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

          - `Error string`

            Why Google Cloud KMS refused the region's latest use of the key. `null` when the region has no refusal to report. A `null` does not mean that the key works.

          - `LastCheckedAt Time`

            When the region last got a successful answer from Google Cloud KMS for the key, in RFC 3339 format. `null` when it has none to report.

            format: date-time

          - `ValidatedAt Time`

            When the status last became `active`, in RFC 3339 format.

            format: date-time

        - `type BetaGoogleManagedCMEKRegionFailed`

          The region stopped retrying validation before the configured key passed. To restart validation, send the region a key again. It can be the same key.

          - `Type Failed`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

          - `Error string`

            Why the region cannot use the configured key.

        - `type BetaGoogleManagedCMEKRegionSuspended`

          Anthropic has withdrawn or paused its approval of customer-managed keys for this profile, so the region does not apply the control.

          - `Type Suspended`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

  - `Storage BetaGoogleManagedStorageControlUnion`

    The customer-owned storage control: the end customer's Cloud Storage bucket that is set for each region.

    - `type BetaGoogleManagedStorageDisabled`

      The control is off and has no buckets.

      - `Type Disabled`

      - `RetiredBuckets []BetaGoogleManagedRetiredBucket`

        Buckets that a region has retired, earliest `expires_at` first.

        - `BucketName string`

          The bucket's Cloud Storage name.

        - `ExpiresAt Time`

          When this entry is removed, in RFC 3339 format.

          format: date-time

        - `ProjectNumber string`

          The number of the Google Cloud project that holds the bucket, in decimal.

        - `Region string`

          The code of the region that retired the bucket.

    - `type BetaGoogleManagedStorageEnabled`

      The control is on and has a bucket for at least one region.

      - `Type Enabled`

      - `Buckets map[string]BetaGoogleManagedStorageBucket`

        The bucket configured for each region, keyed by region code. A region with no bucket is left out.

        - `BucketName string`

          The bucket's Cloud Storage name.

        - `KMSKeyName string`

          The resource name of the Cloud KMS key that the bucket encrypts objects under by default. `null` until the region has confirmed the bucket, and when the bucket has no default key.

        - `Location string`

          The bucket's location, as Cloud Storage reports it. `null` until the region has confirmed the bucket.

        - `ProjectID string`

          The ID of the project that holds the bucket. `null` until the region has confirmed the bucket.

        - `ProjectNumber string`

          The number of the Google Cloud project that holds the bucket, in decimal.

      - `RetiredBuckets []BetaGoogleManagedRetiredBucket`

        Buckets that a region has retired, earliest `expires_at` first.

        - `BucketName string`

          The bucket's Cloud Storage name.

        - `ExpiresAt Time`

          When this entry is removed, in RFC 3339 format.

          format: date-time

        - `ProjectNumber string`

          The number of the Google Cloud project that holds the bucket, in decimal.

        - `Region string`

          The code of the region that retired the bucket.

      - `Status map[string]BetaGoogleManagedStorageRegionStatusUnion`

        Each region's status for the control, keyed by region code. A region that your organization is not offered may have no entry, and Anthropic may add regions.

        - `type BetaGoogleManagedStorageRegionNotConfigured`

          No bucket is set for this region.

          - `Type NotConfigured`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

            - `BucketName string`

              The bucket's Cloud Storage name.

            - `ProjectNumber string`

              The number of the Google Cloud project that holds the bucket, in decimal.

        - `type BetaGoogleManagedStorageRegionPending`

          The region is verifying the configured bucket.

          - `Type Pending`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

          - `FailedChecks []BetaGoogleManagedStorageFailedCheck`

            The checks that the latest reported verification attempt failed. Empty when none has failed.

            - `Check BetaGoogleManagedStorageFailedCheckCheck`

              Which check failed, such as `label_mismatch` or `grant_mismatch`. Anthropic may add values.

              - `const BetaGoogleManagedStorageFailedCheckCheckLabelMismatch BetaGoogleManagedStorageFailedCheckCheck = "label_mismatch"`

              - `const BetaGoogleManagedStorageFailedCheckCheckLocationMismatch BetaGoogleManagedStorageFailedCheckCheck = "location_mismatch"`

              - `const BetaGoogleManagedStorageFailedCheckCheckEncryption BetaGoogleManagedStorageFailedCheckCheck = "encryption"`

              - `const BetaGoogleManagedStorageFailedCheckCheckVersioning BetaGoogleManagedStorageFailedCheckCheck = "versioning"`

              - `const BetaGoogleManagedStorageFailedCheckCheckBucketSettings BetaGoogleManagedStorageFailedCheckCheck = "bucket_settings"`

              - `const BetaGoogleManagedStorageFailedCheckCheckLifecycleRules BetaGoogleManagedStorageFailedCheckCheck = "lifecycle_rules"`

              - `const BetaGoogleManagedStorageFailedCheckCheckDeletionPolicy BetaGoogleManagedStorageFailedCheckCheck = "deletion_policy"`

              - `const BetaGoogleManagedStorageFailedCheckCheckGrantMismatch BetaGoogleManagedStorageFailedCheckCheck = "grant_mismatch"`

              - `const BetaGoogleManagedStorageFailedCheckCheckKMSKeyRefused BetaGoogleManagedStorageFailedCheckCheck = "kms_key_refused"`

              - `const BetaGoogleManagedStorageFailedCheckCheckProbeFailed BetaGoogleManagedStorageFailedCheckCheck = "probe_failed"`

              - `const BetaGoogleManagedStorageFailedCheckCheckProjectNotVerified BetaGoogleManagedStorageFailedCheckCheck = "project_not_verified"`

            - `Message string`

              What failed and, where the end customer can fix it, what to change.

            - `Role BetaGoogleManagedStorageFailedCheckRole`

              On a check about one of the accounts that Anthropic uses to reach the bucket, that account's kind of access, such as `ingest`. `null` on any other check. Anthropic may add values.

              - `const BetaGoogleManagedStorageFailedCheckRoleIngest BetaGoogleManagedStorageFailedCheckRole = "ingest"`

              - `const BetaGoogleManagedStorageFailedCheckRoleRead BetaGoogleManagedStorageFailedCheckRole = "read"`

              - `const BetaGoogleManagedStorageFailedCheckRoleMaintenance BetaGoogleManagedStorageFailedCheckRole = "maintenance"`

              - `const BetaGoogleManagedStorageFailedCheckRoleMediaErasure BetaGoogleManagedStorageFailedCheckRole = "media_erasure"`

              - `const BetaGoogleManagedStorageFailedCheckRoleVerify BetaGoogleManagedStorageFailedCheckRole = "verify"`

        - `type BetaGoogleManagedStorageRegionActive`

          The configured bucket passed verification, and the region applies it.

          - `Type Active`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

          - `FailedChecks []BetaGoogleManagedStorageFailedCheck`

            The checks that the latest reported daily verification failed. Empty when it passed.

            - `Check BetaGoogleManagedStorageFailedCheckCheck`

              Which check failed, such as `label_mismatch` or `grant_mismatch`. Anthropic may add values.

            - `Message string`

              What failed and, where the end customer can fix it, what to change.

            - `Role BetaGoogleManagedStorageFailedCheckRole`

              On a check about one of the accounts that Anthropic uses to reach the bucket, that account's kind of access, such as `ingest`. `null` on any other check. Anthropic may add values.

          - `ValidatedAt Time`

            When the status last became `active`, in RFC 3339 format.

            format: date-time

        - `type BetaGoogleManagedStorageRegionFailed`

          The region stopped retrying verification before the configured bucket passed. To restart verification, send the region a bucket again. It can be the same bucket.

          - `Type Failed`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

          - `FailedChecks []BetaGoogleManagedStorageFailedCheck`

            The checks that the last reported verification attempt failed.

            - `Check BetaGoogleManagedStorageFailedCheckCheck`

              Which check failed, such as `label_mismatch` or `grant_mismatch`. Anthropic may add values.

            - `Message string`

              What failed and, where the end customer can fix it, what to change.

            - `Role BetaGoogleManagedStorageFailedCheckRole`

              On a check about one of the accounts that Anthropic uses to reach the bucket, that account's kind of access, such as `ingest`. `null` on any other check. Anthropic may add values.

        - `type BetaGoogleManagedStorageRegionSuspended`

          Anthropic has withdrawn or paused its approval of customer-owned storage for this profile, so the region does not apply the control.

          - `Type Suspended`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

  - `UpdatedAt Time`

    When an update last changed a control, or a region's status last changed, in RFC 3339 format. A region that starts or stops reading `suspended`, a change to `last_checked_at` alone, and the removal of a retired entry do not count.

    format: date-time

  - `UserProfileID string`

    The ID of the user profile that these controls belong to (`uprof_...`).

#### Example

```go
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.Get(
		context.TODO(),
		"uprof_011CZkZCu8hGbp5mYRQgUmz9",
		anthropic.BetaUserProfileProviderGoogleDataControlGetParams{},
	)
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", betaGoogleManagedDataControls.UserProfileID)
}
```

##### Response (200)

```json
{
  "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"
}
```

### Update Google-Managed Data Controls

`client.Beta.UserProfiles.Providers.Google.DataControls.Update(ctx, userProfileID, params) (*BetaGoogleManagedDataControls, error)`

**POST** `/v1/user_profiles/{user_profile_id}/providers/google/data_controls`

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.

#### Parameters

- `userProfileID string` (path parameter)

  The ID of the user profile whose Google-managed data controls to update (`uprof_...`).

- `params BetaUserProfileProviderGoogleDataControlUpdateParams`

  - `CMEK BetaGoogleManagedCMEKControlParamsUnion Optional`

    The customer-managed encryption key control. Leave it out to keep the control as it is. Send `cmek`, `storage`, or both.

  - `Storage BetaGoogleManagedStorageControlParamsUnion Optional`

    The customer-owned storage control. Leave it out to keep the control as it is. Send `cmek`, `storage`, or both.

  - `Betas []AnthropicBeta Optional` (header parameter)

    This endpoint is in beta: requests must send `google-managed-data-controls-2026-09-01` in this header.

    - `const AnthropicBetaComputerUse2024_10_22 AnthropicBeta = "computer-use-2024-10-22"`

    - `const AnthropicBetaComputerUse2025_01_24 AnthropicBeta = "computer-use-2025-01-24"`

    - `const AnthropicBetaOutput128k2025_02_19 AnthropicBeta = "output-128k-2025-02-19"`

    - `const AnthropicBetaMCPClient2025_04_04 AnthropicBeta = "mcp-client-2025-04-04"`

    - `const AnthropicBetaMCPClient2025_11_20 AnthropicBeta = "mcp-client-2025-11-20"`

    - `const AnthropicBetaDevFullThinking2025_05_14 AnthropicBeta = "dev-full-thinking-2025-05-14"`

    - `const AnthropicBetaInterleavedThinking2025_05_14 AnthropicBeta = "interleaved-thinking-2025-05-14"`

    - `const AnthropicBetaCodeExecution2025_05_22 AnthropicBeta = "code-execution-2025-05-22"`

    - `const AnthropicBetaContext1m2025_08_07 AnthropicBeta = "context-1m-2025-08-07"`

    - `const AnthropicBetaContextManagement2025_06_27 AnthropicBeta = "context-management-2025-06-27"`

    - `const AnthropicBetaModelContextWindowExceeded2025_08_26 AnthropicBeta = "model-context-window-exceeded-2025-08-26"`

    - `const AnthropicBetaFastMode2026_02_01 AnthropicBeta = "fast-mode-2026-02-01"`

    - `const AnthropicBetaOutput300k2026_03_24 AnthropicBeta = "output-300k-2026-03-24"`

    - `const AnthropicBetaUserProfiles2026_03_24 AnthropicBeta = "user-profiles-2026-03-24"`

    - `const AnthropicBetaUserProfiles2026_08_18 AnthropicBeta = "user-profiles-2026-08-18"`

    - `const AnthropicBetaUserProfiles2026_09_04 AnthropicBeta = "user-profiles-2026-09-04"`

    - `const AnthropicBetaAdvisorTool2026_03_01 AnthropicBeta = "advisor-tool-2026-03-01"`

    - `const AnthropicBetaManagedAgents2026_04_01 AnthropicBeta = "managed-agents-2026-04-01"`

    - `const AnthropicBetaDreaming2026_04_21 AnthropicBeta = "dreaming-2026-04-21"`

    - `const AnthropicBetaThinkingTokenCount2026_05_13 AnthropicBeta = "thinking-token-count-2026-05-13"`

    - `const AnthropicBetaServerSideFallback2026_06_01 AnthropicBeta = "server-side-fallback-2026-06-01"`

    - `const AnthropicBetaServerSideFallback2026_07_01 AnthropicBeta = "server-side-fallback-2026-07-01"`

    - `const AnthropicBetaFallbackCredit2026_06_01 AnthropicBeta = "fallback-credit-2026-06-01"`

    - `const AnthropicBetaFallbackCredit2026_07_01 AnthropicBeta = "fallback-credit-2026-07-01"`

    - `const AnthropicBetaAgentMemory2026_07_22 AnthropicBeta = "agent-memory-2026-07-22"`

    - `const AnthropicBetaMidConversationToolChanges2026_07_01 AnthropicBeta = "mid-conversation-tool-changes-2026-07-01"`

    - `const AnthropicBetaCompact2026_01_12 AnthropicBeta = "compact-2026-01-12"`

    - `const AnthropicBetaComputerUse2025_11_24 AnthropicBeta = "computer-use-2025-11-24"`

    - `const AnthropicBetaMCPTunnels2026_06_22 AnthropicBeta = "mcp-tunnels-2026-06-22"`

    - `const AnthropicBetaStructuredOutputs2025_11_13 AnthropicBeta = "structured-outputs-2025-11-13"`

    - `const AnthropicBetaTaskBudgets2026_03_13 AnthropicBeta = "task-budgets-2026-03-13"`

    - `const AnthropicBetaThinkingDisplayUpdates2026_08_18 AnthropicBeta = "thinking-display-updates-2026-08-18"`

    - `const AnthropicBetaMidConversationOutputConfig2026_07_01 AnthropicBeta = "mid-conversation-output-config-2026-07-01"`

    - `const AnthropicBetaThinkingBindingControls2026_08_01 AnthropicBeta = "thinking-binding-controls-2026-08-01"`

    - `const AnthropicBetaMidConversationSystemClearAt2026_08_21 AnthropicBeta = "mid-conversation-system-clear-at-2026-08-21"`

    - `const AnthropicBetaCompact2026_09_04 AnthropicBeta = "compact-2026-09-04"`

    - `const AnthropicBetaInlineTools2026_09_15 AnthropicBeta = "inline-tools-2026-09-15"`

    - `const AnthropicBetaMCPClient2026_09_15 AnthropicBeta = "mcp-client-2026-09-15"`

    - `const AnthropicBetaCEPlugins2026_09_01 AnthropicBeta = "ce-plugins-2026-09-01"`

    - `const AnthropicBetaSpendLimitReads2026_09_26 AnthropicBeta = "spend-limit-reads-2026-09-26"`

    - `const AnthropicBetaTelemetryDestinations2026_08_11 AnthropicBeta = "telemetry-destinations-2026-08-11"`

    - `const AnthropicBetaWebhooks2026_10_07 AnthropicBeta = "webhooks-2026-10-07"`

    - `const AnthropicBetaAdminUserSignOut2026_10_08 AnthropicBeta = "admin-user-sign-out-2026-10-08"`

    - `const AnthropicBetaMessageThreads2026_08_12 AnthropicBeta = "message-threads-2026-08-12"`

    - `const AnthropicBetaAnalyticsUsageCost2026_08_24 AnthropicBeta = "analytics-usage-cost-2026-08-24"`

    - `const AnthropicBetaExperimentalClaudeTag2026_10_21 AnthropicBeta = "experimental-claude-tag-2026-10-21"`

    - `const AnthropicBetaCEClaudeCodeManagedSettings2026_10_06 AnthropicBeta = "ce-claude-code-managed-settings-2026-10-06"`

    - `const AnthropicBetaEfs2026_10_01 AnthropicBeta = "efs-2026-10-01"`

    - `const AnthropicBetaGoogleManagedDataControls2026_09_01 AnthropicBeta = "google-managed-data-controls-2026-09-01"`

    - `const AnthropicBetaUserProfilesBilling2026_10_01 AnthropicBeta = "user-profiles-billing-2026-10-01"`

    - `const AnthropicBetaMessageBatches2024_09_24 AnthropicBeta = "message-batches-2024-09-24"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaPromptCaching2024_07_31 AnthropicBeta = "prompt-caching-2024-07-31"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaPDFs2024_09_25 AnthropicBeta = "pdfs-2024-09-25"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaTokenCounting2024_11_01 AnthropicBeta = "token-counting-2024-11-01"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaTokenEfficientTools2025_02_19 AnthropicBeta = "token-efficient-tools-2025-02-19"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaFilesAPI2025_04_14 AnthropicBeta = "files-api-2025-04-14"`

      **Deprecated**: Sending this value selects the beta response shapes. Removing it moves you to the current shapes, so follow the migration steps: https://platform.claude.com/docs/en/build-with-claude/files#migrate-from-files-api-2025-04-14

    - `const AnthropicBetaExtendedCacheTTL2025_04_11 AnthropicBeta = "extended-cache-ttl-2025-04-11"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaSkills2025_10_02 AnthropicBeta = "skills-2025-10-02"`

      **Deprecated**: Sending this value selects the beta response shapes. Removing it moves you to the current shapes, so follow the migration steps: https://platform.claude.com/docs/en/build-with-claude/skills-guide#migrate-from-skills-2025-10-02

    - `const AnthropicBetaCacheDiagnosis2026_04_07 AnthropicBeta = "cache-diagnosis-2026-04-07"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

    - `const AnthropicBetaCEUserManagement2026_07_13 AnthropicBeta = "ce-user-management-2026-07-13"`

      **Deprecated**: This value is no longer needed. Remove it from your requests.

  - `WorkspaceID param.Opt[string] Optional` (header parameter)

    Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

    Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

#### Returns

- `type BetaGoogleManagedDataControls`

  A user profile's encryption key and storage bucket settings for Claude on Google Cloud's Agent Platform. Every user profile has one of these objects. You can read and update it, but not create or delete it. Keys and buckets are set for each region. A request's region depends on the Google endpoint it is sent to: `us` is the US multi-region endpoint and the regional endpoint of every location whose name starts with `us-`, `eu` is the EU multi-region endpoint and the regional endpoint of every location whose name starts with `europe-`, `sg` is the `asia-southeast1` regional endpoint, and `global` is the global endpoint, wherever Google serves the request. Anthropic may add regions.

  - `Type GoogleManagedDataControls`

    Object type. Always `google_managed_data_controls`.

  - `BucketLabelValue string`

    The label value that every bucket set up for this profile must have. It never changes.

  - `CMEK BetaGoogleManagedCMEKControlUnion`

    The customer-managed encryption key control: the key in the end customer's Google Cloud KMS that is set for each region.

    - `type BetaGoogleManagedCMEKDisabled`

      The control is off and has no keys.

      - `Type Disabled`

      - `RetiredKeys []BetaGoogleManagedRetiredKey`

        Keys that a region has retired, earliest `expires_at` first.

        - `ExpiresAt Time`

          When this entry is removed, in RFC 3339 format.

          format: date-time

        - `ExternalKeyID string`

          The ID of the retired External Key (`ekey_...`).

        - `Region string`

          The code of the region that retired the key.

    - `type BetaGoogleManagedCMEKEnabled`

      The control is on and has a key for at least one region.

      - `Type Enabled`

      - `ExternalKeyIDs map[string]string`

        The ID of the External Key configured for each region (`ekey_...`), keyed by region code. A region with no key is left out.

      - `RetiredKeys []BetaGoogleManagedRetiredKey`

        Keys that a region has retired, earliest `expires_at` first.

        - `ExpiresAt Time`

          When this entry is removed, in RFC 3339 format.

          format: date-time

        - `ExternalKeyID string`

          The ID of the retired External Key (`ekey_...`).

        - `Region string`

          The code of the region that retired the key.

      - `Status map[string]BetaGoogleManagedCMEKRegionStatusUnion`

        Each region's status for the control, keyed by region code. A region that your organization is not offered may have no entry, and Anthropic may add regions.

        - `type BetaGoogleManagedCMEKRegionNotConfigured`

          No key is set for this region.

          - `Type NotConfigured`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

        - `type BetaGoogleManagedCMEKRegionPending`

          The region is validating the configured key, or the key has passed validation and the region has not started to apply it.

          - `Type Pending`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

          - `Error string`

            Why the latest validation attempt failed. `null` when no attempt has failed.

        - `type BetaGoogleManagedCMEKRegionActive`

          The configured key passed validation, and the region applies it.

          - `Type Active`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

          - `Error string`

            Why Google Cloud KMS refused the region's latest use of the key. `null` when the region has no refusal to report. A `null` does not mean that the key works.

          - `LastCheckedAt Time`

            When the region last got a successful answer from Google Cloud KMS for the key, in RFC 3339 format. `null` when it has none to report.

            format: date-time

          - `ValidatedAt Time`

            When the status last became `active`, in RFC 3339 format.

            format: date-time

        - `type BetaGoogleManagedCMEKRegionFailed`

          The region stopped retrying validation before the configured key passed. To restart validation, send the region a key again. It can be the same key.

          - `Type Failed`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

          - `Error string`

            Why the region cannot use the configured key.

        - `type BetaGoogleManagedCMEKRegionSuspended`

          Anthropic has withdrawn or paused its approval of customer-managed keys for this profile, so the region does not apply the control.

          - `Type Suspended`

          - `EffectiveExternalKeyID string`

            The ID of the External Key that the region applies now (`ekey_...`). While a replacement key is `pending` or `failed`, this is the previous key. `null` when the region applies no key.

  - `Storage BetaGoogleManagedStorageControlUnion`

    The customer-owned storage control: the end customer's Cloud Storage bucket that is set for each region.

    - `type BetaGoogleManagedStorageDisabled`

      The control is off and has no buckets.

      - `Type Disabled`

      - `RetiredBuckets []BetaGoogleManagedRetiredBucket`

        Buckets that a region has retired, earliest `expires_at` first.

        - `BucketName string`

          The bucket's Cloud Storage name.

        - `ExpiresAt Time`

          When this entry is removed, in RFC 3339 format.

          format: date-time

        - `ProjectNumber string`

          The number of the Google Cloud project that holds the bucket, in decimal.

        - `Region string`

          The code of the region that retired the bucket.

    - `type BetaGoogleManagedStorageEnabled`

      The control is on and has a bucket for at least one region.

      - `Type Enabled`

      - `Buckets map[string]BetaGoogleManagedStorageBucket`

        The bucket configured for each region, keyed by region code. A region with no bucket is left out.

        - `BucketName string`

          The bucket's Cloud Storage name.

        - `KMSKeyName string`

          The resource name of the Cloud KMS key that the bucket encrypts objects under by default. `null` until the region has confirmed the bucket, and when the bucket has no default key.

        - `Location string`

          The bucket's location, as Cloud Storage reports it. `null` until the region has confirmed the bucket.

        - `ProjectID string`

          The ID of the project that holds the bucket. `null` until the region has confirmed the bucket.

        - `ProjectNumber string`

          The number of the Google Cloud project that holds the bucket, in decimal.

      - `RetiredBuckets []BetaGoogleManagedRetiredBucket`

        Buckets that a region has retired, earliest `expires_at` first.

        - `BucketName string`

          The bucket's Cloud Storage name.

        - `ExpiresAt Time`

          When this entry is removed, in RFC 3339 format.

          format: date-time

        - `ProjectNumber string`

          The number of the Google Cloud project that holds the bucket, in decimal.

        - `Region string`

          The code of the region that retired the bucket.

      - `Status map[string]BetaGoogleManagedStorageRegionStatusUnion`

        Each region's status for the control, keyed by region code. A region that your organization is not offered may have no entry, and Anthropic may add regions.

        - `type BetaGoogleManagedStorageRegionNotConfigured`

          No bucket is set for this region.

          - `Type NotConfigured`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

            - `BucketName string`

              The bucket's Cloud Storage name.

            - `ProjectNumber string`

              The number of the Google Cloud project that holds the bucket, in decimal.

        - `type BetaGoogleManagedStorageRegionPending`

          The region is verifying the configured bucket.

          - `Type Pending`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

          - `FailedChecks []BetaGoogleManagedStorageFailedCheck`

            The checks that the latest reported verification attempt failed. Empty when none has failed.

            - `Check BetaGoogleManagedStorageFailedCheckCheck`

              Which check failed, such as `label_mismatch` or `grant_mismatch`. Anthropic may add values.

              - `const BetaGoogleManagedStorageFailedCheckCheckLabelMismatch BetaGoogleManagedStorageFailedCheckCheck = "label_mismatch"`

              - `const BetaGoogleManagedStorageFailedCheckCheckLocationMismatch BetaGoogleManagedStorageFailedCheckCheck = "location_mismatch"`

              - `const BetaGoogleManagedStorageFailedCheckCheckEncryption BetaGoogleManagedStorageFailedCheckCheck = "encryption"`

              - `const BetaGoogleManagedStorageFailedCheckCheckVersioning BetaGoogleManagedStorageFailedCheckCheck = "versioning"`

              - `const BetaGoogleManagedStorageFailedCheckCheckBucketSettings BetaGoogleManagedStorageFailedCheckCheck = "bucket_settings"`

              - `const BetaGoogleManagedStorageFailedCheckCheckLifecycleRules BetaGoogleManagedStorageFailedCheckCheck = "lifecycle_rules"`

              - `const BetaGoogleManagedStorageFailedCheckCheckDeletionPolicy BetaGoogleManagedStorageFailedCheckCheck = "deletion_policy"`

              - `const BetaGoogleManagedStorageFailedCheckCheckGrantMismatch BetaGoogleManagedStorageFailedCheckCheck = "grant_mismatch"`

              - `const BetaGoogleManagedStorageFailedCheckCheckKMSKeyRefused BetaGoogleManagedStorageFailedCheckCheck = "kms_key_refused"`

              - `const BetaGoogleManagedStorageFailedCheckCheckProbeFailed BetaGoogleManagedStorageFailedCheckCheck = "probe_failed"`

              - `const BetaGoogleManagedStorageFailedCheckCheckProjectNotVerified BetaGoogleManagedStorageFailedCheckCheck = "project_not_verified"`

            - `Message string`

              What failed and, where the end customer can fix it, what to change.

            - `Role BetaGoogleManagedStorageFailedCheckRole`

              On a check about one of the accounts that Anthropic uses to reach the bucket, that account's kind of access, such as `ingest`. `null` on any other check. Anthropic may add values.

              - `const BetaGoogleManagedStorageFailedCheckRoleIngest BetaGoogleManagedStorageFailedCheckRole = "ingest"`

              - `const BetaGoogleManagedStorageFailedCheckRoleRead BetaGoogleManagedStorageFailedCheckRole = "read"`

              - `const BetaGoogleManagedStorageFailedCheckRoleMaintenance BetaGoogleManagedStorageFailedCheckRole = "maintenance"`

              - `const BetaGoogleManagedStorageFailedCheckRoleMediaErasure BetaGoogleManagedStorageFailedCheckRole = "media_erasure"`

              - `const BetaGoogleManagedStorageFailedCheckRoleVerify BetaGoogleManagedStorageFailedCheckRole = "verify"`

        - `type BetaGoogleManagedStorageRegionActive`

          The configured bucket passed verification, and the region applies it.

          - `Type Active`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

          - `FailedChecks []BetaGoogleManagedStorageFailedCheck`

            The checks that the latest reported daily verification failed. Empty when it passed.

            - `Check BetaGoogleManagedStorageFailedCheckCheck`

              Which check failed, such as `label_mismatch` or `grant_mismatch`. Anthropic may add values.

            - `Message string`

              What failed and, where the end customer can fix it, what to change.

            - `Role BetaGoogleManagedStorageFailedCheckRole`

              On a check about one of the accounts that Anthropic uses to reach the bucket, that account's kind of access, such as `ingest`. `null` on any other check. Anthropic may add values.

          - `ValidatedAt Time`

            When the status last became `active`, in RFC 3339 format.

            format: date-time

        - `type BetaGoogleManagedStorageRegionFailed`

          The region stopped retrying verification before the configured bucket passed. To restart verification, send the region a bucket again. It can be the same bucket.

          - `Type Failed`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

          - `FailedChecks []BetaGoogleManagedStorageFailedCheck`

            The checks that the last reported verification attempt failed.

            - `Check BetaGoogleManagedStorageFailedCheckCheck`

              Which check failed, such as `label_mismatch` or `grant_mismatch`. Anthropic may add values.

            - `Message string`

              What failed and, where the end customer can fix it, what to change.

            - `Role BetaGoogleManagedStorageFailedCheckRole`

              On a check about one of the accounts that Anthropic uses to reach the bucket, that account's kind of access, such as `ingest`. `null` on any other check. Anthropic may add values.

        - `type BetaGoogleManagedStorageRegionSuspended`

          Anthropic has withdrawn or paused its approval of customer-owned storage for this profile, so the region does not apply the control.

          - `Type Suspended`

          - `EffectiveBucket BetaGoogleManagedBucketReference`

            The bucket that the region applies now. While a replacement bucket is `pending` or `failed`, this is the previous bucket. `null` when the region applies no bucket.

  - `UpdatedAt Time`

    When an update last changed a control, or a region's status last changed, in RFC 3339 format. A region that starts or stops reading `suspended`, a change to `last_checked_at` alone, and the removal of a retired entry do not count.

    format: date-time

  - `UserProfileID string`

    The ID of the user profile that these controls belong to (`uprof_...`).

#### Example

```go
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)

```json
{
  "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"
}
```
