Get Site Installation Package

Service name: get_site_installation_package

Base URL

https://{SERVER}/api/?apikey={yourAPIkey}&service=get_site_installation_package

Description

Creates a Site Install Package based on the specified installer type. Where successful a package is created and downloaded.

By default this package is based on the latest General Availability Agent unless the beta=true parameter is used. In this case, the Site Installation Package contains the current Release Candidate Agent.

Site Installation Packages are supported for Windows, Mac, and Linux. The Site Installation Package defaults to Windows if you don't include the OS parameter.

Parameters

Required parameters

Add required parameters immediately after the base URL.

https://{SERVER}/api/?apikey={yourAPIkey}&service=get_site_installation_package&required_parameters={parameter-value}
ParameterDescriptionTypeOptionsDefault
endcustomeridUnique identifier of client Note: endcustomerid = clientid from list_clientsinteger00
siteidSite Idinteger00
osThe Operating System intended for the site installation package.stringwindows
mac
linux
0
typeThe type of installer to download.stringremote_worker
group_policy
0

Optional parameters

Add optional parameters after the required parameters in the base URL.

https://{SERVER}/api/?apikey={yourAPIkey}&service=get_site_installation_package&required_parameters={parameter-value}&optional_parameters={parameter-value}
ParameterDescriptionTypeOptionsDefault
describeReturns a description of the service.booleantrue0
modeModestringauthenticate
downloadgp
downloadrwbuild
0
proxyenabledProxy enabled (deprecated)boolean00
proxyhostProxy Host (deprecated)string00
proxyportProxy Port (deprecated)integer00
proxyusernameProxy Username (deprecated)string00
proxypasswordProxy Password (deprecated)string00
betaDownload the current beta (RC) Agent version if set to true.booleantrue
false
false

Determine parameter values

Use the following associated service calls to determine parameter values.

ParameterCallURL Format
siteidlist_siteshttps://{SERVER}/api/?apikey={yourAPIkey}&service=list_sites&clientid=CLIENTID
endcustomeridlist_clientshttps://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients

Examples

Get a Site Installation Package

https://{SERVER}/api/?apikey={yourAPIkey}&service=get_site_installation_package&endcustomerid=ENDCUSTOMERID&siteid=SITEID&os=Windows&type=TYPE

Example response: Success

<?xml version="1.0"?>
	<result created="2015-07-22T10:58:38+01:00" host="SERVER" status="FAIL">
	<data> 
		<success>1</success> 
		<siteid>123</siteid> 
	</data> 
</result>

Example response: Failure

<?xml version="1.0"?>
	<result created="2015-07-22T10:58:38+01:00" host="SERVER" status="FAIL">
	<error>
		<errorcode>4</errorcode>
		<message>Invalid value for parameter: PARAMETER</message>
	</error>
</result>

Returned fields

No XML returned on success, file returned on success.


Did this page help you?