When logged in into MDS, The command used is:
mgmt_cli -r true put-file file-name "my_snorts.rules" file-path "/home/admin" file-content "<one_snort_rule>" targets cp-r81-mds
Then I get:
code: "generic_err_object_not_found"
message: "Requested object [cp-r81-mds] not found""
My goal is to create a snort file which will be uploaded to the global domain so I will assign it to all domain.
When I tried to add -d "MDS" to the command, it did not work as well.
I am not sure if running API commands on MDS level where the MDS itself is a target is supported or not, hope to get an answer here.