Get-LMCachedAccount
Syntax
Section titled “Syntax”Get-LMCachedAccount [[-CachedAccountName] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”The Get-LMCachedAccount function retrieves information about cached LogicMonitor account credentials stored in the Logic.Monitor vault. It can return information for a specific cached account or all cached accounts.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”#Retrieve all cached accountsGet-LMCachedAccountExample 2
Section titled “Example 2”#Retrieve a specific cached accountGet-LMCachedAccount -CachedAccountName "MyAccount"Parameters
Section titled “Parameters”-CachedAccountName
Section titled “-CachedAccountName”The name of the specific cached account to retrieve information for. If not specified, returns information for all cached accounts.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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
Section titled “Inputs”None. You cannot pipe objects to this command.
Section titled “None. You cannot pipe objects to this command.”Outputs
Section titled “Outputs”Returns an array of custom objects containing cached account information including CachedAccountName, Portal, Id, Modified date, and Type.
Section titled “Returns an array of custom objects containing cached account information including CachedAccountName, Portal, Id, Modified date, and Type.”This function requires access to the Logic.Monitor vault where credentials are stored.