Skip to content

Use instance name as hostname if not provided #68

Open
@david-crespo

Description

@david-crespo

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, set name as hostname

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRelated to the API.mvp

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions