Note: You can use the Sample property or the REST file to access endpoints, for example, https://example.com/countries/.
Alternately, you can specify addresses using IPv4 or IPv6 format using the connection URL by using the Sample property of the or the REST file specified by the Config property. For example, the following connection URL specifies an endpoint using an IPv4 address:
jdbc:datadirect:autorest:Sample='123.456.78.90';
You also can specify addresses in either format using a data source by using the Sample property or the REST file specified by the Config property. The following example shows a data source definition that specifies the server name using IPv6 format:
Note: When specifying IPv6 addresses in a connection URL or data source property, the address must be enclosed by brackets.
In addition to the normal IPv6 format, the drivers support IPv6 alternative formats for compressed and IPv4/IPv6 combination addresses. For example, the following connection URL specifies the server using IPv6 format, but uses the compressed syntax for strings of zero bits: