VMware NSX

 View Only
  • 1.  REST api to change NSX Manager role

    Posted Feb 28, 2020 03:18 AM

    Hi. I am starting to play with REST. I used some GET command to get myself familiar. I am trying my first POST to try to change the Manager role from standalone to primary.

    POST /api/2.0/universalsync/configuration/role/set-as-primary

    But this always complains of not having enough information. Am I completely lost on how to use this API? Thanks,,,



  • 2.  RE: REST api to change NSX Manager role
    Best Answer

    Posted Mar 04, 2020 09:24 PM

    Hi Jeffery,

    Please use below syntax to set NSX manager role as primary. It require action query to set NSX manager role as primary.

    POST /api/2.0/universalsync/configuration/role?action=set-as-primary

    From NSX API Guide.

    Let me know if it helps.



  • 3.  RE: REST api to change NSX Manager role

    Posted Mar 05, 2020 05:35 PM

    Hi. This worked! Thank you. I am just getting started on REST. Good chance I will post more. haha. Thanks,,,



  • 4.  RE: REST api to change NSX Manager role

    Posted Mar 05, 2020 05:49 PM

    Sure, let them coming, its always nice to learn something new. :smileyhappy: