To retrieve all products that match the specified criteria, use the following request:
GET /products
Query Parameters
Query parameters include the following.
| Parameter | Type | Required | Definition |
|---|---|---|---|
| offset | integer | No | Offset. |
| name | string | No | Partial, case-insensitive product name. |
Example request
GET /products?name=license 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 | Products list. |
| Invalid query parameters. | |
| 403 Forbidden | Invalid or expired token provided. |
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": "1",
"name": "License Statistics",
"version": "6.0",
"description": "",
"LicenseGenerator": {
"id": "1",
"license_manager": "lm_x",
"name": "LM-X",
"platform": "linux_x86_x64",
"optional_parameters": "",
"description": ""
},
"ProductTemplates": [
{
"id": "1",
"name": "Default",
"product_id": "1"
}
]
}
]