Public/Get-PSPublicAPIHealth.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<#
.SYNOPSIS
    Gets the state of Public API
.DESCRIPTION
    Gets the health state of public API service
.EXAMPLE
    Get-PSPublicAPIHealth
 
    This command get the health of the public API service.
#>

function Get-PSPublicAPIHealth {
    [CmdletBinding()]
    param 
    (

    )

    $uri = "${baseUri}health"

    Write-Verbose -Message 'Getting the health state of Public API service.'
    Invoke-RestMethod -Method get -UseBasicParsing -Uri $uri
}