Databases

Creates a new database within the specified account.

post/accounts/{account_id}/databases

Request

  • Base URL
    https://api.aptible.com
  • Auth
    API key in header Authorization

Path parameters

account_idinteger required

account_id

Query parameters

no_embedboolean

When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present.

Headers

Prefer'no_sensitive_extras=true'

When set to no_sensitive_extras=true, omits sensitive fields and embedded resources from the response.

Request body

handlestring required
typestring required
initial_disk_sizeinteger
initial_container_sizeinteger
initialize_fromstring
database_imageinteger

Alternate name for database_image_id

database_image_idinteger
current_kms_arnstring
enable_backupsboolean
enable_pitrboolean

Response

successful

idinteger required
handlestring required
typestring required
passphrasestring
connection_urlstring
provisionedboolean required
_typestring required
created_atstring dateTime required
updated_atstring dateTime required
statusstring required
docker_repostring required
initial_disk_sizeinteger required
initial_container_sizeinteger required
current_kms_arnstring required
enable_backupsboolean required
pitr_bucketstring required
oldest_pitr_timestring required
enable_pitrboolean required
pitr_status'unsupported' | 'supported' | 'pending_restart' | 'restricted' required

Changes

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      the request property type changed from integer to string

    • breaking

      the response property /// became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • info

      added the new optional header request parameter Prefer

    • info

      added the new optional query request parameter no_embed