Skip to content

Instantly share code, notes, and snippets.

@glourenco
Last active November 27, 2018 16:04
Show Gist options
  • Save glourenco/322b0e29d05c9160dbaf56d19e338319 to your computer and use it in GitHub Desktop.
Save glourenco/322b0e29d05c9160dbaf56d19e338319 to your computer and use it in GitHub Desktop.
RancherClient rancherClient = new RancherClient();
System.out.println("\nProjects");
JSONArray projects = rancherClient.getProjects();
for (int i = 0; i < projects.length(); i++) {
System.out.println(projects.getJSONObject(i).toString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment