vinyldns-java

java client for https://vinyldns.io

License

License

Categories

Categories

Java Languages
GroupId

GroupId

io.vinyldns
ArtifactId

ArtifactId

vinyldns-java
Last Version

Last Version

0.9.4
Release Date

Release Date

Type

Type

jar
Description

Description

vinyldns-java
java client for https://vinyldns.io
Project URL

Project URL

https://vinyldns.io
Source Code Management

Source Code Management

http://github.com/vinyldns/vinyldns-java

Download vinyldns-java

How to add to project

<!-- https://jarcasting.com/artifacts/io.vinyldns/vinyldns-java/ -->
<dependency>
    <groupId>io.vinyldns</groupId>
    <artifactId>vinyldns-java</artifactId>
    <version>0.9.4</version>
</dependency>
// https://jarcasting.com/artifacts/io.vinyldns/vinyldns-java/
implementation 'io.vinyldns:vinyldns-java:0.9.4'
// https://jarcasting.com/artifacts/io.vinyldns/vinyldns-java/
implementation ("io.vinyldns:vinyldns-java:0.9.4")
'io.vinyldns:vinyldns-java:jar:0.9.4'
<dependency org="io.vinyldns" name="vinyldns-java" rev="0.9.4">
  <artifact name="vinyldns-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.vinyldns', module='vinyldns-java', version='0.9.4')
)
libraryDependencies += "io.vinyldns" % "vinyldns-java" % "0.9.4"
[io.vinyldns/vinyldns-java "0.9.4"]

Dependencies

compile (7)

Group / Artifact Type Version
com.amazonaws : aws-java-sdk jar 1.11.160
com.google.code.gson : gson jar 2.3.1
org.apache.httpcomponents : httpclient jar 4.5.2
org.slf4j : slf4j-api jar 1.7.25
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven : maven-project jar 2.2.1
joda-time : joda-time jar 2.9.9

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5

test (4)

Group / Artifact Type Version
org.mockito : mockito-all jar 1.10.19
org.slf4j : slf4j-simple jar 1.7.25
org.testng : testng jar 6.11
com.github.tomakehurst : wiremock jar 2.8.0

Project Modules

There are no modules declared in this project.

Travis build GitHub

vinyldns-java

Java client for working with VinylDNS

Add to your maven project

Dependency

To pull the latest version from Sonatype, add a dependency to the pom.xml file corresponding to the Sonatype version you want to use:

<dependency>
  <groupId>io.vinyldns</groupId>
  <artifactId>vinyldns-java</artifactId>
  <version>0.9.4</version> <!-- Replace with the latest release version -->
</dependency>

To pull in a local package of vinyldns-java as a Maven dependency, the project needs to be published to your local Maven repository by running the following command from the project root folder:

mvn clean install

Usage

AWSCredentials credentials = new BasicAWSCredentials("my-key", "my-secret");
VinylDNSClientConfig config = new VinylDNSClientConfig("https://my-vinyldns-api.com", credentials);

VinylDNSClient client = new VinylDNSClientImpl(config);

VinylDNSResponse<ListZonesResponse> listZonesResponse = client.listZones(new ListZonesRequest());

Use with VINYLDNS_* environment variables

Alternatively, a VinylDNSClient can be instantiated via VINYLDNS_API_URL, VINYLDNS_ACCESS_KEY_ID, and VINYLDNS_SECRET_ACCESS_KEY environment variables. For example:

export VINYLDNS_API_URL=https://my-vinyldns-api.com
export VINYLDNS_ACCESS_KEY_ID="my-key"
export VINYLDNS_SECRET_ACCESS_KEY="my-secret"

Instantiate a client using the VINYLDNS_* environment variables:

VinylDNSClient client = new VinylDNSClientImpl();

VinylDNSResponse<ListZonesResponse> listZonesResponse = client.listZones(new ListZonesRequest());

See VinylDNSClient interface to get more methods

Testing

vinyldns-java has a suite of unit tests to run to test expected behavior. To run the suite of tests, run the following command from the project root folder:

mvn test
io.vinyldns

VinylDNS

DNS Governance

Versions

Version
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.7.3
0.7.2
0.7.1
0.7.0