nmbgdc
Enthusiast
Enthusiast

NSX API 6.4 for

Hi Guys,

I want to add esxi cluster in transport zone and as per the document this the API and body has been given but it not working and i am not sure what is going wrong, can some help here

https://docs.vmware.com/en/VMware-NSX-Data-Center-for-vSphere/6.4/nsx_64_api.pdf   ( refered page number 40 )

This is in PDF-

POST /api/2.0/vdn/scopes/{scopeId}

Request:

Body: application/xml

<vdnScope>

<objectId>universalvdnscope</objectId>

<clusters>

<cluster>

<cluster>

<objectId>domain-c7</objectId>

</cluster>

</cluster>

</clusters>

</vdnScope>

Below one I am executing where i am getting error

https://nsx-manager/api/2.0/vdn/scopes/vdnscope-4

Method: POST

Request:

Body: application/xml

<vdnScope>

<objectId>vdnscope-4</objectId>

<clusters>

<cluster>

<cluster>

<objectId>domain-c39</objectId>

</cluster>

</cluster>

</clusters>

</vdnScope>

Thanks

0 Kudos
1 Reply
daphnissov
Immortal
Immortal

I'm no expert on the NSX-V API, but regardless you're not providing enough information. What is the exact call you're using with the full URI? Please show the full payload and the full output from the call.

0 Kudos