Ir para o conteúdo

Espelhamento Multi-Nuvem

Replique automaticamente os arquivos dos seus buckets para provedores de nuvem externos para redundância ou distribuição CDN.

Espelhar buckets para AWS S3

Replique automaticamente os arquivos do seu bucket para Amazon S3 para redundância ou distribuição CDN.

curl -X POST "/api/v1/tenants/:tenantId/buckets/:bucketId/mirrors?apiKey=<your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Espelho S3 Produção",
    "type": "AWS",
    "bucketId": "<bucket-id>",
    "region": "us-east-1",
    "bucketName": "meu-bucket-s3",
    "accessKeyId": "<aws-access-key>",
    "secretAccessKey": "<aws-secret-key>"
  }'

Espelhar buckets para Azure Blob Storage

Replique arquivos para contêineres do Azure Blob Storage.

curl -X POST "/api/v1/tenants/:tenantId/buckets/:bucketId/mirrors?apiKey=<your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Espelho Backup Azure",
    "type": "AZURE",
    "bucketId": "<bucket-id>",
    "accountName": "minhacountadearmazenamento",
    "containerName": "meu-container",
    "accountKey": "<azure-account-key>"
  }'

Espelhar buckets para Google Cloud Storage

Replique arquivos para buckets do Google Cloud Storage.

curl -X POST "/api/v1/tenants/:tenantId/buckets/:bucketId/mirrors?apiKey=<your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Espelho GCS",
    "type": "GOOGLE",
    "bucketId": "<bucket-id>",
    "projectId": "meu-projeto-gcp",
    "bucketName": "meu-bucket-gcs",
    "credentials": "<service-account-json>"
  }'

Espelhar entre tenants do GFile

Replique arquivos para outro tenant do GFile Plus — útil para recuperação de desastres ou compartilhamento entre organizações.

curl -X POST "/api/v1/tenants/:tenantId/buckets/:bucketId/mirrors?apiKey=<your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Espelho Cross-Tenant",
    "type": "GFILE",
    "bucketId": "<bucket-id>",
    "gFileTenantId": "<target-tenant-id>",
    "gFileBucketId": "<target-bucket-id>",
    "apiKey": "<target-tenant-api-key>"
  }'