Claude Platform Docs

Controlli dei dati

Ottieni i controlli dei dati del progetto Google-Managed
client.Beta.Organization.Providers.Google.Projects.DataControls.Get(ctx, projectNumber, query) (*BetaGoogleManagedProjectDataControls, error)
GET/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.

Ottieni le chiavi di crittografia e i bucket di archiviazione di un progetto Google Cloud per Claude su Google Cloud's Agent Platform, con lo stato di ciascuna regione.

Aggiorna i controlli dei dati del progetto Google-Managed
client.Beta.Organization.Providers.Google.Projects.DataControls.Update(ctx, projectNumber, params) (*BetaGoogleManagedProjectDataControls, error)
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.

Attiva o disattiva un controllo, oppure modifica la chiave o il bucket impostato per una regione. I controlli e le regioni che ometti restano invariati.

Models
type BetaGoogleManagedProjectBucketReferenceParam struct { BucketName; ProjectNumber }

A Cloud Storage bucket, named by the project that holds it and by its own name.

BucketName string

The bucket's Cloud Storage name.

ProjectNumber string

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

type BetaGoogleManagedProjectCMEKControlUnion interface{…}

The customer-managed encryption key control: the key in your Google Cloud KMS that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no key of its own for the project.

One of the following:
type BetaGoogleManagedProjectCMEKDisabled struct { Type: "disabled"; RetiredKeys }

The control is off and has no keys.

Type Disabled
defaultdisabled

Keys that a region has retired, earliest expires_at first.

ExpiresAt Time

When this entry is removed, in RFC 3339 format.

formatdate-time
ExternalKeyID string

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

Region string

The code of the region that retired the key.

type BetaGoogleManagedProjectCMEKEnabled struct { Type: "enabled"; ExternalKeyIDs; RetiredKeys; Status }

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

type BetaGoogleManagedProjectCMEKControlParamsUnion interface{…}

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

One of the following:
type BetaGoogleManagedProjectCMEKDisabledParams struct { Type: "disabled" }

Turns the control off and removes every region's key.

Type Disabled
type BetaGoogleManagedProjectCMEKEnabledParams struct { Type: "enabled"; ExternalKeyIDs }

Turns the control on, or changes its keys while it is on.

Type Enabled
ExternalKeyIDs map[string]string Optional

The External Key to use in each region, keyed by region code, such as us or eu. An External Key ID (ekey_...) sets that region's key, null removes it, and a region you leave out keeps its key. While the control is on, at least one region must have a key.

type BetaGoogleManagedProjectCMEKDisabled struct { Type: "disabled"; RetiredKeys }

The control is off and has no keys.

Type Disabled
defaultdisabled

Keys that a region has retired, earliest expires_at first.

ExpiresAt Time

When this entry is removed, in RFC 3339 format.

formatdate-time
ExternalKeyID string

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

Region string

The code of the region that retired the key.

type BetaGoogleManagedProjectCMEKDisabledParams struct { Type: "disabled" }

Turns the control off and removes every region's key.

Type Disabled
type BetaGoogleManagedProjectCMEKEnabled struct { Type: "enabled"; ExternalKeyIDs; RetiredKeys; Status }

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

type BetaGoogleManagedProjectCMEKEnabledParams struct { Type: "enabled"; ExternalKeyIDs }

Turns the control on, or changes its keys while it is on.

Type Enabled
ExternalKeyIDs map[string]string Optional

The External Key to use in each region, keyed by region code, such as us or eu. An External Key ID (ekey_...) sets that region's key, null removes it, and a region you leave out keeps its key. While the control is on, at least one region must have a key.

type BetaGoogleManagedProjectCMEKRegionActive struct { Type: "active"; EffectiveExternalKeyID; Error; /* 2 more */ }

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

Type Active
defaultactive
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.

formatdate-time
ValidatedAt Time

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

formatdate-time
type BetaGoogleManagedProjectCMEKRegionFailed struct { Type: "failed"; EffectiveExternalKeyID; Error }

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
defaultfailed
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 BetaGoogleManagedProjectCMEKRegionNotConfigured struct { Type: "not_configured"; EffectiveExternalKeyID }

No key is set for this region.

Type NotConfigured
defaultnot_configured
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 BetaGoogleManagedProjectCMEKRegionPending struct { Type: "pending"; EffectiveExternalKeyID; Error }

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

Type Pending
defaultpending
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 BetaGoogleManagedProjectCMEKRegionStatusUnion interface{…}
One of the following:
type BetaGoogleManagedProjectCMEKRegionSuspended struct { Type: "suspended"; EffectiveExternalKeyID }

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

Type Suspended
defaultsuspended
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 BetaGoogleManagedProjectDataControls struct { Type: "google_managed_project_data_controls"; CMEK; ProjectNumber; /* 2 more */ }

A Google Cloud project's encryption key and storage bucket settings for Claude on Google Cloud's Agent Platform. Your organization has one of these objects for each Google Cloud project that it has proved it owns. 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 BetaGoogleManagedProjectEffectiveBucket struct { BucketName; ProjectNumber }

A Cloud Storage bucket, named by the project that holds it and by its own name.

BucketName string

The bucket's Cloud Storage name.

ProjectNumber string

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

type BetaGoogleManagedProjectRetiredBucket struct { BucketName; ExpiresAt; ProjectNumber; Region }

A bucket that a region has retired. Until expires_at, keep the bucket and Anthropic's access to it as they were when the bucket passed verification.

BucketName string

The bucket's Cloud Storage name.

ExpiresAt Time

When this entry is removed, in RFC 3339 format.

formatdate-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 BetaGoogleManagedProjectRetiredKey struct { ExpiresAt; ExternalKeyID; Region }

A key that a region has retired. Keep the key usable until expires_at.

ExpiresAt Time

When this entry is removed, in RFC 3339 format.

formatdate-time
ExternalKeyID string

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

Region string

The code of the region that retired the key.

type BetaGoogleManagedProjectStorageBucket struct { BucketName; KMSKeyName; Location; /* 2 more */ }

The bucket configured for a region.

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.

type BetaGoogleManagedProjectStorageControlUnion interface{…}

The customer-owned storage control: your Cloud Storage bucket that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no bucket of its own for the project.

One of the following:
type BetaGoogleManagedProjectStorageDisabled struct { Type: "disabled"; RetiredBuckets }

The control is off and has no buckets.

Type Disabled
defaultdisabled

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.

formatdate-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 BetaGoogleManagedProjectStorageEnabled struct { Type: "enabled"; Buckets; RetiredBuckets; Status }

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

type BetaGoogleManagedProjectStorageControlParamsUnion interface{…}

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

One of the following:
type BetaGoogleManagedProjectStorageDisabledParams struct { Type: "disabled" }

Turns the control off and removes every region's bucket.

Type Disabled
type BetaGoogleManagedProjectStorageEnabledParams struct { Type: "enabled"; Buckets }

Turns the control on, or changes its buckets while it is on.

Type Enabled

The bucket to use in each region, keyed by region code, such as us or eu. An object with project_number and bucket_name sets that region's bucket, null removes it, and a region you leave out keeps its bucket. A bucket can serve only one region. While the control is on, at least one region must have a 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 BetaGoogleManagedProjectStorageDisabled struct { Type: "disabled"; RetiredBuckets }

The control is off and has no buckets.

Type Disabled
defaultdisabled

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.

formatdate-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 BetaGoogleManagedProjectStorageDisabledParams struct { Type: "disabled" }

Turns the control off and removes every region's bucket.

Type Disabled
type BetaGoogleManagedProjectStorageEnabled struct { Type: "enabled"; Buckets; RetiredBuckets; Status }

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

type BetaGoogleManagedProjectStorageEnabledParams struct { Type: "enabled"; Buckets }

Turns the control on, or changes its buckets while it is on.

Type Enabled

The bucket to use in each region, keyed by region code, such as us or eu. An object with project_number and bucket_name sets that region's bucket, null removes it, and a region you leave out keeps its bucket. A bucket can serve only one region. While the control is on, at least one region must have a 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 BetaGoogleManagedProjectStorageFailedCheck struct { Check; Message; Role }

One check that a verification attempt failed.

type BetaGoogleManagedProjectStorageRegionActive struct { Type: "active"; EffectiveBucket; FailedChecks; ValidatedAt }

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

type BetaGoogleManagedProjectStorageRegionFailed struct { Type: "failed"; EffectiveBucket; FailedChecks }

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 BetaGoogleManagedProjectStorageRegionNotConfigured struct { Type: "not_configured"; EffectiveBucket }

No bucket is set for this region.

Type NotConfigured
defaultnot_configured

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 BetaGoogleManagedProjectStorageRegionPending struct { Type: "pending"; EffectiveBucket; FailedChecks }

The region is verifying the configured bucket.

type BetaGoogleManagedProjectStorageRegionStatusUnion interface{…}
One of the following:
type BetaGoogleManagedProjectStorageRegionSuspended struct { Type: "suspended"; EffectiveBucket }

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

Type Suspended
defaultsuspended

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.