Jump to content

ERA serverAPI. Problem finding reference for creating installer.


kornwaretm
 Share

Recommended Posts

i have a problem when creating installer via server API. i don't know what to set for "endpointRepositoryPackage", "package_app_id" , "package_os", "package_os_systems", and "package_version". i've tried some possible values with no luck, when i test download the installer it fails.  i create all in one installer using this json 

{
	"Era.Common.NetworkMessage.ConsoleApi.Repository.RpcCreateStoredInstallerRequest":
	{
		"staticObjectData":
		{
			"name":"Test installer",
			"description":"olala vit"
		},
		
		"storedInstallerData":
		{
			"agentPeerCertificateUuid":
			{
				"uuid":"agentpee-rcertific-ateu-uidddddddddd"
			},
			"endpointRepositoryPackage":
			{
				"package_app_id":"com.eset.apps.business.ees",
				"package_description":"ESET Endpoint Security",
				"package_lang":"en_US",
				"package_name":"ESET Endpoint Security",
				"package_os":"WINDOWS",
				"package_os_systems":"WINDOWS XP, VISTA, NT 4.0, 95, 8, 7, 2000, 10",
				"package_version":"6.6.2064.0"
			},
			
			
			"staticGroupUuid":
			{
				"uuid":"staticgr-oups-uuid-stri-nghereeeeeee"
			},
			"acceptEula":true,
			"installerType":1,
			"serverHostname":"hos.ti.pa.ddr",
			"serverPort":"2222"
		}
	}
}

i need guide for this. thanks in advance

Link to comment
Share on other sites

  • ESET Staff

I would try to use:

package_app_id="com.eset.apps.business.eea.windows"
package_os="windows"

but that is just guessing - please provide trace log error in case it will fail.

Link to comment
Share on other sites

i have a follow up question. after the installer are created i noticed that the agent peer certificate doesn't stick with the installer (check my attachment). i have to manually set the certificate via the web console. if i create an installer via web console, the peer certificate are assigned automatically.

{
	"Era.Common.NetworkMessage.ConsoleApi.Repository.RpcCreateStoredInstallerRequest": {
		"staticObjectData": {
			"name": "in_installer_name",
			"description": "in_installer_description"
		},
		"storedInstallerData": {
			"endpointLicenseUuid": {
				"uuid": "in_endpoint_license"
			},
			"agentPeerCertificateUuid": {
				"uuid": "in_agent_peer_certificate_id"
			},
			"agentPeerCertificatePassword": "",
			"endpointRepositoryPackage": {
				"package_app_id": "in_package",
				"package_description": "in_description",
				"package_lang": "en_US",
				"package_name": "in_name",
				"package_os": "in_os",
				"package_os_systems": "in_os_systems",
				"package_version": "in_version"
			},
			"staticGroupUuid": {
				"uuid": "in_group_id"
			},
			"acceptEula": true,
			"installerType": 1,
			"serverHostname": "in_host",
			"serverPort": "in_port"
		}
	}
}

my question is did i miss a parameter? or if not how to assign the certificate via serverAPI? 

 

cert.png

Link to comment
Share on other sites

ow my post above is stupid. certificate only matters when the installer creation request is being made. after created it matters not. 

Edited by kornwaretm
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...