VMware Cloud Community
jvm2016
Hot Shot
Hot Shot

tier1_gateway_configurationchange_NSXT_powercli

Hi Luc,

if u cud suggest someways to enable (showed by arrow) using powercli.

pastedImage_0.png

0 Kudos
5 Replies
LucD
Leadership
Leadership

I'm afraid that functionality is not exposed in any of the NSX modules (PowerNsx nor VMware.VMC.NSXT)

That would mean to go to the API Manual, but I'm afraid I don't have a test environment to provide some working code.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot

Thnaks ,i willcheck this on HOL lab .

0 Kudos
jvm2016
Hot Shot
Hot Shot

just thought of confirming that we ca use invoke-webmethod way of consuming these rest api from nsxt manager .is that correct?

0 Kudos
LucD
Leadership
Leadership

I would sooner go for Invoke-RestMethod, but, yes, it should be possible with Invoke-WebRequest as well.

The post Powershell: Invoke-RestMethod vs Invoke-WebRequest has a good overview of both cmdlets.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot

thnaks.i meant invoke-restmethod only.however thanks for the link .

0 Kudos