Search the Community
Showing results for tags 'api'.
-
For querying child static groups we use the ServerApi with a report template, works great. Now we would like to extend this to dynamic groups, but I'm unable to find how. Is there a special report template to query for dynamic groups? In the list of API methods I could not find a method to obtain a list of dynamic groups, so I suspect this must be done through the reporting engine. Any hint would be very welcome. Just an example reporting template or something similar. Thanks, Richard.
-
halo, i experienced strange behavior when creating client task via the server api. here is the json request: { "Era.Common.NetworkMessage.ConsoleApi.TasksTriggers.RpcCreateClientTaskRequest": { "clientTaskConfiguration": { "taskType": 18, "taskProductActivation": { "eset_license": { "license_uuid": { "uuid": "00000000-0000-0000-7018-000000000001" } } } }, "collisionsHandling": 1, "staticObjectData": { "name": "activation", "description": "activation task" } } } instead of giving a "expected error message" this gives rather strange message. it says the connection is closed, here the json response { "Era.ServerApi.SimpleResponse": { "result": false, "error": "Connection closed." } } lets say it is true that the connection is closed. why is it closed? what is wrong with my request that makes the connection need to be closed immediately ? thanks in advance.
-
ERA api creating policy, problem with serialized data
kornwaretm posted a topic in Remote Management
halo, my environment : ubuntu, era 6.5. i'm trying to create a policy data based on "built in policy". i can not find the required data ("Binary data of the serialized policy.") for "policyData" attribute. here is my json. i erase the policyData.data content, because it is very long. { "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcCreatePolicyRequest": { "staticObjectData": { "name": "Antivirus - Maximum security ole", "description": "Taking advantage of advanced heuristic, LiveGrid, IdleState Scanner, Automatic device scan after connection, SSL filtering. Detection of potentially unsafe, unwanted and suspicious applications is not affected. Exclusions are overwritten." }, "policyData": { "data": "long data......----------", "product": "eset.local.products.endpoint" } } } so far i manage to find the qualified product names they are in the tbl_policies table, but i cant find the "Binary data of the serialized policy." i tried to use the extremely long "policy_data" field from the same data. the JSON reponse was okay, but in the web console the settings panel not working, displaying error message "ERROR WHILE INITIALIZING CONFIGURATION EDITOR". i have no idea what else to try. any insight are welcome. thanks in advance. -
i try to set add access type for Groups & Computers in my permission set. via serverAPI. here is the json : { "Era.Common.NetworkMessage.ConsoleApi.Security.RpcCreateCompetenceRequest" : { "staticObjectData": { "name":"permission_set", "description":"permission_set" }, "accessRights" : [{"accessType":1, "resourceUuid":{"uuid":"00000000-0000-0000-7004-000000000000"}] } to create access rights "read", "write", or "read use" using 1, 2,and 5 values respectively. i though they were binary "001", "010", "101", which match perfectly with the terms "read", "write", and "read use". so i can use "111" for functionality "read write use". "111" is 7 if i use this value in the json, the API return error { "Era.ServerApi.SimpleResponse": { "result": false, "error": "Can not parse protobuf from message. Json message is: {\"staticObjectData\":{\"name\":\"test\", \"description\":\"test permission set\"},\"accessRights\":[{\"accessType\":7, \"resourceUuid\":{\"uuid\":\"00000000-0000-0000-7004-000000000000\"}}]} ." } } 3 ("011") and 4 ("100") also not working, return success but no permission granted. The accessRight property is not a binary representation of the 3 column ("read", "write", "use"), so how to set an access right to "read write use" ?
-
hi i'm running era 6.5 on ubuntu. i'm trying to find a way to access uuid from static group id, dynamic group id. I need to get these information for making some automatic operations. But i cant seems to find a way to access those information via JSON. the only way i can figure out how to get those information is via database access. Am i missing something? or accessing the data base is the correct way? thanks
-
Hey, Just wondering if there was any addition Documentation in creating Json calls\requests to the Era Api. I keep getting the Connection closed unexpectedly and dont receive a response does the port number point to the api or is there a specific address Also if there is a possibility of a .net sdk even a beta one that would be good