Updating dynamic system settings by submitting a request to an active instance
You can use the prpcServiceUtils tool to update dynamic system setting values, using a web service to connect to an active instance of Pega Platform.
- Create one or more .json files that specify the names and new values of the dynamic
system settings.
- The specified dynamic system setting names must be valid.
- One or more dynamic system settings can be specified in each file.
- You must specify the setting value, setting name, and owning ruleset for each
dynamic system setting to be updated, in the format:
{"dass":[ {"pySetting":"DASSValue1","pyPurpose":"DASSName1","pyOwner":"DASS1Owner"}, {"pySetting":"DASSValue2","pyPurpose":"DASSName2","pyOwner":"DASS2Owner"}]}
- In the
prpcServiceUtils.properties
file, specify the file names that you created in step 1.Property name Value updateDASS.filePath
One or more path names that specify the files that specify the dynamic system settings to update, delimited by commas and ending with a semicolon. If the path is a directory, then all .json files in that directory will be processed. For example: C://file1.json,C://dir1//file2.json,C://dir2;
- Configure the common properties in the
prpcServiceUtils.properties
file.Property name Value Required for Pega Cloud clients? pega.rest.server.url
The URL for the REST service, specified in the following format:
For example:http://
<hostname>:
<port>/
<context>/PRRestService/
http://myhost:8080/prweb/PRRestService
Yes pega.rest.username
The operator name on the target system with access to REST services. Yes pega.rest.password
The password of the specified operator. Yes pega.rest.proxy.host
The host name of the REST proxy server. Do not use localhost as the host name.
Required only when using a proxy for a URL. pega.rest.proxy.port
The port for the REST proxy server.
Required only when using a proxy for a URL. pega.rest.proxy.username
The operator name on the REST proxy server with import and export access.
Required only when using a proxy for the URL pega.rest.proxy.password
The password of the REST proxy operator.
Required only when using a proxy for the URL pega.rest.proxy.domain
The domain of the REST proxy server.
Required only when using a proxy for the URL pega.rest.proxy.workstation
The workstation ID for the REST proxy server.
Required only when using a proxy for the URL pega.rest.response.type
The REST response type, either xml
orjson
. The default value isjson
. Rollback, restore point, and update access group operations support onlyjson
.Not required user.temp.dir
Enter the full path to the temporary directory. Leave this blank to use the default temporary directory. For more information about temporary directories, see Temporary files and temporary files directories .
Not required - Save and close the
prpcServiceUtils.properties
file. - To populate the dynamic system settings, run the
prpcServiceUtils.bat
orprpcServiceUtils.sh
script with the updateDASS option, for example:prpcServiceUtils.bat updateDASS
- Optional: Pass one or more arguments.
prpcServiceUtils script argument Value artifactsDir
The full path to the output file location, for those functions that generate output. The default is the /scripts/utils/logs
directory.connPropFile
The full path to the serviceConnection.properties
file that includes information for multiple targets.poolSize
The thread pool size. The default is 5. requestTimeOut
The number of seconds the system waits for a response before failing with a time-out error. The default is 300 seconds. jobIdFile
The path to the job IDs file that is generated by the asynchronous operation. propFile
The property file name, to override the default prpcServiceUtils.properties file. operationName
Specify the operation that generated the job ID for getStatus: import
,export
,expose
,hotfix
, orrollback
.
Previous topic Editing a dynamic system setting Next topic Updating dynamic system settings by using a direct connection to the database