Expand lookups in datamodel #10532
direktornswe
started this conversation in
General
Replies: 1 comment 1 reply
-
Not in the REST API, but it might be possible with GraphQL. Note that it would be good practice to set a "primary_ip" on the virtual machine, so in this example it would be only two lookups: one for the VM (which returns the primary IP), and one for the primary IP (which gives you the DNS name). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
This might be a noob question.
I'm using the API for the first time and so far it works as expected. However I try to get the DNS name of a virtual machine (Interfaces -> IP address -> DNS name)
Is this possible to expand/children/lookup foreign keys using the API in one call?
I have read the docs but it does not talk to much the topic. Any hints would be helpful.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions