Share

Import Assets

Import Assets

API: Import Assets

As asset is something that can be associated with a service, but not considered a service itself. Assets can be injected into ServiceView using a HTTP request:

http://<serviceview_url>/asset.php?service=<service>asset_ref=<asset_ref>&field_cd=<value>&secret=<secret>

Parameters

<service>The unique code associated with each service entered from the add or edit service dialog.
<asset_ref>A unique identifier for this asset. If ServiceView recieves an asset import request it uses this reference to see if it already has his asset. If this asset doesnt exist it will be created, if an asset with this asset_ref esists the fields will be updated.
<field_cd / value pairs>Eash asset type has its own fields defined, pass in each field code and value.
<secret>The value of the SECRET option set in the options setup section.

Returns

SUCCESS or FAILURE

Comments

The HTTP request can either be sent using a HTTP GET or POST request. Given the description section may be long a HTTP POST is recommended.