Skip to content

Commit

Permalink
Update manifest and docs to 3.1.0 ***NO_CI***
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarron committed Jun 24, 2021
1 parent 1ff8b12 commit e7d0454
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 60 deletions.
4 changes: 2 additions & 2 deletions VenafiPS/VenafiPS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Greg Brownstein
#
# Generated on: 6/14/2021
# Generated on: 6/24/2021
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'VenafiPS.psm1'

# Version number of this module.
ModuleVersion = '3.1'
ModuleVersion = '3.1.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 3.1.0
- Add `-CountOnly` to `Find-TppCertificate` to return the number of certificates found based on the filters provided, [#12](https://github.com/gdbarron/VenafiPS/issues/12)
- Move from `Invoke-RestMethod` to `Invoke-WebRequest` in `Invoke-VenafiRestMethod` so we get response headers, to be used with `-CountOnly` above. `Invoke-VenafiRestMethod` has a new parameter, `-FullResponse`, to retrieve the complete response, not just content value.
- Add `New-HttpQueryString` private function to support HEAD api calls which require a query string and not body.
- Fix `Test-TppIdentityFormat` which was failing when the identity guid was surrounded with curly braces
- Replace `-Limit` parameter and standardize on `-First`

## 3.0.3
- Fix [#10](https://github.com/gdbarron/VenafiPS/issues/10), Get-VenafiCertificate not recognizing session.

Expand Down
75 changes: 30 additions & 45 deletions docs/functions/Find-TppCertificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Find certificates based on various attributes

### NoPath (Default)
```
Find-TppCertificate [-Limit <Int32>] [-Offset <Int32>] [-Country <String>] [-CommonName <String>]
Find-TppCertificate [-First <Int32>] [-Offset <Int32>] [-Country <String>] [-CommonName <String>]
[-Issuer <String>] [-KeyAlgorithm <String[]>] [-KeySize <Int32[]>] [-KeySizeGreaterThan <Int32>]
[-KeySizeLessThan <Int32>] [-Locale <String[]>] [-Organization <String[]>] [-OrganizationUnit <String[]>]
[-State <String[]>] [-SanDns <String>] [-SanEmail <String>] [-SanIP <String>] [-SanUpn <String>]
Expand All @@ -16,28 +16,13 @@ Find-TppCertificate [-Limit <Int32>] [-Offset <Int32>] [-Country <String>] [-Com
[-Enabled] [-InError <Boolean>] [-NetworkValidationEnabled <Boolean>] [-CreatedDate <DateTime>]
[-CreatedAfter <DateTime>] [-CreatedBefore <DateTime>] [-ManagementType <TppManagementType[]>]
[-PendingWorkflow] [-Stage <TppCertificateStage[]>] [-StageGreaterThan <TppCertificateStage>]
[-StageLessThan <TppCertificateStage>] [-ValidationEnabled] [-ValidationState <String[]>]
[-StageLessThan <TppCertificateStage>] [-ValidationEnabled] [-ValidationState <String[]>] [-CountOnly]
[-VenafiSession <VenafiSession>] [<CommonParameters>]
```

### ByObject
```
Find-TppCertificate -InputObject <TppObject> [-Recursive] [-Limit <Int32>] [-Offset <Int32>]
[-Country <String>] [-CommonName <String>] [-Issuer <String>] [-KeyAlgorithm <String[]>] [-KeySize <Int32[]>]
[-KeySizeGreaterThan <Int32>] [-KeySizeLessThan <Int32>] [-Locale <String[]>] [-Organization <String[]>]
[-OrganizationUnit <String[]>] [-State <String[]>] [-SanDns <String>] [-SanEmail <String>] [-SanIP <String>]
[-SanUpn <String>] [-SanUri <String>] [-SerialNumber <String>] [-SignatureAlgorithm <String>]
[-Thumbprint <String>] [-IssueDate <DateTime>] [-ExpireDate <DateTime>] [-ExpireAfter <DateTime>]
[-ExpireBefore <DateTime>] [-Enabled] [-InError <Boolean>] [-NetworkValidationEnabled <Boolean>]
[-CreatedDate <DateTime>] [-CreatedAfter <DateTime>] [-CreatedBefore <DateTime>]
[-ManagementType <TppManagementType[]>] [-PendingWorkflow] [-Stage <TppCertificateStage[]>]
[-StageGreaterThan <TppCertificateStage>] [-StageLessThan <TppCertificateStage>] [-ValidationEnabled]
[-ValidationState <String[]>] [-VenafiSession <VenafiSession>] [<CommonParameters>]
```

### ByPath
```
Find-TppCertificate -Path <String> [-Recursive] [-Limit <Int32>] [-Offset <Int32>] [-Country <String>]
Find-TppCertificate -Path <String> [-Recursive] [-First <Int32>] [-Offset <Int32>] [-Country <String>]
[-CommonName <String>] [-Issuer <String>] [-KeyAlgorithm <String[]>] [-KeySize <Int32[]>]
[-KeySizeGreaterThan <Int32>] [-KeySizeLessThan <Int32>] [-Locale <String[]>] [-Organization <String[]>]
[-OrganizationUnit <String[]>] [-State <String[]>] [-SanDns <String>] [-SanEmail <String>] [-SanIP <String>]
Expand All @@ -47,12 +32,12 @@ Find-TppCertificate -Path <String> [-Recursive] [-Limit <Int32>] [-Offset <Int32
[-CreatedDate <DateTime>] [-CreatedAfter <DateTime>] [-CreatedBefore <DateTime>]
[-ManagementType <TppManagementType[]>] [-PendingWorkflow] [-Stage <TppCertificateStage[]>]
[-StageGreaterThan <TppCertificateStage>] [-StageLessThan <TppCertificateStage>] [-ValidationEnabled]
[-ValidationState <String[]>] [-VenafiSession <VenafiSession>] [<CommonParameters>]
[-ValidationState <String[]>] [-CountOnly] [-VenafiSession <VenafiSession>] [<CommonParameters>]
```

### ByGuid
```
Find-TppCertificate -Guid <Guid> [-Recursive] [-Limit <Int32>] [-Offset <Int32>] [-Country <String>]
Find-TppCertificate -Guid <Guid> [-Recursive] [-First <Int32>] [-Offset <Int32>] [-Country <String>]
[-CommonName <String>] [-Issuer <String>] [-KeyAlgorithm <String[]>] [-KeySize <Int32[]>]
[-KeySizeGreaterThan <Int32>] [-KeySizeLessThan <Int32>] [-Locale <String[]>] [-Organization <String[]>]
[-OrganizationUnit <String[]>] [-State <String[]>] [-SanDns <String>] [-SanEmail <String>] [-SanIP <String>]
Expand All @@ -62,7 +47,7 @@ Find-TppCertificate -Guid <Guid> [-Recursive] [-Limit <Int32>] [-Offset <Int32>]
[-CreatedDate <DateTime>] [-CreatedAfter <DateTime>] [-CreatedBefore <DateTime>]
[-ManagementType <TppManagementType[]>] [-PendingWorkflow] [-Stage <TppCertificateStage[]>]
[-StageGreaterThan <TppCertificateStage>] [-StageLessThan <TppCertificateStage>] [-ValidationEnabled]
[-ValidationState <String[]>] [-VenafiSession <VenafiSession>] [<CommonParameters>]
[-ValidationState <String[]>] [-CountOnly] [-VenafiSession <VenafiSession>] [<CommonParameters>]
```

## DESCRIPTION
Expand All @@ -79,14 +64,14 @@ Find all certificates expiring before a certain date

### EXAMPLE 2
```
Find-TppCertificate -ExpireBefore "2018-01-01" -Limit 5
Find-TppCertificate -ExpireBefore "2018-01-01" -First 5
```

Find 5 certificates expiring before a certain date

### EXAMPLE 3
```
Find-TppCertificate -ExpireBefore "2018-01-01" -Limit 5 -Offset 2
Find-TppCertificate -ExpireBefore "2018-01-01" -First 5 -Offset 2
```

Find 5 certificates expiring before a certain date, starting at the 3rd certificate found.
Expand Down Expand Up @@ -114,7 +99,7 @@ Find all certificates in a specific path and all subfolders

### EXAMPLE 7
```
Find-TppCertificate -ExpireBefore "2018-01-01" -Limit 5 | Get-TppCertificateDetail
Find-TppCertificate -ExpireBefore "2018-01-01" -First 5 | Get-TppCertificateDetail
```

Get detailed certificate info on the first 5 certificates expiring before a certain date
Expand All @@ -128,21 +113,6 @@ Renew all certificates expiring before a certain date

## PARAMETERS

### -InputObject
TppObject of type 'Policy' which represents a starting path

```yaml
Type: TppObject
Parameter Sets: ByObject
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
### -Path
Starting path to search from

Expand All @@ -154,7 +124,7 @@ Aliases: DN
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
```
Expand All @@ -178,7 +148,7 @@ Search recursively starting from the search path.
```yaml
Type: SwitchParameter
Parameter Sets: ByObject, ByPath, ByGuid
Parameter Sets: ByPath, ByGuid
Aliases:

Required: False
Expand All @@ -188,15 +158,15 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -Limit
### -First
Limit how many items are returned.
Default is 0 for no limit.
It is definitely recommended to filter on another property when searching with no limit.
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Aliases: Limit

Required: False
Position: Named
Expand Down Expand Up @@ -766,6 +736,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -CountOnly
Return the count of certificates found from the query as opposed to the certificates themselves
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -VenafiSession
Session object created from New-VenafiSession method.
The value defaults to the script session object $VenafiSession.
Expand All @@ -787,10 +772,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### InputObject, Path, Guid
### Path, Guid
## OUTPUTS
### TppObject
### TppObject, Int when CountOnly provided
## NOTES
## RELATED LINKS
Expand Down
8 changes: 4 additions & 4 deletions docs/functions/Find-TppIdentity.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Search for identity details

### Find (Default)
```
Find-TppIdentity -Name <String[]> [-Limit <Int32>] [-IncludeUsers] [-IncludeSecurityGroups]
Find-TppIdentity -Name <String[]> [-First <Int32>] [-IncludeUsers] [-IncludeSecurityGroups]
[-IncludeDistributionGroups] [-VenafiSession <VenafiSession>] [<CommonParameters>]
```

Expand Down Expand Up @@ -53,13 +53,13 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
### -Limit
Limit how many items are returned, the default is 500, but is limited by the provider.
### -First
First how many items are returned, the default is 500, but is limited by the provider.
```yaml
Type: Int32
Parameter Sets: Find
Aliases:
Aliases: Limit

Required: False
Position: Named
Expand Down
19 changes: 17 additions & 2 deletions docs/functions/Invoke-VenafiRestMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Generic REST API call
### Session (Default)
```
Invoke-VenafiRestMethod -VenafiSession <VenafiSession> [-Method <String>] [-UriRoot <String>] -UriLeaf <String>
[-Header <Hashtable>] [-Body <Hashtable>] [<CommonParameters>]
[-Header <Hashtable>] [-Body <Hashtable>] [-FullResponse] [<CommonParameters>]
```

### URL
```
Invoke-VenafiRestMethod -ServerUrl <String> [-UseDefaultCredentials] [-Method <String>] [-UriRoot <String>]
-UriLeaf <String> [-Header <Hashtable>] [-Body <Hashtable>] [<CommonParameters>]
-UriLeaf <String> [-Header <Hashtable>] [-Body <Hashtable>] [-FullResponse] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -153,6 +153,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -FullResponse
{{ Fill FullResponse 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
12 changes: 6 additions & 6 deletions docs/functions/Read-TppLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ Read entries from the TPP log
### Default (Default)
```
Read-TppLog [-Severity <TppEventSeverity>] [-StartTime <DateTime>] [-EndTime <DateTime>] [-Text1 <String>]
[-Text2 <String>] [-Value1 <Int32>] [-Value2 <Int32>] [-Limit <Int32>] [-VenafiSession <VenafiSession>]
[-Text2 <String>] [-Value1 <Int32>] [-Value2 <Int32>] [-First <Int32>] [-VenafiSession <VenafiSession>]
[<CommonParameters>]
```

### ByObject
```
Read-TppLog -InputObject <TppObject> [-Severity <TppEventSeverity>] [-StartTime <DateTime>]
[-EndTime <DateTime>] [-Text1 <String>] [-Text2 <String>] [-Value1 <Int32>] [-Value2 <Int32>] [-Limit <Int32>]
[-EndTime <DateTime>] [-Text1 <String>] [-Text2 <String>] [-Value1 <Int32>] [-Value2 <Int32>] [-First <Int32>]
[-VenafiSession <VenafiSession>] [<CommonParameters>]
```

### ByPath
```
Read-TppLog -Path <String> [-Severity <TppEventSeverity>] [-StartTime <DateTime>] [-EndTime <DateTime>]
[-Text1 <String>] [-Text2 <String>] [-Value1 <Int32>] [-Value2 <Int32>] [-Limit <Int32>]
[-Text1 <String>] [-Text2 <String>] [-Value1 <Int32>] [-Value2 <Int32>] [-First <Int32>]
[-VenafiSession <VenafiSession>] [<CommonParameters>]
```

Expand All @@ -33,7 +33,7 @@ Read entries from the TPP log

### EXAMPLE 1
```
Read-TppLog -Limit 10
Read-TppLog -First 10
```

Get the most recent 10 log items
Expand Down Expand Up @@ -183,14 +183,14 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -Limit
### -First
Specify the number of items to retrieve, starting with most recent.
The default is 100 and there is no maximum.
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Aliases: Limit

Required: False
Position: Named
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/Set-TppPermission.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Permission a user/group on an object specified by path

### EXAMPLE 3
```
$id = Find-TppIdentity -Name 'brownstein' | Select-Object -ExpandProperty IdentityId
$id = Find-TppIdentity -Name 'brownstein' | Select-Object -ExpandProperty Id
```

Find-TppObject -Path '\VED' -Recursive | Get-TppPermission -IdentityId $id | Set-TppPermission -Permission $TppPermObject -Force
Expand Down

0 comments on commit e7d0454

Please sign in to comment.