Interface Orders
- All Known Implementing Classes:
OrdersImpl
public interface Orders
Client interface for managing colocation orders in the Equinix Customer Portal.
Backed by the Orders v2 API at /colocations/v2/orders/{orderId}. Orders cannot be
created or listed through this API (use OrderHistory for historical listings); they are
retrieved by id and acted upon through negotiations, notes, and cancellation.
-
Method Summary
Modifier and TypeMethodDescriptionAdds a note to an order.Adds a note to an order with an optional reference id (for two-way notes) and attachments.Cancels an order.Cancels an order, optionally restricting cancellation to specific order lines and attaching supporting documentation.Retrieves a specific order by its unique identifier.Retrieves a specific order by its unique identifier, scoped to the supplied IBXs.List<? extends OrderNegotiation> getNegotiations(String orderId) Retrieves the negotiation messages for an order, each proposing an alternative date and time for fulfilling the order request.replyNegotiation(String orderId, NegotiationAction action, String referenceId) Replies to an order negotiation, approving or cancelling the proposed schedule.replyNegotiation(String orderId, NegotiationAction action, String referenceId, String reason) Replies to an order negotiation, approving or cancelling the proposed schedule, with an optional reason (used when cancelling).
-
Method Details
-
getByUuid
-
getByUuid
Retrieves a specific order by its unique identifier, scoped to the supplied IBXs.Maps to
GET /colocations/v2/orders/{orderId}with theibxsquery parameter.- Parameters:
orderId- the identifier of the orderibxs- the IBX codes to scope the order to, ornull/empty for all- Returns:
- the matching order
-
getNegotiations
Retrieves the negotiation messages for an order, each proposing an alternative date and time for fulfilling the order request.- Parameters:
orderId- the identifier of the order- Returns:
- the list of negotiation messages
-
replyNegotiation
Replies to an order negotiation, approving or cancelling the proposed schedule.- Parameters:
orderId- the identifier of the orderaction- the action to perform (APPROVE, APPROVE_NON_EXPEDITE, or CANCEL)referenceId- the reference id of the activity or order line- Returns:
trueif the reply was accepted
-
replyNegotiation
Boolean replyNegotiation(String orderId, NegotiationAction action, String referenceId, String reason) Replies to an order negotiation, approving or cancelling the proposed schedule, with an optional reason (used when cancelling).- Parameters:
orderId- the identifier of the orderaction- the action to perform (APPROVE, APPROVE_NON_EXPEDITE, or CANCEL)referenceId- the reference id of the activity or order linereason- the reason for the action (used when cancelling)- Returns:
trueif the reply was accepted
-
addNote
-
addNote
Boolean addNote(String orderId, String text, String referenceId, List<AttachmentReference> attachments) Adds a note to an order with an optional reference id (for two-way notes) and attachments.- Parameters:
orderId- the identifier of the ordertext- the text of the notereferenceId- the reference id associated with the note, ornullattachments- references to previously uploaded attachments, ornull- Returns:
trueif the note was accepted
-
cancel
-
cancel
Boolean cancel(String orderId, String reason, List<AttachmentReference> attachments, List<String> lineIds) Cancels an order, optionally restricting cancellation to specific order lines and attaching supporting documentation.- Parameters:
orderId- the identifier of the orderreason- the reason for cancellationattachments- references to previously uploaded attachments, ornulllineIds- the order line ids to cancel, ornullto cancel the whole order- Returns:
trueif the cancellation was accepted
-