cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ActiveGate Plugin add_endpoint reference

scott_criscilli
Participant

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!


1 REPLY 1

piotr_kuchta
Dynatrace Promoter
Dynatrace Promoter

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"])

Featured Posts