Class ProjectIds

java.lang.Object
com.eqixiac.equinix.iam.client.ProjectIds

public final class ProjectIds extends Object
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 by Projects. Sent unchanged to IAM it fails the project-id format check (observed 2026-11-11).
  • Field Details

  • Method Details

    • of

      public static String of(String projectId)
      Returns the IAM project:<id> form of a project id given in either format.
      Parameters:
      projectId - a bare project UUID or an id that already starts with project:
      Returns:
      the project: form
      Throws:
      IllegalArgumentException - if projectId is null or blank
    • bare

      public static String bare(String projectId)
      Returns the bare id of a project id given in either format.
      Parameters:
      projectId - a project:<id> or bare project id
      Returns:
      the id without the project: prefix
      Throws:
      IllegalArgumentException - if projectId is null or blank