Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
RichMiles
New Member

Can't Find Gateway ID

Hello,

 

I want to run some APIs against my Gateway using the Try Me pages on Microsoft's site. However I can't find out where my Gateway ID is in order to run them

 

Can anyone out there point me in the right direction to obtain this ID?

 

Thanks 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

 

Here's one way of doing it.

#optional 
Install-Module -Name OnPremisesDataGatewayHAMgmt -Scope CurrentUser
Import-Module -Name OnPremisesDataGatewayHAMgmt
# end optional
Login-OnPremisesDataGateway
foreach ($i in Get-OnPremisesDataGatewayClusters) {
    $i.gateways | ConvertFrom-Json | Format-Table gatewayName,isAnchorGateway,gatewayClusterStatus,gatewayVersion,gatewayMachine,gatewayObjectId -AutoSize
}

 

The gateway ID is the id of the anchor cluster member.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

 

Here's one way of doing it.

#optional 
Install-Module -Name OnPremisesDataGatewayHAMgmt -Scope CurrentUser
Import-Module -Name OnPremisesDataGatewayHAMgmt
# end optional
Login-OnPremisesDataGateway
foreach ($i in Get-OnPremisesDataGatewayClusters) {
    $i.gateways | ConvertFrom-Json | Format-Table gatewayName,isAnchorGateway,gatewayClusterStatus,gatewayVersion,gatewayMachine,gatewayObjectId -AutoSize
}

 

The gateway ID is the id of the anchor cluster member.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors