VMware Networking Community
jeffj2000
Enthusiast
Enthusiast
Jump to solution

REST api to change NSX Manager role

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,,,

0 Kudos
1 Solution

Accepted Solutions
aggarwalvinay31
Enthusiast
Enthusiast
Jump to solution

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

pastedImage_0.png

From NSX API Guide.

Let me know if it helps.

View solution in original post

0 Kudos
3 Replies
aggarwalvinay31
Enthusiast
Enthusiast
Jump to solution

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

pastedImage_0.png

From NSX API Guide.

Let me know if it helps.

0 Kudos
jeffj2000
Enthusiast
Enthusiast
Jump to solution

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

0 Kudos
aggarwalvinay31
Enthusiast
Enthusiast
Jump to solution

Sure, let them coming, its always nice to learn something new. Smiley Happy

0 Kudos