Class Projects
java.lang.Object
com.eqixiac.equinix.EquinixClient
com.eqixiac.equinix.Projects
- All Implemented Interfaces:
Closeable, AutoCloseable
The primary entry point for accessing Equinix Projects APIs.
Projects are read-only organizational containers associated with a root organization, grouping related Equinix infrastructure components under named projects.
All resource accessors use lazy initialization - internal clients are created on first access and reused for subsequent calls.
Quick Start
BasicEquinixCredentials credentials = new BasicEquinixCredentials("clientId", "clientSecret");
Projects projects = new Projects(credentials);
// List all projects
PaginatedList<Project> projectList = projects.projects().list();
- Author:
- ianjones
- See Also:
-
Field Summary
Fields inherited from class EquinixClient
autoLoadMetros, enrichMetroRegistry, equinixClient, peeringDbApiKeyModifier and TypeFieldDescriptionprotected final booleanWhether an explicitEquinixClient.authenticate()should eagerly load the metro catalog.protected final booleanWhether the metro registry should be enriched with per-IBX detail from EIA.protected final EquinixClientprotected final StringThe PeeringDB API key configured viaEquinixConfig.getPeeringDbApiKey(), ornullwhen none was configured. -
Constructor Summary
ConstructorsConstructorDescriptionProjects(EquinixCredentials equinixCredentials) Creates a new Projects client using the provided credentials.Projects(EquinixCredentials equinixCredentials, boolean isSandBoxed) Creates a new Projects client with optional sandbox mode.Projects(EquinixCredentialsProvider credentialsProvider) Creates a new Projects client whose credentials are resolved through the given provider.Projects(EquinixCredentialsProvider credentialsProvider, boolean isSandBoxed) Creates a new Projects client over a custom credentials provider, with optional sandbox mode.Projects(EquinixCredentialsProvider credentialsProvider, EquinixConfig config) Creates a new Projects client over a custom credentials provider with explicitEquinixConfigoptions.Projects(EquinixCredentials equinixCredentials, EquinixConfig config) Creates a new Projects client with explicitEquinixConfigoptions. -
Method Summary
Methods inherited from class EquinixClient
authenticate, close, coreModifier and TypeMethodDescriptionvoidExplicitly obtains a token from the configured source (an OAuth2 client-credentials mint, or theBearerTokenProvider) and stores it for subsequent API calls.voidclose()protected Corecore()Returns the internal core client for authentication and platform-level operations.
-
Constructor Details
-
Projects
Creates a new Projects client using the provided credentials. Authentication occurs automatically on the first API call.- Parameters:
equinixCredentials- the OAuth2 credentials for authenticating with Equinix APIs
-
Projects
Creates a new Projects client with optional sandbox mode.- Parameters:
equinixCredentials- the OAuth2 credentials for authenticating with Equinix APIsisSandBoxed-trueto use the sandbox environment for testing;falsefor production
-
Projects
Creates a new Projects client whose credentials are resolved through the given provider. Authentication occurs automatically on the first API call.- Parameters:
credentialsProvider- supplies the OAuth2 credentials for authenticating with Equinix APIs
-
Projects
Creates a new Projects client over a custom credentials provider, with optional sandbox mode.- Parameters:
credentialsProvider- supplies the OAuth2 credentials for authenticating with Equinix APIsisSandBoxed-trueto use the sandbox environment for testing;falsefor production
-
Projects
Creates a new Projects client with explicitEquinixConfigoptions.- Parameters:
equinixCredentials- the OAuth2 credentials for authenticating with Equinix APIsconfig- the construction-time options
-
Projects
Creates a new Projects client over a custom credentials provider with explicitEquinixConfigoptions.- Parameters:
credentialsProvider- supplies the OAuth2 credentials for authenticating with Equinix APIsconfig- the construction-time options
-
-
Method Details
-
projects
Returns the client for listing Equinix projects. Projects are read-only organizational containers for grouping related infrastructure resources.- Returns:
- the
ProjectListclient for listing projects
-