MacWrob
Contributor
Contributor

NSX-V, create multipe objects via API

Hi,

is there a way to create multiple objects like NSX Services using single POST call:

api/2.0/services/application/globalroot-0

by default if on body you will provide more than one entry, then only first Service is created.

I would like to have option to create many services via singe query to NSX-V.

thanks Maciej

0 Kudos
1 Reply
Nane76
Contributor
Contributor

You must call Rest-API POST in cycle. For example from csv line by line.

In powershell you can use Invoke-WebRequest function for each .csv line with Rest API call (body).

I have migrated all vShield5.5 to NSX 6.4.0 DFw. Manual parsing work over excel.

I have imported IPsets, Services, ServiceGroups .... by PowerNSX calls geenrated from excel.

For Firewall rules I have used Rest-API as I described above. The changing Etag after each call is the challenge.

0 Kudos