Page History
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connectionsconnection to the JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller) # export workflows ./deploy-workflow.sh export "${request_options[@]}" \ --file=export.zip --path=/ap/ap3jobs,/ap/Agent/apRunAsUser --type=WORKFLOW # export draft schedules ./deploy-workflow.sh export "${request_options[@]}" \ --file=export.zip --path=/ap/Agent/apAgentSchedule01,/ap/Agent/apAgentSchedule02 --type=SCHEDULE --no-released # export objects from folder ./deploy-workflow.sh export "${request_options[@]}" \ --file=export.zip --folder=/ap --recursive # export objects from folder using relative path ./deploy-workflow.sh export "${request_options[@]}" \ --file=export.zip --folder=/ap/Agent --recursive --use-short-path # export objects from folder, limiting object types and validity, feeding audit log ./deploy-workflow.sh export "${request_options[@]}" \ --file=export.zip --folder=/ap --recursive --type=WORKFLOW,JOBRESOURCE --no-invalid --audit-message="export to production" |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connectionsconnection to the JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller) # import objects ./deploy-workflow.sh import "${request_options[@]}" \ --file=export.zip --overwrite # import objects to a new top-level folder and apply suffix ./deploy-workflow.sh import "${request_options[@]}" \ --file=export.zip --folder=/Version22 --suffix=v22 # revalidate objects from folder ./deploy-workflow.sh revalidate "${request_options[@]}" \ --folder=/Version22 --recursive |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connectionsconnection to the JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller) # export objects from folder for signing ./deploy-workflow.sh export "${request_options[@]}" \ --file=export.zip --folder=/myFolder --recursive --for-signing # digitally sign objects mkdir -p ./temp rm -fr ./temp/* unzip -d ./temp ./export.zip ./deploy-workflow.sh sign \ --directory=./temp --key=ecdsa.key --cert=ecdsa.crt --hash=sha512 rm -f ./import-from-signing.zip cd ./temp zip -r ../import-from-signing.zip * cd - # import/deploy objects ./deploy-workflow.sh import-deploy "${request_options[@]}" \ --file=import-from-signing.zip |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connectionsconnection to the JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller) # deploy workflows and update daily plan ./deploy-workflow.sh deploy "${request_options[@]}" \ --path=/ap/ap3jobs,/ap/apEnv --type=WORKFLOW --date-from=now # deploy objects from folder recursively and update daily plan ./deploy-workflow.sh deploy "${request_options[@]}" \ --folder=/ap/Agent --recursive --date-from=now # revoke workflows ./deploy-workflow.sh revoke "${request_options[@]}" \ --path=/ap/ap3jobs,/ap/apEnv --type=WORKFLOW # revoke objects from folder ./deploy-workflow.sh revoke "${request_options[@]}" \ --folder=/ap/Agent --recursive |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connectionsconnection to the JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller) # release schedules and update daily plan ./deploy-workflow.sh release "${request_options[@]}" \ --path=/ap/Agent/apAgentSchedule01,/ap/Agent/apAgentSchedule02 --type=SCHEDULE --date-from=now # release objects from folder and update daily plan ./deploy-workflow.sh release "${request_options[@]}" \ --folder=/ap/Agent --recursive --date-from=now # recall schedules ./deploy-workflow.sh recall "${request_options[@]}" \ --path=/ap/Agent/apAgentSchedule01,/ap/Agent/apAgentSchedule02 --type=SCHEDULE # recall objects from folder ./deploy-workflow.sh recall "${request_options[@]}" \ --folder=/ap/Agent --recursive |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connectionsconnection to the JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller) # store object ./deploy-workflow.sh store "${request_options[@]}" \ --path=/ap/NewFolder01/NewWorkflow01 --type=WORKFLOW --file=NewWorkflow01.workflow.json # remove object, update daily plan ./deploy-workflow.sh remove "${request_options[@]}" \ --path=/ap/NewFolder01/NewWorkflow01 --type=WORKFLOW --date-from=now # remove objects from folder, update daily plan ./deploy-workflow.sh remove "${request_options[@]}" \ --folder=/ap/NewFolder01 --date-from=now |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connectionsconnection to the JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller) # restore object from trash, using suffix for restored objectd ./deploy-workflow.sh restore "${request_options[@]}" \ --path=/ap/NewFolder01/NewWorkflow01 --type=WORKFLOW --new-path=/ap/NewFolder01/NewWorkflow01 --suffix=restored # delete object from trash ./deploy-workflow.sh delete "${request_options[@]}" \ --path=/ap/NewFolder01/NewWorkflow01 --type=WORKFLOW # delete objects from trash by folder ./deploy-workflow.sh delete "${request_options[@]}" \ --folder=/ap/NewFolder01 |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# create Private Key openssl ecparam -name secp384r1 -genkey -noout -out encrypt.key # create Certificate Signing Request openssl req -new -sha512 -nodes -key encrypt.key -out encrypt.csr -subj "/C=DE/ST=Berlin/L=Berlin/O=SOS/OU=IT/CN=Encrypt" # create Certificate openssl x509 -req -sha512 -days 1825 -signkey encrypt.key -in encrypt.csr -out encrypt.crt -extfile <(printf "keyUsage=critical,keyEncipherment,keyAgreement\n") # encrypt a secret such as a password using the Certificate, the encryption result is returned that looks like: enc:BEXbHYa... ./deploy-workflow.sh encrypt --in="root" --cert=encrypt.crt # options for connectionsconnection to the JS7 REST API can specify the encryption result as password and the Private Key for decryption request_options=(--url=http://localhost:4446 --user=root --password="enc:BEXbHYa..." --key=encrypt.key --controller-id=controller) # for example, when exporting workflows the encrypted password and Private Key are used to decrypt the password on-the-fly for access to the REST API ./deploy-workflow.sh export "${request_options[@]}" --file=export.zip --path=/ap/ap3jobs,/ap/Agent/apRunAsUser --type=WORKFLOW # decrypt an encrypted secret using the Private Key ./deploy-workflow.sh decrypt --in="enc:BEXbHYa..." --key=encrypt.key |
...
Overview
Content Tools