Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Make.DeviceSourceThis module manages API parts related to devices.
Unique identifier for the Equinix API.
Actions executable with a device.
action_of_string action returns a readable action as a string.
Os available when creating a new device.
os_to_string os converts an os into a string understandable by the API.
Locations available when deploying a new device.
location_to_string metro converts a metro into a string understandable by the API.
Server type when deploying a new device.
plan_to_string plan converts a plan into a string understandable by the API.
This type represents the configuration wanted for a device.
type config = {id : id;hostname : string;location : location;plan : plan;os : os;state : State.t;user : string;created_at : ODate.Unix.t;ips : Ip.config list;}This type represents the current configuration for the device. ips can be empty.
to_string config returns a readable string containing the config.
get_from t t ~id returns a config that contains information about the device specified by id.
get_events_from t ~id retrieves information about the device events.
execute_action_on t ~id ~action executes an action on the device specified by its id.
delete t ~id ~force () deletes a device on Equinix and returns a json with the result. ?force defaults to false, if true then it forces the deletion of the device by detaching any storage volume still active.
create t ~id builder creates a machine on the Equinix with the Devices.builder specification.
get_all_from_project t ~id returns the config list that contains all the devices related to the project id.