Backups

Create a new S3 source

Changed on
post/backups/s3-sources

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Request body

access_key_idstring password required

Access key ID of the bucket's credentials, for example AKIA... on AWS.

backing_service_idinteger nullable

Managed RustFS/S3 service that supplies this destination. When set, schedules using this source can never target that service itself.

bucket_namestring required
bucket_pathstring required
endpointstring nullable

Optional endpoint for S3-compatible services like MinIO or RustFS, with or without a scheme. Stored with an explicit scheme: without one, use_tls decides it (plain http:// when that is unset too).

force_path_styleboolean nullable

Whether to use path-style addressing (default: true). Forced on for an IP-address endpoint and a Temps-managed object store.

is_defaultboolean nullable

When true, make this the default source (will swap out any existing default). The very first S3 source is always created as default regardless of this flag.

namestring required
regionstring required
secret_keystring password required

Secret access key that goes with the access key ID. Shown once by the provider; stored encrypted and never returned.

use_tlsboolean nullable

Whether the endpoint is reached over TLS. Only needed for an endpoint entered without a scheme; one that conflicts with the endpoint's scheme is rejected.

worker_credentials'scoped' | 'allow_full' nullable

What a worker node may receive from an S3 source (ADR-102).

Example request

{
  "endpoint": "http://minio.example.com:9000",
  "force_path_style": true
}

Response

S3 source created

access_key_idstring required
bucket_namestring required
bucket_pathstring required
created_atstring date-time required
effective_endpointstring nullable

The endpoint every client (WAL-G, restore and worker jobs) receives, always with an explicit scheme. None for AWS S3 itself.

effective_force_path_styleboolean required

Whether clients actually use path-style addressing.

endpointstring nullable
force_path_styleboolean nullable
idinteger required
is_defaultboolean required
managed_by_cloudboolean required

True when this source was auto-provisioned by a Temps Cloud link rather than entered by an operator. Managed sources cannot be edited or deleted from this API; disconnect Temps Cloud to remove one.

namestring required
path_style_reason'configured' | 'ip_address_endpoint' | 'managed_object_store' required

Why effective_force_path_style has its value: the source's own setting, or forced because the endpoint is an IP address or a Temps-managed object store.

regionstring required
secret_keystring required
updated_atstring date-time required
worker_credentials'scoped' | 'allow_full' required

What a worker node receives from this source (ADR-102).

Example response

{
  "access_key_id": "AKIAXXXXXXXXXXXXXXXX",
  "effective_endpoint": "http://10.0.0.5:9000",
  "endpoint": "http://minio.example.com:9000"
}

Changes

    • breaking

      the created_at response's property type changed from integer to string, and format from int64 to date-time for status

    • breaking

      the updated_at response's property type changed from integer to string, and format from int64 to date-time for status

    • info

      added the non-success response with the status