19 Feb 2019 01:26 PM
Looking through the api reference material I found the following concerning add_enpoint.
add_endpoint
(ip: str, port: int, **kwargs) → None¶Add an endpoint to the Device. :param ip: IP address :param port: Port, in range(1, 65535) :param dnsNames: Optional list of domains bound to the address. :return:
I'm specifically interested in the dnsNames param. Would anyone know what the actual syntax of using this would look like?
Thank you in advance!
20 Feb 2019 02:53 AM
To report endpoint with an optional property, you need to specify its name
device.add_endpoint(ip="127.0.0.1", port=8769, dnsNames=["domain1", "domain2"])