Skip to content

Commit

Permalink
Merge pull request #4 from logicmonitor/2-implement-support-for-missi…
Browse files Browse the repository at this point in the history
…ng-v198-endpoints

6.1 Release Prep
  • Loading branch information
stevevillardi authored May 6, 2024
2 parents 3005f59 + 96991e6 commit a55f61b
Show file tree
Hide file tree
Showing 27 changed files with 5,074 additions and 1,412 deletions.
2 changes: 2 additions & 0 deletions Documentation/Connect-LMAccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,7 @@ You must run this command before you will be able to execute other commands incl
## RELATED LINKS
[Module repo: https://github.com/logicmonitor/lm-powershell-module]()
[PSGallery: https://www.powershellgallery.com/packages/Logic.Monitor]()
7 changes: 3 additions & 4 deletions Documentation/Disconnect-LMAccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Disconnect from a previously connected LM portal
## SYNTAX

```
Disconnect-LMAccount [<CommonParameters>]
Disconnect-LMAccount
```

## DESCRIPTION
Expand All @@ -29,9 +29,6 @@ Disconnect-LMAccount

## PARAMETERS

### 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.
Expand All @@ -42,5 +39,7 @@ Once disconnect you will need to reconnect to a portal before you will be allowe

## RELATED LINKS

[Module repo: https://github.com/logicmonitor/lm-powershell-module]()

[PSGallery: https://www.powershellgallery.com/packages/Logic.Monitor]()

2 changes: 2 additions & 0 deletions Documentation/Export-LMDeviceConfigBackup.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## RELATED LINKS
[Module repo: https://github.com/logicmonitor/lm-powershell-module]()
[PSGallery: https://www.powershellgallery.com/packages/Logic.Monitor]()
2 changes: 2 additions & 0 deletions Documentation/Export-LMLogicModule.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,7 @@ You must run this command before you will be able to execute other commands incl
## RELATED LINKS
[Module repo: https://github.com/logicmonitor/lm-powershell-module]()
[PSGallery: https://www.powershellgallery.com/packages/Logic.Monitor]()
59 changes: 59 additions & 0 deletions Documentation/Get-LMAWSAccountId.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
external help file: Logic.Monitor-help.xml
Module Name: Logic.Monitor
online version: https://www.logicmonitor.com/support/rest-api-developers-guide/
schema: 2.0.0
---

# Get-LMAWSAccountId

## SYNOPSIS
Retrieves the AWS Account ID associated with the LogicMonitor account.

## SYNTAX

```
Get-LMAWSAccountId [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
The Get-LMAWSAccountId function is used to retrieve the AWS Account ID associated with the LogicMonitor account.
It checks if the user is logged in and has valid API credentials.
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.
The function returns the response containing the AWS Account ID.

## EXAMPLES

### EXAMPLE 1
```
Get-LMAWSAccountId
Retrieves the AWS Account ID associated with the LogicMonitor account.
```

## PARAMETERS

### -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
## RELATED LINKS
5 changes: 1 addition & 4 deletions Documentation/Get-LMAccountStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Retrieves the status of the LogicMonitor account.
## SYNTAX

```
Get-LMAccountStatus [<CommonParameters>]
Get-LMAccountStatus
```

## DESCRIPTION
Expand All @@ -31,9 +31,6 @@ This example demonstrates how to use the Get-LMAccountStatus function to retriev

## PARAMETERS

### 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
Expand Down
166 changes: 166 additions & 0 deletions Documentation/Get-LMConfigsourceUpdateHistory.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-LMConfigsourceUpdateHistory

## SYNOPSIS
Retrieves the update history for a LogicMonitor configuration source.

## SYNTAX

### Id (Default)
```
Get-LMConfigsourceUpdateHistory -Id <Int32> [-Filter <Object>] [-BatchSize <Int32>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### Name
```
Get-LMConfigsourceUpdateHistory [-Name <String>] [-Filter <Object>] [-BatchSize <Int32>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### DisplayName
```
Get-LMConfigsourceUpdateHistory [-DisplayName <String>] [-Filter <Object>] [-BatchSize <Int32>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
The Get-LMConfigsourceUpdateHistory function retrieves the update history for a LogicMonitor configuration source.
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.

## EXAMPLES

### EXAMPLE 1
```
Get-LMConfigsourceUpdateHistory -Id 1234
Retrieves the update history for the configuration source with the ID 1234.
```

### EXAMPLE 2
```
Get-LMConfigsourceUpdateHistory -Name "MyConfigSource"
Retrieves the update history for the configuration source with the name "MyConfigSource".
```

### EXAMPLE 3
```
Get-LMConfigsourceUpdateHistory -DisplayName "My Config Source"
Retrieves the update history for the configuration source with the display name "My Config Source".
```

## PARAMETERS

### -Id
The ID of the configuration source.
This parameter is mandatory when using the 'Id' parameter set.

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

Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```
### -Name
The name of the configuration source.
This parameter is used to look up the ID of the configuration source.
This parameter is used when using the 'Name' parameter set.
```yaml
Type: String
Parameter Sets: Name
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -DisplayName
The display name of the configuration source.
This parameter is used to look up the ID of the configuration source.
This parameter is used when using the 'DisplayName' parameter set.
```yaml
Type: String
Parameter Sets: DisplayName
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Filter
A filter object that specifies additional filtering criteria for the update history.
This parameter is optional.
```yaml
Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -BatchSize
The number of results to retrieve per request.
The default value is 1000.
This parameter is optional.
```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
## OUTPUTS
## NOTES
## RELATED LINKS
Loading

0 comments on commit a55f61b

Please sign in to comment.