package equinoxe

  1. Overview
  2. Docs

This module manages API parts related to ips.

type id

Abstract type to represent a unique identifier in the Equinix API for ip.

type config = {
  1. id : id;
  2. netmask : string;
  3. network : string;
  4. address : string;
  5. gateway : string;
  6. public : bool;
  7. enabled : bool;
  8. created_at : Equinoxe__.Equinoxe_intf.Date.t;
}

Representation of an Ip.

val id_of_string : string -> id

id_of_string str turns a string into an Ip id.

val config_of_json : Ezjsonm.value -> config

config_of_json json returns a config representing the context of the JSON.

val to_string : config -> string

to_string config returns a string that represents the configuration.

val get_from : t -> id:id -> config io

get_ips_id t ~id returns informations about an ip referenced by its id.

val pp : config -> unit

pp config prints a config in a human readable way.

OCaml

Innovation. Community. Security.