To retrieve a product template with a given ID, use the following request:
GET /products/product_id/product-templates/id
where:
- product_id (integer) is the product ID.
- id (integer) is the product template ID.
Example request
GET /products/1/product-templates/1 HTTP/1.1 Authorization: Bearer f794846b7c26621688e1e06164975b4eae8ce2f6
Response
The LAC REST API returns the standard HTTP response codes described in the following table.
| Status Code | Description |
|---|---|
| 200 OK | Product template object. |
| 403 Forbidden | Invalid or expired token provided. |
| 404 Not Found | Product template ID does not exist. |
Example Response
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": "Not Locked",
"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
}
]
}