-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #633 from TheJumpCloud/CUT-3883_NewJCReports
CUT-3883/CUT-3884: JCReport Functions
- Loading branch information
Showing
13 changed files
with
953 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
--- | ||
external help file: JumpCloud-help.xml | ||
Module Name: JumpCloud | ||
online version: https://github.com/TheJumpCloud/support/wiki/ | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Get-JCReport | ||
|
||
## SYNOPSIS | ||
Ordered list of report metadata | ||
|
||
## SYNTAX | ||
|
||
### List (Default) | ||
``` | ||
Get-JCReport [-Sort <Sort>] [<CommonParameters>] | ||
``` | ||
|
||
### Report | ||
``` | ||
Get-JCReport [-Sort <Sort>] -ReportID <String> -Type <String> | ||
[<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Ordered list of report metadata | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
``` | ||
Get-JCReport | ||
``` | ||
|
||
Returns a list of all available reports | ||
|
||
### EXAMPLE 2 | ||
``` | ||
Get-JCReport -Sort 'CREATED_AT' | ||
``` | ||
|
||
Returns a list of all available reports, sorted by the most recently created report | ||
|
||
### EXAMPLE 3 | ||
``` | ||
$lastReport = Get-JCReport -Sort 'CREATED_AT' | Select -First 1 | ||
$reportContent = Get-JCReport -reportID $lastReport.id -type 'json' | ||
``` | ||
|
||
Returns the report's content in JSON format from the last generated report | ||
|
||
### EXAMPLE 4 | ||
``` | ||
$lastReport = Get-JCReport -Sort 'CREATED_AT' | Select -First 1 | ||
$reportContent = Get-JCReport -reportID $lastReport.id -type 'csv' | ||
``` | ||
|
||
Returns the report's content in CSV format from the last generated report | ||
|
||
## PARAMETERS | ||
|
||
### -ReportID | ||
ID of the Report request. | ||
|
||
```yaml | ||
Type: System.String | ||
Parameter Sets: Report | ||
Aliases: id | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
### -Sort | ||
Sort type and direction. | ||
Default sort is descending, prefix with - to sort ascending. | ||
```yaml | ||
Type: JumpCloud.SDK.DirectoryInsights.Support.Sort | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Type | ||
Output type of the report content, either CSV or JSON | ||
```yaml | ||
Type: System.String | ||
Parameter Sets: Report | ||
Aliases: | ||
|
||
Required: True | ||
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 | ||
### JumpCloud.SDK.DirectoryInsights.Models.IGet200ApplicationJsonItemsItem | ||
## NOTES | ||
## RELATED LINKS | ||
[https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/JumpCloud.SDK.DirectoryInsights/docs/exports/Get-JcSdkReport.md](https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/JumpCloud.SDK.DirectoryInsights/docs/exports/Get-JcSdkReport.md) |
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,130 @@ | ||
--- | ||
external help file: JumpCloud-help.xml | ||
Module Name: JumpCloud | ||
online version: https://github.com/TheJumpCloud/support/wiki/ | ||
schema: 2.0.0 | ||
--- | ||
|
||
# New-JCReport | ||
|
||
## SYNOPSIS | ||
Request a JumpCloud report to be generated asynchronously | ||
|
||
## SYNTAX | ||
|
||
### Create (Default) | ||
``` | ||
New-JCReport -ReportType <ReportType1> [-WhatIf] [-Confirm] | ||
[<CommonParameters>] | ||
``` | ||
|
||
### CreateViaIdentity | ||
``` | ||
New-JCReport -InputObject <IDirectoryInsightsApiIdentity> [-WhatIf] | ||
[-Confirm] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Request a JumpCloud report to be generated asynchronously | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
``` | ||
New-JCReport -ReportType 'users-to-sso-applications' | ||
``` | ||
|
||
Queues creation of an user-to-sso-application report | ||
|
||
### EXAMPLE 2 | ||
``` | ||
New-JCReport -ReportType 'users-to-devices' | ||
``` | ||
|
||
Queues creation of an users-to-devices report | ||
|
||
## PARAMETERS | ||
|
||
### -InputObject | ||
Identity Parameter | ||
To construct, see NOTES section for INPUTOBJECT properties and create a hash table. | ||
|
||
```yaml | ||
Type: JumpCloud.SDK.DirectoryInsights.Models.IDirectoryInsightsApiIdentity | ||
Parameter Sets: CreateViaIdentity | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True (ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
### -ReportType | ||
Report Type | ||
```yaml | ||
Type: JumpCloud.SDK.DirectoryInsights.Support.ReportType1 | ||
Parameter Sets: Create | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Confirm | ||
Prompts you for confirmation before running the cmdlet. | ||
```yaml | ||
Type: System.Management.Automation.SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: cf | ||
|
||
Required: False | ||
Position: Named | ||
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: System.Management.Automation.SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: wi | ||
|
||
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 | ||
### JumpCloud.SDK.DirectoryInsights.Models.IDirectoryInsightsApiIdentity | ||
## OUTPUTS | ||
### JumpCloud.SDK.DirectoryInsights.Models.IPathsE6Q3GdReportsReportTypePostResponses202ContentApplicationJsonSchema | ||
## NOTES | ||
COMPLEX PARAMETER PROPERTIES | ||
To create the parameters described below, construct a hash table containing the appropriate properties. | ||
For information on hash tables, run Get-Help about_Hash_Tables. | ||
INPUTOBJECT \<IDirectoryInsightsApiIdentity\>: Identity Parameter | ||
\[ReportType \<ReportType1?\>\]: Report Type | ||
## RELATED LINKS | ||
[https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/JumpCloud.SDK.DirectoryInsights/docs/exports/New-JcSdkReport.md](https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/JumpCloud.SDK.DirectoryInsights/docs/exports/New-JcSdkReport.md) |
Oops, something went wrong.