Delete VRRP Interface
Deletes a VRRP interface.
URL
/api/v1/interface/virtual/[id]
/api/v1/interface/virtual/[id]/force
HTTP Method
DELETE
URL Parameters
Parameter |
Required |
Type |
Description |
---|---|---|---|
id |
true |
integer |
Specifies the ID of the VRRP interface to delete. |
force |
false |
string |
Forces deletion of VRRP interface, even if a website is configured to listen on it. |
Response Parameters
Returns a string indicating success/error.
Example: Delete VRRP interface
Request
/api/v1/interface/virtual/carp0
curl -kv
-u api_ninja:ninja_password
-X DELETE
https://172.31.1.172:4849/api/v1/interface/virtual/carp0
Response
{"result":"success"}
Example: Force delete VRRP interface
Request
/api/v1/interface/virtual/carp0/force
curl -kv
-u api_ninja:ninja_password
-X DELETE
https://172.31.1.172:4849/api/v1/interface/virtual/carp0/force
Response
{"result":"success"}