Name
Set-JS7JOCSettings
SYNOPSIS
Stores JS7 settings
SYNTAX
Set-JS7JOCSettings [[-ConfigurationType] <String>] [-ConfigurationItem] <String> [[-ObjectType] <String>] [[-Name] <String>] [[-Id] <Int32>] [[-ControllerId] <String>] [[-Account] <String>] [-Shared] [-Item] <PSObject> [[-AuditComment] <String>] [[-AuditTimeSpent] <Int32>] [[-AuditTicketLink] <Uri>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
A number of settings can be specified for example with the JOC Cockpit Settings page and with Identity Services.
This cmdlet allows such settings to be stored programmatically.
Settings include a hierarchy of objects and are available with
$settings,$item = Get-JS7JOCSettings
* $settings: this object holds the original object returned by the REST Web Service API.
* $item: this object holds the PowerShell representation of the configuration items.
Changes should not be applied to $settings, but to $item like this:
$item.cleanup.deployment_history_versions.value = 5;
Settings are stored by pipelining the original $settings object and by using the -Item parameter with the modified $item object like this:
$settings | Set-JS7JOCSettings -Item $item
The following REST Web Service API resources are used:
* /configuration/save
PARAMETERS
ConfigurationType
-ConfigurationType <String>
Populated from a pipelined settings object.
Required? | false |
Position? | 1 |
Default value | GLOBALS |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
ConfigurationItem
-ConfigurationItem <String>
Populated from a pipelined settings object.
Required? | true |
Position? | 2 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
ObjectType
-ObjectType <String>
Populated from a pipelined settings object.
Required? | false |
Position? | 3 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
Name
-Name <String>
Populated from a pipelined settings object.
Required? | false |
Position? | 4 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
Id
-Id <Int32>
Populated from a pipelined settings object.
Required? | false |
Position? | 5 |
Default value | 0 |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
ControllerId
-ControllerId <String>
Populated from a pipelined settings object.
Required? | false |
Position? | 6 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
Account
-Account <String>
Populated from a pipelined settings object.
Required? | false |
Position? | 7 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
Shared
-Shared <SwitchParameter>
Populated from a pipelined settings object.
Required? | false |
Position? | named |
Default value | False |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
Item
-Item <PSObject>
Specifies the PowerShell object of a configuration item to be stored.
Required? | true |
Position? | 8 |
Default value | |
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 the JOC Cockpit.
This parameter is not mandatory. However, the JOC Cockpit can be configured to require Audit Log comments for all interventions.
Required? | false |
Position? | 9 |
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 shown in the Audit Log view. It can be useful when integrated
with a ticket system that logs the time spent on interventions with JS7.
Required? | false |
Position? | 10 |
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 JS7.
This information is shown in the Audit Log view of JOC Cockpit.
It can be useful when integrated with a ticket system that logs interventions with JS7.
Required? | false |
Position? | 11 |
Default value | |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
WhatIf
-WhatIf <SwitchParameter>
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
Confirm
-Confirm <SwitchParameter>
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
RELATED LINKS
EXAMPLES
-------------------------- EXAMPLE 1 --------------------------
PS > $settings,$item = Get-JS7JOCSettings;
$item.cleanup.deployment_history_versions.value = 5;
$settings | Set-JS7JOCSettings -Item $item
Reads, modifies and stores global settings.
-------------------------- EXAMPLE 2 --------------------------
PS > $settings,$item = Get-JS7JOCSettings -ConfigurationType 'IAM' -ObjectType 'LDAP' -Name 'PublicLDAP';
$item.ldap.expert.iamLdapServerUrl = 'ldap://ldap.forumsys.com:389';
$settings | Set-JS7JOCSettings -Item $item
Reads, modifies and stores settings of an LDAP Identity Service.