infoblox-java

A pure java API for Infoblox DNS appliance.

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

com.oneops
Идентификатор

Идентификатор

infoblox-java
Последняя версия

Последняя версия

1.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

infoblox-java
A pure java API for Infoblox DNS appliance.
Организация-разработчик

Организация-разработчик

Walmart, Inc.

Скачать infoblox-java

Как подключить последнюю версию

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

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
com.squareup.retrofit2 : retrofit jar 2.4.0
com.squareup.retrofit2 : converter-moshi jar 2.4.0
com.squareup.moshi : moshi jar 1.5.0
com.squareup.okhttp3 : okhttp-urlconnection jar 3.10.0
com.squareup.okhttp3 : logging-interceptor jar 3.10.0
com.google.auto.value : auto-value-annotations jar 1.6
org.slf4j : slf4j-simple jar 1.7.25

provided (4)

Идентификатор библиотеки Тип Версия
com.google.auto.value : auto-value jar 1.6
com.ryanharter.auto.value : auto-value-moshi jar 0.4.5
com.squareup.auto.value : auto-value-redacted jar 1.0.1
com.google.code.findbugs : jsr305 jar 3.0.2

test (5)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter-api jar 5.1.1
org.junit.jupiter : junit-jupiter-params jar 5.1.1
dnsjava : dnsjava jar 2.1.8
com.squareup.okhttp3 : mockwebserver jar 3.10.0
net.jodah : concurrentunit jar 0.4.3

Модули Проекта

Данный проект не имеет модулей.

Infoblox Infoblox Java Client

Build Status changelog javadoc

A pure java API for Infoblox DNS appliance.

Download

Download the latest JAR or grab via Maven:

<dependency>
   <groupId>com.oneops</groupId>
   <artifactId>infoblox-java</artifactId>
   <version>1.3.5</version>
</dependency>

To see all versions, go here

Examples

Initializing Infoblox Client

InfobloxClient client = InfobloxClient.builder()
            .endPoint("Infoblox Host")
            .userName("Infoblox User")
            .password("Infoblox Password")
            .ttl(60)
            .tlsVerify(false)
            .build();

Default WAPI version is v2.5

Walmart Infoblox Provider

A new InfobloxClientProvider class has been provided to create InfobloxClient transparently based on the FQDN. This will be make use of a /secrets/infoblox-conf.json config file to get all the infoblox endpoint configurations. To get a client (cached) for supported domain,

String fqdn = "test.us.walmart.net";
String ip = "10.11.12.13";

InfobloxClient client = InfobloxClientProvider.forDomain(fqdn);
ARec aRec = client.createARec(fqdn, ip);

TLS config

A Record

String fqdn = "test.xyz.com";
String ip = "10.11.12.13";

// CRUD operations
ARec aRec = client.createARec(fqdn, ip);
List<ARec> rec = client.getARec(fqdn);
List<ARec> aRecs = client.getARec(fqdn, ip);
List<ARec> modifedARec = client.modifyARec(fqdn, newFqdn);
List<String> delARec = client.deleteARec(fqdn);

AAAA Record

String fqdn = "test.xyz.com";
String ipv6 = "fe80:0:0:0:f0ea:f6ff:fd97:5d51";

// CRUD operations
AAAA newAAAARec = client.createAAAARec(fqdn, ipv6);
List<AAAA> aaaaRec = client.getAAAARec(fqdn);
List<AAAA> modAAAARec = client.modifyAAAARec(fqdn, newFqdn);
List<String> delAAAARec = client.deleteAAAARec(fqdn);

CNAME Record

String canonicalName = "test.xyz.com";
String alias = "app.xyz.com";

// CRUD operations
CNAME cname = client.createCNameRec(alias, canonicalName);
List<CNAME> rec = client.getCNameRec(alias);
List<CNAME> modCName = client.modifyCNameRec(alias, newAlias);
List<String> delCName = client.deleteCNameRec(alias);

Refer JavaDocs for all record types (MX, PTR, SRV, TXT, NS, Zone etc) APIs

Building

For doing the release build, go to build job and click Release Build

Testing

Set the following env variables and run ./mvnw clean test to execute the unit tests.

$ ssh -v user@any-prod-server -L 8888:infoblox-api.walmart.com:443
$ export iba_host=localhost:8888
  export iba_user=<Infoblox Username>
  export iba_password=<Infoblox Password>
  export iba_domain=prod.walmart.com

Note: infoblox-api.walmart.com may not be directly accessible from your test machine. As a workaround use SSH tunneling ssh -v user@any-prod-server -L 8888:infoblox-api.walmart.com:443 and use localhost as iba_host.

Dependencies

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
com.oneops

OneOps

Application Lifecycle Management of Cloud Based Workloads

Версии библиотеки

Версия
1.1.0
1.0.1
0.0.1