How to Identify the User Who Uploaded or Deployed a Virtual Service via API
search cancel

 How to Identify the User Who Uploaded or Deployed a Virtual Service via API

book

Article ID: 446950

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

When managing virtual services in DevTest, administrators may need to audit or identify which user performed a specific deployment from a Workstation or Portal to the Virtual Service Environment (VSE).

Environment

All supported Versions of DevTest 

Resolution

For services that are currently deployed, the "Deployed By" information can be retrieved using the DevTest V3 REST API. This call returns metadata about the service, including the specific user ID associated with the deployment.

API Endpoint

Method: GET Endpoint: /vses/{vseName}/services/{virtualServiceName}/specifics

Standard Invocation Syntax

 
http://{RegistryHost}:{port}/lisa-virtualize-invoke/api/v3/vses/{vseName}/services/{virtualServiceName}/specifics

Parameters

  • RegistryHost: The machine name or IP address where the DevTest Registry is running.
  • Port: The registry service port (Default: 1505).
  • vseName: The name of the VSE where the service is deployed.
  • virtualServiceName: The name of the specific virtual service being queried.

Expected Response

The API will return a JSON response containing various service details. The relevant information is located in the "deployedBy" field:

{
  "virtualServiceName": "ExampleService",
  "vseName": "VSE",
  "deployedBy": "user_id_here",
  ...
}

Additional Information

  • Swagger UI: You can interactively test this call by navigating to the Swagger documentation on your Registry: http://{RegistryHost}:1505/lisa-virtualize-invoke/api/v3/swagger-ui.
  • Audit Logs: If the service has been undeployed, this information can also be found in the Registry database by querying the ACL_AUDIT_LOG table for the activity name VSE Service Deployment.