Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 146 additions & 0 deletions Documentation/Get-LMIntegration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
---
external help file: Logic.Monitor-help.xml
Module Name: Logic.Monitor
online version:
schema: 2.0.0
---

# Get-LMIntegration

## SYNOPSIS
Retrieves integrations from LogicMonitor.

## SYNTAX

### All (Default)
```
Get-LMIntegration [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### Id
```
Get-LMIntegration [-Id <Int32>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### Name
```
Get-LMIntegration [-Name <String>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
```

### Filter
```
Get-LMIntegration [-Filter <Object>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
```

## DESCRIPTION
The Get-LMIntegration function retrieves integration configurations from LogicMonitor.
It can retrieve all integrations, a specific integration by ID or name, or filter the results.

## EXAMPLES

### EXAMPLE 1
```
#Retrieve all integrations
Get-LMIntegration
```

### EXAMPLE 2
```
#Retrieve a specific integration by name
Get-LMIntegration -Name "Slack-Integration"
```

## PARAMETERS

### -Id
The ID of the specific integration to retrieve.

```yaml
Type: Int32
Parameter Sets: Id
Aliases:

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

### -Name
The name of the specific integration to retrieve.

```yaml
Type: String
Parameter Sets: Name
Aliases:

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

### -Filter
A filter object to apply when retrieving integrations.

```yaml
Type: Object
Parameter Sets: Filter
Aliases:

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

### -BatchSize
The number of results to return per request.
Must be between 1 and 1000.
Defaults to 1000.

```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

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

### -ProgressAction
{{ Fill ProgressAction Description }}

```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
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](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None. You cannot pipe objects to this command.
## OUTPUTS

### Returns integration objects from LogicMonitor.
## NOTES
You must run Connect-LMAccount before running this command.

## RELATED LINKS
166 changes: 166 additions & 0 deletions Documentation/Get-LMRecentlyDeleted.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
---
external help file: Logic.Monitor-help.xml
Module Name: Logic.Monitor
online version:
schema: 2.0.0
---

# Get-LMRecentlyDeleted

## SYNOPSIS
Retrieves recently deleted resources from the LogicMonitor recycle bin.

## SYNTAX

```
Get-LMRecentlyDeleted [[-ResourceType] <String>] [[-DeletedAfter] <DateTime>] [[-DeletedBefore] <DateTime>]
[[-DeletedBy] <String>] [[-BatchSize] <Int32>] [[-Sort] <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
```

## DESCRIPTION
The Get-LMRecentlyDeleted function queries the LogicMonitor recycle bin for deleted resources
within a configurable time range.
Results can be filtered by resource type and deleted-by user,
and support paging through the API using size, offset, and sort parameters.

## EXAMPLES

### EXAMPLE 1
```
Get-LMRecentlyDeleted -ResourceType device -DeletedBy "lmsupport"
```

Retrieves every device deleted by the user lmsupport over the past seven days.

### EXAMPLE 2
```
Get-LMRecentlyDeleted -DeletedAfter (Get-Date).AddDays(-1) -DeletedBefore (Get-Date) -BatchSize 100 -Sort "+deletedOn"
```

Retrieves deleted resources from the past 24 hours in ascending order of deletion time.

## PARAMETERS

### -ResourceType
Limits results to a specific resource type.
Accepted values are All, device, and deviceGroup.
Defaults to All.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

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

### -DeletedAfter
The earliest deletion timestamp (inclusive) to return.
Defaults to seven days prior when not specified.

```yaml
Type: DateTime
Parameter Sets: (All)
Aliases:

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

### -DeletedBefore
The latest deletion timestamp (exclusive) to return.
Defaults to the current time when not specified.

```yaml
Type: DateTime
Parameter Sets: (All)
Aliases:

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

### -DeletedBy
Limits results to items deleted by the specified user principal.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

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

### -BatchSize
The number of records to request per API call (1-1000).
Defaults to 1000.

```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: 1000
Accept pipeline input: False
Accept wildcard characters: False
```

### -Sort
Sort expression passed to the API.
Defaults to -deletedOn.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: -deletedOn
Accept pipeline input: False
Accept wildcard characters: False
```

### -ProgressAction
{{ Fill ProgressAction Description }}

```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
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](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

## OUTPUTS

## NOTES
You must establish a session with Connect-LMAccount prior to calling this function.

## RELATED LINKS
Loading