Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions Docs/Get-HuduExports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
external help file: HuduAPI-help.xml
Module Name: HuduAPI
online version:
schema: 2.0.0
---

# Get-HuduExports

## SYNOPSIS
{{ Fill in the Synopsis }}

## SYNTAX

```
Get-HuduExports [[-id] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
{{ Fill in the Description }}

## EXAMPLES

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

{{ Add example description here }}

## PARAMETERS

### -id
{{ Fill id Description }}

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

Required: False
Position: 0
Default value: None
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

### None

## OUTPUTS

### System.Object
## NOTES

## RELATED LINKS
122 changes: 122 additions & 0 deletions Docs/Save-HuduExports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
---
external help file: HuduAPI-help.xml
Module Name: HuduAPI
online version:
schema: 2.0.0
---

# Save-HuduExports

## SYNOPSIS
{{ Fill in the Synopsis }}

## SYNTAX

```
Save-HuduExports [[-Id] <Int64>] [[-OutDir] <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

## DESCRIPTION
{{ Fill in the Description }}

## EXAMPLES

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

{{ Add example description here }}

## PARAMETERS

### -Confirm
Prompts you for confirmation before running the cmdlet.

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

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id
{{ Fill Id Description }}

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

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -OutDir
{{ Fill OutDir Description }}

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

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.

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

Required: False
Position: Named
Default value: None
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

### None

## OUTPUTS

### System.Object
## NOTES

## RELATED LINKS
134 changes: 134 additions & 0 deletions Docs/Set-HuduPublicPhoto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
---
external help file: HuduAPI-help.xml
Module Name: HuduAPI
online version:
schema: 2.0.0
---

# Set-HuduPublicPhoto

## SYNOPSIS
Update the associated record type and ID for a specific public photo.

## SYNTAX

```
Set-HuduPublicPhoto [-id] <Object> [-RecordId] <Int32> [-RecordType] <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Reassociate a public photo object.
Backward Compatibility: This endpoint still accepts numeric IDs in the path parameter for existing integrations, but responses will include the new slug-based ID format.

## EXAMPLES

### EXAMPLE 1
```
Set-HuduPublicPhoto -id 123 -RecordId 1 -RecordType 'asset'
Set-HuduPublicPhoto -id 432 -RecordId 7 -RecordType 'article'
```

## PARAMETERS

### -id
The id of the public photo to update

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

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -RecordId
Record id to associate with the photo

```yaml
Type: Int32
Parameter Sets: (All)
Aliases: record_id

Required: True
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -RecordType
Record type to associate with the photo

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

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.

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

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Confirm
Prompts you for confirmation before running the cmdlet.

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

Required: False
Position: Named
Default value: None
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
5 changes: 4 additions & 1 deletion HuduAPI/HuduAPI.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
'Get-HuduCompanyFolders',
'Get-HuduFolderCleanName',
'Get-HuduExpirations',
'Get-HuduExports',
'Get-HuduFolderMap',
'Get-HuduFolders',
'Get-HuduGroups',
Expand Down Expand Up @@ -161,6 +162,7 @@
'Remove-HuduVLAN',
'Remove-HuduVLANZone',
'Remove-HuduWebsite',
'Save-HuduExports',
'Set-HuduArticle',
'Set-HuduArticleArchive',
'Set-HuduAsset',
Expand All @@ -180,6 +182,7 @@
'Set-HuduPassword',
'Set-HuduPasswordFolder',
'Set-HuduPasswordArchive',
'Set-HuduPublicPhoto',
'Set-HuduVLAN',
'Set-HuduVLANZone',
'Set-HuduRackStorageItem',
Expand Down Expand Up @@ -244,4 +247,4 @@
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}
}
11 changes: 11 additions & 0 deletions HuduAPI/Public/Get-HuduExports.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function Get-HuduExports {
[CmdletBinding()]
param(
[int]$id
)
if ($null -ne $id -and $id -ge 1){
Invoke-HuduRequest -Method 'GET' -Resource "/api/v1/exports/$id"
} else {
Invoke-HuduRequest -Method 'GET' -Resource '/api/v1/exports'
}
}
Loading