Skip to main content
Skip table of contents

Информация о лицензиях

Информация о лицензиях

Если лицензия не будет доступна, то она будет отсутствовать в ответе

permission для этого route - license-info
GET api/v1/admin/license/info
200 OK

Возвращает информацию о лицензиях

JSON
[
    {
        "type": "system",
        "items": [
            {
                "type": "camera",
                "count": 11,
                "limit": 23384
            }
        ],
        "supported": "2023-10-19",
        "updates": "2023-10-21",
        "is_online": true
    },
    {
        "type": "analytic",
        "items": [
            {
                "type": "analytic_l1",
                "shared": 0,
                "count": 0,
                "limit": 0,
                "data": [
                    {
                        "type": "loud-sound",
                        "permission": "analytic-cases-loud-sound",
                        "color": "#1564A6"
                    },
                    {
                        "type": "smoke-fire",
                        "permission": "analytic-cases-smoke-fire",
                        "color": "#DE2000"
                    },
                    {
                        "type": "line-intersection",
                        "permission": "analytic-cases-line-intersection",
                        "color": "#5CBCE7"
                    },
                    {
                        "type": "camera-obstacle",
                        "permission": "analytic-cases-camera-obstacle",
                        "color": "#566197"
                    },
                    {
                        "type": "motion-detect",
                        "permission": "analytic-cases-motion-detect",
                        "color": "#2CA329"
                    }
                ]
            },
            {
                "type": "analytic_l2",
                "shared": 0,
                "count": 0,
                "limit": 0,
                "data": [
                    {
                        "type": "person_counting",
                        "permission": "analytic-cases-person-counting",
                        "color": "#F027DC"
                    },
                    {
                        "type": "visitor_counting",
                        "permission": "analytic-cases-visitor-counting",
                        "color": "#C76DFF"
                    }
                ]
            },
            {
                "type": "analytic_l3",
                "shared": 0,
                "count": 0,
                "limit": 0,
                "data": [
                    {
                        "type": "face",
                        "permission": "analytic-cases-face",
                        "color": "#E5642E"
                    },
                    {
                        "type": "license_plate",
                        "permission": "analytic-cases-license-plate",
                        "color": "#00B2FF"
                    }
                ]
            },
            {
                "type": "analytic_common",
                "shared": 4,
                "count": 9,
                "limit": 0,
                "data": [
                    {
                        "type": "loud-sound",
                        "permission": "analytic-cases-loud-sound",
                        "color": "#1564A6"
                    },
                    {
                        "type": "smoke-fire",
                        "permission": "analytic-cases-smoke-fire",
                        "color": "#DE2000"
                    },
                    {
                        "type": "line-intersection",
                        "permission": "analytic-cases-line-intersection",
                        "color": "#5CBCE7"
                    },
                    {
                        "type": "camera-obstacle",
                        "permission": "analytic-cases-camera-obstacle",
                        "color": "#566197"
                    },
                    {
                        "type": "motion-detect",
                        "permission": "analytic-cases-motion-detect",
                        "color": "#2CA329"
                    },
                    {
                        "type": "person_counting",
                        "permission": "analytic-cases-person-counting",
                        "color": "#F027DC"
                    },
                    {
                        "type": "visitor_counting",
                        "permission": "analytic-cases-visitor-counting",
                        "color": "#C76DFF"
                    },
                    {
                        "type": "face",
                        "permission": "analytic-cases-face",
                        "color": "#E5642E"
                    },
                    {
                        "type": "license_plate",
                        "permission": "analytic-cases-license-plate",
                        "color": "#00B2FF"
                    }
                ]
            }
        ],
        "supported": "2023-12-01",
        "updates": "2023-12-01",
        "is_online": true
    }
]
401 Unauthorized

Токен авторизации не передан или не валидный Получение токена

cURL
BASH
curl -k --request POST \
	--url 'https://your-domainapi/v1/admin/license/info' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '[]'
PHP
PHP
$data = array (
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domainapi/v1/admin/license/info', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.