Class EquinixClient

java.lang.Object
api.equinix.javasdk.EquinixClient
All Implemented Interfaces:
Service, Closeable, AutoCloseable
Direct Known Subclasses:
CustomerPortal, Fabric, IBXSmartView, InternetAccess, Messaging, NetworkEdge, Projects

public class EquinixClient extends Object implements Service, Closeable
The base class for all Equinix SDK domain entry points.

This class provides common functionality shared by all domain clients including OAuth2 authentication, HTTP client management, and resource lifecycle. Domain-specific entry points (Fabric, NetworkEdge, CustomerPortal, etc.) extend this class and add their own resource accessors.

Authentication is handled automatically on the first API call using OAuth2 client credentials. The client can also be explicitly authenticated using authenticate(). Implements Closeable to properly release HTTP connections when the client is no longer needed.

Usage


 // Domain clients extend EquinixClient
 Fabric fabric = new Fabric(credentials);

 // Optional: explicitly authenticate before making calls
 fabric.authenticate();

 // Use try-with-resources for proper cleanup
 try (Fabric fabric = new Fabric(credentials)) {
     PaginatedList<Port> ports = fabric.ports().list();
 }
 
Version:
$Id: $Id
Author:
ianjones
See Also: