Get-VPASCMComponentLogList


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET CONNECTOR MANAGEMENT CONNECTOR COMPONENT LOG LIST


Description:

USE THIS FUNCTION TO RETRIEVE CONNECTOR COMPONENT LOG LIST FROM CONNECTOR MANAGEMENT


Syntax:

Get-VPASCMComponentLogList [[-ConnectorID] <String>] [[-ConnectorHost] <String>] [[-ComponentID] <String>] [[-ComponentName] <String>] [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-ConnectorID <String>
UniqueID of the target connector in ConnectorManagement

Required: false
Position: 1
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-ConnectorHost <String>
Unique host of the target connector in ConnectorManagement
Host in this case can either be a hostname, a publicIP, or a PrivateIP

Required: false
Position: 2
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-ComponentID <String>
UniqueID of the target component for a connector in ConnectorManagement

Required: false
Position: 3
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-ComponentName <String>
Unique name of the target component for a connector in ConnectorManagement
Possible values: psm, cpm, cpm scanner, Management Agent

Required: false
Position: 4
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-token <Hashtable>
HashTable of data containing various pieces of login information (PVWA, LoginToken, HeaderType, etc).
If -token is not passed, function will use last known hashtable generated by New-VPASToken

Required: false
Position: 5
Default value:
Accept pipeline input: true (ByPropertyName)
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)


Examples:

$ComponentLogList = Get-VPASCMComponentLogList -ConnectorID {CONNECTOR ID VALUE} -ComponentID {COMPONENT ID VALUE}

$ComponentLogList = Get-VPASCMComponentLogList -ConnectorHost {CONNECTOR NAME VALUE} -ComponentName {COMPONENT NAME VALUE}


Outputs:

If successful:
{
         "logs": [
                 {
                         "logId": "kdjhfskjdf-2344-6765-asdf-ajhgd734627983",
                         "date": "1711987268166",
                         "displayName": "PSMLogs"
                 }
         ]
}

$false if failed