API Descriptions
service.add
This method adds a Service to the configuration database. The VIP address and port combination must be unique.
Parameter | Description |
|---|---|
| Service name |
| Set this to the Virtual IP address of the Service |
| The protocol used by the Service, either TCP or UDP |
| The port used by the Service |
| The Service type. Supported values:
Other combinations are not valid. Adding SSL offloaded Services (e.g., Layer 7 – HTTPS) is not supported. |
Example
my $result;
#Add a Service $result = $xmlrpc->call('service.add' {name=>'xml_rpc_test',vip=>'192.168.132.214',protocol=>'TCP',port=>'21', type=>'L4'});
print Dumper ($result);
Result
The output of a successful call is a hash with a value and a message.
|
|
|---|---|
|
|
$VAR1 = { ’msg’ => ’Service successfully added’, ’val’ => ’200’ };
service.delete
This method deletes an existing Service from the configuration database.
Parameter | Description |
|---|---|
| Set this to the Virtual IP address of the Service |
| The protocol used by the Service, either |
| The port used by the Service |
Example
my $result;
$result = $xmlrpc->call('service.delete' {vip=>'192.168.132.214',port=>'21', protocol=>'TCP'});
print Dumper ($result);
Result
The output of a successful call is a hash with a value and a message.
|
|
|---|---|
|
|
$VAR1 = { ’msg’ => ’Service successfully deleted’, ’val’ => ’200’ };
service.show
This method displays configuration and state information for a Service and/or a Real Server. If no parameters are entered to identify one Service or Real Server, information about all existing Services and Real Servers is returned.
Parameter | Description |
|---|---|
| Optional. Set this to the Virtual IP address of the Service that this Real Server is |
| Optional. The IP address of the Real Server |
| The protocol used by the Service, either TCP or UDP |
| A list of what is to be shown, separated by ‘/’. For example, to show the status of a |
Example
my $result;
#Show Service status and Real Server state my $service_show = 'status/state' ; $result = $xmlrpc->call('service.show', {vip=>'192.168.132.214:21:TCP', port=> '21', ip=> '15.15.15.11', show=> $service_show});
print Dumper ($result);
Result
Contact Us
Barracuda Campus
Barracuda Support