Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To retrieve a product template with a given ID, use the following request:

Panel

GET /products/product_id/product-templates/id

where:

  • product_id (integer) is the product ID.
  • id (integer) is the product template ID.

...

Code Block
languagejs
GET /products/product-templates/1 HTTP/1.1
Authorization: Bearer f794846b7c26621688e1e06164975b4eae8ce2f6

...

The LAC REST API returns the standard HTTP response codes described in the following table.

Status CodeDescription
200 OKProduct template object.
403 ForbiddenInvalid or expired token provided.
404 Not FoundProduct template ID does not exist.

Example Response

Code Block
languagejs
HTTP/1.1 200 OK
Content-Type: application/json

{
	"id": "1",
	"name": "Default",
	"license_filename": "license_%TIME%.lic",
	"license_type": "local",
	"licensee_type": "not_specified",
	"licensee": null,
	"activations_allowed": "1",
	"deactivations_allowed": "0",
	"description": null,
	"hostid_match_rate": "100",
	"min_hostids": "1",
	"Hostids": [
		{
			"name": "TrialNot Locked",
			"product_template_id": "1"min_amount": "1",
			"max_amount": "1"
		}
	],
	"Features": [
		{
			"name": "Professional",
			"version": "1.0",
			"expiration_type": "no_expiration",
			"expiration_date": null,
			"issued_type": "not_issued",
			"issued_date": null,
			"options": null,
			"additional_settings": null,
			"enabled": true,
			"days_from_activation": null,
			"count": null,
			"maintenance_type": "no_maintenance",
			"maintenance_date": null,
			"maintenance_days_from_activation": null,
			"comment": null
		}
	]
}