< Back

Get-BTLog

Sat Jan 11, 2020 2:09 pm

NAME Get-BTLog



SYNOPSIS

Returns Power365 Prepare, Sync, or Cutover Logs.





SYNTAX

Get-BTLog [-Identity] <object> [-Levels <string[]>] [-Limit <int>] [-Project <object>] [-Session <Session>]

[<CommonParameters>]



Get-BTLog [-Identity] <object> -Prepare <SwitchParameter> [-Levels <string[]>] [-Limit <int>] [-Project <object>]

[-Session <Session>] [<CommonParameters>]



Get-BTLog [-Identity] <object> -Sync <SwitchParameter> [-Levels <string[]>] [-Limit <int>] [-Project <object>]

[-Session <Session>] [<CommonParameters>]



Get-BTLog [-Identity] <object> -Cutover <SwitchParameter> [-Levels <string[]>] [-Limit <int>] [-Project <object>]

[-Session <Session>] [<CommonParameters>]





DESCRIPTION

Get-BTLog -Identity <id> -Prepare returns Prepare Logs.



Get-BTLog -Identity <id> -Sync returns Sync Logs.



Get-BTLog -Identity <id> -Cutover returns Cutover Logs.



Get-BTLog -Identity <object> returns Logs for the specified Prepare, Sync, or Cutover object.



The ApiKey role must be 'Reader' or 'Writer' to run the Get-BTLog cmdlet.





PARAMETERS

-Identity <object>

Identity: PrepareJ/Sync/CutoverJobId or Prepare/Sync/Cutover object.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Project <object>

Limit scope to this Project, specified by ProjectId, ProjectName, or Project object. Defaults to the Session's

default Project, if any.



Required? false

Position? named

Default value System.Object

Accept pipeline input? false

Accept wildcard characters? false



-Prepare <SwitchParameter>

Identity is a PrepareJobId.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Sync <SwitchParameter>

Identity is a SyncJobId.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Cutover <SwitchParameter>

Identity is a CutoverJobId.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Levels <string[]>

Filter by level(s): Error, Warn, Info, Debug, and/or Trace.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Limit <int>

Limit the number of returned items.



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Session <Session>

The Power365 Session in which to run the cmdlet. Defaults to the most recently used Session.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.Object

Identity: PrepareJ/Sync/CutoverJobId or Prepare/Sync/Cutover object.





OUTPUTS

System.Management.Automation.PSObject





---------- EXAMPLE 1 ----------



Get-BTLog -Identity 355 -Prepare

Get-BTLog -Identity 356 -Sync

Get-BTLog -Identity 357 -Cutover

Returns Logs for a Prepare, Sync, or Cutover by id.



---------- EXAMPLE 2 ----------



Get-BTLog -Identity $prepare

Get-BTLog -Identity $sync

Get-BTLog -Identity $cutover

Returns Logs for a Prepare, Sync, or Cutover by object.





RELATED LINKS