I am trying to create a service definition using NSX Rest APIs. However, I am not able to find one. I'd appreciate if someone can point me to the right API documentation around this.
-
Shenoy
I found a KB article, which pointed me to Rest API for Deploying Service Instances.
/api/2.0/si/serviceinstance
Using these APIs, I am able to create the required service instance.
HTH,
Sudhakar Shenoy
Page 104 of the PDF NSX vSphere 6.2 API Guide - VMware Documentation covers working with services.
Thanks for your response. However, I am looking to create a service definition similar to one in UI via the following steps :-
1) Networking and Security -> Service Definition -> New Service Definition
2) Select Deployment Mechanism like L3 Boundary
3) Select Service category like Load Balancer
4) Configure Service Manager
5) Add Service configurations
6) Select Transport like None
7) Deploy the service.
Once deployed, we can use that service definition while configuring the Edge Services Gateway.
I found a KB article, which pointed me to Rest API for Deploying Service Instances.
/api/2.0/si/serviceinstance
Using these APIs, I am able to create the required service instance.
HTH,
Sudhakar Shenoy