Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sa 3118 get jc system app #463

Merged
merged 119 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
9b48e5a
Init commit Get-JCSystemApp
kmaranionjc Jan 12, 2023
cfc6384
cleanup
kmaranionjc Jan 12, 2023
abb6739
softwarename
kmaranionjc Jan 12, 2023
63e8258
first pass at Get-JCsystemApp tests
jworkmanjc Jan 13, 2023
a9047ab
Added search by OS
kmaranionjc Jan 13, 2023
252a5f4
Added $search parameter
kmaranionjc Jan 17, 2023
1a42c14
version
kmaranionjc Jan 18, 2023
fd87030
ssh key change r/w
jworkmanjc Jan 18, 2023
2a7d3e9
support ssh key
jworkmanjc Jan 18, 2023
7f3cf2e
ssh key
jworkmanjc Jan 18, 2023
0893c80
ssh key
jworkmanjc Jan 18, 2023
6cbbb2e
ssh key
jworkmanjc Jan 18, 2023
5c61716
Updating PowerShell Module;[skip ci]
Jan 18, 2023
80b000a
ModuleChangelog and docs
kmaranionjc Jan 19, 2023
04e66dd
Updating PowerShell Module;[skip ci]
Jan 19, 2023
6aaf43c
Updating PowerShell Module;[skip ci]
Jan 19, 2023
c3c01da
search
kmaranionjc Jan 23, 2023
948fab2
Updating PowerShell Module;[skip ci]
Jan 23, 2023
ede019b
fixed search
kmaranionjc Jan 23, 2023
354309a
Updating PowerShell Module;[skip ci]
Jan 23, 2023
962821b
fix object error
kmaranionjc Jan 23, 2023
cfc9404
Merge branch 'SA-3067-Get-JCSystemApp' of https://github.com/TheJumpC…
kmaranionjc Jan 23, 2023
85056b2
Updating PowerShell Module;[skip ci]
Jan 23, 2023
33c6671
Updating PowerShell Module;[skip ci]
Jan 23, 2023
0d66650
additional search + compatibility tests
jworkmanjc Jan 24, 2023
0b2937a
export to csv tests
jworkmanjc Jan 24, 2023
2229128
added tests, cleanup
kmaranionjc Jan 26, 2023
b5c504b
cleanup, added tests
kmaranionjc Jan 26, 2023
a76c403
Merge branch 'SA-3067-Get-JCSystemApp' of https://github.com/TheJumpC…
kmaranionjc Jan 26, 2023
efc864b
Updating PowerShell Module;[skip ci]
Jan 26, 2023
2e17cb4
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
kmaranionjc Jan 26, 2023
90af600
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
kmaranionjc Jan 26, 2023
fe0be2f
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
kmaranionjc Jan 26, 2023
03a9395
Update PowerShell/JumpCloud Module/Public/Systems/Get-JCSystemApp.ps1
kmaranionjc Jan 26, 2023
10595aa
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
kmaranionjc Jan 26, 2023
f09d2c0
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
kmaranionjc Jan 26, 2023
f0e5cb0
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
kmaranionjc Jan 26, 2023
a085d06
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
kmaranionjc Jan 26, 2023
b0d8306
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
kmaranionjc Jan 26, 2023
ce99735
Updating PowerShell Module;[skip ci]
Jan 26, 2023
c16686f
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
kmaranionjc Jan 26, 2023
84763e8
cleanup
kmaranionjc Jan 26, 2023
580af04
Updating PowerShell Module;[skip ci]
Jan 26, 2023
9ab53e0
MacOs bundle_name replace with name filter
kmaranionjc Jan 26, 2023
2d2ad2e
Merge branch 'SA-3067-Get-JCSystemApp' of https://github.com/TheJumpC…
kmaranionjc Jan 26, 2023
cf5c021
docs
kmaranionjc Jan 26, 2023
6b7eb1e
Updating PowerShell Module;[skip ci]
Jan 26, 2023
e6fce4b
tests .app/.App [skip ci]
jworkmanjc Jan 26, 2023
a04dcfa
Merge branch 'SA-3067-Get-JCSystemApp' of github.com:TheJumpCloud/sup…
jworkmanjc Jan 26, 2023
d17986d
Updating PowerShell Module;[skip ci]
Jan 26, 2023
871973b
macOs softwarename fix
kmaranionjc Jan 26, 2023
3894845
Merge branch 'SA-3067-Get-JCSystemApp' of https://github.com/TheJumpC…
kmaranionjc Jan 26, 2023
d8ac8d8
Updating PowerShell Module;[skip ci]
Jan 26, 2023
a27cf70
comments
kmaranionjc Jan 27, 2023
6f2b843
Updating PowerShell Module;[skip ci]
Jan 27, 2023
e4e34f3
docs
kmaranionjc Jan 27, 2023
3c555a0
Updating PowerShell Module;[skip ci]
Jan 27, 2023
1307143
fixed errors
kmaranionjc Jan 27, 2023
47664e0
Merge branch 'SA-3067-Get-JCSystemApp' of https://github.com/TheJumpC…
kmaranionjc Jan 27, 2023
5f467c2
Updating PowerShell Module;[skip ci]
Jan 27, 2023
2daa874
test fix
kmaranionjc Jan 30, 2023
f95631b
Merge branch 'SA-3067-Get-JCSystemApp' of https://github.com/TheJumpC…
kmaranionjc Jan 30, 2023
c5d2bfd
Updating PowerShell Module;[skip ci]
Jan 30, 2023
329fc5f
fixed tests
kmaranionjc Jan 30, 2023
c318a6a
Merge branch 'SA-3067-Get-JCSystemApp' of https://github.com/TheJumpC…
kmaranionjc Jan 30, 2023
12f34a9
Updating PowerShell Module;[skip ci]
Jan 30, 2023
4908610
Updating PowerShell Module;[skip ci]
Jan 30, 2023
98e6cad
Update PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md [skip ci]
kmaranionjc Jan 30, 2023
3eca3db
Update PowerShell/JumpCloud Module/Public/Systems/Get-JCSystemApp.ps1…
kmaranionjc Jan 30, 2023
22c7783
Update PowerShell/JumpCloud Module/Public/Systems/Get-JCSystemApp.ps1…
kmaranionjc Jan 30, 2023
4c5e16c
Update PowerShell/JumpCloud Module/Public/Systems/Get-JCSystemApp.ps1…
kmaranionjc Jan 30, 2023
9c4e16d
pr changes
kmaranionjc Jan 30, 2023
076049b
Merge branch 'SA-3067-Get-JCSystemApp' of https://github.com/TheJumpC…
kmaranionjc Jan 30, 2023
37e657a
Updating PowerShell Module;[skip ci]
Jan 30, 2023
ba7a778
Merge pull request #459 from TheJumpCloud/SA-3067-Get-JCSystemApp
kmaranionjc Jan 30, 2023
cbdcfa5
Replaced IWR to SDK
kmaranionjc Jan 31, 2023
42b23a5
Replaced IWR to SDK
kmaranionjc Jan 31, 2023
61a6846
Revert "Replaced IWR to SDK"
kmaranionjc Jan 31, 2023
27b29d5
added some parallel or efficiency improvements
kmaranionjc Feb 1, 2023
ec977f9
additional test cases (skipped for now)
jworkmanjc Feb 2, 2023
8f27bda
Added tests that included windows and linux
kmaranionjc Feb 2, 2023
b80117a
cleanup
kmaranionjc Feb 2, 2023
425619c
Updating PowerShell Module;[skip ci]
Feb 2, 2023
011a821
Merge branch 'SA-3139-replace_iwr_with_sdk' of github.com:TheJumpClou…
jworkmanjc Feb 2, 2023
0a9000c
Updating PowerShell Module;[skip ci]
Feb 2, 2023
a651b05
should not throw tests
jworkmanjc Feb 3, 2023
2f68de2
break up tests by os & skip [ skip ci ]
jworkmanjc Feb 3, 2023
e3dcd1c
check if range is null, update tests [skip ci]
jworkmanjc Feb 3, 2023
9f99f9a
JCSystemApp Tests (skip windows/ linux for now)
jworkmanjc Feb 3, 2023
90d9860
Updating PowerShell Module;[skip ci]
Feb 3, 2023
a9027f4
Updating PowerShell Module;[skip ci]
Feb 3, 2023
45c71ce
last set of skips
jworkmanjc Feb 3, 2023
3ac084e
Merge branch 'SA-3139-replace_iwr_with_sdk' of github.com:TheJumpClou…
jworkmanjc Feb 3, 2023
bf400da
Updating PowerShell Module;[skip ci]
Feb 3, 2023
8f429de
re-run all tests
jworkmanjc Feb 3, 2023
be31143
Merge branch 'SA-3139-replace_iwr_with_sdk' of github.com:TheJumpClou…
jworkmanjc Feb 3, 2023
123c7a8
Updating PowerShell Module;[skip ci]
Feb 3, 2023
a5d5862
Update PowerShell/JumpCloud Module/Public/Systems/Get-JCSystemApp.ps1…
kmaranionjc Feb 3, 2023
8398d32
pr changes
kmaranionjc Feb 6, 2023
b00eff0
Updating PowerShell Module;[skip ci]
Feb 6, 2023
e0f88b6
updated the tests
kmaranionjc Feb 6, 2023
5afb1ec
Updating PowerShell Module;[skip ci]
Feb 6, 2023
782faca
fixed get-jcsdksystem
kmaranionjc Feb 6, 2023
a338b0f
Merge branch 'SA-3139-replace_iwr_with_sdk' of https://github.com/The…
kmaranionjc Feb 6, 2023
912cabd
Updating PowerShell Module;[skip ci]
Feb 6, 2023
c13286c
fix tests
kmaranionjc Feb 6, 2023
2353138
Merge branch 'SA-3139-replace_iwr_with_sdk' of https://github.com/The…
kmaranionjc Feb 6, 2023
7267db0
Updating PowerShell Module;[skip ci]
Feb 6, 2023
90ed85e
Merge pull request #462 from TheJumpCloud/SA-3139-replace_iwr_with_sdk
kmaranionjc Feb 6, 2023
fb87ccf
flip publish
kmaranionjc Feb 6, 2023
457405f
Updating PowerShell Module;[skip ci]
Feb 6, 2023
3897172
Test draft release/ update documentation
jworkmanjc Feb 7, 2023
dadab82
Updating PowerShell Module;[skip ci]
Feb 7, 2023
91812e0
remove test draft release step from CI jobs
jworkmanjc Feb 7, 2023
2d74261
name and version logic and added test
kmaranionjc Feb 7, 2023
e8e6f9b
Updating PowerShell Module;[skip ci]
Feb 7, 2023
488cf5e
modulechangelog [skip ci]
kmaranionjc Feb 7, 2023
f409e92
Merge branch 'SA-3118_Get_JCSystemApp' of https://github.com/TheJumpC…
kmaranionjc Feb 7, 2023
93c5cdb
Updating PowerShell Module;[skip ci]
Feb 7, 2023
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
20 changes: 11 additions & 9 deletions .circleci/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ parameters:
description: "Release Type. Accepted values [ Major, Minor, Patch ]"
type: enum
enum: ["Major", "Minor", "Patch"]
default: "Patch"
default: "Minor"
RequiredModulesRepo:
description: "PowerShell Repository for JumpCloud SDKs"
type: enum
Expand All @@ -49,7 +49,7 @@ parameters:
PublishToPSGallery:
description: "When `true` and when run against Master branch, this workflow will publish the latest code to PSGallery"
type: boolean
default: false
default: true
ManualModuleVersion:
description: "When `true` the pipeline will use the Module Version specified in JumpCloud Module JumpCloud.psd1 file"
type: boolean
Expand Down Expand Up @@ -101,18 +101,18 @@ workflows:
- Initial Setup
- Build Modules
context: aws-credentials
- Module Validation Tests:
- Invoke Git Commit:
requires:
- Initial Setup
- Build Help and Test Files
- Build Nuspec
- Invoke Git Commit
context: aws-credentials
- Invoke Git Commit:
- Module Validation Tests:
requires:
- Initial Setup
- Build Help and Test Files
- Build Nuspec
- Invoke Git Commit
context: aws-credentials
- Pester Tests Windows:
requires:
- Initial Setup
Expand Down Expand Up @@ -149,6 +149,7 @@ workflows:
jobs:
- Prepare for release
- draft-github-release:
context: github-credentials-sa-releases
requires:
- Prepare for release
- Approve Module:
Expand Down Expand Up @@ -310,7 +311,7 @@ commands:
steps:
- add_ssh_keys:
fingerprints:
- "89:e7:20:1b:b1:a2:c2:2e:b8:d6:34:2f:73:80:a6:70"
- "c9:0f:56:c9:00:42:98:3c:03:59:24:1e:a7:e7:08:7f"
- checkout
- run:
name: Set URLs
Expand Down Expand Up @@ -413,7 +414,7 @@ commands:
- checkout
- add_ssh_keys:
fingerprints:
- "89:e7:20:1b:b1:a2:c2:2e:b8:d6:34:2f:73:80:a6:70"
- "c9:0f:56:c9:00:42:98:3c:03:59:24:1e:a7:e7:08:7f"
- attach_workspace:
at: .
- run:
Expand All @@ -427,7 +428,7 @@ commands:
- checkout
- add_ssh_keys:
fingerprints:
- "89:e7:20:1b:b1:a2:c2:2e:b8:d6:34:2f:73:80:a6:70"
- "c9:0f:56:c9:00:42:98:3c:03:59:24:1e:a7:e7:08:7f"
- attach_workspace:
at: .
- run:
Expand Down Expand Up @@ -607,3 +608,4 @@ commands:
root: .
paths:
- .
# VS Code Extension Version: 1.5.1
170 changes: 170 additions & 0 deletions PowerShell/JumpCloud Module/Docs/Get-JCSystemApp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
---
external help file: JumpCloud-help.xml
Module Name: JumpCloud
online version: https://github.com/TheJumpCloud/support/wiki/
schema: 2.0.0
---

