Delete a Virtual Service
- Last Updated: December 11, 2024
- 1 minute read
- LoadMaster
- LoadMaster LTSF
- Documentation
The following command deletes the 20.200.25.250 Virtual Service.
Situation before delete:
<?xml version="1.0" encoding="ISO-8859-1"?><Response stat="200" code="ok"><Success><Data><VS><Index>1</Index><VSAddress>20.200.25.210</VSAddress><VSPort>80</VSPort><Enable>Y</Enable>...<TlsType>N</TlsType><NeedHostName>N</NeedHostName><NumberOfRSs>1</NumberOfRSs><Rs><VSIndex>1</VSIndex><RsIndex>1</RsIndex><Addr>20.200.25.22</Addr><Port>80</Port><Forward>nat</Forward><Weight>1000</Weight><Limit>0</Limit><Enable>Y</Enable></Rs></VS><VS><Index>2</Index><VSAddress>20.200.25.250</VSAddress><VSPort>80</VSPort><Enable>Y</Enable>...<TlsType>N</TlsType><NeedHostName>N</NeedHostName><NumberOfRSs>0</NumberOfRSs></VS></Data></Success></Response>curl -k "https://bal:1fourall@20.200.25.100/access/delvs?vs=20.200.25.250&port=80&prot=tcp"
Response:
<Response stat="200" code="ok"><Success>Command completed ok</Success></Response>If you run the listvs command after deleting the Virtual Service, the existing Virtual Service details will be displayed but the deleted Virtual Service details will no longer appear.
Situation after delete:
<?xml version="1.0" encoding="ISO-8859-1"?><Response stat="200" code="ok"><Success><Data><VS><Index>1</Index><VSAddress>20.200.25.210</VSAddress><VSPort>80</VSPort><Enable>Y</Enable>...<TlsType>N</TlsType><NeedHostName>N</NeedHostName><NumberOfRSs>1</NumberOfRSs><Rs><VSIndex>1</VSIndex><RsIndex>1</RsIndex><Addr>20.200.25.22</Addr><Port>80</Port><Forward>nat</Forward><Weight>1000</Weight><Limit>0</Limit><Enable>Y</Enable></Rs></VS></Data></Success></Response>