19 Feb 2019 09: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!
Solved! Go to Solution.
20 Feb 2019 10: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"])