# Get-JCSystemApp

## SYNOPSIS

Returns the applications/programs/linux packages installed on JumpCloud managed system(s). This function queries separate system insights tables to get data for macOS/windows/linux devices.

## SYNTAX

### All (Default)
```
Get-JCSystemApp [-SystemID <String>] [-SystemOS <String>] [-name <String>] [-version <String>]
[<CommonParameters>]
```

### Search
```
Get-JCSystemApp [-SystemID <String>] [-SystemOS <String>] [-name <String>] [-version <String>] [-Search]
[<CommonParameters>]
```

## DESCRIPTION

Get-JCSystem app function helps admins identify what applications/programs or linux packages exist on their JumpCloud managed systems.

## EXAMPLES

### Example 1

```powershell
PS C:\> Get-JCSystemApp -SystemId '6363237ec991136ae59892e4'
```

Returns the applications installed in the system with the given -SystemId

### Example 2

```powershell
PS C:\> Get-JCSystemApp -SystemOs 'macOS'
```

Returns the 'macOS' systems and all the applications installed for each system

### Example 3

```powershell
PS C:\> Get-JCSystemApp -SystemOs 'macOS' -Name 'Jumpcloud'
```

### Example 4

```powershell
PS C:\> Get-JCSystemApp -SystemOs 'macOS' -Name 'Jumpcloud' -Version 'v1.16.2'
```

Returns the 'macOS' systems that have a 'Jumpcloud' tray application with the version 'v1.16.2'

### Example 5

```powershell
PS C:\> Get-JCSystemApp -Name 'jumpcloud' -Search
```

Returns any 'jumpcloud' software installed in all the OS systems (Windows/Linux/macOS)

## PARAMETERS

### -name

The name of the application you want to search for ex. (Jumpcloud, Slack). Name will always query the "name" property from system insights. Note, for macOS systems, ".app" will be applied. This field is case sensitive.

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

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

### -Search

Search for a specific application by from all systems in the org ex.
(Get-JCSystemApp -Search -Name "Jumpcloud")
THIS PARAMETER DOES NOT TAKE INPUT

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: Search
Aliases:

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

### -SystemID

The System Id of the JumpCloud system you want to search for applications

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

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

### -SystemOS

The type (windows, mac, linux) of the JumpCloud Command you wish to search ex.
(Windows, macOs, Linux))

```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Accepted values: Windows, macOS, Linux

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -version

The version of the application you want to search for ex. 1.1.2. Note: on Windows/ Linux devices, this parameter will filter on the 'version' property, for macOS applications this parameter will filter on the 'bundleShortVersion' property.

```yaml
Type: System.String
Parameter Sets: (All)
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

### System.String

## OUTPUTS

### System.Object
## NOTES

## RELATED LINKS
5 changes: 4 additions & 1 deletion PowerShell/JumpCloud Module/Docs/JumpCloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Module Name: JumpCloud
Module Guid: 31c023d1-a901-48c4-90a3-082f91b31646
Download Help Link: https://github.com/TheJumpCloud/support/wiki
Help Version: 2.1.3
Help Version: 2.2.0
Locale: en-US
---

Expand Down Expand Up @@ -86,6 +86,9 @@ Return JumpCloud radius server information.
### [Get-JCSystem](Get-JCSystem.md)
Returns all JumpCloud Systems within a JumpCloud tenant or a single JumpCloud System using the -ByID Parameter.

### [Get-JCSystemApp](Get-JCSystemApp.md)
Returns the applications/programs/linux packages installed on JumpCloud managed system(s). This function queries separate system insights tables to get data for macOS/windows/linux devices.

### [Get-JCSystemGroupMember](Get-JCSystemGroupMember.md)
Returns the System Group members of a JumpCloud System Group.

Expand Down
2 changes: 1 addition & 1 deletion PowerShell/JumpCloud Module/Docs/Set-JCSettingsFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Updates the JumpCloud Module Settings File
## SYNTAX

```
Set-JCSettingsFile [-moduleBannerMessageCount <PSObject>] [-parallelOverride <PSObject>] [<CommonParameters>]
Set-JCSettingsFile [-parallelOverride <PSObject>] [-moduleBannerMessageCount <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion PowerShell/JumpCloud Module/JumpCloud.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>JumpCloud</id>
<version>2.1.3</version>
<version>2.2.0.7873-202302072022</version>
<description>PowerShell functions to manage a JumpCloud Directory-as-a-Service</description>
<authors>JumpCloud Solutions Architect Team</authors>
<owners>JumpCloud</owners>
Expand Down
22 changes: 11 additions & 11 deletions PowerShell/JumpCloud Module/JumpCloud.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: JumpCloud Solutions Architect Team
#
# Generated on: 1/6/2023
# Generated on: 2/7/2023
#

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

# Version number of this module.
ModuleVersion = '2.1.3'
ModuleVersion = '2.2.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -80,15 +80,15 @@ FunctionsToExport = 'Add-JCAssociation', 'Add-JCCommandTarget',
'Get-JCOrganization', 'Get-JCPolicy', 'Get-JCPolicyResult',
'Get-JCPolicyTargetGroup', 'Get-JCPolicyTargetSystem',
'Get-JCRadiusReplyAttribute', 'Get-JCRadiusServer', 'Get-JCSystem',
'Get-JCSystemGroupMember', 'Get-JCSystemInsights', 'Get-JCSystemUser',
'Get-JCUser', 'Get-JCUserGroupMember', 'Import-JCCommand',
'Import-JCUsersFromCSV', 'Invoke-JCCommand', 'Invoke-JCDeployment',
'New-JCCommand', 'New-JCDeploymentTemplate', 'New-JCImportTemplate',
'New-JCRadiusServer', 'New-JCSystemGroup', 'New-JCUser',
'New-JCUserGroup', 'Remove-JCAssociation', 'Remove-JCCommand',
'Remove-JCCommandResult', 'Remove-JCCommandTarget',
'Remove-JCRadiusReplyAttribute', 'Remove-JCRadiusServer',
'Remove-JCSystem', 'Remove-JCSystemGroup',
'Get-JCSystemApp', 'Get-JCSystemGroupMember', 'Get-JCSystemInsights',
'Get-JCSystemUser', 'Get-JCUser', 'Get-JCUserGroupMember',
'Import-JCCommand', 'Import-JCUsersFromCSV', 'Invoke-JCCommand',
'Invoke-JCDeployment', 'New-JCCommand', 'New-JCDeploymentTemplate',
'New-JCImportTemplate', 'New-JCRadiusServer', 'New-JCSystemGroup',
'New-JCUser', 'New-JCUserGroup', 'Remove-JCAssociation',
'Remove-JCCommand', 'Remove-JCCommandResult',
'Remove-JCCommandTarget', 'Remove-JCRadiusReplyAttribute',
'Remove-JCRadiusServer', 'Remove-JCSystem', 'Remove-JCSystemGroup',
'Remove-JCSystemGroupMember', 'Remove-JCSystemUser', 'Remove-JCUser',
'Remove-JCUserGroup', 'Remove-JCUserGroupMember',
'Send-JCPasswordReset', 'Set-JCCommand', 'Set-JCOrganization',
Expand Down
Loading