Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

How to disable a subVS with RESTful API

 

Information

 

Summary:

Would like to disable a subVS within a Virtual Service via API command.

Environment:

Product: LoadMaster

Version: 7.2.52.0 or above (to use JSON)

Platform: Any

Application: Any

Question/Problem Description:

How to disable an entire subVS using the RESTful API

Steps to Reproduce:  
Error Message:  
Defect Number:  
Enhancement Number:  
Cause:  
Resolution:
  • Using JSON input/API v2 input:
curl -k -d '{
"apikey" : "<api key>",
"cmd" : "modrs",
"vs" : "<parent virtual service ID>",
"rs" : "!<real server ID of subVS**>",
"enable": false } ' https://<LoadMasterIP>/accessv2

**This number is not the subVS ID. It is the ID in the Parent Virtual Service only under the SubVS tab. These numbers are not the same.

  • To use API v1 input:

https://user:password@<LoadMasterIP>/access/modrs?vs=<parent virtual service ID>&rs=!<real server ID of the subVS>&enable=false

When using this API command, the subVS can only be disabled by disabling all Real Servers within the specific subVS.

Workaround:  
Notes:  

Was this article helpful?
0 out of 0 found this helpful

Comments