Open
Description
Based on the discussion in #66 and elsewhere, in the instance create POST we want to:
- Make
hostname
optional (it's currently required) - Validate it using the same constraints we're currently using for
name
-
- If
hostname
is not provided, setname
ashostname
- If
Out of scope for now is worrying about uniqueness of hostname
, e.g., if the user creates { name: 'db1', hostname: 'db2' }
and then tries to create { name: 'db2' }
(which implies a hostname of db2
), let them.