This command creates a Database Endpoint.

Synopsis

Usage:
  aptible endpoints:database:create DATABASE

Options:
  [--environment=ENVIRONMENT]
  [--database=DATABASE]
  [--internal], [--no-internal]   # Restrict this Endpoint to internal traffic
  [--ip-whitelist=one two three]  # A list of IPv4 sources (addresses or CIDRs) to which to restrict traffic to this Endpoint

Examples

Create a new Database Endpoint

aptible endpoints:database:create \
        --database "$DATABASE_HANDLE"

Create a new Database Endpoint with IP Filtering

aptible endpoints:database:create \
        --database "$DATABASE_HANDLE" \
        --ip-whitelist 1.1.1.1/1 2.2.2.2