Interface PortClient<T>
- All Superinterfaces:
Pageable<T>, PageablePost<T>
- All Known Implementing Classes:
PortClientImpl
- Author:
- ianjones
-
Method Summary
Modifier and TypeMethodDescriptionaddToLag(String portId, List<PhysicalPort> physicalPorts) Adds physical ports to a virtual port's LAG (POST /fabric/v4/ports/{portId}/physicalPorts/bulk).create(PortCreatorJson body) Creates a single port (POST /fabric/v4/ports).Deletes a port by uuid (DELETE /fabric/v4/ports/{uuid}).dryRunCreate(PortCreatorJson body) Validate-only variant ofcreate(PortCreatorJson)(POST /fabric/v4/ports?dryRun=true; spec: "option to verify that API calls will succeed").dryRunDelete(String uuid) Validate-only variant ofdelete(String)(DELETE /fabric/v4/ports/{uuid}?dryRun=true; spec: "option to verify that API calls will succeed").dryRunUpdate(String uuid, List<PatchOperation> operations) Validate-only variant ofupdate(String, List)(PATCH /fabric/v4/ports/{uuid}?dryRun=true; spec: "option to verify that API calls will succeed").list()search(FilterPropertyList filter, SortPropertyList sort) update(String uuid, List<PatchOperation> operations) Updates a port by uuid with a JSON Patch operations array (PATCH /fabric/v4/ports/{uuid}).Methods inherited from interface PageablePost
nextPageModifier and TypeMethodDescriptionnextPage(PaginatedPostRequest<T> equinixRequest) Fetches the next page for the given POST-search request (its body's pagination has already been advanced by the paging pipeline).
-
Method Details
-
list
-
search
-
getVlans
-
getByUuid
-
refresh
-
create
Creates a single port (POST /fabric/v4/ports).- Parameters:
body- the typed create request- Returns:
- the created port
-
dryRunCreate
Validate-only variant ofcreate(PortCreatorJson)(POST /fabric/v4/ports?dryRun=true; spec: "option to verify that API calls will succeed"). No port is ordered - the 200 response is the validated port order echoed back (no uuid/name/state), versus the real create's 202.- Parameters:
body- the typed create request to validate- Returns:
- the validated port order echoed back by the server
-
delete
-
dryRunDelete
Validate-only variant ofdelete(String)(DELETE /fabric/v4/ports/{uuid}?dryRun=true; spec: "option to verify that API calls will succeed"). Nothing is deleted - the 200 response is the existing port entity (with uuid/name) that WOULD be deleted, versus the real delete's 202.- Parameters:
uuid- the unique identifier of the port- Returns:
- the port that would be deleted
-
update
Updates a port by uuid with a JSON Patch operations array (PATCH /fabric/v4/ports/{uuid}).- Parameters:
uuid- the unique identifier of the portoperations- the op/path/value change operations- Returns:
- the updated port
-
dryRunUpdate
Validate-only variant ofupdate(String, List)(PATCH /fabric/v4/ports/{uuid}?dryRun=true; spec: "option to verify that API calls will succeed"). Nothing is changed - and unlike the real update's barePort, the dry-run 200 body is anAllPortsResponsepaginated envelope ({pagination, data:[Port]}); implementations deserialize that envelope and return itsdata[0], the simulated updated port.- Parameters:
uuid- the unique identifier of the portoperations- the op/path/value change operations to validate- Returns:
- the simulated updated port unwrapped from the envelope's
data[0]
-
addToLag
Adds physical ports to a virtual port's LAG (POST /fabric/v4/ports/{portId}/physicalPorts/bulk).- Parameters:
portId- the virtual port uuidphysicalPorts- the physical ports to add- Returns:
- the full set of physical ports backing the virtual port after the addition
-