Skip to content

Java client for Vultr cloud hosting platform.

License

Notifications You must be signed in to change notification settings

nickcrd/vultr-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vultr-client

Java client for Vultr cloud hosting platform.

How to use:

To create an instance of VultrAPI, you need to invoke build() on a VultrApiBuilder object. Make sure to set a base URL and a valid API key, otherwise, it won't work.

Example Usage:

Create a VPS:

  VultrAPI vultrAPI = new VultrApiBuilder().setBaseUrl("https://api.vultr.com")
                    .setApiKey("YOUR_API_KEY_HERE").build();

  // This creates a new VPS with 1vCore and 1GB RAM in the Frankfurt Region and installs CentOS (id: 127 from API)
  vultrAPI.getServerManager().createServer("vps-hostname", Region.FRANKFURT, ServerPlan.CC_1vCore_1GB,
      vultrApi.getOSManager().getOS(127));

About

Java client for Vultr cloud hosting platform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages