Interface WorkVisits
- All Known Implementing Classes:
WorkVisitsImpl
Backed by the Work Visit v2 order API at /colocations/v2/orders/workVisits. Work visits
are scheduled and updated as orders; the resulting order is tracked through Orders and
OrderHistory, and a work visit is cancelled via Orders.cancel(String, String).
Each order operation returns the generated order id (parsed from the Location header).
Work Visit v1 (/v1/orders/workvisit/...) reached end of life on 2024-01-22 and is not
exposed. The locations where the current user may place work visit orders come from Lookup v2
(GET /colocations/v2/locations?permissionCode=WORK_VISIT): see listLocations()
and Lookups.listLocations(String, List, String, String, String, Boolean).
-
Method Summary
Modifier and TypeMethodDescriptionList<? extends LookupLocation> Lists the IBX locations, cages and cabinets where the current user may place work visit orders.List<? extends LookupLocation> listLocations(List<String> ibxs, Boolean details) Lists the work visit locations for the given IBXs, optionally with cage, cabinet and account details.order(WorkVisitOrderRequest request) Schedules a work visit.update(String orderId, WorkVisitUpdateRequest request) Updates a pending work visit order.
-
Method Details
-
order
Schedules a work visit.Maps to
POST /colocations/v2/orders/workVisits(Schedule Work Visit Services).- Parameters:
request- the work visit order request body- Returns:
- the order submission result carrying the generated order id
-
update
Updates a pending work visit order.Maps to
PATCH /colocations/v2/orders/workVisits/{orderId}(Update a work visit order).- Parameters:
orderId- the identifier of the work visit orderrequest- the update request body- Returns:
- the order submission result carrying the order id
-
listLocations
List<? extends LookupLocation> listLocations()Lists the IBX locations, cages and cabinets where the current user may place work visit orders.Maps to Lookup v2
GET /colocations/v2/locations?permissionCode=WORK_VISIT; the same call aslookups().listLocations("WORK_VISIT"). It replaces the end-of-life Work Visit v1GET /v1/orders/workvisit/locations.- Returns:
- the list of permitted locations
-
listLocations
Lists the work visit locations for the given IBXs, optionally with cage, cabinet and account details.Maps to Lookup v2
GET /colocations/v2/locations?permissionCode=WORK_VISIT.- Parameters:
ibxs- the IBX codes to filter by, ornulldetails- whentrue, returns cage, cabinet and account details, ornullfor the default- Returns:
- the list of permitted locations
-