VConnectConnections.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function Get-VConnectPlatformConnection {
    param (
          [Parameter(Mandatory=$true, Position= 0)]
          $endpointName,
          [Parameter(Mandatory=$false, Position= 1)]
          [int]$connectionId
    )
    return Invoke-RestApiRequest -endpointName $endpointName -relativeUrl 'admin/connections/GetPlatformConnections' -method 'GET'
}

function Get-VConnectVCenterConnections {
    param (
          [Parameter(Mandatory=$true, Position= 0)]
          $endpointName,
          [Parameter(Mandatory=$false, Position= 1)]
          [int]$connectionId
    )
    return Invoke-RestApiRequest -endpointName $endpointName -relativeUrl 'admin/connections/GetVCenterConnections' -method 'GET'
}