Crea External Storage
POST/v1/organizations/external_storage
Requires
anthropic-beta: efs-2026-10-01. Learn how to send beta headers.Registra un bucket che si trova nell'account cloud dell'organizzazione. Viene salvato
come pending_configuration e verificato al momento dell'attivazione.
Crea External Storage
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"),
)
betaExternalStorage, err := client.Beta.Organization.ExternalStorage.New(context.TODO(), anthropic.BetaOrganizationExternalStorageNewParams{
ProviderConfig: anthropic.BetaOrganizationExternalStorageNewParamsProviderConfigUnion{
OfAWS: &anthropic.BetaAWSExternalStorageConfigParam{
AccountID: "111122223333",
BucketName: "acme-safety-retention",
Region: "us-east-2",
},
},
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaExternalStorage.ID)
}Response 200
{
"id": "estrg_01SDCCSbTxrXDpWc1phhtcfK",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "display_name",
"provider_config": {
"account_id": "111122223333",
"bucket_name": "acme-safety-retention",
"region": "us-east-2",
"type": "aws"
},
"setup_template_version": "2",
"status": {
"type": "pending_configuration"
},
"type": "external_storage",
"updated_at": "2024-10-30T23:58:27.427722Z",
"user_profile_id": "uprof_01SDCCSbTxrXDpWc1phhtcfK"
}Returns Examples
Response 200
{
"id": "estrg_01SDCCSbTxrXDpWc1phhtcfK",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "display_name",
"provider_config": {
"account_id": "111122223333",
"bucket_name": "acme-safety-retention",
"region": "us-east-2",
"type": "aws"
},
"setup_template_version": "2",
"status": {
"type": "pending_configuration"
},
"type": "external_storage",
"updated_at": "2024-10-30T23:58:27.427722Z",
"user_profile_id": "uprof_01SDCCSbTxrXDpWc1phhtcfK"
}