-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
146 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# Search-TppHistory | ||
|
||
## SYNOPSIS | ||
Search TPP history for items with specific attributes | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Search-TppHistory [[-Path] <String>] [-Attribute] <Hashtable> [[-VenafiSession] <PSObject>] | ||
[<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Items in the secret store matching the key/value provided will be found and their details returned with their associated 'current' item. | ||
As this function may return details on many items, optional parallel processing has been implemented. | ||
Be sure to use PowerShell Core, v7 or greater, to take advantage. | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
``` | ||
Search-TppHistory -Attribute @{'ValidTo' = (Get-Date)} | ||
Find historical items that are still active | ||
``` | ||
|
||
### EXAMPLE 2 | ||
``` | ||
Search-TppHistory -Attribute @{'ValidTo' = (Get-Date)} -Path '\ved\policy\certs' | ||
Find historical items that are still active and the current item starts with a specific path | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
### -Path | ||
Starting path to associated current items to limit the search. | ||
The default is \VED\Policy. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: 1 | ||
Default value: \VED\Policy | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Attribute | ||
Name and value to search. | ||
See https://docs.venafi.com/Docs/current/TopNav/Content/SDK/WebSDK/r-SDK-POST-Secretstore-lookupbyassociation.php for more details. | ||
Note, ValidFrom will perform a greater than or equal comparison and ValidTo will perform a less than or equal comparison. | ||
Currently, one 1 name/value pair can be used. | ||
```yaml | ||
Type: Hashtable | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 2 | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -VenafiSession | ||
Authentication for the function. | ||
The value defaults to the script session object $VenafiSession created by New-VenafiSession. | ||
A TPP token or VaaS key can also provided. | ||
If providing a TPP token, an environment variable named TppServer must also be set. | ||
```yaml | ||
Type: PSObject | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: 3 | ||
Default value: $script:VenafiSession | ||
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 | ||
### PSCustomObject with the following properties: | ||
### Name | ||
### TypeName | ||
### Path | ||
### History | ||
## NOTES | ||
## RELATED LINKS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters