Skip to content

Get-HarborService

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Status of the Harbor service install: the scheduled task’s state, whether the port answers, and the TLS binding. The Get-Service equivalent for Harbor’s task-based service.

Terminal window
Get-HarborService [[-Port] <int>] [[-TaskName] <string>]

Reads the Task Scheduler task (-TaskName, ‘Harbor Onboard Web’ by default), tries a 1-second TCP connect to 127.0.0.1:-Port and reads the http.sys certificate binding for that port. Healthy is $true when the task is Running or the port answers. Needs no elevation and changes nothing; for the certificate’s details and expiry use Get-HarborTlsStatus.

Terminal window
Get-HarborService

Not described in the module help.

Type Required Position Pipeline input
Int32 No 0 No

Default: 8787.

Not described in the module help.

Type Required Position Pipeline input
String No 1 No

Default: Harbor Onboard Web.

This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.