Skip to content

Commit

Permalink
Merge pull request #15 from johnduprey/dev
Browse files Browse the repository at this point in the history
Dev to main
  • Loading branch information
JohnDuprey authored Jan 27, 2023
2 parents 97ed935 + 849c78b commit d28d858
Show file tree
Hide file tree
Showing 17 changed files with 550 additions and 35 deletions.
31 changes: 8 additions & 23 deletions Docs/Get-DuoAccountEdition.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
external help file: DuoSecurity-help.xml
Module Name: DuoSecurity
online version: https://duo.com/docs/accountsapi#set-telephony-credits
online version: https://duo.com/docs/accountsapi#get-edition
schema: 2.0.0
---

# Get-DuoAccountEdition

## SYNOPSIS
Set Telephony Credits
Get Edition

## SYNTAX

```
Get-DuoAccountEdition [-AccountId] <String> [-Credits] <Int32> [-WhatIf] [-Confirm] [<CommonParameters>]
Get-DuoAccountEdition [-AccountId] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Sets the telephony credits for a child account.
Returns the edition for a child account.

## EXAMPLES

### EXAMPLE 1
```
Set-DuoAccountTelephonyCredits -AccountId SOMEACCOUNTID -Credits
Get-DuoAccounts | Select-Object name,account_id, @{n='edition'; e={($_ | Get-DuoAccountEdition).edition}}
```

## PARAMETERS
Expand All @@ -44,21 +44,6 @@ Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```
### -Credits
{{ Fill Credits Description }}
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Expand Down Expand Up @@ -95,13 +80,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### PSCustomObject. Duo Accounts object
## OUTPUTS
### PSCustomObject. Returns a Duo Response object.
## NOTES
Any additional credits added to the child account are transferred from the parent account.
For example, if the child account has 100 credits and it is then set to 300 credits, then 200 credits are deducted from the parent's balance and added to the child's balance.
## RELATED LINKS
[https://duo.com/docs/accountsapi#set-telephony-credits](https://duo.com/docs/accountsapi#set-telephony-credits)
[https://duo.com/docs/accountsapi#get-edition](https://duo.com/docs/accountsapi#get-edition)
55 changes: 55 additions & 0 deletions Docs/Get-DuoAccountID.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
external help file: DuoSecurity-help.xml
Module Name: DuoSecurity
online version: https://duo.com/docs/accountsapi#get-edition
schema: 2.0.0
---

# Get-DuoAccountID

## SYNOPSIS
Get Account ID # from Duo API hostname

## SYNTAX

```
Get-DuoAccountID [[-ApiHost] <String>] [<CommonParameters>]
```

## DESCRIPTION
Converts hexidecimal hostname to decimal format

## EXAMPLES

### EXAMPLE 1
```
Get-DuoAccountID -ApiHost api-01ab23cd.duosecurity.com
```

## PARAMETERS

### -ApiHost
API hostname to get Account ID # for

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

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
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
17 changes: 16 additions & 1 deletion Docs/Get-DuoAccounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Retrieve Accounts
## SYNTAX

```
Get-DuoAccounts [<CommonParameters>]
Get-DuoAccounts [-IncludeEdition] [<CommonParameters>]
```

## DESCRIPTION
Expand All @@ -28,6 +28,21 @@ Get-DuoAccounts

## PARAMETERS

### -IncludeEdition
{{ Fill IncludeEdition Description }}

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

Required: False
Position: Named
Default value: False
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).
Expand Down
91 changes: 91 additions & 0 deletions Docs/Get-DuoAuthProxyLogs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
external help file: DuoSecurity-help.xml
Module Name: DuoSecurity
online version: https://duo.com/docs/adminapi#authentication-logs
schema: 2.0.0
---

# Get-DuoAuthProxyLogs

## SYNOPSIS
This script reads Duo Auth Proxy log files

## SYNTAX

### List
```
Get-DuoAuthProxyLogs [-ListLogs] [<CommonParameters>]
```

### Logs
```
Get-DuoAuthProxyLogs [-LogName <String>] [-Search <String>] [<CommonParameters>]
```

## DESCRIPTION
Reads in log files from the designated log path and parses the entries from the standard log file format or json in the case of ssoevents

## EXAMPLES

### EXAMPLE 1
```
Get-DuoAuthProxyLogs -LogName ssoevents -Search test
```

## PARAMETERS

### -ListLogs
List available log files

```yaml
Type: SwitchParameter
Parameter Sets: List
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -LogName
Name of log to get
```yaml
Type: String
Parameter Sets: Logs
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Search
Search object for string
```yaml
Type: String
Parameter Sets: Logs
Aliases:

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
60 changes: 60 additions & 0 deletions Docs/Get-DuoInstallFileInfo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
external help file: DuoSecurity-help.xml
Module Name: DuoSecurity
online version: https://duo.com/docs/adminapi#get-group-info
schema: 2.0.0
---

# Get-DuoInstallFileInfo

## SYNOPSIS
{{ Fill in the Synopsis }}

## SYNTAX

```
Get-DuoInstallFileInfo [[-Url] <Object>] [<CommonParameters>]
```

## DESCRIPTION
{{ Fill in the Description }}

## EXAMPLES

### Example 1
```powershell
PS C:\> {{ Add example code here }}
```

{{ Add example description here }}

## PARAMETERS

### -Url
{{ Fill Url Description }}

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

Required: False
Position: 0
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
## OUTPUTS
### System.Object
## NOTES
## RELATED LINKS
Loading

0 comments on commit d28d858

Please sign in to comment.