search cancel

Update VS's from HTTP-->HTTPs using API Calls

book

Article ID: 238802

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

This article will provide information on changing the configuration of VS to SSL enabled (http-->https) using REST API calls.

As is DevTest doesn't provide the functionality of changing the VS from http to https with API call but it can be done manually by editing each VS manually.

Need a more robust solution which should help when modifying 100+ VS's.

 

Environment

Release : 10.x

Component : DevTest Virtual Service

Cause

Functionality need to be customized to change many VS from http-->https.

Resolution

Recommended to use "Virtual Service Invoke API" calls to achieve the functionality of changing the VS from http-->https for many services at one time than changing each one manually one at a time. This section can be found in the documentation of the DevTest version you are running.
 
The recommendation is not just one step but need to create a test case with multiple steps to update each VS hosted on a specific Registry and VSE from http-->https and use the specific Keystore file. The LISA REST API will take care of redeployment with changed configuration.

Attached is the test case from Services which can be used/extended to achieve the functionality.

Attachments

1649192879874__Services-to-SSL.zip get_app