code: def get_(app, endpoint, id=None, **kwargs):
      '''
      Get a single item from NetBox.
  
      app
          String of netbox app, e.g., ``dcim``, ``circuits``, ``ipam``
      endpoint
          String of app endpoint, e.g., ``sites``, ``regions``, ``devices``
  
      Returns a single dictionary
  
      To get an item based on ID.
  
      .. code-block:: bash
  
          salt myminion netbox.get dcim devices id=123
  
      Or using named arguments that correspond with accepted filters on
      the NetBox endpoint.
  
      .. code-block:: bash
  
          salt myminion netbox.get dcim devices name=my-router
      '''
      return _dict(_get(app, endpoint, id=id, auth_required=True if app in AUTH_ENDPOINTS else False, **kwargs)f get_(app, endpoint, id=None, **kwargs):
      '''
      Get a single item from NetBox.
  
      app
          String of netbox app, e.g., ``dcim``, ``circuits``, ``ipam``
      endpoint
          String of app endpoint, e.g., ``sites``, ``regions``, ``devices``
  
      Returns a single dictionary
  
      To get an item based on ID.
  
      .. code-block:: bash
  
          salt myminion netbox.get dcim devices id=123
  
      Or using named arguments that correspond with accepted filters on
      the NetBox endpoint.
  
      .. code-block:: bash
  
          salt myminion netbox.get dcim devices name=my-router
      '''
      return _dict(_get(app, endpoint, id=id, auth_required=True if app in AUTH_ENDPOINTS else False, **kwargs))
docs: Get a single item from NetBox.
  
      app
          String of netbox app, e.g., ``dcim``, ``circuits``, ``ipam``
      endpoint
          String of app endpoint, e.g., ``sites``, ``regions``, ``devices``
  
      Returns a single dictionary
  
      To get an item based on ID.
  
      .. code-block:: bash
  
          salt myminion netbox.get dcim devices id=123
  
      Or using named arguments that correspond with accepted filters on
      the NetBox endpoint.
  
      .. code-block:: bash
  
          salt myminion netbox.get dcim devices name=my-router