Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 412 Bytes

README.md

File metadata and controls

15 lines (14 loc) · 412 Bytes

rancher-api-v3-java

A Java API Client for Rancher API v3 (Rancher 2)

Usage

RancherAPI api = new RancherAPI("https://example.com", "token-xxxxx", "xxxxxxxxxxxxxxxx");
Cluster cluster = Cluster.createDefault();
cluster.setName("example");
try {
  cluster = api.createCluster(cluster);
  System.out.println(cluster.getId());
} catch(RancherException ex) {
  System.out.println(ex.getMessage());
}