VConnectConnections.psm1

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'
}