/api/v1/interface
Add VRRP Interface
Adds a VRRP interface.
URL
/api/v1/interface
HTTP Method
POST
POST Parameters
Parameter |
Required |
Type |
Description |
Acceptable Values |
---|---|---|---|---|
vip |
true |
string containing ip address |
Specifies the virtual IP address shared by the nodes of the cluster. |
"<ip address>" |
netmask |
true |
string containing netmask |
Specifies the netmask of the VRRP interface. |
"<netmask>" |
interface |
true |
string containing interface |
Specifies the physical network interface that the VRRP interface will be bound to.
|
"<network interface>" |
type |
true |
string |
Specifies the VRRP interface type. |
"master" |
Response Parameters
Returns a string indicating success/error.
Example: Set VRRP interface
Request
curl -kv
-u api_ninja:ninja_password
-X POST
-H 'Content-Type: text/json'
--data-binary @setsync.json
https://172.31.1.172:4849/api/v1/appliance
POST Parameters
{ "vip": "200.0.0.1", "netmask": "255.255.255.0", "interface": "eth1", "type": "master" }
Response
{"result":"success"}