Add connected_enpoints property to graphql api #7672

Closed
opened 2025-12-29 20:26:45 +01:00 by adam · 3 comments
Owner

Originally created by @basti1508 on GitHub (Feb 24, 2023).

Originally assigned to: @basti1508 on GitHub.

NetBox version

v.3.4.5

Feature type

Change to existing functionality

Proposed functionality

The netbox graphql api should expose the same connected_endpoints property as the rest api.
This makes it easier to resolve complete paths via graphql.

A query would look like:

  device(id:xx) {
    id
    name
    interfaces {
      name
      connected_endpoints {
        ... on InterfaceType {
          ip_addresses {
            address
          }
          device {
            name
            device_role {
              slug
            }
          }
        }
      }
    }
  }
}

Use case

This function helps on making graphql information analog to rest-Api information.

Database changes

No response

External dependencies

No response

Originally created by @basti1508 on GitHub (Feb 24, 2023). Originally assigned to: @basti1508 on GitHub. ### NetBox version v.3.4.5 ### Feature type Change to existing functionality ### Proposed functionality The netbox graphql api should expose the same connected_endpoints property as the rest api. This makes it easier to resolve complete paths via graphql. A query would look like: ```{ device(id:xx) { id name interfaces { name connected_endpoints { ... on InterfaceType { ip_addresses { address } device { name device_role { slug } } } } } } } ``` ### Use case This function helps on making graphql information analog to rest-Api information. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:26:45 +01:00
adam closed this issue 2025-12-29 20:26:46 +01:00
Author
Owner

@basti1508 commented on GitHub (Feb 24, 2023):

@maintainers: The pull request for this would be ready to be submitted, as soon as this issue is assigned to me.

@basti1508 commented on GitHub (Feb 24, 2023): @maintainers: The pull request for this would be ready to be submitted, as soon as this issue is assigned to me.
Author
Owner

@basti1508 commented on GitHub (Feb 24, 2023):

ah sorry. Draft PR is more than just a draft..
I'll create a new one then if assigned.

@basti1508 commented on GitHub (Feb 24, 2023): ah sorry. Draft PR is more than just a draft.. I'll create a new one then if assigned.
Author
Owner

@ryanmerolle commented on GitHub (Feb 25, 2023):

Relates to #7125

@ryanmerolle commented on GitHub (Feb 25, 2023): Relates to #7125
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7672