PUT Edit File Agent Rule
Get all the file agent rule details.
Method | URI |
---|---|
PUT |
/cdwebconsole/svc/fileagentrule |
The following example shows the Command:
curl -X 'PUT' \
'https://172.20.183.160:9443/cdwebconsole/svc/fileagentrule' \
-H 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODUuOTU6MTM2Mzo1MTI5NzljMi01ZGU5LTQxZjgtYTg5Ni1mZWMzMmIyNWVlYmYiLCJleHAiOjE3MTQ1MDQwOTV9.S3Wv2GCpL4hV1CXMpRAH5Ij59e2jhZMLw7nIN4VVW1tziINTwofyNpFcTU3cJNnnDjPJsH8dNwt_jQqFni0-ow' \
-H 'Content-Type: application/json' \
-H 'X-XSRF-TOKEN: ef0c5ea5-3afa-4a0e-83d1-e24fb395957e' \
-d '{"name":"Test1","ruleStatus":"Enabled","comments":"","altFileName":"","procName":"","procArgs":"","procClass":"","procPriority":"","notifyUid":"","fileNameKeyvalues":"","fileNameEnabled":"true","filePathKeyvalues":"","filePathEnabled":"","fileSizeKeyvalues":"","fileSizeEnabled":""}'
Parameter Name | Required/Optional | Description | Valid values |
---|---|---|---|
name |
Required |
Specify File Agent Rule Name |
|
comments | Optional | Specify Comments | |
altFileName | Optional | Specify alt filename | |
procName | Optional | Specify process name | |
procArgs | Optional | Specify process arguments | |
procClass | Optional | Specify process class | |
procPriority | Optional | Specify process priority | |
notifyUid | Optional | Specify notify uid | |
fileNameKeyvalues | Optional | Specify file name key values. | MATCH|value,NOMATCH|value,CONTAINS|value |
fileNameEnabled | Optional | Specify file name enabled. | true/false |
filePathKeyvalues | Optional | Specify file size key values. | EQUALS|value,LESS_THAN|value,GREATER_THAN|value |
fileSizeEnabled | Optional | Specify file size enabled. | true/false |
The following example shows the HTTP User Request:
{
"name": "Test1",
"ruleStatus": "Enabled",
"comments": "",
"altFileName": "",
"procName": "",
"procArgs": "",
"procClass": "",
"procPriority": "",
"notifyUid": "",
"fileNameKeyvalues": "",
"fileNameEnabled": "true",
"filePathKeyvalues": "",
"filePathEnabled": "",
"fileSizeKeyvalues": "",
"fileSizeEnabled": ""
}
The following example shows the Sample Response:
{
"messageCode": 200,
"message": "File Agent Rule has been updated successfully"
}