How To Change Third-Party OVF Parameters in NSX V via API
search cancel

How To Change Third-Party OVF Parameters in NSX V via API

book

Article ID: 316671

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

To provide a workaround to the functionality limitation of the HTML5 NSX V UI.

Symptoms:
There is no option to change the OVF of the third-party applications installed through the service insertion when using the HTML5 vCenter UI and accessing the NSX V plugin.

Environment

VMware NSX Data Center for vSphere 6.4.x

Cause

After Flash was disable on all major browsers at the end of 2020, not all features are present in the HTML5 version of the NSX V vCenter Plug-In.

Resolution

No resolution is present at this time. Use the workaround in the section below to accomplish Service Deployment OVF alterations within NSX V.

Workaround:
Use the following APIs for version deployment specifications:-
GET https://<nsx-ip>/api/2.0/si/service/<service-id>/servicedeploymentspec
Create new specification
POST https://<nsx-ip>/api/2.0/si/service/<service-id>/servicedeploymentspec/versioneddeploymentspec

<versionedDeploymentSpec>
   <hostVersion>6.5.*</hostVersion>
   <ovfUrl>http://<server>/abhishekshah/ovfs/RHEL_SVM_623/RHEL_SVM_623.ovf</ovfUrl>
   <vmciEnabled>true</vmciEnabled>
</versionedDeploymentSpec>

Modifying existing specification

Retrieve the VersionedDeploymentSpec for the service using a GET command:
GET https://<nsx-ip>/api/2.0/si/service/<serviceId>/servicedeploymentspec
Then edit the XML and update the VersionedDeploymentSpec with the following API:
PUT https://<nsx-ip>/api/2.0/si/service/<serviceId>/servicedeploymentspec/ 
versioneddeploymentspec/<versioneddeploymentspec-id