Page History
...
Add-JS7InventoryItem
SYNOPSIS
Add Adds a configuration scheduling object such as a workflow from a JSON file PowerShell object to the JOC Cockpit inventory
...
Add-JS7InventoryItem [-Path] <String> [-Type] <String> [-Item] <Object> [[-DocPath] <String>] [[-AuditComment] <String>] [[-AuditTimeSpent] <Int32>] [[-AuditTicketLink] <Uri>] [<CommonParameters>]
DESCRIPTION
Scheduling objects can be represented in JSON format, however, they have to be converted to PowerShell objects
to be processed by the cmdlet.
Basic examples how to convert JSON to PowerShell objects:
* '{ "limit": 1 }' | ConvertFrom-Json
** The JSON representation is converted from a string to a PowerShell object
* Get-Content /tmp/myForkExample.workflow.json -Raw | ConvertFrom-Json -Depth 100
** The contents of a file holding the JSON representation is converted to a PowerShell object
This cmdlet accepts scheduling objects This cmdlet reads configuration objects from JSON files and stores them with the JOC Cockpit inventory.
Consider that imported added objects have to be deployed or released with the Deploy-JS7DeployableObject JS7DeployableItem and Deploy-JS7ReleasableObject JS7ReleasableItem cmdlets.
The following REST Web Service API resources are used:
* /inventory/store
PARAMETERS
Path
-Path <String>
Specifies the folder, sub-folder and name of the object to be added, e.g. a workflow path.
...
On-the-fly adds a resource lock to the invnetoryinventory. The JSON document for the resource lock is specified with the -Item parameter.
...