baramundisoftware / PS-bConnect

Powershell module for baramundi Connect (bConnect), the REST-API of the baramundi Management Suite
https://www.baramundi.com/en/management-suite/interfaces/
MIT License
26 stars 14 forks source link

Variable Scope #73

Closed T0biii closed 1 year ago

T0biii commented 2 years ago

is it now ICDevice or OTDevice? maybe i got a bit confused by the Changelog image

so maybe we need to updated this: (https://github.com/baramundisoftware/PS-bConnect/blob/master/bConnect/Types/bConnectVariableScope.ps1)

And according to the documentation the VariableDefinitions has more Scopes, so we need here something other than bConnectVariableScope for it, am i right?

VariableDefinitions:

Currently supported scopes are “Device, “MobileDevice” (DEPRECATED), “OrgUnit”, “Job”, “Software”, “HardwareProfile”, “AdObject”, “Bulletin”, “Component”, “NetworkDevice”, “ICDevice”, “AndroidDevice”, “IOSDevice” and “WindowsPhoneDevice”.

Variables:

Currently supported scopes are “Device, “MobileDevice” (DEPRECATED), “OrgUnit”, “Job”, “Software”, “HardwareProfile”, “NetworkDevice”, “ICDevice”, “AndroidDevice”, “IOSDevice” and “WindowsPhoneDevice”.

baramundi-lkersten commented 2 years ago

Hi T0biii, the property Name is "ICDevice"

and yes i think we should add a ".../Types/bConnectVariableDefinitionScope.ps1" or something like that...

scheppachbde commented 2 years ago

Hi there, how can I use get the variables of a network device?

when trying "Get-bConnectVariable -Scope NetworkDevice" I receive the message "NetworkDevice is not a valid type of bConnectVariableScope."

what am I doing wrong?

T0biii commented 2 years ago

@scheppachbde you need to edit the "bConnect/Types/bConnectVariableScope.ps1" and add "NetworkDevice" or download the PowerShell Module from GitHub there is it already added (PowerShell Gallery is not Uptodate :( )