Skip to content

Commit 85ec5b3

Browse files
Merge pull request #72 from logicmonitor/develop-7-7-0
v7.7.0 - pre-release
2 parents 5ac876e + 1d093f7 commit 85ec5b3

38 files changed

+44777
-21820
lines changed

Documentation/Get-LMIntegration.md

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
---
2+
external help file: Logic.Monitor-help.xml
3+
Module Name: Logic.Monitor
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Get-LMIntegration
9+
10+
## SYNOPSIS
11+
Retrieves integrations from LogicMonitor.
12+
13+
## SYNTAX
14+
15+
### All (Default)
16+
```
17+
Get-LMIntegration [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
18+
```
19+
20+
### Id
21+
```
22+
Get-LMIntegration [-Id <Int32>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
23+
```
24+
25+
### Name
26+
```
27+
Get-LMIntegration [-Name <String>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>]
28+
[<CommonParameters>]
29+
```
30+
31+
### Filter
32+
```
33+
Get-LMIntegration [-Filter <Object>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>]
34+
[<CommonParameters>]
35+
```
36+
37+
## DESCRIPTION
38+
The Get-LMIntegration function retrieves integration configurations from LogicMonitor.
39+
It can retrieve all integrations, a specific integration by ID or name, or filter the results.
40+
41+
## EXAMPLES
42+
43+
### EXAMPLE 1
44+
```
45+
#Retrieve all integrations
46+
Get-LMIntegration
47+
```
48+
49+
### EXAMPLE 2
50+
```
51+
#Retrieve a specific integration by name
52+
Get-LMIntegration -Name "Slack-Integration"
53+
```
54+
55+
## PARAMETERS
56+
57+
### -Id
58+
The ID of the specific integration to retrieve.
59+
60+
```yaml
61+
Type: Int32
62+
Parameter Sets: Id
63+
Aliases:
64+
65+
Required: False
66+
Position: Named
67+
Default value: 0
68+
Accept pipeline input: False
69+
Accept wildcard characters: False
70+
```
71+
72+
### -Name
73+
The name of the specific integration to retrieve.
74+
75+
```yaml
76+
Type: String
77+
Parameter Sets: Name
78+
Aliases:
79+
80+
Required: False
81+
Position: Named
82+
Default value: None
83+
Accept pipeline input: False
84+
Accept wildcard characters: False
85+
```
86+
87+
### -Filter
88+
A filter object to apply when retrieving integrations.
89+
90+
```yaml
91+
Type: Object
92+
Parameter Sets: Filter
93+
Aliases:
94+
95+
Required: False
96+
Position: Named
97+
Default value: None
98+
Accept pipeline input: False
99+
Accept wildcard characters: False
100+
```
101+
102+
### -BatchSize
103+
The number of results to return per request.
104+
Must be between 1 and 1000.
105+
Defaults to 1000.
106+
107+
```yaml
108+
Type: Int32
109+
Parameter Sets: (All)
110+
Aliases:
111+
112+
Required: False
113+
Position: Named
114+
Default value: 1000
115+
Accept pipeline input: False
116+
Accept wildcard characters: False
117+
```
118+
119+
### -ProgressAction
120+
{{ Fill ProgressAction Description }}
121+
122+
```yaml
123+
Type: ActionPreference
124+
Parameter Sets: (All)
125+
Aliases: proga
126+
127+
Required: False
128+
Position: Named
129+
Default value: None
130+
Accept pipeline input: False
131+
Accept wildcard characters: False
132+
```
133+
134+
### CommonParameters
135+
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).
136+
137+
## INPUTS
138+
139+
### None. You cannot pipe objects to this command.
140+
## OUTPUTS
141+
142+
### Returns integration objects from LogicMonitor.
143+
## NOTES
144+
You must run Connect-LMAccount before running this command.
145+
146+
## RELATED LINKS
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
---
2+
external help file: Logic.Monitor-help.xml
3+
Module Name: Logic.Monitor
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Get-LMRecentlyDeleted
9+
10+
## SYNOPSIS
11+
Retrieves recently deleted resources from the LogicMonitor recycle bin.
12+
13+
## SYNTAX
14+
15+
```
16+
Get-LMRecentlyDeleted [[-ResourceType] <String>] [[-DeletedAfter] <DateTime>] [[-DeletedBefore] <DateTime>]
17+
[[-DeletedBy] <String>] [[-BatchSize] <Int32>] [[-Sort] <String>] [-ProgressAction <ActionPreference>]
18+
[<CommonParameters>]
19+
```
20+
21+
## DESCRIPTION
22+
The Get-LMRecentlyDeleted function queries the LogicMonitor recycle bin for deleted resources
23+
within a configurable time range.
24+
Results can be filtered by resource type and deleted-by user,
25+
and support paging through the API using size, offset, and sort parameters.
26+
27+
## EXAMPLES
28+
29+
### EXAMPLE 1
30+
```
31+
Get-LMRecentlyDeleted -ResourceType device -DeletedBy "lmsupport"
32+
```
33+
34+
Retrieves every device deleted by the user lmsupport over the past seven days.
35+
36+
### EXAMPLE 2
37+
```
38+
Get-LMRecentlyDeleted -DeletedAfter (Get-Date).AddDays(-1) -DeletedBefore (Get-Date) -BatchSize 100 -Sort "+deletedOn"
39+
```
40+
41+
Retrieves deleted resources from the past 24 hours in ascending order of deletion time.
42+
43+
## PARAMETERS
44+
45+
### -ResourceType
46+
Limits results to a specific resource type.
47+
Accepted values are All, device, and deviceGroup.
48+
Defaults to All.
49+
50+
```yaml
51+
Type: String
52+
Parameter Sets: (All)
53+
Aliases:
54+
55+
Required: False
56+
Position: 1
57+
Default value: All
58+
Accept pipeline input: False
59+
Accept wildcard characters: False
60+
```
61+
62+
### -DeletedAfter
63+
The earliest deletion timestamp (inclusive) to return.
64+
Defaults to seven days prior when not specified.
65+
66+
```yaml
67+
Type: DateTime
68+
Parameter Sets: (All)
69+
Aliases:
70+
71+
Required: False
72+
Position: 2
73+
Default value: None
74+
Accept pipeline input: False
75+
Accept wildcard characters: False
76+
```
77+
78+
### -DeletedBefore
79+
The latest deletion timestamp (exclusive) to return.
80+
Defaults to the current time when not specified.
81+
82+
```yaml
83+
Type: DateTime
84+
Parameter Sets: (All)
85+
Aliases:
86+
87+
Required: False
88+
Position: 3
89+
Default value: None
90+
Accept pipeline input: False
91+
Accept wildcard characters: False
92+
```
93+
94+
### -DeletedBy
95+
Limits results to items deleted by the specified user principal.
96+
97+
```yaml
98+
Type: String
99+
Parameter Sets: (All)
100+
Aliases:
101+
102+
Required: False
103+
Position: 4
104+
Default value: None
105+
Accept pipeline input: False
106+
Accept wildcard characters: False
107+
```
108+
109+
### -BatchSize
110+
The number of records to request per API call (1-1000).
111+
Defaults to 1000.
112+
113+
```yaml
114+
Type: Int32
115+
Parameter Sets: (All)
116+
Aliases:
117+
118+
Required: False
119+
Position: 5
120+
Default value: 1000
121+
Accept pipeline input: False
122+
Accept wildcard characters: False
123+
```
124+
125+
### -Sort
126+
Sort expression passed to the API.
127+
Defaults to -deletedOn.
128+
129+
```yaml
130+
Type: String
131+
Parameter Sets: (All)
132+
Aliases:
133+
134+
Required: False
135+
Position: 6
136+
Default value: -deletedOn
137+
Accept pipeline input: False
138+
Accept wildcard characters: False
139+
```
140+
141+
### -ProgressAction
142+
{{ Fill ProgressAction Description }}
143+
144+
```yaml
145+
Type: ActionPreference
146+
Parameter Sets: (All)
147+
Aliases: proga
148+
149+
Required: False
150+
Position: Named
151+
Default value: None
152+
Accept pipeline input: False
153+
Accept wildcard characters: False
154+
```
155+
156+
### CommonParameters
157+
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).
158+
159+
## INPUTS
160+
161+
## OUTPUTS
162+
163+
## NOTES
164+
You must establish a session with Connect-LMAccount prior to calling this function.
165+
166+
## RELATED LINKS

0 commit comments

Comments
 (0)