Replace an OnGuard Custom ScriptCopy Pageput https://clearpass-hostname/api/onguard-custom-script/{onguard_custom_script_id}Replace an OnGuard Custom ScriptRecent RequestsLog in to see full request historyTimeStatusUser Agent Retrieving recent requests…LoadingLoading…Path Paramsonguard_custom_script_idstringrequiredNumeric ID of OnGuard Custom ScriptBody ParamsnamestringrequiredName of Custom ScriptdescriptionstringDescription of Custom Scriptos_typestringenumrequiredOS Type of Custom ScriptlinuxmacoswindowsAllowed:linuxmacoswindowsscript_typestringenumrequiredType of Custom ScriptagentScriptEnforcementProfileautoRemediationhealthCollectionAllowed:agentScriptEnforcementProfileautoRemediationhealthCollectionattributesobjectrequiredAttributes of Custom Script, allowed attributes - Path,Command,SHA256,ExecutionLevel,WaitTime,PassResults,SuccessMsg,FailureMsg,ProgressMsg,Description,DownloadURL,ValidateURLCert,ScriptExecutionTimeOut,SignerName (e.g. {"Path": "/home/aruba/scripts","SHA256": "cfd6...f7ca","ExecutionLevel": "User","Command": "runscript.sh","SignerName": "signer"})attributes objectoutput_formatstringenumOutput Format of Custom Script, applicable only for health collection scriptsjsonjsonkeyValuePairAllowed:jsonkeyValuePairoutput_detailsobjectOutput Details of Custom Script, applicable only for health collection scripts (e.g. {"ExitCode":"Integer", "OutVar1":"Boolean", "OutVar2":"String"})output_details objectrule_eval_algostringenumRule Evaluation Algorithm for rules of Custom Script, applicable only for health collection scriptsfirst-applicablefirst-applicableevaluate-allAllowed:first-applicableevaluate-allrulesobjectList of Rules for Custom Script, applicable only for health collection scripts (e.g. [{"match_type":"OR","health_status":"Healthy","condition":[{"type":"Script","name":"ExitCode","oper":"EQUALS","value":"0"}]}])rules objectResponses 200OK 204No Content 304Not Modified 401Unauthorized 403Forbidden 404Not Found 406Not Acceptable 415Unsupported Media Type 422Unprocessable EntityUpdated 20 days ago Update some fields of an OnGuard Custom ScriptDelete an OnGuard Custom ScriptDid this page help you?YesNo