Skip to content

Commit 3dfc7bd

Browse files
committed
AccessGroup enhancement support
Add new cmdlets: - Get/Set/Remove/New -LMAccessGroup support - Get-LMDeviceDatasourceInstanceAlertRecipients
1 parent 58c33fc commit 3dfc7bd

22 files changed

+5450
-670
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
external help file: Logic.Monitor-help.xml
3+
Module Name: Logic.Monitor
4+
online version: https://www.logicmonitor.com/support/rest-api-developers-guide/
5+
schema: 2.0.0
6+
---
7+
8+
# Get-LMAWSAccountId
9+
10+
## SYNOPSIS
11+
Retrieves the AWS Account ID associated with the LogicMonitor account.
12+
13+
## SYNTAX
14+
15+
```
16+
Get-LMAWSAccountId [-ProgressAction <ActionPreference>] [<CommonParameters>]
17+
```
18+
19+
## DESCRIPTION
20+
The Get-LMAWSAccountId function is used to retrieve the AWS Account ID associated with the LogicMonitor account.
21+
It checks if the user is logged in and has valid API credentials.
22+
If the user is logged in, it builds the necessary headers and URI, and then sends a GET request to the LogicMonitor API to retrieve the AWS Account ID.
23+
The function returns the response containing the AWS Account ID.
24+
25+
## EXAMPLES
26+
27+
### EXAMPLE 1
28+
```
29+
Get-LMAWSAccountId
30+
Retrieves the AWS Account ID associated with the LogicMonitor account.
31+
```
32+
33+
## PARAMETERS
34+
35+
### -ProgressAction
36+
{{ Fill ProgressAction Description }}
37+
38+
```yaml
39+
Type: ActionPreference
40+
Parameter Sets: (All)
41+
Aliases: proga
42+
43+
Required: False
44+
Position: Named
45+
Default value: None
46+
Accept pipeline input: False
47+
Accept wildcard characters: False
48+
```
49+
50+
### CommonParameters
51+
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).
52+
53+
## INPUTS
54+
55+
## OUTPUTS
56+
57+
## NOTES
58+
59+
## 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-LMConfigsourceUpdateHistory
9+
10+
## SYNOPSIS
11+
Retrieves the update history for a LogicMonitor configuration source.
12+
13+
## SYNTAX
14+
15+
### Id (Default)
16+
```
17+
Get-LMConfigsourceUpdateHistory -Id <Int32> [-Filter <Object>] [-BatchSize <Int32>]
18+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
19+
```
20+
21+
### Name
22+
```
23+
Get-LMConfigsourceUpdateHistory [-Name <String>] [-Filter <Object>] [-BatchSize <Int32>]
24+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
25+
```
26+
27+
### DisplayName
28+
```
29+
Get-LMConfigsourceUpdateHistory [-DisplayName <String>] [-Filter <Object>] [-BatchSize <Int32>]
30+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
31+
```
32+
33+
## DESCRIPTION
34+
The Get-LMConfigsourceUpdateHistory function retrieves the update history for a LogicMonitor configuration source.
35+
It can be used to get information about the updates made to a configuration source, such as the update reasons and the modules that were updated.
36+
37+
## EXAMPLES
38+
39+
### EXAMPLE 1
40+
```
41+
Get-LMConfigsourceUpdateHistory -Id 1234
42+
Retrieves the update history for the configuration source with the ID 1234.
43+
```
44+
45+
### EXAMPLE 2
46+
```
47+
Get-LMConfigsourceUpdateHistory -Name "MyConfigSource"
48+
Retrieves the update history for the configuration source with the name "MyConfigSource".
49+
```
50+
51+
### EXAMPLE 3
52+
```
53+
Get-LMConfigsourceUpdateHistory -DisplayName "My Config Source"
54+
Retrieves the update history for the configuration source with the display name "My Config Source".
55+
```
56+
57+
## PARAMETERS
58+
59+
### -Id
60+
The ID of the configuration source.
61+
This parameter is mandatory when using the 'Id' parameter set.
62+
63+
```yaml
64+
Type: Int32
65+
Parameter Sets: Id
66+
Aliases:
67+
68+
Required: True
69+
Position: Named
70+
Default value: 0
71+
Accept pipeline input: False
72+
Accept wildcard characters: False
73+
```
74+
75+
### -Name
76+
The name of the configuration source.
77+
This parameter is used to look up the ID of the configuration source.
78+
This parameter is used when using the 'Name' parameter set.
79+
80+
```yaml
81+
Type: String
82+
Parameter Sets: Name
83+
Aliases:
84+
85+
Required: False
86+
Position: Named
87+
Default value: None
88+
Accept pipeline input: False
89+
Accept wildcard characters: False
90+
```
91+
92+
### -DisplayName
93+
The display name of the configuration source.
94+
This parameter is used to look up the ID of the configuration source.
95+
This parameter is used when using the 'DisplayName' parameter set.
96+
97+
```yaml
98+
Type: String
99+
Parameter Sets: DisplayName
100+
Aliases:
101+
102+
Required: False
103+
Position: Named
104+
Default value: None
105+
Accept pipeline input: False
106+
Accept wildcard characters: False
107+
```
108+
109+
### -Filter
110+
A filter object that specifies additional filtering criteria for the update history.
111+
This parameter is optional.
112+
113+
```yaml
114+
Type: Object
115+
Parameter Sets: (All)
116+
Aliases:
117+
118+
Required: False
119+
Position: Named
120+
Default value: None
121+
Accept pipeline input: False
122+
Accept wildcard characters: False
123+
```
124+
125+
### -BatchSize
126+
The number of results to retrieve per request.
127+
The default value is 1000.
128+
This parameter is optional.
129+
130+
```yaml
131+
Type: Int32
132+
Parameter Sets: (All)
133+
Aliases:
134+
135+
Required: False
136+
Position: Named
137+
Default value: 1000
138+
Accept pipeline input: False
139+
Accept wildcard characters: False
140+
```
141+
142+
### -ProgressAction
143+
{{ Fill ProgressAction Description }}
144+
145+
```yaml
146+
Type: ActionPreference
147+
Parameter Sets: (All)
148+
Aliases: proga
149+
150+
Required: False
151+
Position: Named
152+
Default value: None
153+
Accept pipeline input: False
154+
Accept wildcard characters: False
155+
```
156+
157+
### CommonParameters
158+
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).
159+
160+
## INPUTS
161+
162+
## OUTPUTS
163+
164+
## NOTES
165+
166+
## RELATED LINKS

Documentation/Get-LMDatasourceUpdateHistory.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@ PS C:\> {{ Add example code here }}
4444

4545
## PARAMETERS
4646

47-
### -BatchSize
48-
{{ Fill BatchSize Description }}
47+
### -Id
48+
{{ Fill Id Description }}
4949

5050
```yaml
5151
Type: Int32
52-
Parameter Sets: (All)
52+
Parameter Sets: Id
5353
Aliases:
5454

55-
Required: False
55+
Required: True
5656
Position: Named
5757
Default value: None
5858
Accept pipeline input: False
5959
Accept wildcard characters: False
6060
```
6161
62-
### -DisplayName
63-
{{ Fill DisplayName Description }}
62+
### -Name
63+
{{ Fill Name Description }}
6464
6565
```yaml
6666
Type: String
67-
Parameter Sets: DisplayName
67+
Parameter Sets: Name
6868
Aliases:
6969

7070
Required: False
@@ -74,12 +74,12 @@ Accept pipeline input: False
7474
Accept wildcard characters: False
7575
```
7676
77-
### -Filter
78-
{{ Fill Filter Description }}
77+
### -DisplayName
78+
{{ Fill DisplayName Description }}
7979
8080
```yaml
81-
Type: Object
82-
Parameter Sets: (All)
81+
Type: String
82+
Parameter Sets: DisplayName
8383
Aliases:
8484

8585
Required: False
@@ -89,27 +89,27 @@ Accept pipeline input: False
8989
Accept wildcard characters: False
9090
```
9191
92-
### -Id
93-
{{ Fill Id Description }}
92+
### -Filter
93+
{{ Fill Filter Description }}
9494
9595
```yaml
96-
Type: Int32
97-
Parameter Sets: Id
96+
Type: Object
97+
Parameter Sets: (All)
9898
Aliases:
9999

100-
Required: True
100+
Required: False
101101
Position: Named
102102
Default value: None
103103
Accept pipeline input: False
104104
Accept wildcard characters: False
105105
```
106106
107-
### -Name
108-
{{ Fill Name Description }}
107+
### -BatchSize
108+
{{ Fill BatchSize Description }}
109109
110110
```yaml
111-
Type: String
112-
Parameter Sets: Name
111+
Type: Int32
112+
Parameter Sets: (All)
113113
Aliases:
114114

115115
Required: False

0 commit comments

Comments
 (0)