Skip to main content
Skip table of contents

Список конфигураций

Список конфигураций

GET api/admin/v1/config-templates

Параметры метода

string type, тип


string service, сервис


string vendor, поиск по производителю камеры


string model, поиск по модели камеры


string name, поиск по имени конфигурации


int per_page, количество элементов в одной странице пагинации. По умолчанию 25 штук

200 OK

Возвращает список объектов конфигураций

JSON
{
    "data": [
        {
            "id": 56,
            "type": "OSD_Time",
            "body": "{\"token\":\"OsdToken_101\",\"VideoSourceConfigurationToken\":{\"_\":\"VideoSourceToken\"},\"Type\":\"Text\",\"Position\":{\"Type\":\"Custom\",\"Pos\":{\"x\":-1,\"y\":0.888889}},\"TextString\":{\"Type\":\"DateAndTime\",\"DateFormat\":\"MM/dd/yyyy\",\"TimeFormat\":\"HH:mm:ss\",\"FontSize\":32,\"FontColor\":{\"Color\":{\"X\":0,\"Y\":0,\"Z\":0,\"Colorspace\":\"http://www.onvif.org/ver10/colorspace/YCbCr\"}},\"Extension\":{\"any\":\"<tt:ChannelName>false</tt:ChannelName>\"}}}",
            "name": "1",
            "description": null,
            "service": "Any",
            "vendor": "HIKVISION",
            "model": "DS-2CD1043G0-I",
            "is_default": 1
        },
        {
            "id": 51,
            "type": "SystemDateAndTime",
            "body": "{\"SystemDateAndTime\":{\"DateTimeType\":\"Manual\",\"DaylightSavings\":false,\"TimeZone\":{\"TZ\":\"CST-8:00:00\"},\"UTCDateTime\":{\"Time\":{\"Hour\":20,\"Minute\":4,\"Second\":55},\"Date\":{\"Year\":1970,\"Month\":3,\"Day\":31}},\"LocalDateTime\":{\"Time\":{\"Hour\":4,\"Minute\":4,\"Second\":55},\"Date\":{\"Year\":1970,\"Month\":4,\"Day\":1}}}}",
            "name": "2",
            "description": null,
            "service": "Any",
            "vendor": "HIKVISION",
            "model": "DS-2CD2143G0-IS",
            "is_default": 1
        },
        {
            "id": 42,
            "type": "OSD_Time",
            "body": "{\"token\":\"osd_title\",\"VideoSourceConfigurationToken\":{\"_\":\"VideoSourceMain\"},\"Type\":\"Text\",\"Position\":{\"Type\":\"UpperLeft\"},\"TextString\":{\"Type\":\"Plain\",\"PlainText\":\"\"}}",
            "name": "3",
            "description": null,
            "service": "Any",
            "vendor": "A_ONVIF_CAMERA",
            "model": "YM200J_RU_AF",
            "is_default": 0
        },
        {
            "id": 41,
            "type": "OSD_Text",
            "body": "{\"token\":\"osd_time\",\"VideoSourceConfigurationToken\":{\"_\":\"VideoSourceMain\"},\"Type\":\"Text\",\"Position\":{\"Type\":\"LowerRight\"},\"TextString\":{\"Type\":\"DateAndTime\",\"DateFormat\":\"dd/MM/yyyy\",\"TimeFormat\":\"HH:mm:ss\"}}",
            "name": "4",
            "description": null,
            "service": "Any",
            "vendor": "A_ONVIF_CAMERA",
            "model": "YM200J_RU_AF",
            "is_default": 0
        },
        {
            "id": 40,
            "type": "AudioEncoder_First",
            "body": "{\"Name\":\"AudioEncoderConfig_Channel1_MainStream\",\"UseCount\":1,\"token\":\"000\",\"Encoding\":\"G711\",\"Bitrate\":64,\"SampleRate\":8,\"Multicast\":{\"Address\":{\"Type\":\"IPv4\",\"IPv4Address\":\"224.1.0.0\"},\"Port\":40002,\"TTL\":64,\"AutoStart\":true},\"SessionTimeout\":\"PT60S\"}",
            "name": "5",
            "description": null,
            "service": "Any",
            "vendor": "Dahua",
            "model": "IPC-HFW5421E-Z",
            "is_default": 0
        },
        {
            "id": 37,
            "type": "VideoEncoder_First",
            "body": "{\"Name\":\"VideoEncoder_1\",\"UseCount\":1,\"token\":\"VideoEncoderToken_1\",\"Encoding\":\"H264\",\"Resolution\":{\"Width\":1920,\"Height\":1080},\"RateControl\":{\"FrameRateLimit\":20,\"BitrateLimit\":4096,\"ConstantBitRate\":false},\"Multicast\":{\"Address\":{\"Type\":\"IPv4\",\"IPv4Address\":\"0.0.0.0\"},\"Port\":8860,\"TTL\":128,\"AutoStart\":false},\"Quality\":4,\"GovLength\":50,\"Profile\":\"High\"}",
            "name": "6",
            "description": null,
            "service": "Any",
            "vendor": "HIKVISION",
            "model": "DS-2CD2121G0-IS",
            "is_default": 0
        },
        {
            "id": 36,
            "type": "VideoEncoder_First",
            "body": "{\"Name\":\"VideoEncoder_1\",\"UseCount\":1,\"token\":\"VideoEncoderToken_1\",\"Encoding\":\"H264\",\"Resolution\":{\"Width\":1920,\"Height\":1080},\"RateControl\":{\"FrameRateLimit\":20,\"BitrateLimit\":4096,\"ConstantBitRate\":false},\"Multicast\":{\"Address\":{\"Type\":\"IPv4\",\"IPv4Address\":\"0.0.0.0\"},\"Port\":8860,\"TTL\":128,\"AutoStart\":false},\"Quality\":4,\"GovLength\":50,\"Profile\":\"Main\"}",
            "name": "7",
            "description": null,
            "service": "Any",
            "vendor": "HIKVISION",
            "model": "DS-2CD2121G0-IS",
            "is_default": 0
        },
        {
            "id": 35,
            "type": "VideoEncoder_First",
            "body": "{\"Name\":\"VideoEncoder_1\",\"UseCount\":1,\"token\":\"VideoEncoderToken_1\",\"Encoding\":\"H264\",\"Resolution\":{\"Width\":1920,\"Height\":1080},\"RateControl\":{\"FrameRateLimit\":20,\"BitrateLimit\":4096,\"ConstantBitRate\":false},\"Multicast\":{\"Address\":{\"Type\":\"IPv4\",\"IPv4Address\":\"0.0.0.0\"},\"Port\":8860,\"TTL\":128,\"AutoStart\":false},\"Quality\":3,\"GovLength\":50,\"Profile\":\"Main\"}",
            "name": "8",
            "description": null,
            "service": "Any",
            "vendor": "HIKVISION",
            "model": "DS-2CD2121G0-IS",
            "is_default": 0
        },
        {
            "id": 34,
            "type": "VideoEncoder_First",
            "body": "{\"Name\":\"VideoEncoder_1\",\"UseCount\":1,\"token\":\"VideoEncoderToken_1\",\"Encoding\":\"H264\",\"Resolution\":{\"Width\":1920,\"Height\":1080},\"RateControl\":{\"FrameRateLimit\":25,\"ConstantBitRate\":false,\"BitrateLimit\":4096},\"Multicast\":{\"Address\":{\"Type\":\"IPv4\",\"IPv4Address\":\"0.0.0.0\"},\"Port\":8860,\"TTL\":128,\"AutoStart\":false},\"Quality\":3,\"GovLength\":50,\"Profile\":\"Main\"}",
            "name": "9",
            "description": null,
            "service": "2MP",
            "vendor": "HIKVISION",
            "model": "DS-2CD1023G0-I",
            "is_default": 0
        },
        {
            "id": 33,
            "type": "VideoEncoder_First",
            "body": "{\"Name\":\"VideoEncoder_1\",\"UseCount\":1,\"token\":\"VideoEncoderToken_1\",\"Encoding\":\"H264\",\"Resolution\":{\"Width\":1920,\"Height\":1080},\"RateControl\":{\"FrameRateLimit\":25,\"ConstantBitRate\":false,\"BitrateLimit\":4096},\"Multicast\":{\"Address\":{\"Type\":\"IPv4\",\"IPv4Address\":\"0.0.0.0\"},\"Port\":8860,\"TTL\":128,\"AutoStart\":false},\"Quality\":3,\"GovLength\":50,\"Profile\":\"Main\"}",
            "name": "10",
            "description": null,
            "service": "2MP",
            "vendor": "HIKVISION",
            "model": "DS-2CD1023G0-I",
            "is_default": 0
        },
        {
            "id": 32,
            "type": "OSD_Text",
            "body": "{\"token\":\"OsdToken_100\",\"VideoSourceConfigurationToken\":{\"_\":\"VideoSourceToken\"},\"Type\":\"Text\",\"Position\":{\"Type\":\"Custom\",\"Pos\":{\"x\":0.772727,\"y\":-0.888889}},\"TextString\":{\"Type\":\"Plain\",\"FontSize\":32,\"FontColor\":{\"Color\":{\"X\":0,\"Y\":0,\"Z\":0,\"Colorspace\":\"http://www.onvif.org/ver10/colorspace/YCbCr\"}},\"PlainText\":\"Camera 01\",\"Extension\":{\"any\":\"<tt:ChannelName>true</tt:ChannelName>\"}}}",
            "name": "11",
            "description": null,
            "service": "Any",
            "vendor": "HIKVISION",
            "model": "DS-2CD1023G0-I",
            "is_default": 0
        },
        {
            "id": 31,
            "type": "OSD_Time",
            "body": "{\"token\":\"OsdToken_101\",\"VideoSourceConfigurationToken\":{\"_\":\"VideoSourceToken\"},\"Type\":\"Text\",\"Position\":{\"Type\":\"Custom\",\"Pos\":{\"x\":-1,\"y\":1}},\"TextString\":{\"Type\":\"DateAndTime\",\"DateFormat\":\"MM/dd/yyyy\",\"TimeFormat\":\"HH:mm:ss\",\"FontSize\":20,\"FontColor\":{\"Color\":{\"X\":0,\"Y\":0,\"Z\":0,\"Colorspace\":\"http://www.onvif.org/ver10/colorspace/YCbCr\"}},\"Extension\":{\"any\":\"<tt:ChannelName>false</tt:ChannelName>\"}}}",
            "name": "12",
            "description": null,
            "service": "Any",
            "vendor": "HIKVISION",
            "model": "DS-2CD1023G0-I",
            "is_default": 0
        },
        {
            "id": 30,
            "type": "SystemDateAndTime",
            "body": "{\"SystemDateAndTime\":{\"DateTimeType\":\"Manual\",\"DaylightSavings\":false,\"TimeZone\":{\"TZ\":\"GMT+03:00\"},\"UTCDateTime\":{\"Time\":{\"Hour\":7,\"Minute\":12,\"Second\":9},\"Date\":{\"Year\":2021,\"Month\":12,\"Day\":14}},\"LocalDateTime\":{\"Time\":{\"Hour\":10,\"Minute\":12,\"Second\":9},\"Date\":{\"Year\":2021,\"Month\":12,\"Day\":14}}}}",
            "name": "13",
            "description": null,
            "service": "Any",
            "vendor": "HIKVISION",
            "model": "DS-2CD1023G0-I",
            "is_default": 0
        },
        {
            "id": 29,
            "type": "archive_range",
            "body": "{}",
            "name": "14",
            "description": null,
            "service": "1",
            "vendor": null,
            "model": "DS-2CD1023G0-I",
            "is_default": 0
        },
        {
            "id": 28,
            "type": "archive_range",
            "body": "{}",
            "name": "15",
            "description": null,
            "service": "2",
            "vendor": null,
            "model": null,
            "is_default": 0
        },
        {
            "id": 27,
            "type": "archive_range",
            "body": "{}",
            "name": "16",
            "description": null,
            "service": "1",
            "vendor": null,
            "model": null,
            "is_default": 0
        },
        {
            "id": 26,
            "type": "archive_range",
            "body": "{}",
            "name": "17",
            "description": null,
            "service": "10",
            "vendor": null,
            "model": null,
            "is_default": 0
        },
        {
            "id": 25,
            "type": "archive_range",
            "body": "{}",
            "name": "18",
            "description": null,
            "service": "12",
            "vendor": null,
            "model": null,
            "is_default": 0
        },
        {
            "id": 24,
            "type": "archive_range",
            "body": "{}",
            "name": "19",
            "description": null,
            "service": "12",
            "vendor": null,
            "model": null,
            "is_default": 0
        },
        {
            "id": 23,
            "type": "archive_range",
            "body": "{}",
            "name": "20",
            "description": null,
            "service": "80",
            "vendor": null,
            "model": "DS-2CD1123G0E-I",
            "is_default": 0
        },
        {
            "id": 22,
            "type": "archive_range",
            "body": "{}",
            "name": "21",
            "description": null,
            "service": "12",
            "vendor": null,
            "model": null,
            "is_default": 0
        },
        {
            "id": 21,
            "type": "archive_range",
            "body": "{}",
            "name": "22",
            "description": null,
            "service": "60",
            "vendor": null,
            "model": "DS-2CD1123G0E-I",
            "is_default": 0
        },
        {
            "id": 20,
            "type": "archive_range",
            "body": "{}",
            "name": "23",
            "description": null,
            "service": "30",
            "vendor": null,
            "model": "DS-2CD1123G0E-I",
            "is_default": 0
        },
        {
            "id": 19,
            "type": "archive_range",
            "body": "{}",
            "name": "24",
            "description": null,
            "service": "30",
            "vendor": null,
            "model": null,
            "is_default": 0
        },
        {
            "id": 18,
            "type": "HostName",
            "body": "{\"HostnameInformation\":{\"FromDHCP\":false,\"Name\":\"localhost\"}}",
            "name": "25",
            "description": null,
            "service": "1.3MP",
            "vendor": "HIKVISION",
            "model": "DS-2CD1123G0E-I",
            "is_default": 0
        }
    ],
    "links": {
        "first": "https://vms.local/api/admin/v1/config-templates?per_page=25&page=1",
        "last": "https://vms.local/api/admin/v1/config-templates?per_page=25&page=2",
        "prev": null,
        "next": "https://vms.local/api/admin/v1/config-templates?per_page=25&page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://vms.local/api/admin/v1/config-templates?per_page=25&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://vms.local/api/admin/v1/config-templates?per_page=25&page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://vms.local/api/admin/v1/config-templates?per_page=25&page=2",
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://vms.local/api/admin/v1/config-templates",
        "per_page": 25,
        "to": 25,
        "total": 42
    }
}

401 Unauthorized

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

cURL
BASH
curl -k --request POST \
	--url 'https://your-domainapi/admin/v1/config-templates' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "type": "string",
    "service": "string",
    "vendor": "string",
    "model": "string",
    "name": "string",
    "per_page": 0
}'
PHP
PHP
$data = array (
  'type' => 'string',
  'service' => 'string',
  'vendor' => 'string',
  'model' => 'string',
  'name' => 'string',
  'per_page' => 0,
);
$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/admin/v1/config-templates', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.