Test-CTXAPI_Header

SYNOPSIS

Checks that the connection is still valid, and the token hasn't expired.

SYNTAX

Test-CTXAPI_Header [[-APIHeader] <Object>] [-AutoRenew] [<CommonParameters>]

DESCRIPTION

Checks that the connection is still valid, and the token hasn't expired.

EXAMPLES

EXAMPLE 1

Test-CTXAPI_Header -APIHeader $APIHeader -AutoRenew

PARAMETERS

-APIHeader

Use Connect-CTXAPI to create headers.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AutoRenew

If the token has expired, it will connect and renew the variable.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Boolean[]

NOTES