Class ProjectIds
java.lang.Object
com.eqixiac.equinix.iam.client.ProjectIds
Converts between the two project-identifier formats.
project:<id>: the IAM (Access v1)ProjectId, pattern^project:[0-9a-zA-Z][0-9a-zA-Z-]{0,35}$; required in every/v1/projects/{projectId}/...path.- bare UUID: the Resource Manager / Fabric
projectId, as returned byProjects. Sent unchanged to IAM it fails the project-id format check (observed 2026-11-11).
-
Field Summary
Fields -
Method Summary
-
Field Details
-
PREFIX
-
-
Method Details
-
of
Returns the IAMproject:<id>form of a project id given in either format.- Parameters:
projectId- a bare project UUID or an id that already starts withproject:- Returns:
- the
project:form - Throws:
IllegalArgumentException- ifprojectIdis null or blank
-
bare
Returns the bare id of a project id given in either format.- Parameters:
projectId- aproject:<id>or bare project id- Returns:
- the id without the
project:prefix - Throws:
IllegalArgumentException- ifprojectIdis null or blank
-