Name
Publish-JS7DeployableItem
SYNOPSIS
Deploys a configuration object such as a workflow to a number of JS7 Controllers.
SYNTAX
Publish-JS7DeployableItem [[-Path] <String>] [[-Type] <String[]>] [[-Folder] <String>] [-ControllerId] <String[]> [-Delete] [[-AuditComment] <String>] [[-AuditTimeSpent] <Int32>] [[-AuditTicketLink] <Uri>] [<CommonParameters>]
DESCRIPTION
This cmdlet deploys a configuration object to a number of JS7 Controllers. Consider a workflow
that can be deployed to more than one Controller.
Deployment includes that objects such as workflows are digitally signed and forwarded to a Controller.
Depending on the security level JOC Cockpit is operated for signging is available with a general certificate,
with a user based certificate or by external signing.
Deployment can include to permanently delete previously removed objects from Controllers and from the inventory.
Therefore, if a deployable object is removed, e.g. with the Remove-JS7InventoryItem cmdlet, then this removal has to
be committed using this cmdlet for deployment.
PARAMETERS
Path
-Path <String>
Specifies the folder, sub-folder and name of the object, e.g. a workflow path.
Required? | false |
Position? | 1 |
Default value | |
Accept pipeline input? | true (ByValue, ByPropertyName) |
Accept wildcard characters? | false |
Type
-Type <String[]>
Specifies the object type which is one of:
* FOLDER
* WORKFLOW
* JOBCLASS
* LOCK
* JUNCTION
Required? | false |
Position? | 2 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
Folder
-Folder <String>
Optionally specifies the folder for which included inventory objects should be published.
This parameter is used alternatively to the -Path parameter that specifies to publish an individual inventory object.
Required? | false |
Position? | 3 |
Default value | / |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
ControllerId
-ControllerId <String[]>
Specifies one or more Controllers to which the indicated objects should be deployed.
Required? | true |
Position? | 4 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
Delete
-Delete <SwitchParameter>
Specifies the action to permanently delete objects from a Controller. Without this switch objects
are published for use with a Controller.
Required? | false |
Position? | named |
Default value | False |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
AuditComment
-AuditComment <String>
Specifies a free text that indicates the reason for the current intervention, e.g. "business requirement", "maintenance window" etc.
The Audit Comment is visible from the Audit Log view of JOC Cockpit.
This parameter is not mandatory, however, JOC Cockpit can be configured to enforce Audit Log comments for any interventions.
Required? | false |
Position? | 5 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
AuditTimeSpent
-AuditTimeSpent <Int32>
Specifies the duration in minutes that the current intervention required.
This information is visible with the Audit Log view. It can be useful when integrated
with a ticket system that logs the time spent on interventions with JobScheduler.
Required? | false |
Position? | 6 |
Default value | 0 |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
AuditTicketLink
-AuditTicketLink <Uri>
Specifies a URL to a ticket system that keeps track of any interventions performed for JobScheduler.
This information is visible with the Audit Log view of JOC Cockpit.
It can be useful when integrated with a ticket system that logs interventions with JobScheduler.
Required? | false |
Position? | 7 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
RELATED LINKS
EXAMPLES
-------------------------- EXAMPLE 1 --------------------------
PS > Publish-JS7DeployableItem -ControllerId testsuite,standalone -Path /TestCases/sampleWorkflow_001 -Type 'WORKFLOW'
Deploys the specified workflow from the indicated path to both Controller instances.
-------------------------- EXAMPLE 2 --------------------------
PS > Publish-JS7DeployableItem -ControllerId testsuite -Path /TestCases/sampleWorkflows -Type 'FOLDER' -Delete
Deletes the specified folder from the inventory and deletes any included deployable objects such as workflows from the indicated Controller and inventory.
-------------------------- EXAMPLE 3 --------------------------
PS > Publish-JS7DeployableItem -ControllerId testsuite -Folder /PowerShell -Delete
Deletes any deployable objects such as workflows from the specified folder recursively. Consider that the specified folder is not deleted but its contents only.
-------------------------- EXAMPLE 4 --------------------------
PS > Publish-JS7DeployableItem -ControllerId testsuite -Path /PowerShell -Type FOLDER -Delete
Deletes any deployable objects such as workflows from the specified folder recursively. Consider that the specified folder is not deleted but its contents only.