Skip to content

The use of mutable lookup values for endpoints makes consistency... difficult. #529

@terjekv

Description

@terjekv

So, we have names as endpoint lookup values multiple places, like for hosts. Ie, we api/v1/hosts/foo.bar.com. The thing is, hostnames are mutable. However, we can't look up hosts via the ID without doing a query (api/v1/hosts/?id=42). This means that after we have changed the name of foo.bar.com the resource has moved to a different URL.

This problem also applies to at the very least:

  • Hosts
  • Networks
  • Cnames
  • HInfo
  • Loc
  • ForwardZones
  • ReverseZones
  • ...

This is... not great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions