v1.8.0
Features
-
Added
-ProcessingMode
parameter to all commands that use DELETE, PUT and POST requests.Bash/zsh
c8y inventory create --name myobject --processingMode TRANSIENT
PowerShell
New-ManagedObject -Name myobject -ProcessingMode TRANSIENT New-ManagedObject -Name myobject -ProcessingMode QUIESCENT New-ManagedObject -Name myobject -ProcessingMode PERSISTENT New-ManagedObject -Name myobject -ProcessingMode CEP
-
Added logout user command to invalidate current user token
Bash/zsh
c8y users logout
PowerShell
Invoke-UserLogout
Minor improvements
-
Expand-Device
supports piping of alarms, events, measurements and operations -
Set-session
automatically selects a session if only one matching session is found rather than prompting the user for the selection -
source
fragment is removed when being passed via file to theData
parameter in all create and update commands// myevent.json { "source": { "id": "99999", "self": "https:/..../event/events/99999" }, "type": "myExample1", }
When executing the following command:
PSc8y\New-Event -Device 12345 -Data myevent.json
The
source
id fragment will be replaced entirely by the new source as specified by theDevice
parameter// myevent.json { "source": { "id": "12345", }, "type": "myExample1", }
Bug fixes
Get-Session
uses a new c8y session get to retrieve information about the current session- Fixed bug when using the
-Session
on PUT and POST commands which resulted in an error being displayed even though the request would be successful - Fixed binary upload bugs with both
New-EventBinary
andUpdate-EventBinary
which resulted in multipart form data being included in the binary information