Interface Ports
- All Known Implementing Classes:
PortsImpl
public interface Ports
Client interface for managing Equinix Fabric ports. Provides operations for listing,
retrieving, and monitoring port bandwidth statistics.
- Author:
- ianjones
-
Method Summary
Modifier and TypeMethodDescriptionaddToLag(String portId, List<PhysicalPort> physicalPorts) Adds physical ports to a virtual port's Link Aggregation Group (POST /fabric/v4/ports/{portId}/physicalPorts/bulk).define()Begins the fluent builder for creating a new port (POST /fabric/v4/ports).Deletes a port by its unique identifier (DELETE /fabric/v4/ports/{uuid}).Deletes a port by its unique identifier, optionally as a validate-only dry run (DELETE /fabric/v4/ports/{uuid}?dryRun=true; spec: "option to verify that API calls will succeed"; boolean, defaultfalse).Retrieves a single port by its unique identifier.Lists the VLANs (link protocols) configured on a port.list()Lists all ports accessible to the current account (GET /fabric/v4/ports).search()Searches for ports using default filter and sort criteria.search(FilterPropertyList filter) Searches for ports matching the specified filter criteria.search(FilterPropertyList filter, SortPropertyList sort) Searches for ports matching the specified filter and sort criteria.search(SortPropertyList sort) Searches for ports with the specified sort order.Begins a fluent update of an existing port (PATCH /fabric/v4/ports/{uuid}).
-
Method Details
-
list
Lists all ports accessible to the current account (GET /fabric/v4/ports). Spec 4.34.0 declares nooffseton this GET and the live service returns every item in one response (forGET /ports:limit 999,offsetandlimitignored, observed 2026-11-11), so this is a plain list, not a multi-page one.- Returns:
- the ports
-
search
PaginatedFilteredList<Port> search()Searches for ports using default filter and sort criteria.- Returns:
- a paginated, filtered list of matching ports
-
search
Searches for ports matching the specified filter criteria.- Parameters:
filter- the filter criteria to apply- Returns:
- a paginated, filtered list of matching ports
-
search
Searches for ports with the specified sort order.- Parameters:
sort- the sort criteria to apply- Returns:
- a paginated, filtered list of matching ports
-
search
Searches for ports matching the specified filter and sort criteria.- Parameters:
filter- the filter criteria to applysort- the sort criteria to apply- Returns:
- a paginated, filtered list of matching ports
-
getByUuid
-
getVlans
-
define
PortOperator.PortBuilder define()Begins the fluent builder for creating a new port (POST /fabric/v4/ports). Configure the returned builder, then callcreate().- Returns:
- a builder for configuring the new port
-
delete
-
delete
Deletes a port by its unique identifier, optionally as a validate-only dry run (DELETE /fabric/v4/ports/{uuid}?dryRun=true; spec: "option to verify that API calls will succeed"; boolean, defaultfalse).With
dryRun = truenothing is deleted: the API responds200(rather than the real delete's202 Accepted) with the existing port entity - uuid, name and all - that WOULD be deleted. WithdryRun = falsethis behaves exactly likedelete(String).- Parameters:
uuid- the unique identifier of the port to deletedryRun-trueto only verify that the delete would succeed, without deleting- Returns:
- the deleted port - or, on a dry run, the port that would be deleted
-
update
Begins a fluent update of an existing port (PATCH /fabric/v4/ports/{uuid}). Configure the returned updater, then callsave().- Parameters:
uuid- the unique identifier of the port to update- Returns:
- an updater for applying changes to the port
-
addToLag
Adds physical ports to a virtual port's Link Aggregation Group (POST /fabric/v4/ports/{portId}/physicalPorts/bulk).- Parameters:
portId- the virtual port uuidphysicalPorts- the physical ports to add to the LAG- Returns:
- the full set of physical ports backing the virtual port after the addition
-