ovh.ex v0.2.0 Ovh.Server View Source
High level wrapper for dedicated servers
Link to this section Summary
Functions
Find a server
Find first server matching props
Creates struct from JSON obj
Reboot server
Set custom ipxe script as boot
Set ipxe boot from template
Link to this section Types
Link to this type
t()
View Source
t() :: %Ovh.Server{ bootId: term(), commercialRange: term(), datacenter: term(), ip: term(), linkSpeed: term(), monitoring: term(), name: term(), os: term(), professionalUse: term(), rack: term(), rescueMail: term(), reverse: term(), rootDevice: term(), serverId: term(), state: term(), supportLevel: term() }
Link to this section Functions
Find a server
If arg is a string, looks by name or reverse If arg is a Keyword list, looks by matching server properties
Example:
find(rack: “XXX001”)
Returns servers in rack 'XXX001'
Find first server matching props
For consistency purpose, returns empty list or one-element list
Creates struct from JSON obj
Reboot server
Set custom ipxe script as boot
Set ipxe boot from template
Override existing boot if exists