The use of mutable lookup values for endpoints makes consistency... difficult.
Opened this issue · 0 comments
terjekv commented
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.