You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Build-LMFilter function creates a filter expression by interactively prompting for conditions and operators.
21
+
It supports basic filtering for single fields and advanced filtering for property-based queries.
22
+
Multiple conditions can be combined using AND/OR operators.
23
+
24
+
## EXAMPLES
25
+
26
+
### EXAMPLE 1
27
+
```
28
+
#Build a basic filter expression
29
+
Build-LMFilter
30
+
This example launches the interactive filter builder wizard.
31
+
```
32
+
33
+
### EXAMPLE 2
34
+
```
35
+
#Build a filter and return the expression
36
+
Build-LMFilter -PassThru
37
+
This example builds a filter and returns the expression as a string.
38
+
```
39
+
40
+
## PARAMETERS
41
+
42
+
### -PassThru
43
+
When specified, returns the filter expression as a string instead of displaying it in a panel.
44
+
45
+
```yaml
46
+
Type: SwitchParameter
47
+
Parameter Sets: (All)
48
+
Aliases:
49
+
50
+
Required: False
51
+
Position: Named
52
+
Default value: False
53
+
Accept pipeline input: False
54
+
Accept wildcard characters: False
55
+
```
56
+
57
+
### -ProgressAction
58
+
{{ Fill ProgressAction Description }}
59
+
60
+
```yaml
61
+
Type: ActionPreference
62
+
Parameter Sets: (All)
63
+
Aliases: proga
64
+
65
+
Required: False
66
+
Position: Named
67
+
Default value: None
68
+
Accept pipeline input: False
69
+
Accept wildcard characters: False
70
+
```
71
+
72
+
### CommonParameters
73
+
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).
74
+
75
+
## INPUTS
76
+
77
+
### None. You cannot pipe objects to this command.
78
+
## OUTPUTS
79
+
80
+
### [String] Returns a PowerShell filter expression when using -PassThru.
81
+
## NOTES
82
+
The filter expression is saved to the global $LMFilter variable.
The device object of the reference device that will be copied.
88
+
The source device object to copy settings from.
89
+
This parameter is mandatory.
82
90
83
91
```yaml
84
92
Type: Object
@@ -112,9 +120,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
112
120
113
121
## INPUTS
114
122
123
+
### None. You cannot pipe objects to this command.
115
124
## OUTPUTS
116
125
126
+
### Returns the newly created device object.
117
127
## NOTES
118
-
Any custom properties from the reference device that are masked will need to be updated on the cloned resource, as those values are not available to the LogicMonitor API.
128
+
Masked custom properties from the source device will need to be manually updated on the new device as they are not available via the API.
Disconnects from a previously connected LM portal.
12
12
13
13
## SYNTAX
14
14
15
15
```
16
-
Disconnect-LMAccount [<CommonParameters>]
16
+
Disconnect-LMAccount
17
17
```
18
18
19
19
## DESCRIPTION
20
-
Clears stored API credentials for a previously connected LM portal.
21
-
Useful for switching between LM portals or clearing credentials after a script runs
20
+
The Disconnect-LMAccount function clears stored API credentials for a previously connected LM portal.
21
+
It's useful for switching between LM portals or clearing credentials after a script runs.
22
22
23
23
## EXAMPLES
24
24
25
25
### EXAMPLE 1
26
26
```
27
+
#Disconnect from the current LM portal
27
28
Disconnect-LMAccount
28
29
```
29
30
30
31
## PARAMETERS
31
32
32
-
### CommonParameters
33
-
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).
34
-
35
33
## INPUTS
36
34
37
35
### None. You cannot pipe objects to this command.
38
36
## OUTPUTS
39
37
38
+
### None. This command does not generate any output.
40
39
## NOTES
41
-
Once disconnect you will need to reconnect to a portal before you will be allowed to run commands again.
40
+
Once disconnected you will need to reconnect to a portal before you will be allowed to run commands again.
0 commit comments