|
PLEASE NOTE: This article may be missing some images or have miniature or blurred images.
We are aware of this problem and are working to correct this as soon as possible
Create Server Sets with the UpdateSS HTTP API Function
With the HTTP API interface it is now possible to
create/update server sets, retrieve status information, and control
most other functions in Simple Failover via HTTP.
In this demo we want to create a new
server set with the domain name "www.mydomain.com".
This opens the possibility of creating your own
web-interface to Simple Failover, and/or integrating it with your
existing hosting solutions. All data is exchanged in XML format, and
the commands and data formats are described in detail in the updated
documentation.
When you have created the first server set, then you
can use the UpdateSS HTTP function.
This HTTP function was added to allow you to create
your own scripts to update/change any server set you like.
In order to use the function, you should make some
tests before putting it into a production environment, because it is
a very strong feature of the HTTP API of Simple Failover.
After enabling the HTTP interface in the "Options /
General tab", perform an initial query of an existing server set
that needs to be updated. The resulting page consists of an
XML-file.
In Microsoft Internet Explorer you should copy all of the
displayed text.
Notice, that if you are using Mozilla
Firefox you will have to select View, Page Source and then copy all
of the text from the source code. Paste it into the UpdateSS
field in the Simple Failover HTTP functions page.
Of course you can change any value with
this feature. For example the RetryIV interval ("Server Set
Properties / General tab / Retry Interval") value from 120 to 60
(seconds).
Press the "Submit Query" dialog and the change is
immediately performed.
Return to the main program and verify that the change was
submitted correctly.
It is obviously a very powerful feature
and if you want to automate the creation of a lot of server sets
easily you can also use this option. You might create a script
that feeds the UpdateSS field with information from a sample server
set and then changes the necessary information based on information
in a database followed by a query submission.
|