Download OpenAPI specification:Download
新規レイアウトIDを作成。
| name required | string レイアウト名 | ||||||||||||||
| background_image | string 背景画像 Base64エンコードされたデータ形式(data:image/png;base64,... 形式) | ||||||||||||||
| grid | string Enum: "2x2" "3x3" "4x4" "5x5" "6x6" "8x8" "10x10" "none" グリッド設定 | ||||||||||||||
Array of objects (syncGroup) 同期グループ | |||||||||||||||
Array
| |||||||||||||||
object (sourceNameText) ソース名表示設定 | |||||||||||||||
| |||||||||||||||
object or null (gridMargin) グリッドマージン | |||||||||||||||
| |||||||||||||||
| id required | string <uuid> レイアウトID | ||||||||||||||||||||
| name required | string レイアウト名 | ||||||||||||||||||||
| background_image | string 背景画像(Base64エンコードされたデータ) | ||||||||||||||||||||
| grid required | string Enum: "2x2" "3x3" "4x4" "5x5" "6x6" "8x8" "10x10" "none" グリッド設定 | ||||||||||||||||||||
| createdAt | string <date-time> 作成日時 | ||||||||||||||||||||
| updatedAt | string <date-time> 更新日時 | ||||||||||||||||||||
required | Array of objects (elements) | ||||||||||||||||||||
Array
| |||||||||||||||||||||
required | Array of objects (syncGroup) 同期グループ | ||||||||||||||||||||
Array
| |||||||||||||||||||||
required | object (sourceNameText) ソース名表示設定 | ||||||||||||||||||||
| |||||||||||||||||||||
object or null (gridMargin) グリッドマージン | |||||||||||||||||||||
| |||||||||||||||||||||
{- "name": "Layout1",
- "background_image": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "grid": "2x2",
- "sync_groups": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Sync Group 1",
- "master_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "elements_source_id": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
], - "source_name_text": {
- "is_show_source_name": true,
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40
}, - "grid_margin": {
- "top": 0,
- "right": 0,
- "bottom": 0,
- "left": 0,
- "rows": 1
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Layout1",
- "background_image": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "grid": "2x2",
- "createdAt": "2023-10-01T12:00:00Z",
- "updatedAt": "2023-10-01T12:00:00Z",
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "layout_id": "118c4a32-91d1-4a21-89a4-a345ccd91280",
- "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
- "skin_id": "91123d75-4c4f-49fe-82c0-4ff966bdbbb6",
- "left": 0,
- "top": 0,
- "width": 0,
- "height": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "sync_groups": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Sync Group 1",
- "master_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "elements_source_id": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
], - "source_name_text": {
- "is_show_source_name": true,
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40
}, - "grid_margin": {
- "top": 0,
- "right": 0,
- "bottom": 0,
- "left": 0,
- "rows": 1
}
}指定のレイアウトIDのレイアウトを取得
指定が無い場合は全て取得
| id | string <uuid> Example: id=123e4567-e89b-12d3-a456-426614174000 レイアウトID |
| id required | string <uuid> レイアウトID | ||||||||||||||||||||
| name required | string レイアウト名 | ||||||||||||||||||||
| background_image | string 背景画像(Base64エンコードされたデータ) | ||||||||||||||||||||
| grid required | string Enum: "2x2" "3x3" "4x4" "5x5" "6x6" "8x8" "10x10" "none" グリッド設定 | ||||||||||||||||||||
| createdAt | string <date-time> 作成日時 | ||||||||||||||||||||
| updatedAt | string <date-time> 更新日時 | ||||||||||||||||||||
required | Array of objects (elements) | ||||||||||||||||||||
Array
| |||||||||||||||||||||
required | Array of objects (syncGroup) 同期グループ | ||||||||||||||||||||
Array
| |||||||||||||||||||||
required | object (sourceNameText) ソース名表示設定 | ||||||||||||||||||||
| |||||||||||||||||||||
object or null (gridMargin) グリッドマージン | |||||||||||||||||||||
| |||||||||||||||||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/layout?id=123e4567-e89b-12d3-a456-426614174000' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Layout1",
- "background_image": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "grid": "2x2",
- "createdAt": "2023-10-01T12:00:00Z",
- "updatedAt": "2023-10-01T12:00:00Z",
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "layout_id": "118c4a32-91d1-4a21-89a4-a345ccd91280",
- "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
- "skin_id": "91123d75-4c4f-49fe-82c0-4ff966bdbbb6",
- "left": 0,
- "top": 0,
- "width": 0,
- "height": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "sync_groups": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Sync Group 1",
- "master_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "elements_source_id": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
], - "source_name_text": {
- "is_show_source_name": true,
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40
}, - "grid_margin": {
- "top": 0,
- "right": 0,
- "bottom": 0,
- "left": 0,
- "rows": 1
}
}
]指定のレイアウトIDのレイアウトを更新
| id required | string <uuid> レイアウトID | ||||||||||||||
| name | string レイアウト名 | ||||||||||||||
| background_image | string 背景画像 Base64エンコードされたデータ形式(data:image/png;base64,... 形式) | ||||||||||||||
| grid | string Enum: "2x2" "3x3" "4x4" "5x5" "6x6" "8x8" "10x10" "none" グリッド設定 | ||||||||||||||
Array of objects (syncGroup) 同期グループ | |||||||||||||||
Array
| |||||||||||||||
object (sourceNameText) ソース名表示設定 | |||||||||||||||
| |||||||||||||||
object or null (gridMargin) グリッドマージン | |||||||||||||||
| |||||||||||||||
| id required | string <uuid> レイアウトID | ||||||||||||||||||||
| name required | string レイアウト名 | ||||||||||||||||||||
| background_image | string 背景画像(Base64エンコードされたデータ) | ||||||||||||||||||||
| grid required | string Enum: "2x2" "3x3" "4x4" "5x5" "6x6" "8x8" "10x10" "none" グリッド設定 | ||||||||||||||||||||
| createdAt | string <date-time> 作成日時 | ||||||||||||||||||||
| updatedAt | string <date-time> 更新日時 | ||||||||||||||||||||
required | Array of objects (elements) | ||||||||||||||||||||
Array
| |||||||||||||||||||||
required | Array of objects (syncGroup) 同期グループ | ||||||||||||||||||||
Array
| |||||||||||||||||||||
required | object (sourceNameText) ソース名表示設定 | ||||||||||||||||||||
| |||||||||||||||||||||
object or null (gridMargin) グリッドマージン | |||||||||||||||||||||
| |||||||||||||||||||||
{- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Layout1",
- "background_image": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "grid": "2x2",
- "sync_groups": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Sync Group 1",
- "master_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "elements_source_id": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
], - "source_name_text": {
- "is_show_source_name": true,
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40
}, - "grid_margin": {
- "top": 0,
- "right": 0,
- "bottom": 0,
- "left": 0,
- "rows": 1
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Layout1",
- "background_image": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "grid": "2x2",
- "createdAt": "2023-10-01T12:00:00Z",
- "updatedAt": "2023-10-01T12:00:00Z",
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "layout_id": "118c4a32-91d1-4a21-89a4-a345ccd91280",
- "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
- "skin_id": "91123d75-4c4f-49fe-82c0-4ff966bdbbb6",
- "left": 0,
- "top": 0,
- "width": 0,
- "height": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "sync_groups": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Sync Group 1",
- "master_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "elements_source_id": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
], - "source_name_text": {
- "is_show_source_name": true,
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40
}, - "grid_margin": {
- "top": 0,
- "right": 0,
- "bottom": 0,
- "left": 0,
- "rows": 1
}
}新規レイアウトIDを作成。
| layout_id required | string <uuid> レイアウトID |
| source_id required | string <uuid> ソースID |
| skin_id | string or null <uuid> スキンID |
| left required | integer <int32> 左上X座標 |
| top required | integer <int32> 左上Y座標 |
| width required | integer <int32> 幅 |
| height required | integer <int32> 高さ |
| id required | string <uuid> 要素ID |
| layout_id required | string <uuid> レイアウトID |
| source_id required | string <uuid> ソースID |
| skin_id | string <uuid> スキンID |
| left required | integer <int32> 左上X座標 |
| top required | integer <int32> 左上Y座標 |
| width required | integer <int32> 幅 |
| height required | integer <int32> 高さ |
| createdAt | string <date-time> 作成日時 |
| updatedAt | string <date-time> 更新日時 |
{- "layout_id": "123e4567-e89b-12d3-a456-426614174000",
- "source_id": "123e4567-e89b-12d3-a456-426614174000",
- "skin_id": "123e4567-e89b-12d3-a456-426614174000",
- "left": 0,
- "top": 0,
- "width": 240,
- "height": 135
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "layout_id": "118c4a32-91d1-4a21-89a4-a345ccd91280",
- "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
- "skin_id": "91123d75-4c4f-49fe-82c0-4ff966bdbbb6",
- "left": 0,
- "top": 0,
- "width": 0,
- "height": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}指定のレイアウトIDのレイアウトを更新
| id required | string <uuid> 要素ID |
| layout_id | string <uuid> レイアウトID |
| source_id | string <uuid> ソースID |
| skin_id | string <uuid> スキンID |
| left | integer <int32> 左上X座標 |
| top | integer <int32> 左上Y座標 |
| width | integer <int32> 幅 |
| height | integer <int32> 高さ |
| id required | string <uuid> 要素ID |
| layout_id required | string <uuid> レイアウトID |
| source_id required | string <uuid> ソースID |
| skin_id | string <uuid> スキンID |
| left required | integer <int32> 左上X座標 |
| top required | integer <int32> 左上Y座標 |
| width required | integer <int32> 幅 |
| height required | integer <int32> 高さ |
| createdAt | string <date-time> 作成日時 |
| updatedAt | string <date-time> 更新日時 |
{- "id": "123e4567-e89b-12d3-a456-426614174000",
- "layout_id": "123e4567-e89b-12d3-a456-426614174000",
- "source_id": "123e4567-e89b-12d3-a456-426614174000",
- "skin_id": "123e4567-e89b-12d3-a456-426614174000",
- "left": 0,
- "top": 0,
- "width": 480,
- "height": 270
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "layout_id": "118c4a32-91d1-4a21-89a4-a345ccd91280",
- "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
- "skin_id": "91123d75-4c4f-49fe-82c0-4ff966bdbbb6",
- "left": 0,
- "top": 0,
- "width": 0,
- "height": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}指定のレイアウトIDのレイアウト情報を削除します
| id required | string <uuid> Example: id=123e4567-e89b-12d3-a456-426614174000 要素ID |
curl -X 'DELETE' \ 'http://<ServerAddress>/api/layout/element?id=123e4567-e89b-12d3-a456-426614174000' \ -H 'x-api-key: YOUR_API_KEY'
指定のレイアウトIDのレイアウト情報を全削除します
| id required | string <uuid> Example: id=123e4567-e89b-12d3-a456-426614174000 レイアウトID |
curl -X 'DELETE' \ 'http://<ServerAddress>/api/layout/clear?id=123e4567-e89b-12d3-a456-426614174000' \ -H 'x-api-key: YOUR_API_KEY'
レイアウト情報を再送・再起動します。 全スクリーンのレイアウトを更新し、レシーバーコンテナを再起動して、 パトロールループとライセンスチェックを更新します。
| clients required | integer 接続クライアント数 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| statuuid required | string <uuid> ステータスUUID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object HLSオーディオ位置情報 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (screen) スクリーン一覧 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (layout) レイアウト一覧 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (Source) ソース一覧 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of resourceTypeText (object) or resourceTypePicture (object) or resourceTypeAnalogClock (object) or resourceTypeDigitalClock (object) リソース一覧 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array One of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (skin) スキン一覧 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isEnoughPatrolPoints required | boolean パトロールポイントが十分かどうか | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/layout/reload' \ -H 'x-api-key: YOUR_API_KEY'
{- "clients": 5,
- "statuuid": "123e4567-e89b-12d3-a456-426614174000",
- "selectHLSAudioPosition": {
- "property1": {
- "top": 0,
- "left": 0,
- "width": 1920,
- "height": 1080
}, - "property2": {
- "top": 0,
- "left": 0,
- "width": 1920,
- "height": 1080
}
}, - "screens": [
- {
- "id": 1,
- "name": "Screen1",
- "layout_id": "123e4567-e89b-12d3-a456-426614174000",
- "webrtc_bitrate": 1000000,
- "custom_bitrate": 2000000,
- "display_output_enable": true,
- "display_output_connector_id": 1,
- "audio_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "createdAt": "2023-10-01T12:00:00Z",
- "updatedAt": "2023-10-01T12:00:00Z"
}
], - "layouts": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Layout1",
- "background_image": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "grid": "2x2",
- "createdAt": "2023-10-01T12:00:00Z",
- "updatedAt": "2023-10-01T12:00:00Z",
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "layout_id": "118c4a32-91d1-4a21-89a4-a345ccd91280",
- "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
- "skin_id": "91123d75-4c4f-49fe-82c0-4ff966bdbbb6",
- "left": 0,
- "top": 0,
- "width": 0,
- "height": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "sync_groups": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Sync Group 1",
- "master_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "elements_source_id": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
], - "source_name_text": {
- "is_show_source_name": true,
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40
}, - "grid_margin": {
- "top": 0,
- "right": 0,
- "bottom": 0,
- "left": 0,
- "rows": 1
}
}
], - "sources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Sample Source Name",
- "deehiveKey": "AAA0000-000",
- "protocol_type_id": 1,
- "parameter": {
- "connection": {
- "isIpv6": false,
- "mode": "Listener",
- "port": 30000
}, - "srt": {
- "latency": 250,
- "rcvbuf": 868608,
- "sendbuf": 868608,
- "maxbw": 0,
- "cryptomode": 1,
- "passphrase": "string",
- "oheadbw": 25,
- "mss": 1496,
- "ttl": 64,
- "tos": "0x2E"
}, - "deinterlace": false,
- "rescale": {
- "enable": false,
- "width": 1280,
- "height": 720
}, - "probesize": 100,
- "program_id": 1,
- "vamon": {
- "enable": false,
- "blackout": {
- "enable": true,
- "threshold": 30,
- "area": 100,
- "duration": 10
}, - "freeze": {
- "enable": true,
- "threshold": 12,
- "area": 99.9,
- "duration": 90
}, - "silence": {
- "enable": true,
- "threshold": -48,
- "duration": 45
}
}, - "scte35": true,
- "tsmon": {
- "enable": true,
- "ts_sync_loss": true,
- "sync_byte_error": true,
- "pat_error": true,
- "continuity_count_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pmt_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pid_error": true,
- "pid_list": [
- {
- "pid": 0,
- "period": 1
}
], - "transport_error": true,
- "crc_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error_bitrate": {
- "numerator": 10,
- "denominator": 1
}, - "pts_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "cat_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}
}, - "startupWebhook": {
- "enabled": false,
- "method": "POST",
- "headers": [
- {
- "key": "Content-Type",
- "value": "application/json"
}
], - "body": "{\"message\": \"Hello, world!\"}",
- "afterWait": 3
}
}, - "zoom": {
- "video_type": "high",
- "streams": {
- "width": 1280,
- "height": 720,
- "avgBitrate": "2000K"
}
}, - "deZoom": {
- "video_type": "low",
- "streams": {
- "width": 256,
- "height": 144,
- "avgBitrate": "1K"
}
}, - "mask_rule_id": 1,
- "always_start": false,
- "tally_id": 1,
- "enableLowBandwidthError": false,
- "lowBandwidthErrorThreshold": 1000,
- "initialLogMaskSec": 5,
- "patrolSwitchLogMaskSec": 5
}
], - "resources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "サンプルテキスト",
- "parameter": {
- "id": 2,
- "type": "text",
- "text": "This is display text.",
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40,
- "is_vertical_text": false
}
}
], - "skins": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "elements": [
- {
- "type": "video",
- "value": "string",
- "left": 0,
- "top": 0,
- "width": 0,
- "height": 0
}
]
}
], - "isEnoughPatrolPoints": true
}新しいソースを追加します。 ソースIDは新しいUUIDを割り当て、返答に含めます。
| deehiveKey | string ユニットID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string ソース名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| protocol_type_id required | integer プロトコルタイプID
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object パラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Zoom時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 通常時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mask_rule_id | integer or null マスクルールID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| always_start | boolean 常に受信 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tally_id | integer タリーID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| enableLowBandwidthError | boolean 低帯域幅エラー有効 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lowBandwidthErrorThreshold | integer 低帯域幅エラー閾値 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initialLogMaskSec | integer or null [ 0 .. 60 ] 起動時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| patrolSwitchLogMaskSec | integer or null [ 0 .. 60 ] 巡回切替時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> ソースID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string ソース名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| deehiveKey | string ユニットID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| protocol_type_id | integer プロトコルタイプID
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object パラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Zoom時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 通常時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mask_rule_id | integer or null マスクルールID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| always_start | boolean 常に受信 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tally_id | integer タリーID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| enableLowBandwidthError | boolean 低帯域幅エラー有効 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lowBandwidthErrorThreshold | integer 低帯域幅エラー閾値 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initialLogMaskSec | integer or null [ 0 .. 60 ] 起動時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| patrolSwitchLogMaskSec | integer or null [ 0 .. 60 ] 巡回切替時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "deehiveKey": "AAA0000-000",
- "name": "string",
- "protocol_type_id": "1",
- "parameter": {
- "connection": {
- "isIpv6": false,
- "port": 30000,
- "receiver": 51000,
- "mode": "Listener"
}, - "srt": {
- "latency": 250,
- "rcvbuf": 868608,
- "sendbuf": 868608,
- "maxbw": 0,
- "cryptomode": 1,
- "passphrase": "string",
- "oheadbw": 25,
- "mss": 1496,
- "ttl": 64,
- "tos": "0x2E"
}, - "probesize": 100,
- "deinterlace": false,
- "rescale": {
- "enable": false,
- "width": 1280,
- "height": 720
}, - "program_id": 1,
- "vamon": {
- "enable": false,
- "blackout": {
- "enable": true,
- "threshold": 30,
- "area": 100,
- "duration": 10
}, - "freeze": {
- "enable": true,
- "threshold": 12,
- "area": 99.9,
- "duration": 90
}, - "silence": {
- "enable": true,
- "threshold": -48,
- "duration": 45
}
}, - "scte35": true,
- "tsmon": {
- "enable": true,
- "ts_sync_loss": true,
- "sync_byte_error": true,
- "pat_error": true,
- "continuity_count_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pmt_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pid_error": true,
- "pid_list": [
- {
- "pid": 0,
- "period": 1
}
], - "transport_error": true,
- "crc_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error_bitrate": {
- "numerator": 10,
- "denominator": 1
}, - "pts_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "cat_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}
}, - "startupWebhook": {
- "enabled": false,
- "method": "POST",
- "headers": [
- {
- "key": "Content-Type",
- "value": "application/json"
}
], - "body": "{\"message\": \"Hello, world!\"}",
- "afterWait": 3
}
}, - "zoom": {
- "video_type": "high",
- "streams": {
- "width": 1280,
- "height": 720,
- "avgBitrate": "2000K"
}
}, - "deZoom": {
- "video_type": "low",
- "streams": {
- "width": 256,
- "height": 144,
- "avgBitrate": "1K"
}
}, - "mask_rule_id": 1,
- "always_start": false,
- "tally_id": 1,
- "enableLowBandwidthError": false,
- "lowBandwidthErrorThreshold": 1000,
- "initialLogMaskSec": 5,
- "patrolSwitchLogMaskSec": 5
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Sample Source Name",
- "deehiveKey": "AAA0000-000",
- "protocol_type_id": 1,
- "parameter": {
- "connection": {
- "isIpv6": false,
- "mode": "Listener",
- "port": 30000
}, - "srt": {
- "latency": 250,
- "rcvbuf": 868608,
- "sendbuf": 868608,
- "maxbw": 0,
- "cryptomode": 1,
- "passphrase": "string",
- "oheadbw": 25,
- "mss": 1496,
- "ttl": 64,
- "tos": "0x2E"
}, - "deinterlace": false,
- "rescale": {
- "enable": false,
- "width": 1280,
- "height": 720
}, - "probesize": 100,
- "program_id": 1,
- "vamon": {
- "enable": false,
- "blackout": {
- "enable": true,
- "threshold": 30,
- "area": 100,
- "duration": 10
}, - "freeze": {
- "enable": true,
- "threshold": 12,
- "area": 99.9,
- "duration": 90
}, - "silence": {
- "enable": true,
- "threshold": -48,
- "duration": 45
}
}, - "scte35": true,
- "tsmon": {
- "enable": true,
- "ts_sync_loss": true,
- "sync_byte_error": true,
- "pat_error": true,
- "continuity_count_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pmt_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pid_error": true,
- "pid_list": [
- {
- "pid": 0,
- "period": 1
}
], - "transport_error": true,
- "crc_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error_bitrate": {
- "numerator": 10,
- "denominator": 1
}, - "pts_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "cat_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}
}, - "startupWebhook": {
- "enabled": false,
- "method": "POST",
- "headers": [
- {
- "key": "Content-Type",
- "value": "application/json"
}
], - "body": "{\"message\": \"Hello, world!\"}",
- "afterWait": 3
}
}, - "zoom": {
- "video_type": "high",
- "streams": {
- "width": 1280,
- "height": 720,
- "avgBitrate": "2000K"
}
}, - "deZoom": {
- "video_type": "low",
- "streams": {
- "width": 256,
- "height": 144,
- "avgBitrate": "1K"
}
}, - "mask_rule_id": 1,
- "always_start": false,
- "tally_id": 1,
- "enableLowBandwidthError": false,
- "lowBandwidthErrorThreshold": 1000,
- "initialLogMaskSec": 5,
- "patrolSwitchLogMaskSec": 5
}入力ソースの情報を返します
ソースID指定無しの場合は全ての一覧を返します
| id | string <uuid> ソースID |
| id | string <uuid> ソースID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| deehiveKey | string ユニットID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string ソース名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| protocol_type_id required | integer プロトコルタイプID
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object パラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Zoom時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 通常時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mask_rule_id | integer or null マスクルールID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| always_start | boolean 常に受信 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tally_id | integer タリーID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| enableLowBandwidthError | boolean 低帯域幅エラー有効 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lowBandwidthErrorThreshold | integer 低帯域幅エラー閾値 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initialLogMaskSec | integer or null [ 0 .. 60 ] 起動時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| patrolSwitchLogMaskSec | integer or null [ 0 .. 60 ] 巡回切替時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/source?id=%7Bid%7D' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "deehiveKey": "AAA0000-000",
- "name": "string",
- "protocol_type_id": 1,
- "parameter": {
- "connection": {
- "isIpv6": false,
- "port": 30000,
- "receiver": 51000,
- "mode": "Listener"
}, - "srt": {
- "latency": 250,
- "rcvbuf": 868608,
- "sendbuf": 868608,
- "maxbw": 0,
- "cryptomode": 1,
- "passphrase": "string",
- "oheadbw": 25,
- "mss": 1496,
- "ttl": 64,
- "tos": "0x2E"
}, - "probesize": 100,
- "deinterlace": false,
- "rescale": {
- "enable": false,
- "width": 1280,
- "height": 720
}, - "program_id": 1,
- "vamon": {
- "enable": false,
- "blackout": {
- "enable": true,
- "threshold": 30,
- "area": 100,
- "duration": 10
}, - "freeze": {
- "enable": true,
- "threshold": 12,
- "area": 99.9,
- "duration": 90
}, - "silence": {
- "enable": true,
- "threshold": -48,
- "duration": 45
}
}, - "scte35": true,
- "tsmon": {
- "enable": true,
- "ts_sync_loss": true,
- "sync_byte_error": true,
- "pat_error": true,
- "continuity_count_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pmt_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pid_error": true,
- "pid_list": [
- {
- "pid": 0,
- "period": 1
}
], - "transport_error": true,
- "crc_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error_bitrate": {
- "numerator": 10,
- "denominator": 1
}, - "pts_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "cat_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}
}, - "startupWebhook": {
- "enabled": false,
- "method": "POST",
- "headers": [
- {
- "key": "Content-Type",
- "value": "application/json"
}
], - "body": "{\"message\": \"Hello, world!\"}",
- "afterWait": 3
}
}, - "zoom": {
- "video_type": "high",
- "streams": {
- "width": 1280,
- "height": 720,
- "avgBitrate": "2000K"
}
}, - "deZoom": {
- "video_type": "low",
- "streams": {
- "width": 256,
- "height": 144,
- "avgBitrate": "1K"
}
}, - "mask_rule_id": 1,
- "always_start": false,
- "tally_id": 1,
- "enableLowBandwidthError": false,
- "lowBandwidthErrorThreshold": 1000,
- "initialLogMaskSec": 5,
- "patrolSwitchLogMaskSec": 5
}
]指定のソースIDのソース情報を更新します
| id required | string <uuid> Example: id=123e4567-e89b-12d3-a456-426614174000 ソースID |
| deehiveKey | string ユニットID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string ソース名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| protocol_type_id required | integer プロトコルタイプID
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object パラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Zoom時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 通常時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mask_rule_id | integer or null マスクルールID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| always_start | boolean 常に受信 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tally_id | integer タリーID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| enableLowBandwidthError | boolean 低帯域幅エラー有効 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lowBandwidthErrorThreshold | integer 低帯域幅エラー閾値 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initialLogMaskSec | integer or null [ 0 .. 60 ] 起動時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| patrolSwitchLogMaskSec | integer or null [ 0 .. 60 ] 巡回切替時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> ソースID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string ソース名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| deehiveKey | string ユニットID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| protocol_type_id | integer プロトコルタイプID
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object パラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Zoom時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 通常時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mask_rule_id | integer or null マスクルールID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| always_start | boolean 常に受信 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tally_id | integer タリーID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| enableLowBandwidthError | boolean 低帯域幅エラー有効 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lowBandwidthErrorThreshold | integer 低帯域幅エラー閾値 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initialLogMaskSec | integer or null [ 0 .. 60 ] 起動時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| patrolSwitchLogMaskSec | integer or null [ 0 .. 60 ] 巡回切替時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "deehiveKey": "AAA0000-000",
- "name": "string",
- "protocol_type_id": "1",
- "parameter": {
- "connection": {
- "isIpv6": false,
- "port": 30000,
- "receiver": 51000,
- "mode": "Listener"
}, - "srt": {
- "latency": 250,
- "rcvbuf": 868608,
- "sendbuf": 868608,
- "maxbw": 0,
- "cryptomode": 1,
- "passphrase": "string",
- "oheadbw": 25,
- "mss": 1496,
- "ttl": 64,
- "tos": "0x2E"
}, - "probesize": 100,
- "deinterlace": false,
- "rescale": {
- "enable": false,
- "width": 1280,
- "height": 720
}, - "program_id": 1,
- "vamon": {
- "enable": false,
- "blackout": {
- "enable": true,
- "threshold": 30,
- "area": 100,
- "duration": 10
}, - "freeze": {
- "enable": true,
- "threshold": 12,
- "area": 99.9,
- "duration": 90
}, - "silence": {
- "enable": true,
- "threshold": -48,
- "duration": 45
}
}, - "scte35": true,
- "tsmon": {
- "enable": true,
- "ts_sync_loss": true,
- "sync_byte_error": true,
- "pat_error": true,
- "continuity_count_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pmt_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pid_error": true,
- "pid_list": [
- {
- "pid": 0,
- "period": 1
}
], - "transport_error": true,
- "crc_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error_bitrate": {
- "numerator": 10,
- "denominator": 1
}, - "pts_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "cat_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}
}, - "startupWebhook": {
- "enabled": false,
- "method": "POST",
- "headers": [
- {
- "key": "Content-Type",
- "value": "application/json"
}
], - "body": "{\"message\": \"Hello, world!\"}",
- "afterWait": 3
}
}, - "zoom": {
- "video_type": "high",
- "streams": {
- "width": 1280,
- "height": 720,
- "avgBitrate": "2000K"
}
}, - "deZoom": {
- "video_type": "low",
- "streams": {
- "width": 256,
- "height": 144,
- "avgBitrate": "1K"
}
}, - "mask_rule_id": 1,
- "always_start": false,
- "tally_id": 1,
- "enableLowBandwidthError": false,
- "lowBandwidthErrorThreshold": 1000,
- "initialLogMaskSec": 5,
- "patrolSwitchLogMaskSec": 5
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Sample Source Name",
- "deehiveKey": "AAA0000-000",
- "protocol_type_id": 1,
- "parameter": {
- "connection": {
- "isIpv6": false,
- "mode": "Listener",
- "port": 30000
}, - "srt": {
- "latency": 250,
- "rcvbuf": 868608,
- "sendbuf": 868608,
- "maxbw": 0,
- "cryptomode": 1,
- "passphrase": "string",
- "oheadbw": 25,
- "mss": 1496,
- "ttl": 64,
- "tos": "0x2E"
}, - "deinterlace": false,
- "rescale": {
- "enable": false,
- "width": 1280,
- "height": 720
}, - "probesize": 100,
- "program_id": 1,
- "vamon": {
- "enable": false,
- "blackout": {
- "enable": true,
- "threshold": 30,
- "area": 100,
- "duration": 10
}, - "freeze": {
- "enable": true,
- "threshold": 12,
- "area": 99.9,
- "duration": 90
}, - "silence": {
- "enable": true,
- "threshold": -48,
- "duration": 45
}
}, - "scte35": true,
- "tsmon": {
- "enable": true,
- "ts_sync_loss": true,
- "sync_byte_error": true,
- "pat_error": true,
- "continuity_count_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pmt_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pid_error": true,
- "pid_list": [
- {
- "pid": 0,
- "period": 1
}
], - "transport_error": true,
- "crc_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error_bitrate": {
- "numerator": 10,
- "denominator": 1
}, - "pts_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "cat_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}
}, - "startupWebhook": {
- "enabled": false,
- "method": "POST",
- "headers": [
- {
- "key": "Content-Type",
- "value": "application/json"
}
], - "body": "{\"message\": \"Hello, world!\"}",
- "afterWait": 3
}
}, - "zoom": {
- "video_type": "high",
- "streams": {
- "width": 1280,
- "height": 720,
- "avgBitrate": "2000K"
}
}, - "deZoom": {
- "video_type": "low",
- "streams": {
- "width": 256,
- "height": 144,
- "avgBitrate": "1K"
}
}, - "mask_rule_id": 1,
- "always_start": false,
- "tally_id": 1,
- "enableLowBandwidthError": false,
- "lowBandwidthErrorThreshold": 1000,
- "initialLogMaskSec": 5,
- "patrolSwitchLogMaskSec": 5
}指定のソースIDのソース情報を削除します
| id required | string <uuid> Example: id=123e4567-e89b-12d3-a456-426614174000 ソースID |
curl -X 'DELETE' \ 'http://<ServerAddress>/api/source?id=123e4567-e89b-12d3-a456-426614174000' \ -H 'x-api-key: YOUR_API_KEY'
既存のソースデータをインポートします。 既存のIDが指定された場合は更新、新規の場合は作成を行います。 UUID形式でないIDが指定された場合は新しいUUIDを生成します。 ポート番号の重複チェックを行い、必要に応じて自動割り当てします。
| deehiveKey | string ユニットID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string ソース名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| protocol_type_id required | integer プロトコルタイプID
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object パラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Zoom時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 通常時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mask_rule_id | integer or null マスクルールID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| always_start | boolean 常に受信 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tally_id | integer タリーID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| enableLowBandwidthError | boolean 低帯域幅エラー有効 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lowBandwidthErrorThreshold | integer 低帯域幅エラー閾値 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initialLogMaskSec | integer or null [ 0 .. 60 ] 起動時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| patrolSwitchLogMaskSec | integer or null [ 0 .. 60 ] 巡回切替時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> ソースID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string ソース名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| deehiveKey | string ユニットID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| protocol_type_id | integer プロトコルタイプID
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object パラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Zoom時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 通常時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mask_rule_id | integer or null マスクルールID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| always_start | boolean 常に受信 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tally_id | integer タリーID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| enableLowBandwidthError | boolean 低帯域幅エラー有効 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lowBandwidthErrorThreshold | integer 低帯域幅エラー閾値 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initialLogMaskSec | integer or null [ 0 .. 60 ] 起動時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| patrolSwitchLogMaskSec | integer or null [ 0 .. 60 ] 巡回切替時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> ソースID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string ソース名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| deehiveKey | string ユニットID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| protocol_type_id | integer プロトコルタイプID
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object パラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Zoom時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 通常時のビデオパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mask_rule_id | integer or null マスクルールID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| always_start | boolean 常に受信 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tally_id | integer タリーID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| enableLowBandwidthError | boolean 低帯域幅エラー有効 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lowBandwidthErrorThreshold | integer 低帯域幅エラー閾値 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initialLogMaskSec | integer or null [ 0 .. 60 ] 起動時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| patrolSwitchLogMaskSec | integer or null [ 0 .. 60 ] 巡回切替時ログマスク時間(秒) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| message | string エラーメッセージ |
| error | string エラーメッセージ |
| details | string 詳細エラー情報 |
| duplicateId | string <uuid> 重複したID |
| sqlMessage | string SQLエラーメッセージ |
{- "deehiveKey": "AAA0000-000",
- "name": "string",
- "protocol_type_id": "1",
- "parameter": {
- "connection": {
- "isIpv6": false,
- "port": 30000,
- "receiver": 51000,
- "mode": "Listener"
}, - "srt": {
- "latency": 250,
- "rcvbuf": 868608,
- "sendbuf": 868608,
- "maxbw": 0,
- "cryptomode": 1,
- "passphrase": "string",
- "oheadbw": 25,
- "mss": 1496,
- "ttl": 64,
- "tos": "0x2E"
}, - "probesize": 100,
- "deinterlace": false,
- "rescale": {
- "enable": false,
- "width": 1280,
- "height": 720
}, - "program_id": 1,
- "vamon": {
- "enable": false,
- "blackout": {
- "enable": true,
- "threshold": 30,
- "area": 100,
- "duration": 10
}, - "freeze": {
- "enable": true,
- "threshold": 12,
- "area": 99.9,
- "duration": 90
}, - "silence": {
- "enable": true,
- "threshold": -48,
- "duration": 45
}
}, - "scte35": true,
- "tsmon": {
- "enable": true,
- "ts_sync_loss": true,
- "sync_byte_error": true,
- "pat_error": true,
- "continuity_count_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pmt_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pid_error": true,
- "pid_list": [
- {
- "pid": 0,
- "period": 1
}
], - "transport_error": true,
- "crc_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error_bitrate": {
- "numerator": 10,
- "denominator": 1
}, - "pts_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "cat_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}
}, - "startupWebhook": {
- "enabled": false,
- "method": "POST",
- "headers": [
- {
- "key": "Content-Type",
- "value": "application/json"
}
], - "body": "{\"message\": \"Hello, world!\"}",
- "afterWait": 3
}
}, - "zoom": {
- "video_type": "high",
- "streams": {
- "width": 1280,
- "height": 720,
- "avgBitrate": "2000K"
}
}, - "deZoom": {
- "video_type": "low",
- "streams": {
- "width": 256,
- "height": 144,
- "avgBitrate": "1K"
}
}, - "mask_rule_id": 1,
- "always_start": false,
- "tally_id": 1,
- "enableLowBandwidthError": false,
- "lowBandwidthErrorThreshold": 1000,
- "initialLogMaskSec": 5,
- "patrolSwitchLogMaskSec": 5
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Sample Source Name",
- "deehiveKey": "AAA0000-000",
- "protocol_type_id": 1,
- "parameter": {
- "connection": {
- "isIpv6": false,
- "mode": "Listener",
- "port": 30000
}, - "srt": {
- "latency": 250,
- "rcvbuf": 868608,
- "sendbuf": 868608,
- "maxbw": 0,
- "cryptomode": 1,
- "passphrase": "string",
- "oheadbw": 25,
- "mss": 1496,
- "ttl": 64,
- "tos": "0x2E"
}, - "deinterlace": false,
- "rescale": {
- "enable": false,
- "width": 1280,
- "height": 720
}, - "probesize": 100,
- "program_id": 1,
- "vamon": {
- "enable": false,
- "blackout": {
- "enable": true,
- "threshold": 30,
- "area": 100,
- "duration": 10
}, - "freeze": {
- "enable": true,
- "threshold": 12,
- "area": 99.9,
- "duration": 90
}, - "silence": {
- "enable": true,
- "threshold": -48,
- "duration": 45
}
}, - "scte35": true,
- "tsmon": {
- "enable": true,
- "ts_sync_loss": true,
- "sync_byte_error": true,
- "pat_error": true,
- "continuity_count_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pmt_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pid_error": true,
- "pid_list": [
- {
- "pid": 0,
- "period": 1
}
], - "transport_error": true,
- "crc_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "pcr_accuracy_error_bitrate": {
- "numerator": 10,
- "denominator": 1
}, - "pts_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}, - "cat_error": {
- "enable": true,
- "mask": [
- 0,
- 1,
- 2
]
}
}, - "startupWebhook": {
- "enabled": false,
- "method": "POST",
- "headers": [
- {
- "key": "Content-Type",
- "value": "application/json"
}
], - "body": "{\"message\": \"Hello, world!\"}",
- "afterWait": 3
}
}, - "zoom": {
- "video_type": "high",
- "streams": {
- "width": 1280,
- "height": 720,
- "avgBitrate": "2000K"
}
}, - "deZoom": {
- "video_type": "low",
- "streams": {
- "width": 256,
- "height": 144,
- "avgBitrate": "1K"
}
}, - "mask_rule_id": 1,
- "always_start": false,
- "tally_id": 1,
- "enableLowBandwidthError": false,
- "lowBandwidthErrorThreshold": 1000,
- "initialLogMaskSec": 5,
- "patrolSwitchLogMaskSec": 5
}指定されたソースIDのストリーム情報を取得します。 ストリームの詳細情報(解像度、フレームレート、コーデック等)を返します。
| id required | string <uuid> Example: id=123e4567-e89b-12d3-a456-426614174000 ソースID |
| width | integer 解像度の幅 |
| height | integer 解像度の高さ |
| framerate | number フレームレート |
| codec | string コーデック名 |
| bitrate | integer ビットレート |
| duration | number ストリームの長さ(秒) |
| status | string Enum: "active" "inactive" "error" ストリームの状態 |
curl -X 'GET' \ 'http://<ServerAddress>/api/source/streaminfo?id=123e4567-e89b-12d3-a456-426614174000' \ -H 'x-api-key: YOUR_API_KEY'
{- "width": 1920,
- "height": 1080,
- "framerate": 29.97,
- "codec": "h264",
- "bitrate": 5000000,
- "duration": 3600.5,
- "status": "active"
}指定されたソースIDのストリーム情報取得を要求します。 ストリーム情報の更新をトリガーします。
| id required | string <uuid> Example: id=123e4567-e89b-12d3-a456-426614174000 ソースID |
| success | boolean 要求の成功/失敗 |
| message | string 結果メッセージ |
| sourceId | string <uuid> 対象ソースID |
curl -X 'POST' \ 'http://<ServerAddress>/api/source/streaminfo?id=123e4567-e89b-12d3-a456-426614174000' \ -H 'x-api-key: YOUR_API_KEY'
{- "success": true,
- "message": "ストリーム情報取得要求を送信しました",
- "sourceId": "123e4567-e89b-12d3-a456-426614174000"
}ネットワーク上で利用可能なNDIソースの一覧を取得します。 NDI(Network Device Interface)対応デバイスから送信されている ストリームの一覧を返します。
| name | string NDIソース名 |
| sourceName | string NDIソースの内部名 |
| ipAddress | string <ipv4> 送信元IPアドレス |
| port | integer 送信元ポート番号 |
| groupName | string NDIグループ名 |
| urlAddress | string NDIソースのURLアドレス |
| isOnline | boolean オンライン状態 |
| resolution | string 解像度 |
| framerate | number フレームレート |
| colorFormat | string カラーフォーマット |
| audioChannels | integer オーディオチャンネル数 |
| audioSampleRate | integer オーディオサンプルレート |
| audioBitsPerSample | integer オーディオビット深度 |
| error | string エラーメッセージ |
curl -X 'GET' \ 'http://<ServerAddress>/api/source/ndi' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "name": "Camera 1",
- "sourceName": "CAMERA_01",
- "ipAddress": "192.168.1.100",
- "port": 5353,
- "groupName": "Production",
- "urlAddress": "192.168.1.100:5353",
- "isOnline": true,
- "resolution": "1920x1080",
- "framerate": 29.97,
- "colorFormat": "UYVY",
- "audioChannels": 2,
- "audioSampleRate": 48000,
- "audioBitsPerSample": 16
}
]新しいリソースを追加します。 リソースIDは新しいUUIDを割り当て、返答に含めます。
| name required | string リソース名 | ||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
| id required | string <uuid> リソースID | ||||||||||||||||||||
| name required | string リソース名 | ||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
{- "name": "サンプルテキスト",
- "parameter": {
- "id": 2,
- "type": "text",
- "text": "This is display text.",
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40,
- "is_vertical_text": false
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "サンプルテキスト",
- "parameter": {
- "id": 2,
- "type": "text",
- "text": "This is display text.",
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40,
- "is_vertical_text": false
}
}リソースの情報を返します ソースID指定無しの場合は全ての一覧を返します
| id | string <uuid> リソースID |
| id required | string <uuid> リソースID | ||||||
| name required | string リソース名 | ||||||
required | object | ||||||
| |||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/resource?id=%7Bid%7D' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ロゴ画像",
- "parameter": {
- "id": 1,
- "type": "picture",
- "data": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
}
]指定のリソースIDのリソース情報を更新します
| id required | string <uuid> Example: id=123e4567-e89b-12d3-a456-426614174000 リソースID |
| name required | string リソース名 | ||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
| id required | string <uuid> リソースID | ||||||||||||||||||||
| name required | string リソース名 | ||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
{- "name": "サンプルテキスト",
- "parameter": {
- "id": 2,
- "type": "text",
- "text": "This is display text.",
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40,
- "is_vertical_text": false
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "サンプルテキスト",
- "parameter": {
- "id": 2,
- "type": "text",
- "text": "This is display text.",
- "x_align": 0,
- "y_align": 0,
- "text_color": "#ff00ff",
- "text_border_color": "#ffffff",
- "text_background_color": "#adadad",
- "font_size": 40,
- "is_vertical_text": false
}
}指定のリソースIDのリソース情報を削除します
| id required | string <uuid> Example: id=123e4567-e89b-12d3-a456-426614174000 リソースID |
curl -X 'DELETE' \ 'http://<ServerAddress>/api/resource?id=123e4567-e89b-12d3-a456-426614174000' \ -H 'x-api-key: YOUR_API_KEY'
新規スクリーンを作成します。
| name required | string スクリーン名 |
| layout_id | string <uuid> レイアウトID(空文字列の場合はレイアウトなし) |
| webrtc_bitrate | number WebRTCビットレート |
| custom_bitrate | number カスタム出力の最大ビットレート |
| display_output_enable | boolean ディスプレイ出力有効 |
| display_output_connector_id | number ディスプレイ出力コネクタID(指定しない場合は0) |
| id | integer スクリーンID |
| name | string スクリーン名 |
| layout_id | string <uuid> レイアウトID |
| webrtc_bitrate | number WebRTCビットレート |
| custom_bitrate | number カスタム出力の最大ビットレート |
| display_output_enable | boolean ディスプレイ出力有効 |
| display_output_connector_id | number ディスプレイ出力コネクタID |
| audio_source_id | string <uuid> 音声選択されたソースID |
| createdAt | string <date-time> 作成日時 |
| updatedAt | string <date-time> 更新日時 |
| error | string エラーメッセージ |
{- "name": "Screen1",
- "layout_id": "123e4567-e89b-12d3-a456-426614174000",
- "webrtc_bitrate": 1000000,
- "custom_bitrate": 2000000,
- "display_output_enable": true,
- "display_output_connector_id": 1
}{- "id": 1,
- "name": "Screen1",
- "layout_id": "123e4567-e89b-12d3-a456-426614174000",
- "webrtc_bitrate": 1000000,
- "custom_bitrate": 2000000,
- "display_output_enable": true,
- "display_output_connector_id": 1,
- "audio_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "createdAt": "2023-10-01T12:00:00Z",
- "updatedAt": "2023-10-01T12:00:00Z"
}指定のスクリーンIDのスクリーンを取得 指定が無い場合は全て取得
| id | integer Example: id=1 スクリーンID |
| id | integer スクリーンID |
| name | string スクリーン名 |
| layout_id | string <uuid> レイアウトID |
| webrtc_bitrate | number WebRTCビットレート |
| custom_bitrate | number カスタム出力の最大ビットレート |
| display_output_enable | boolean ディスプレイ出力有効 |
| display_output_connector_id | number ディスプレイ出力コネクタID |
| audio_source_id | string <uuid> 音声選択されたソースID |
| createdAt | string <date-time> 作成日時 |
| updatedAt | string <date-time> 更新日時 |
| error | string エラーメッセージ |
curl -X 'GET' \ 'http://<ServerAddress>/api/screens?id=1' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": 1,
- "name": "Screen1",
- "layout_id": "123e4567-e89b-12d3-a456-426614174000",
- "webrtc_bitrate": 1000000,
- "custom_bitrate": 2000000,
- "display_output_enable": true,
- "display_output_connector_id": 1,
- "audio_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "createdAt": "2023-10-01T12:00:00Z",
- "updatedAt": "2023-10-01T12:00:00Z"
}
]指定のスクリーンIDのスクリーンを更新
| id required | integer スクリーンID |
| name | string スクリーン名 |
| layout_id | string <uuid> レイアウトID(空文字列の場合はレイアウトなし) |
| webrtc_bitrate | number WebRTCビットレート |
| custom_bitrate | number カスタム出力の最大ビットレート |
| display_output_enable | boolean ディスプレイ出力有効 |
| display_output_connector_id | number ディスプレイ出力コネクタID |
| id | integer スクリーンID |
| name | string スクリーン名 |
| layout_id | string <uuid> レイアウトID |
| webrtc_bitrate | number WebRTCビットレート |
| custom_bitrate | number カスタム出力の最大ビットレート |
| display_output_enable | boolean ディスプレイ出力有効 |
| display_output_connector_id | number ディスプレイ出力コネクタID |
| audio_source_id | string <uuid> 音声選択されたソースID |
| createdAt | string <date-time> 作成日時 |
| updatedAt | string <date-time> 更新日時 |
| error | string エラーメッセージ |
{- "id": 1,
- "name": "Screen1",
- "layout_id": "123e4567-e89b-12d3-a456-426614174000",
- "webrtc_bitrate": 1000000,
- "custom_bitrate": 2000000,
- "display_output_enable": true,
- "display_output_connector_id": 1
}{- "id": 1,
- "name": "Screen1",
- "layout_id": "123e4567-e89b-12d3-a456-426614174000",
- "webrtc_bitrate": 1000000,
- "custom_bitrate": 2000000,
- "display_output_enable": true,
- "display_output_connector_id": 1,
- "audio_source_id": "123e4567-e89b-12d3-a456-426614174000",
- "createdAt": "2023-10-01T12:00:00Z",
- "updatedAt": "2023-10-01T12:00:00Z"
}指定のスクリーンIDのスクリーン情報を削除します
| id required | integer Example: id=1 スクリーンID |
| error | string エラーメッセージ |
curl -X 'DELETE' \ 'http://<ServerAddress>/api/screens?id=1' \ -H 'x-api-key: YOUR_API_KEY'
{- "error": "The maximum number of active layouts has been reached"
}required | object | ||||||||||||||||||||
| |||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
required | object SRT出力設定 | ||||||||||||||||||||
| |||||||||||||||||||||
required | object SRT出力設定 | ||||||||||||||||||||
| |||||||||||||||||||||
required | object 外部表示出力設定 | ||||||||||||||||||||
| |||||||||||||||||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/config' \ -H 'x-api-key: YOUR_API_KEY'
{- "global": {
- "http_iface": "127.0.0.1",
- "http_port": 10080,
- "media_dir": "/usr/local/share/video",
- "media_json": "./conf/input.json",
- "layout_json": "./conf/layout.json"
}, - "render": {
- "width": 1920,
- "height": 1080,
- "scaling_algorithm": "bicubic"
}, - "srt": {
- "enable": true,
- "video": {
- "encoder": {
- "name": "openh264",
- "options": [
- "string"
]
}, - "width": 1920,
- "height": 1080,
- "bitrate": 5000000
}
}, - "webrtc": {
- "enable": true,
- "video": {
- "encoder": {
- "name": "openh264",
- "options": [
- "string"
]
}, - "width": 1920,
- "height": 1080,
- "bitrate": 5000000
}
}, - "displayout": {
- "enable": true,
- "connector_id": 0
}
}| http_iface required | string 合成部のHTTPポート |
| http_port required | integer <int32> 合成部のHTTPアドレス |
| mhbs_server_address required | string MultiviewerサーバーのHTTPアドレス |
| mhb_api_address required | string MediaHarborAPIサーバーのHTTPアドレス |
| media_dir required | string ファイルソースの場所 |
| media_json required | string ソース設定jsonの場所 |
| layout_json required | string レイアウト設定jsonの場所 |
| http_iface required | string 合成部のHTTPポート |
| http_port required | integer <int32> 合成部のHTTPアドレス |
| mhbs_server_address required | string MultiviewerサーバーのHTTPアドレス |
| mhb_api_address required | string MediaHarborAPIサーバーのHTTPアドレス |
| media_dir required | string ファイルソースの場所 |
| media_json required | string ソース設定jsonの場所 |
| layout_json required | string レイアウト設定jsonの場所 |
{- "http_iface": "127.0.0.1",
- "http_port": 10080,
- "media_dir": "/usr/local/share/video",
- "media_json": "./conf/input.json",
- "layout_json": "./conf/layout.json"
}{- "http_iface": "127.0.0.1",
- "http_port": 10080,
- "media_dir": "/usr/local/share/video",
- "media_json": "./conf/input.json",
- "layout_json": "./conf/layout.json"
}| width required | integer 幅 |
| height required | integer 高さ |
| scaling_algorithm | string スケーリングアルゴリズム |
| width required | integer 幅 |
| height required | integer 高さ |
| scaling_algorithm | string スケーリングアルゴリズム |
{- "width": 1920,
- "height": 1080,
- "scaling_algorithm": "bicubic"
}{- "width": 1920,
- "height": 1080,
- "scaling_algorithm": "bicubic"
}| enable required | boolean 出力有効 | ||||||||||||||
required | object 出力動画設定 | ||||||||||||||
| |||||||||||||||
| enable required | boolean 出力有効 | ||||||||||||||
required | object 出力動画設定 | ||||||||||||||
| |||||||||||||||
{- "enable": true,
- "video": {
- "encoder": {
- "name": "openh264",
- "options": [ ]
}, - "width": 1920,
- "height": 1080,
- "bitrate": 5000000
}
}{- "enable": true,
- "video": {
- "encoder": {
- "name": "openh264",
- "options": [ ]
}, - "width": 1920,
- "height": 1080,
- "bitrate": 5000000
}
}| enable required | boolean 出力有効 | ||||||||||||||
required | object 出力動画設定 | ||||||||||||||
| |||||||||||||||
| enable required | boolean 出力有効 | ||||||||||||||
required | object 出力動画設定 | ||||||||||||||
| |||||||||||||||
{- "enable": true,
- "video": {
- "encoder": {
- "name": "openh264",
- "options": [
- "string"
]
}, - "width": 1920,
- "height": 1080,
- "bitrate": 5000000
}
}{- "enable": true,
- "video": {
- "encoder": {
- "name": "openh264",
- "options": [
- "string"
]
}, - "width": 1920,
- "height": 1080,
- "bitrate": 5000000
}
}| enable required | boolean 出力有効 |
| connector_id required | integer コネクタID |
| enable required | boolean 出力有効 |
| connector_id required | integer コネクタID |
{- "enable": false,
- "connector_id": 0
}{- "enable": false,
- "connector_id": 0
}監視ログ設定を更新する。
| id required | string^[0-9a-fA-F]{8}$ ログID 8桁の16進数文字列 | |||||||||||||||||||||||||||
| level required | integer ログレベル
| |||||||||||||||||||||||||||
| message required | string ログメッセージ | |||||||||||||||||||||||||||
| message_en required | string ログメッセージ(英語) | |||||||||||||||||||||||||||
| enable required | boolean 監視ログ有効/無効 |
| id required | string^[0-9a-fA-F]{8}$ ログID 8桁の16進数文字列 | |||||||||||||||||||||||||||
| type | string Enum: "SYS" "MON" "VA" "SCTE35" "TS" ログタイプ
| |||||||||||||||||||||||||||
| level required | integer ログレベル
| |||||||||||||||||||||||||||
| message required | string ログメッセージ(日本語) | |||||||||||||||||||||||||||
| message_en required | string ログメッセージ(英語) | |||||||||||||||||||||||||||
| enable required | boolean 監視ログ有効/無効 |
{- "id": "00200201",
- "level": 6,
- "message": "フリーズを検出しました",
- "message_en": "Freeze detected",
- "enable": true
}{- "id": "00200201",
- "type": "SYS",
- "level": 3,
- "message": "フリーズを検出しました",
- "message_en": "Freeze detected",
- "enable": true
}監視ログ設定を取得
| id required | string^[0-9a-fA-F]{8}$ ログID 8桁の16進数文字列 | |||||||||||||||||||||||||||
| type | string Enum: "SYS" "MON" "VA" "SCTE35" "TS" ログタイプ
| |||||||||||||||||||||||||||
| level required | integer ログレベル
| |||||||||||||||||||||||||||
| message required | string ログメッセージ(日本語) | |||||||||||||||||||||||||||
| message_en required | string ログメッセージ(英語) | |||||||||||||||||||||||||||
| enable required | boolean 監視ログ有効/無効 |
curl -X 'GET' \ 'http://<ServerAddress>/api/config/monlog' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": "00200201",
- "type": "SYS",
- "level": 3,
- "message": "フリーズを検出しました",
- "message_en": "Freeze detected",
- "enable": true
}
]監視ログレベル設定を更新する。
| level required | integer 監視ログレベル
| |||||||||||||||||||||||||||
| color required | string カラーコード | |||||||||||||||||||||||||||
| name required | string 監視ログレベル名 | |||||||||||||||||||||||||||
| name_en required | string 監視ログレベル名(英語) |
| level required | integer ログレベル
| |||||||||||||||||||||||||||
| color required | string カラーコード | |||||||||||||||||||||||||||
| name required | string 監視ログレベル名 | |||||||||||||||||||||||||||
| name_en required | string 監視ログレベル名(英語) |
{- "level": 6,
- "color": "#F44336",
- "name": "情報",
- "name_en": "INFO"
}{- "level": 6,
- "color": "#F44336",
- "name": "情報",
- "name_en": "INFO"
}監視ログレベル設定を取得
| level required | integer ログレベル
| |||||||||||||||||||||||||||
| color required | string カラーコード | |||||||||||||||||||||||||||
| name required | string 監視ログレベル名 | |||||||||||||||||||||||||||
| name_en required | string 監視ログレベル名(英語) |
curl -X 'GET' \ 'http://<ServerAddress>/api/config/monlog/level' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "level": 6,
- "color": "#F44336",
- "name": "情報",
- "name_en": "INFO"
}
]指定されたテーブル名のログ保存期間を取得します。
| table_name required | string Example: table_name=monlogs テーブル名 |
| retention_days | integer 保存期間(日数) |
| table_name | string Enum: "monlogs" "tsmon_data" テーブル名 |
curl -X 'GET' \ 'http://<ServerAddress>/api/config/monlog/retention?table_name=monlogs' \ -H 'x-api-key: YOUR_API_KEY'
{- "retention_days": 30,
- "table_name": "monlogs"
}指定されたテーブル名のログ保存期間を設定します。
| table_name required | string Enum: "monlogs" "tsmon_data" テーブル名 |
| retention_days required | integer [ 1 .. 3650 ] 保存期間(日数) |
| retention_days | integer 保存期間(日数) |
| table_name | string Enum: "monlogs" "tsmon_data" テーブル名 |
{- "table_name": "monlogs",
- "retention_days": 30
}{- "retention_days": 30,
- "table_name": "monlogs"
}有効なネットワークインターフェースの一覧を取得します。
注意: このAPIを正しく動作させるためには、APIコンテナをnetwork_mode: hostで動作させる必要があります。
curl -X 'GET' \ 'http://<ServerAddress>/api/config/network_interfaces' \ -H 'x-api-key: YOUR_API_KEY'
[- "lo",
- "eth0",
- "eth1"
]現在のNDI Discovery Server設定を取得します
required | object | ||||||||
| |||||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/ndiconf' \ -H 'x-api-key: YOUR_API_KEY'
{- "ndi": {
- "networks": {
- "ips": "",
- "discovery": "239.255.250.250:25000"
}
}
}NDI Discovery Server設定を保存し、ndifindプロセスを再起動します
| enabled required | boolean NDI Discovery Server有効フラグ |
| discovery required | string Discovery Server設定(IP:ポート形式) |
| success required | boolean 設定保存成功フラグ |
{- "enabled": true,
- "discovery": "239.255.250.250:25000"
}{- "success": true
}出力設定の一覧を取得します(システム出力設定を除く)
| id | integer 出力設定ID | ||||||||||
| name required | string 出力設定名 | ||||||||||
| enable required | boolean 出力設定有効フラグ | ||||||||||
| source_type required | string Value: "screen" 出力元タイプ
| ||||||||||
| source_id required | string 出力元ID(スクリーンID) | ||||||||||
| type required | string 出力プロトコルタイプ | ||||||||||
required | object パラメータ | ||||||||||
| |||||||||||
| is_system_output | boolean システム出力設定フラグ | ||||||||||
| createdAt | string <date-time> 作成日時 | ||||||||||
| updatedAt | string <date-time> 更新日時 | ||||||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/output' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": 1,
- "name": "UDP出力1",
- "enable": true,
- "source_type": "screen",
- "source_id": "1",
- "type": "udp",
- "params": {
- "isIpv6": false,
- "host": "239.0.0.1",
- "port": 5000,
- "mode": "multicast",
- "multicastIface": "eth1"
}, - "is_system_output": false,
- "createdAt": "2023-10-17T08:00:22.511511709Z",
- "updatedAt": "2023-10-17T08:00:22.511511709Z"
}
]新しい出力設定を追加します
| name required | string 出力設定名 | ||||||||||
| enable required | boolean 出力設定有効フラグ | ||||||||||
| source_type required | string Value: "screen" 出力元タイプ
| ||||||||||
| source_id required | string 出力元ID(スクリーンID) | ||||||||||
| type required | string 出力プロトコルタイプ | ||||||||||
required | object パラメータ | ||||||||||
| |||||||||||
| id | integer 出力設定ID | ||||||||||
| name required | string 出力設定名 | ||||||||||
| enable required | boolean 出力設定有効フラグ | ||||||||||
| source_type required | string Value: "screen" 出力元タイプ
| ||||||||||
| source_id required | string 出力元ID(スクリーンID) | ||||||||||
| type required | string 出力プロトコルタイプ | ||||||||||
required | object パラメータ | ||||||||||
| |||||||||||
| is_system_output | boolean システム出力設定フラグ | ||||||||||
| createdAt | string <date-time> 作成日時 | ||||||||||
| updatedAt | string <date-time> 更新日時 | ||||||||||
{- "name": "UDP出力1",
- "enable": true,
- "source_type": "screen",
- "source_id": "1",
- "type": "udp",
- "params": {
- "isIpv6": false,
- "host": "239.0.0.1",
- "port": 5000,
- "mode": "multicast",
- "multicastIface": "eth1"
}
}{- "id": 1,
- "name": "UDP出力1",
- "enable": true,
- "source_type": "screen",
- "source_id": "1",
- "type": "udp",
- "params": {
- "isIpv6": false,
- "host": "239.0.0.1",
- "port": 5000,
- "mode": "multicast",
- "multicastIface": "eth1"
}, - "is_system_output": false,
- "createdAt": "2023-10-17T08:00:22.511511709Z",
- "updatedAt": "2023-10-17T08:00:22.511511709Z"
}既存の出力設定を更新します
| name required | string 出力設定名 | ||||||||||
| enable required | boolean 出力設定有効フラグ | ||||||||||
| source_type required | string Value: "screen" 出力元タイプ
| ||||||||||
| source_id required | string 出力元ID(スクリーンID) | ||||||||||
| type required | string 出力プロトコルタイプ | ||||||||||
required | object パラメータ | ||||||||||
| |||||||||||
| id | integer 出力設定ID | ||||||||||
| name required | string 出力設定名 | ||||||||||
| enable required | boolean 出力設定有効フラグ | ||||||||||
| source_type required | string Value: "screen" 出力元タイプ
| ||||||||||
| source_id required | string 出力元ID(スクリーンID) | ||||||||||
| type required | string 出力プロトコルタイプ | ||||||||||
required | object パラメータ | ||||||||||
| |||||||||||
| is_system_output | boolean システム出力設定フラグ | ||||||||||
| createdAt | string <date-time> 作成日時 | ||||||||||
| updatedAt | string <date-time> 更新日時 | ||||||||||
{- "name": "UDP出力1",
- "enable": true,
- "source_type": "screen",
- "source_id": "1",
- "type": "udp",
- "params": {
- "isIpv6": false,
- "host": "239.0.0.1",
- "port": 5000,
- "mode": "multicast",
- "multicastIface": "eth1"
}
}{- "id": 1,
- "name": "UDP出力1",
- "enable": true,
- "source_type": "screen",
- "source_id": "1",
- "type": "udp",
- "params": {
- "isIpv6": false,
- "host": "239.0.0.1",
- "port": 5000,
- "mode": "multicast",
- "multicastIface": "eth1"
}, - "is_system_output": false,
- "createdAt": "2023-10-17T08:00:22.511511709Z",
- "updatedAt": "2023-10-17T08:00:22.511511709Z"
}画音監視オーバーレイを表示します。マスク設定が有効な場合はマスク状態を返します
| source_id required | string <uuid> ソースID |
| status | string マスク状態 |
{- "source_id": "cdd55dc4-2107-41f0-810c-a06495c841c1"
}{ }入力ビットレート監視オーバーレイを表示します。マスク設定が有効な場合はマスク状態を返します
| source_id required | string <uuid> ソースID |
| status | string マスク状態 |
{- "source_id": "cdd55dc4-2107-41f0-810c-a06495c841c1"
}{ }TS監視オーバーレイを表示します。マスク設定が有効な場合はマスク状態を返します
| source_id required | string <uuid> ソースID |
| status | string マスク状態 |
[- {
- "source_id": "cdd55dc4-2107-41f0-810c-a06495c841c1"
}
]{ }| auth_endpoint required | string deehive へのリクエストを認証するために使用するエンドポイント。 |
| device_params_endpoint required | string デバイスのパラメータを更新するために使用されるエンドポイント(Deehiveビデオの解像度の変更など) |
| id required | string deehiveからのid |
| secret required | string deehiveからのsecret |
| auth_endpoint required | string deehive へのリクエストを認証するために使用するエンドポイント。 |
| device_params_endpoint required | string デバイスのパラメータを更新するために使用されるエンドポイント(Deehiveビデオの解像度の変更など) |
| id required | string deehiveからのid |
| secret required | string deehiveからのsecret |
{- "auth_endpoint": "<DeeHive_url>/api/v1/api/v1/authentication",
- "device_params_endpoint": "<DeeHive_url>/api/v1/api/v1/device-params",
- "id": "63eb3c972d17d200113d8765",
- "secret": "secretkey12345"
}{- "auth_endpoint": "<DeeHive_url>/api/v1/api/v1/authentication",
- "device_params_endpoint": "<DeeHive_url>/api/v1/api/v1/device-params",
- "id": "63eb3c972d17d200113d8765",
- "secret": "secretkey12345"
}| api_key required | string LicenseManagerでMediaHarbor割り当てたapi_key |
| url required | string LicenseManagerのAPI |
| api_key required | string LicenseManagerでMediaHarbor割り当てたapi_key |
| url required | string LicenseManagerのAPI |
{- "api_key": "31cf8386-9fca-48a1-9572-2ba60d70be8e",
}{- "api_key": "31cf8386-9fca-48a1-9572-2ba60d70be8e",
}通知を取得します。
| qty | integer Example: qty=100 取得件数 |
| offset | integer 取得開始位置 |
| total | integer <int64> 通知件数 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects 通知一覧 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/notification?qty=100&offset=0' \ -H 'x-api-key: YOUR_API_KEY'
{- "total": 0,
- "histories": [
- {
- "id": 1,
- "log": {
- "id": 0,
- "date": "2019-08-24T14:15:22Z",
- "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
- "log_id": "00200201",
- "source": {
- "name": "string",
- "protocol_type_id": 1
}, - "details": {
- "type": "VA",
- "level": 3,
- "message": "フリーズを検出しました",
- "message_en": "Freeze detected"
}, - "jsondata": "{\"sid\": 1,\"last_updated_ms\": 1710856298571,\"last_updated_date\": \"2024/03/19 13:51:38\",\"video\": {\"freeze\": {\"is_occuring\": true,\"last_updated_ms\": 1710856298168,\"last_updated_date\": \"2024/03/19 13:51:38\"},\"black\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"},\"time_mask\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"},\"img_mask\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"},\"action_trigger\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"}},\"audio\": {\"silent\": {\"is_occuring\": false,\"last_updated_ms\": 1710856298569,\"last_updated_date\": \"2024/03/19 13:51:38\"},\"time_mask\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"}},\"port\": \"50001\"}"
}, - "rule": {
- "id": 1,
- "name": "通知ルール 1",
- "enable": 1,
- "interval": 1,
- "time_mask": {
- "enable": true,
- "resend": true,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}
]
}, - "destination_ids": [
- 1,
- 2
], - "levels": [
- 1,
- 2
]
}, - "destination": {
- "id": 1,
- "name": "Slack 1",
- "type": 1,
- "tz": "Asia/Tokyo",
- "lang": "ja",
- "detail": {
- "channel": "C04QJ70B2G6",
- "username": "mediaharbor",
- "iconEmoji": "",
- "iconUrl": "",
- "mention": "none"
}
}, - "scheduled_time": "2021-01-01T00:00:00Z",
- "is_success": true,
- "error_message": {
- "message": "通知に失敗しました。"
}
}
]
}通知先設定を新規登録
| name required | string 通知先名 |
| type required | integer Enum: 1 2 3 4 通知先タイプ
|
| tz required | string タイムゾーン |
| lang required | string 言語 |
| detail required | object 通知先詳細 Slack通知 (type: 1) の場合:
メール通知 (type: 2) の場合:
Webhook通知 (type: 3) の場合:
SNMP Trap通知 (type: 4) の場合:
|
| id required | integer 通知先ID |
| name required | string 通知先名 |
| type required | integer 通知先タイプ
|
| tz required | string タイムゾーン |
| lang required | string 言語 |
| detail required | object 通知先詳細設定(通知先タイプによって内容が異なります) Slack通知 (type: 1) の場合:
メール通知 (type: 2) の場合:
Webhook通知 (type: 3) の場合:
SNMP Trap通知 (type: 4) の場合:
|
{- "name": "Slack 1",
- "type": 1,
- "tz": "Asia/Tokyo",
- "lang": "ja",
- "detail": {
- "channel": "C04QJ70B2G6",
- "username": "mediaharbor",
- "iconEmoji": "",
- "iconUrl": "",
- "mention": "none"
}
}{- "id": 1,
- "name": "Slack 1",
- "type": 1,
- "tz": "Asia/Tokyo",
- "lang": "ja",
- "detail": {
- "channel": "C04QJ70B2G6",
- "username": "mediaharbor",
- "iconEmoji": "",
- "iconUrl": "",
- "mention": "none"
}
}通知先設定を取得
| id required | integer 通知先ID |
| name required | string 通知先名 |
| type required | integer 通知先タイプ
|
| tz required | string タイムゾーン |
| lang required | string 言語 |
| detail required | object 通知先詳細設定(通知先タイプによって内容が異なります) Slack通知 (type: 1) の場合:
メール通知 (type: 2) の場合:
Webhook通知 (type: 3) の場合:
SNMP Trap通知 (type: 4) の場合:
|
curl -X 'GET' \ 'http://<ServerAddress>/api/notification/destination' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": 1,
- "name": "Slack 1",
- "type": 1,
- "tz": "Asia/Tokyo",
- "lang": "ja",
- "detail": {
- "channel": "C04QJ70B2G6",
- "username": "mediaharbor",
- "iconEmoji": "",
- "iconUrl": "",
- "mention": "none"
}
}
]通知先設定を更新
| id required | integer 通知先ID |
| name required | string 通知先名 |
| type required | integer 通知先タイプ
|
| tz required | string タイムゾーン |
| lang required | string 言語 |
| detail required | object 通知先詳細設定(通知先タイプによって内容が異なります) Slack通知 (type: 1) の場合:
メール通知 (type: 2) の場合:
Webhook通知 (type: 3) の場合:
SNMP Trap通知 (type: 4) の場合:
|
| id required | integer 通知先ID |
| name required | string 通知先名 |
| type required | integer 通知先タイプ
|
| tz required | string タイムゾーン |
| lang required | string 言語 |
| detail required | object 通知先詳細設定(通知先タイプによって内容が異なります) Slack通知 (type: 1) の場合:
メール通知 (type: 2) の場合:
Webhook通知 (type: 3) の場合:
SNMP Trap通知 (type: 4) の場合:
|
{- "id": 1,
- "name": "Slack 1",
- "type": 1,
- "tz": "Asia/Tokyo",
- "lang": "ja",
- "detail": {
- "channel": "C04QJ70B2G6",
- "username": "mediaharbor",
- "iconEmoji": "",
- "iconUrl": "",
- "mention": "none"
}
}{- "id": 1,
- "name": "Slack 1",
- "type": 1,
- "tz": "Asia/Tokyo",
- "lang": "ja",
- "detail": {
- "channel": "C04QJ70B2G6",
- "username": "mediaharbor",
- "iconEmoji": "",
- "iconUrl": "",
- "mention": "none"
}
}通知テストを送信
| type required | integer Enum: 1 2 3 4 通知先タイプ
|
| lang required | string 言語 |
| tz | string タイムゾーン |
| detail required | object 通知先詳細 |
{- "type": 1,
- "lang": "ja",
- "tz": "Asia/Tokyo",
- "detail": {
- "channel": "C04QJ70B2G6",
- "username": "mediaharbor",
- "iconEmoji": "",
- "iconUrl": "",
- "mention": "none"
}
}通知ルール設定を新規登録
| name required | string 通知ルール名 |
| enable required | boolean 通知ルール有効フラグ |
| interval required | integer 集約間隔(秒) |
| time_mask required | object 時間マスク設定 |
| destination_ids required | Array of integers 通知先情報 |
| levels required | Array of integers ログレベル情報 |
| id required | integer 通知先ID |
| name required | string 通知ルール名 |
| enable required | boolean 通知ルール有効フラグ |
| interval required | integer 集約間隔(秒) |
| time_mask required | object 時間マスク設定 |
| destination_ids required | Array of integers 通知先ID一覧 |
| levels required | Array of integers ログレベル情報 |
{- "name": "通知ルール 1",
- "enable": 1,
- "interval": 1,
- "time_mask": {
- "enable": true,
- "resend": true,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}
]
}, - "destination_ids": [
- 1,
- 2
], - "levels": [
- 1,
- 2
]
}{- "id": 1,
- "name": "通知ルール 1",
- "enable": 1,
- "interval": 1,
- "time_mask": {
- "enable": true,
- "resend": true,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}
]
}, - "destination_ids": [
- 1,
- 2
], - "levels": [
- 1,
- 2
]
}通知ルール設定を取得
| id required | integer 通知先ID |
| name required | string 通知ルール名 |
| enable required | boolean 通知ルール有効フラグ |
| interval required | integer 集約間隔(秒) |
| time_mask required | object 時間マスク設定 |
| destination_ids required | Array of integers 通知先ID一覧 |
| levels required | Array of integers ログレベル情報 |
curl -X 'GET' \ 'http://<ServerAddress>/api/notification/rule' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": 1,
- "name": "通知ルール 1",
- "enable": 1,
- "interval": 1,
- "time_mask": {
- "enable": true,
- "resend": true,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}
]
}, - "destination_ids": [
- 1,
- 2
], - "levels": [
- 1,
- 2
]
}
]通知ルール設定を更新
| id required | integer 通知ルールID |
| name required | string 通知ルール名 |
| enable required | boolean 通知ルール有効フラグ |
| interval required | integer 集約間隔(秒) |
| time_mask required | object 時間マスク設定 |
| destination_ids required | Array of integers 通知先情報 |
| levels required | Array of integers ログレベル情報 |
| id required | integer 通知先ID |
| name required | string 通知ルール名 |
| enable required | boolean 通知ルール有効フラグ |
| interval required | integer 集約間隔(秒) |
| time_mask required | object 時間マスク設定 |
| destination_ids required | Array of integers 通知先ID一覧 |
| levels required | Array of integers ログレベル情報 |
{- "id": 1,
- "name": "通知ルール 1",
- "enable": true,
- "interval": 1,
- "time_mask": {
- "enable": true,
- "resend": true,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}
]
}, - "destination_ids": [
- 1,
- 2
], - "levels": [
- 1,
- 2
]
}{- "id": 1,
- "name": "通知ルール 1",
- "enable": 1,
- "interval": 1,
- "time_mask": {
- "enable": true,
- "resend": true,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}
]
}, - "destination_ids": [
- 1,
- 2
], - "levels": [
- 1,
- 2
]
}マスクルール設定を新規登録
| name required | string マスクルール名 | ||||||||||||||
| enable required | boolean マスクルール有効フラグ | ||||||||||||||
object ログマスク設定 | |||||||||||||||
| |||||||||||||||
object オーバーレイマスク設定 | |||||||||||||||
| |||||||||||||||
object 蓋マスク設定 | |||||||||||||||
| |||||||||||||||
| id required | integer マスクルールID |
| name required | string マスクルール名 |
| enable required | boolean マスクルール有効フラグ |
| log required | object or null ログマスク設定 |
| overlay required | object or null オーバーレイマスク設定 |
| cover required | object or null 蓋マスク設定 |
{- "name": "マスクルール 1",
- "enable": true,
- "log": {
- "enable": false,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1
]
}
]
}, - "overlay": {
- "enable": true,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1
]
}
]
}, - "cover": {
- "enable": true,
- "img": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "log": true,
- "overlay": true,
- "silent": false
}
}{- "id": 1,
- "name": "マスクルール 1",
- "enable": true,
- "log": { },
- "overlay": { },
- "cover": { }
}マスクルール設定を取得
| id required | integer マスクルールID | ||||||||||||||||
| name required | string マスクルール名 | ||||||||||||||||
| enable required | boolean マスクルール有効フラグ | ||||||||||||||||
object ログマスク設定 | |||||||||||||||||
| |||||||||||||||||
object オーバーレイマスク設定 | |||||||||||||||||
| |||||||||||||||||
object 蓋マスク設定 | |||||||||||||||||
| |||||||||||||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/mask' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": 1,
- "name": "マスクルール 1",
- "enable": 1,
- "log": {
- "enable": false,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1
]
}
], - "unmaskOnRecovery": false
}, - "overlay": {
- "enable": true,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1
]
}
], - "unmaskOnRecovery": false
}, - "cover": {
- "enable": true,
- "img": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "log": true,
- "overlay": true,
- "silent": false
}
}
]マスクルール設定を更新
| id required | integer マスクルールID | ||||||||||||||||
| name required | string マスクルール名 | ||||||||||||||||
| enable required | boolean マスクルール有効フラグ | ||||||||||||||||
object ログマスク設定 | |||||||||||||||||
| |||||||||||||||||
object オーバーレイマスク設定 | |||||||||||||||||
| |||||||||||||||||
object 蓋マスク設定 | |||||||||||||||||
| |||||||||||||||||
| id required | integer マスクルールID |
| name required | string マスクルール名 |
| enable required | boolean マスクルール有効フラグ |
| log required | object or null ログマスク設定 |
| overlay required | object or null オーバーレイマスク設定 |
| cover required | object or null 蓋マスク設定 |
{- "id": 1,
- "name": "マスクルール 1",
- "enable": 1,
- "log": {
- "enable": false,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1
]
}
], - "unmaskOnRecovery": false
}, - "overlay": {
- "enable": true,
- "tz": "Asia/Tokyo",
- "time": [
- {
- "start": "22:50",
- "duration": 10,
- "dayOfWeek": [
- 1
]
}
], - "unmaskOnRecovery": false
}, - "cover": {
- "enable": true,
- "img": "data:image/png;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "log": true,
- "overlay": true,
- "silent": false
}
}{- "id": 1,
- "name": "マスクルール 1",
- "enable": true,
- "log": { },
- "overlay": { },
- "cover": { }
}パスワード設定を登録
| role required | string Enum: "admin" "app" パスワード設定の種類 |
| password required | string [ 10 .. 64 ] characters ^[!-~]*$ パスワード(以下の条件を満たす必要があります)
|
| error | string エラーメッセージ |
{- "role": "admin",
- "password": "Password123$"
}{- "error": "password already set"
}セキュリティ設定を取得
| admin required | boolean 管理者パスワードが設定されているかどうか |
| app required | boolean アプリケーションパスワードが設定されているかどうか |
curl -X 'GET' \ 'http://<ServerAddress>/api/security' \ -H 'x-api-key: YOUR_API_KEY'
{- "admin": true,
- "app": false
}パスワード設定を更新
| role required | string Enum: "admin" "app" パスワード設定の種類 |
| beforePassword required | string [ 10 .. 64 ] characters ^[!-~]*$ 変更前パスワード(以下の条件を満たす必要があります)
|
| password required | string [ 10 .. 64 ] characters ^[!-~]*$ 新しいパスワード(以下の条件を満たす必要があります)
|
| error | string エラーメッセージ |
| error | string エラーメッセージ |
{- "role": "admin",
- "beforePassword": "Password1234$",
- "password": "Password123$"
}{- "error": "password already set"
}パスワード設定を削除
| role required | string Enum: "admin" "app" パスワード設定の種類 |
| error | string エラーメッセージ |
| error | string エラーメッセージ |
{- "role": "admin"
}{- "error": "password already set"
}パスワードでログインし、セッションを開始します。 成功時はセッションクッキー(session_id)が発行されます。
| password required | string パスワード |
| Set-Cookie | string セッションID(session_id)を含むクッキー |
| role required | string Enum: "admin" "app" ログインしたロール |
{- "password": "P@ssw0rd123"
}{- "role": "admin"
}現在のセッションクッキー(session_id)が有効かどうかを検証します。 対象ロールのパスワードロックが無効化されている場合はセッションが無効化され、Unauthorizedとなります。
| role required | string Enum: "admin" "app" セッションのロール |
curl -X 'POST' \ 'http://<ServerAddress>/api/auth/verify-session'
{- "role": "admin"
}選択したソースの音が出る
| screen_id required | integer スクリーンID |
| source_id required | string <uuid> ソースID |
| screen_id | integer スクリーンID |
| source_id | string <uuid> ソースID |
{- "screen_id": 1,
- "source_id": "cdd55dc4-2107-41f0-810c-a06495c841c1"
}{- "screen_id": 1,
- "source_id": "cdd55dc4-2107-41f0-810c-a06495c841c1"
}選択されたソースを取得する
| screen_id required | integer スクリーンID |
| screen_id | integer スクリーンID |
| source_id | string <uuid> ソースID |
{- "screen_id": 1
}{- "screen_id": 1,
- "source_id": "cdd55dc4-2107-41f0-810c-a06495c841c1"
}クリック位置からレイアウト要素を特定して音声選択する
| screen_id required | integer スクリーンID |
| left required | integer クリック位置のX座標 |
| top required | integer クリック位置のY座標 |
| screen_id | integer スクリーンID |
| source_id | string <uuid> 選択されたソースID |
{- "screen_id": 1,
- "left": 100,
- "top": 200
}{- "screen_id": 1,
- "source_id": "cdd55dc4-2107-41f0-810c-a06495c841c1"
}| id | string <uuid> WalletID |
| casthive_id | string <uuid> 組織ID |
| available_dates | number <float> 利用可能日数 |
| point | number <float> 残りポイント数 |
| pointType | string Enum: "MHP" "MHTP" "MONP" "MONTP" ポイント種別 |
curl -X 'GET' \ 'http://<ServerAddress>/api/creditpoint' \ -H 'x-api-key: YOUR_API_KEY'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "casthive_id": "434b9872-024a-4aab-a019-2ea4b02b26e8",
- "available_dates": 3347.63,
- "point": 40171.54,
- "pointType": "MHP"
}
]| platform | string <string> プラットフォーム名 |
| cpuCount | integer <int32> CPUコア数 |
| systemUptime | number <float> システム稼働時間 |
| processUptime | number <float> プロセス稼働時間 |
curl -X 'GET' \ 'http://<ServerAddress>/api/status' \ -H 'x-api-key: YOUR_API_KEY'
{- "platform": "linux",
- "cpuCount": 8,
- "systemUptime": 7253930.68,
- "processUptime": 3110.161115491
}| cpuCount | integer CPUコア数 |
| loadAvg | Array of numbers <float> [ items <float > ] CPU負荷率(1分/5分/15分平均) |
| cpuUsage | number <float> CPU使用率 |
curl -X 'GET' \ 'http://<ServerAddress>/api/status/cpu' \ -H 'x-api-key: YOUR_API_KEY'
{- "cpuCount": 8,
- "loadAvg": [
- 5.03,
- 4.21,
- 3.87
], - "cpuUsage": 0.4098360655737705
}| totalMemory | number <float> メモリー総容量 |
| freeMemory | number <float> メモリー空き容量 |
| freeMemoryPercentage | number <float> メモリー空き容量率 |
curl -X 'GET' \ 'http://<ServerAddress>/api/status/memory' \ -H 'x-api-key: YOUR_API_KEY'
{- "totalMemory": 15603.640625,
- "freeMemory": 11087.9453125,
- "freeMemoryPercentage": 0.7105998900496979
}| total | integer <int64> ストレージ総容量 |
| free | integer <int64> ストレージ空き容量 |
| used | integer <int64> ストレージ使用容量 |
| usagePercent | number <float> ストレージ使用率 |
curl -X 'GET' \ 'http://<ServerAddress>/api/status/storage' \ -H 'x-api-key: YOUR_API_KEY'
{- "total": 287886413824,
- "free": 243327467520,
- "used": 44558946304,
- "usagePercent": 15.477960808265587
}Newline Delimited JSON形式でコンテナ情報をストリーミング配信 各行が1つのコンテナ情報のJSONオブジェクト
curl -X 'GET' \ 'http://<ServerAddress>/api/container' \ -H 'x-api-key: YOUR_API_KEY'
"{\"Id\":\"fd8b7d18b8fe98e243faa5d7912e65af5969393629a0387c9bd52a9b80e36b35\",\"Created\":\"2023-10-17T08:00:22.511511709Z\",...}\n{\"Id\":\"abc123def456...\",\"Created\":\"2023-10-17T08:00:22.511511709Z\",...}\ntype: object\nproperties:\n Id:\n type: string\n description: Dockerコンテナの一意の識別子。\n example: \"fd8b7d18b8fe98e243faa5d7912e65af5969393629a0387c9bd52a9b80e36b35\"\n Created:\n type: string\n format: date-time\n description: Dockerコンテナが作成されたタイムスタンプ。\n example: \"2023-10-17T08:00:22.511511709Z\"\n Path:\n type: string\n description: エントリポイントスクリプトへのパス。\n example: \"docker-entrypoint.sh\"\n Args:\n type: array\n items:\n type: string\n description: エントリポイントスクリプトに渡された引数。\n example: [\"mariadbd\"]\n State:\n type: object\n description: Dockerコンテナの現在の状態。\n properties:\n Status:\n type: string\n description: コンテナの状態(例:running、pausedなど)。\n example: \"running\"\n Running:\n type: boolean\n description: コンテナが実行中であるかどうかを示します。\n example: true\n Paused:\n type: boolean\n description: コンテナが一時停止されているかどうかを示します。\n example: false\n Restarting:\n type: boolean\n description: コンテナが再起動中であるかどうかを示します。\n example: false\n OOMKilled:\n type: boolean\n description: コンテナがOOM(Out Of Memory)キルされたかどうかを示します。\n example: false\n Dead:\n type: boolean\n description: コンテナが死んでいるかどうかを示します。\n example: false\n Pid:\n type: integer\n description: コンテナのプロセスID。\n example: 1496904\n ExitCode:\n type: integer\n description: コンテナの終了コード。\n example: 0\n Error:\n type: string\n description: エラーメッセージ。\n example: \"\"\n StartedAt:\n type: string\n format: date-time\n description: コンテナが開始されたタイムスタンプ。\n example: \"2023-10-17T08:00:23.128832275Z\"\n FinishedAt:\n type: string\n format: date-time\n description: コンテナが終了したタイムスタンプ。\n example: \"0001-01-01T00:00:00Z\"\n Image:\n type: string\n description: DockerイメージのSHA256ハッシュ。\n example: \"sha256:871a9153c1842e3b480cb1be691c64151bc96a5de2cc8039470d31e32ff0a177\"\n ResolvConfPath:\n type: string\n description: resolv.confファイルへのパス。\n example: \"/home/docker/containers/fd8b7d18b8fe98e243faa5d7912e65af5969393629a0387c9bd52a9b80e36b35/resolv.conf\"\n HostnamePath:\n type: string\n description: hostnameファイルへのパス。\n example: \"/home/docker/containers/fd8b7d18b8fe98e243faa5d7912e65af5969393629a0387c9bd52a9b80e36b35/hostname\"\n HostsPath:\n type: string\n description: hostsファイルへのパス。\n example: \"/home/docker/containers/fd8b7d18b8fe98e243faa5d7912e65af5969393629a0387c9bd52a9b80e36b35/hosts\"\n LogPath:\n type: string\n description: ログファイルへのパス。\n example: \"/home/docker/containers/fd8b7d18b8fe98e243faa5d7912e65af5969393629a0387c9bd52a9b80e36b35/fd8b7d18b8fe98e243faa5d7912e65af5969393629a0387c9bd52a9b80e36b35-json.log\"\n Name:\n type: string\n description: コンテナの名前。\n example: \"/db\"\n RestartCount:\n type: integer\n description: コンテナの再起動回数。\n example: 0\n Driver:\n type: string\n description: ストレージドライバーの種類。\n example: \"overlay2\"\n Platform:\n type: string\n description: プラットフォーム名。\n example: \"linux\"\n MountLabel:\n type: string\n description: マウントラベル。\n example: \"\"\n ProcessLabel:\n type: string\n description: プロセスラベル。\n example: \"\"\n AppArmorProfile:\n type: string\n description: AppArmorプロファイル。\n example: \"\"\n ExecIDs:\n type: array\n items:\n type: string\n description: 実行IDのリスト。\n example: null\n HostConfig:\n type: object\n description: ホストの設定。\n properties:\n Binds:\n type: array\n items:\n type: string\n description: このコンテナのボリュームバインディングのリスト。\n example:\n [\n \"/var/samba/public/MediaHarborFrontend/DB/data:/var/lib/mysql:rw\",\n \"/var/samba/public/MediaHarborFrontend/conf/DB/my.cnf:/etc/mysql/conf.d/my.cnf:rw\",\n ]\n ContainerIDFile:\n type: string\n description: コンテナIDを保存するファイルのパス。\n example: \"\"\n LogConfig:\n type: object\n description: ログの設定。\n properties:\n Type:\n type: string\n description: ログのタイプ。\n example: \"json-file\"\n Config:\n type: object\n description: ログ設定の構成。\n properties:\n max-file:\n type: string\n description: 最大ファイル数。\n example: \"3\"\n max-size:\n type: string\n description: 最大ファイルサイズ。\n example: \"1M\"\n NetworkMode:\n type: string\n description: ネットワークモード。\n example: \"mediaharborfrontend_default\"\n PortBindings:\n type: object\n description: ポートバインディングの設定。\n properties:\n \"3306/tcp\":\n type: array\n items:\n type: object\n properties:\n HostIp:\n type: string\n description: ホストのIPアドレス。\n example: \"\"\n HostPort:\n type: string\n description: ホストのポート番号。\n example: \"3306\"\n RestartPolicy:\n type: object\n description: 再起動ポリシーの設定。\n properties:\n Name:\n type: string\n description: 再起動ポリシーの名前。\n example: \"always\"\n MaximumRetryCount:\n type: integer\n description: 最大リトライ回数。\n example: 0\n AutoRemove:\n type: boolean\n description: コンテナが停止したときに自動的に削除するかどうか。\n example: false\n VolumeDriver:\n type: string\n description: ボリュームドライバー。\n example: \"\"\n VolumesFrom:\n type: array\n items:\n type: string\n description: 他のコンテナからボリュームをマウントする設定。\n example: null\n ConsoleSize:\n type: array\n items:\n type: integer\n description: コンソールのサイズ設定。\n example: [0, 0]\n CapAdd:\n type: array\n items:\n type: string\n description: 追加するケーパビリティのリスト。\n example: null\n CapDrop:\n type: array\n items:\n type: string\n description: 削除するケーパビリティのリスト。\n example: null\n CgroupnsMode:\n type: string\n description: cgroup名前空間モード。\n example: \"host\"\n Dns:\n type: array\n items:\n type: string\n description: DNSサーバのリスト。\n example: null\n DnsOptions:\n type: array\n items:\n type: string\n description: DNSオプションのリスト。\n example: null\n DnsSearch:\n type: array\n items:\n type: string\n description: DNS検索ドメインのリスト。\n example: null\n ExtraHosts:\n type: array\n items:\n type: string\n description: 追加のホスト名とIPアドレスのマッピングのリスト。\n example: []\n GroupAdd:\n type: array\n items:\n type: string\n description: 追加するグループのリスト。\n example: null\n IpcMode:\n type: string\n description: IPCモード。\n example: \"private\"\n Cgroup:\n type: string\n description: cgroupオプション。\n example: \"\"\n Links:\n type: array\n items:\n type: string\n description: 他のコンテナへのリンクのリスト。\n example: null\n OomScoreAdj:\n type: integer\n description: OOMスコア調整値。\n example: 0\n PidMode:\n type: string\n description: PIDモード。\n example: \"\"\n Privileged:\n type: boolean\n description: 特権モードで実行するかどうか。\n example: false\n PublishAllPorts:\n type: boolean\n description: すべてのポートを公開するかどうか。\n example: false\n ReadonlyRootfs:\n type: boolean\n description: 読み取り専用のルートファイルシステムを使用するかどうか。\n example: false\n SecurityOpt:\n type: array\n items:\n type: string\n description: セキュリティオプションのリスト。\n example: null\n UTSMode:\n type: string\n description: UTSモード。\n example: \"\"\n UsernsMode:\n type: string\n description: ユーザ名前空間モード。\n example: \"\"\n ShmSize:\n type: integer\n description: 共有メモリのサイズ。\n example: 67108864\n Runtime:\n type: string\n description: ランタイム。\n example: \"runc\"\n Isolation:\n type: string\n description: アイソレーションモード。\n example: \"\"\n CpuShares:\n type: integer\n description: CPU共有の設定。\n example: 0\n Memory:\n type: integer\n description: メモリの制限。\n example: 0\n NanoCpus:\n type: integer\n description: NanoCPUsの設定。\n example: 0\n CgroupParent:\n type: string\n description: cgroup親の設定。\n example: \"\"\n BlkioWeight:\n type: integer\n description: ブロックI/Oのウェイト。\n example: 0\n BlkioWeightDevice:\n type: array\n items:\n type: object\n description: ブロックI/Oウェイトデバイスのリスト。\n example: null\n BlkioDeviceReadBps:\n type: array\n items:\n type: object\n description: ブロックI/Oデバイスの読み取り速度(バイト/秒)のリスト。\n example: null\n BlkioDeviceWriteBps:\n type: array\n items:\n type: object\n description: ブロックI/Oデバイスの書き込み速度(バイト/秒)のリスト。\n example: null\n BlkioDeviceReadIOps:\n type: array\n items:\n type: object\n description: ブロックI/Oデバイスの読み取り速度(I/O操作/秒)のリスト。\n example: null\n BlkioDeviceWriteIOps:\n type: array\n items:\n type: object\n description: ブロックI/Oデバイスの書き込み速度(I/O操作/秒)のリスト。\n example: null\n CpuPeriod:\n type: integer\n description: CPUの周期。\n example: 0\n CpuQuota:\n type: integer\n description: CPUクォータ。\n example: 0\n CpuRealtimePeriod:\n type: integer\n description: CPUリアルタイム周期。\n example: 0\n CpuRealtimeRuntime:\n type: integer\n description: CPUリアルタイムランタイム。\n example: 0\n CpusetCpus:\n type: string\n description: CPUセットのCPU。\n example: \"\"\n CpusetMems:\n type: string\n description: CPUセットのメモリ。\n example: \"\"\n Devices:\n type: array\n items:\n type: object\n description: デバイスのリスト。\n example: null\n DeviceCgroupRules:\n type: array\n items:\n type: string\n description: デバイスcgroupルールのリスト。\n example: null\n DeviceRequests:\n type: array\n items:\n type: object\n description: デバイスリクエストのリスト。\n example: null\n MemoryReservation:\n type: integer\n description: メモリの予約。\n example: 0\n MemorySwap:\n type: integer\n description: メモリのスワップ設定。\n example: 0\n MemorySwappiness:\n type: integer\n description: メモリのスワッピネス。\n example: null\n OomKillDisable:\n type: boolean\n description: OOMキルを無効にするかどうか。\n example: false\n PidsLimit:\n type: integer\n description: PIDの制限。\n example: null\n Ulimits:\n type: array\n items:\n type: object\n description: ulimitの設定。\n example: null\n CpuCount:\n type: integer\n description: CPUの数。\n example: 0\n CpuPercent:\n type: integer\n description: CPUのパーセンテージ。\n example: 0\n IOMaximumIOps:\n type: integer\n description: 最大I/O操作数。\n example: 0\n IOMaximumBandwidth:\n type: integer\n description: 最大バンド幅。\n example: 0\n MaskedPaths:\n type: array\n items:\n type: string\n description: マスクされたパスのリスト。\n example:\n [\n \"/proc/asound\",\n \"/proc/acpi\",\n \"/proc/kcore\",\n \"/proc/keys\",\n \"/proc/latency_stats\",\n \"/proc/timer_list\",\n \"/proc/timer_stats\",\n \"/proc/sched_debug\",\n \"/proc/scsi\",\n \"/sys/firmware\",\n ]\n ReadonlyPaths:\n type: array\n items:\n type: string\n description: 読み取り専用のパスのリスト。\n example:\n [\n \"/proc/bus\",\n \"/proc/fs\",\n \"/proc/irq\",\n \"/proc/sys\",\n \"/proc/sysrq-trigger\",\n ]\n GraphDriver:\n type: object\n description: グラフドライバーのデータ。\n properties:\n Data:\n type: object\n description: グラフドライバーのデータ。\n properties:\n LowerDir:\n type: string\n description: LowerDirのパス。\n example: \"/home/docker/overlay2/42049b9ec79ebac120e47656d64f5cec23aca29e692c39c769e4b8f89f25560c-init/diff:/home/docker/overlay2/180ea9e2448689419cb3ffa2b4fb48c18676d0fa4529982a8bf04f1193fe3f96/diff:/home/docker/overlay2/de5921af205703308a71cda4b33225a81f5de21002310ac80f962c031c9e84fb/diff:/home/docker/overlay2/8e6f007f5af6742863aff11a0c4f69a2cb963fbf932f0e2a3b9411c48bec9c85/diff:/home/docker/overlay2/b72fb5eb7e785933c03c6f9329948778b89dd663d2dff2c766b53ae97da606ec/diff:/home/docker/overlay2/feff8433af2fee0f948b69308832c49fea9f6612dc08717b410a1bfee6004667/diff:/home/docker/overlay2/93bb59e59c6a58b8844bee5c5b9c130cb5f7502707553a84a0b0ff848c4bfddf/diff:/home/docker/overlay2/1515191def9e1afb6d97623752cd731c448b6f3a9f21585d89c6775f6f6a7892/diff:/home/docker/overlay2/17ee2e88fef4ec08a2268963f63f9f975a839b0afb5d9bef184146113481a73e/diff\"\n MergedDir:\n type: string\n description: MergedDirのパス。\n example: \"/home/docker/overlay2/42049b9ec79ebac120e47656d64f5cec23aca29e692c39c769e4b8f89f25560c/merged\"\n UpperDir:\n type: string\n description: UpperDirのパス。\n example: \"/home/docker/overlay2/42049b9ec79ebac120e47656d64f5cec23aca29e692c39c769e4b8f89f25560c/diff\"\n WorkDir:\n type: string\n description: WorkDirのパス。\n example: \"/home/docker/overlay2/42049b9ec79ebac120e47656d64f5cec23aca29e692c39c769e4b8f89f25560c/work\"\n Name:\n type: string\n description: グラフドライバーの名前。\n example: \"overlay2\"\n Mounts:\n type: array\n description: マウントのリスト。\n items:\n type: object\n properties:\n Type:\n type: string\n description: マウントタイプ(例:bind、volume、tmpfs)。\n example: \"bind\"\n Source:\n type: string\n description: マウントのソースパス。\n example: \"/var/samba/public/MediaHarborFrontend/DB/data\"\n Destination:\n type: string\n description: マウントの宛先パス。\n example: \"/var/lib/mysql\"\n Mode:\n type: string\n description: マウントモード(例:ro、rw)。\n example: \"rw\"\n RW:\n type: boolean\n description: マウントが読み書き可能かどうかを示します。\n example: true\n Propagation:\n type: string\n description: マウントの伝播モード。\n example: \"rprivate\"\n Config:\n type: object\n description: コンテナの設定。\n properties:\n Hostname:\n type: string\n description: コンテナのホスト名。\n example: \"fd8b7d18b8fe\"\n Domainname:\n type: string\n description: コンテナのドメイン名。\n example: \"\"\n User:\n type: string\n description: コンテナのユーザー名。\n example: \"\"\n AttachStdin:\n type: boolean\n description: 標準入力をアタッチするかどうか。\n example: false\n AttachStdout:\n type: boolean\n description: 標準出力をアタッチするかどうか。\n example: true\n AttachStderr:\n type: boolean\n description: 標準エラーをアタッチするかどうか。\n example: true\n ExposedPorts:\n type: object\n description: 公開ポートの設定。\n properties:\n \"3306/tcp\":\n type: object\n description: TCPポート3306の設定。\n example: {}\n Tty:\n type: boolean\n description: TTYを使用するかどうか。\n example: false\n OpenStdin:\n type: boolean\n description: 標準入力を開くかどうか。\n example: false\n StdinOnce:\n type: boolean\n description: 標準入力を一度だけ開くかどうか。\n example: false\n Env:\n type: array\n items:\n type: string\n description: 環境変数のリスト。\n example:\n [\n \"MARIADB_ROOT_PASSWORD_HASH=*7932903C4D7035C6CB4F5FE4CD267A9F1D7F39C9\",\n \"MARIADB_DATABASE=mediaharbor\",\n \"MARIADB_USER=mediaharbor\",\n \"MARIADB_PASSWORD_HASH=*98862F42AC6125B3B646E116DD3DB4FB5252A6AA\",\n \"MARIADB_HOST=%\",\n 'TZ=\"Asia/Tokyo\"',\n \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\n \"GOSU_VERSION=1.14\",\n \"LANG=C.UTF-8\",\n \"MARIADB_VERSION=1:11.1.2+maria~ubu2204\",\n ]\n Cmd:\n type: array\n items:\n type: string\n description: コンテナのコマンド。\n example: [\"mariadbd\"]\n Image:\n type: string\n description: コンテナのイメージ。\n example: \"mariadb:11\"\n Volumes:\n type: object\n description: ボリュームの設定。\n properties:\n \"/etc/mysql/conf.d/my.cnf\":\n type: object\n description: my.cnfの設定。\n example: {}\n \"/var/lib/mysql\":\n type: object\n description: MySQLのデータディレクトリの設定。\n example: {}\n WorkingDir:\n type: string\n description: コンテナの作業ディレクトリ。\n example: \"\"\n Entrypoint:\n type: array\n items:\n type: string\n description: コンテナのエントリーポイント。\n example: [\"docker-entrypoint.sh\"]\n OnBuild:\n type: array\n items:\n type: string\n description: ONBUILDイベントのリスト。\n example: null\n Labels:\n type: object\n description: コンテナのラベル。\n properties:\n com.docker.compose.config-hash:\n type: string\n description: Docker Composeの設定ハッシュ。\n example: \"1d7fbc5756c5ff6a0460c6c22e93a597044096b5f2da23ff1c9fe672e371e30b\"\n com.docker.compose.container-number:\n type: string\n description: Docker Composeのコンテナ番号。\n example: \"1\"\n com.docker.compose.depends_on:\n type: string\n description: 依存する他のサービス。\n example: \"\"\n com.docker.compose.image:\n type: string\n description: コンテナのイメージのSHA256ハッシュ。\n example: \"sha256:871a9153c1842e3b480cb1be691c64151bc96a5de2cc8039470d31e32ff0a177\"\n com.docker.compose.oneoff:\n type: string\n description: 一回限りのタスクかどうか。\n example: \"False\"\n com.docker.compose.project:\n type: string\n description: Docker Composeプロジェクトの名前。\n example: \"mediaharborfrontend\"\n com.docker.compose.project.config_files:\n type: string\n description: Docker Composeの設定ファイルのリスト。\n example: \"/var/samba/public/MediaHarborFrontend/docker-compose.yml\"\n com.docker.compose.project.working_dir:\n type: string\n description: Docker Composeの作業ディレクトリ。\n example: \"/var/samba/public/MediaHarborFrontend\"\n com.docker.compose.service:\n type: string\n description: Docker Composeのサービス名。\n example: \"db\"\n com.docker.compose.version:\n type: string\n description: Docker Composeのバージョン。\n example: \"2.12.2\"\n org.opencontainers.image.authors:\n type: string\n description: イメージの作成者。\n example: \"MariaDB Community\"\n org.opencontainers.image.base.name:\n type: string\n description: ベースイメージの名前。\n example: \"docker.io/library/ubuntu:jammy\"\n org.opencontainers.image.description:\n type: string\n description: イメージの説明。\n example: \"MariaDB Database for relational SQL\"\n org.opencontainers.image.documentation:\n type: string\n description: イメージのドキュメンテーションURL。\n example: \"https://hub.docker.com/_/mariadb/\"\n org.opencontainers.image.licenses:\n type: string\n description: イメージのライセンス。\n example: \"GPL-2.0\"\n org.opencontainers.image.ref.name:\n type: string\n description: イメージのリファレンス名。\n example: \"ubuntu\"\n org.opencontainers.image.source:\n type: string\n description: イメージのソースURL。\n example: \"https://github.com/MariaDB/mariadb-docker\"\n org.opencontainers.image.title:\n type: string\n description: イメージのタイトル。\n example: \"MariaDB Database\"\n org.opencontainers.image.url:\n type: string\n description: イメージのURL。\n example: \"https://github.com/MariaDB/mariadb-docker\"\n org.opencontainers.image.vendor:\n type: string\n description: イメージのベンダー。\n example: \"MariaDB Community\"\n org.opencontainers.image.version:\n type: string\n description: イメージのバージョン。\n example: \"11.1.2\"\n NetworkSettings:\n type: object\n description: ネットワークの設定。\n properties:\n Bridge:\n type: string\n description: ブリッジネットワークの名前。\n example: \"\"\n SandboxID:\n type: string\n description: サンドボックスID。\n example: \"dab8c333826eef62a5c6887206697b0bd40208350b58724a55cbeaf55c161a75\"\n HairpinMode:\n type: boolean\n description: ヘアピンモード。\n example: false\n LinkLocalIPv6Address:\n type: string\n description: リンクローカルIPv6アドレス。\n example: \"\"\n LinkLocalIPv6PrefixLen:\n type: integer\n description: リンクローカルIPv6プレフィックス長。\n example: 0\n Ports:\n type: object\n description: ポートの設定。\n properties:\n \"3306/tcp\":\n type: array\n items:\n type: object\n description: TCPポート3306の設定。\n example:\n - HostIp: \"0.0.0.0\"\n HostPort: \"3306\"\n - HostIp: \"::\"\n HostPort: \"3306\"\n SandboxKey:\n type: string\n description: サンドボックスキー。\n example: \"/var/run/docker/netns/dab8c333826e\"\n SecondaryIPAddresses:\n type: array\n items:\n type: string\n description: 2次IPアドレスのリスト。\n example: null\n SecondaryIPv6Addresses:\n type: array\n items:\n type: string\n description: 2次IPv6アドレスのリスト。\n example: null\n EndpointID:\n type: string\n description: エンドポイントID。\n example: \"\"\n Gateway:\n type: string\n description: ゲートウェイ。\n example: \"\"\n GlobalIPv6Address:\n type: string\n description: グローバルIPv6アドレス。\n example: \"\"\n GlobalIPv6PrefixLen:\n type: integer\n description: グローバルIPv6プレフィックス長。\n example: 0\n IPAddress:\n type: string\n description: IPアドレス。\n example: \"\"\n IPPrefixLen:\n type: integer\n description: IPプレフィックス長。\n example: 0\n IPv6Gateway:\n type: string\n description: IPv6ゲートウェイ。\n example: \"\"\n MacAddress:\n type: string\n description: MACアドレス。\n example: \"\"\n Networks:\n type: object\n description: ネットワークの設定。\n properties:\n mediaharborfrontend_default:\n type: object\n description: mediaharborfrontend_defaultネットワークの設定。\n properties:\n IPAMConfig:\n type: object\n description: IPAM設定。\n example: null\n Links:\n type: array\n items:\n type: string\n description: リンクのリスト。\n example: null\n Aliases:\n type: array\n items:\n type: string\n description: エイリアスのリスト。\n example: [\"db\", \"db\", \"fd8b7d18b8fe\"]\n NetworkID:\n type: string\n description: ネットワークID。\n example: \"e3f1da74b58bb32ba05a58306eb342c8f161025e13d117a5628b196b7a450d00\"\n EndpointID:\n type: string\n description: エンドポイントID。\n example: \"3d39b3eeee4be7872fb3847766022d8110e37d00a45895c356a8c520314a8c95\"\n Gateway:\n type: string\n description: ゲートウェイ。\n example: \"172.31.0.1\"\n IPAddress:\n type: string\n description: IPアドレス。\n example: \"172.31.0.4\"\n IPPrefixLen:\n type: integer\n description: IPプレフィックス長。\n example: 16\n IPv6Gateway:\n type: string\n description: IPv6ゲートウェイ。\n example: \"\"\n GlobalIPv6Address:\n type: string\n description: グローバルIPv6アドレス。\n example: \"\"\n GlobalIPv6PrefixLen:\n type: integer\n description: グローバルIPv6プレフィックス長。\n example: 0\n MacAddress:\n type: string\n description: MACアドレス。\n example: \"02:42:ac:1f:00:04\"\n DriverOpts:\n type: object\n description: ドライバーオプション。\n example: null\n"| id required | string <string> Example: id=123e4567-e89b-12d3-a456-426614174000 コンテナID |
| Content-Type | string Example: "text/plain" コンテンツタイプ |
| Transfer-Encoding | string Example: "chunked" 転送エンコーディング |
リアルタイムでコンテナログをストリーミング配信 タイムスタンプ付きのログ行が継続的に送信される
curl -X 'GET' \ 'http://<ServerAddress>/api/container/log?id=123e4567-e89b-12d3-a456-426614174000' \ -H 'x-api-key: YOUR_API_KEY'
| id required | string <string> Example: id=123e4567-e89b-12d3-a456-426614174000 コンテナID |
| Content-Type | string Example: "text/plain" コンテンツタイプ |
| Content-Disposition | string Example: "attachment; filename=MHLogYYYYMMDDhhmmss.log" ファイルとしてダウンロードするためのヘッダー |
ログ
curl -X 'GET' \ 'http://<ServerAddress>/api/container/log-dl?id=123e4567-e89b-12d3-a456-426614174000' \ -H 'x-api-key: YOUR_API_KEY'
DRM(Direct Rendering Manager)を使用してディスプレイ接続状態を取得します
| status required | integer ステータスコード | ||||||||||
| message required | string ステータスメッセージ | ||||||||||
required | Array of objects ディスプレイ情報の配列 | ||||||||||
Array
| |||||||||||
| error required | string or null エラーメッセージ(正常時はnull) | ||||||||||
| status required | integer ステータスコード |
| message required | string ステータスメッセージ |
| data required | string or null データ(エラー時はnull) |
| error required | string エラーメッセージ |
curl -X 'GET' \ 'http://<ServerAddress>/api/drm' \ -H 'x-api-key: YOUR_API_KEY'
{- "status": 200,
- "message": "OK",
- "data": [
- {
- "connector_id": 1,
- "name": "HDMI-A-1",
- "isConnected": true,
- "resolution": "1920x1080",
- "type": "HDMI"
}
], - "error": null
}監視ログを登録する。
| date | string <date-time> ログ日時 |
| source_id | string <uuid> ソースID |
| patrol_item_source_id | string or null <uuid> 巡回中の切替元ソースID |
| log_id required | string^[0-9a-fA-F]{8}$ ログID |
| jsondata | string JSONデータ |
[- {
- "date": "2024-03-19T13:51:38Z",
- "source_id": "cdd55dc4-2107-41f0-810c-a06495c841c1",
- "patrol_item_source_id": "3a3b80ef-c138-4926-9617-169815700af5",
- "log_id": "00200201",
- "jsondata": "{\"sid\": 1,\"last_updated_ms\": 1710856298571,\"last_updated_date\": \"2024/03/19 13:51:38\",\"video\": {\"freeze\": {\"is_occuring\": true,\"last_updated_ms\": 1710856298168,\"last_updated_date\": \"2024/03/19 13:51:38\"},\"black\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"},\"time_mask\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"},\"img_mask\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"},\"action_trigger\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"}},\"audio\": {\"silent\": {\"is_occuring\": false,\"last_updated_ms\": 1710856298569,\"last_updated_date\": \"2024/03/19 13:51:38\"},\"time_mask\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"}},\"port\": \"50001\"}"
}
]指定したタイプの監視ログを取得 指定が無い場合は全て取得
| type | string Enum: "SYS" "MON" "VA" "SCTE35" "TS" ログタイプ
※未指定時は全て | |||||||||||||||||||||||||||
| level | string Example: level=0,1,2 ログレベル
複数指定可能で指定した値のレベルのログが取得される
| |||||||||||||||||||||||||||
| qty | string Example: qty=100 取得件数 | |||||||||||||||||||||||||||
| from | string <date-time> Example: from=2019-08-24T14:15:22Z 取得開始日時 | |||||||||||||||||||||||||||
| to | string <date-time> Example: to=2019-08-24T14:15:22Z 取得終了日時 | |||||||||||||||||||||||||||
| query | string Example: query=freeze ソース名、メッセージでキーワード検索 | |||||||||||||||||||||||||||
| order | string Example: order=asc 取得方向 | |||||||||||||||||||||||||||
| nextToken | string Example: nextToken=eyJ2ZXJzaW9uIjoxLCJ0b2tlbiI6IjIwMjItMDMtMjJUMTg6MjA6MjIuMjAwMDAwMFoiLCJzdGF0ZSI6MH0 次のページのトークン |
required | Array of objects ログ一覧 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nextToken required | string or null 次のページのトークン | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
curl -X 'GET' \ 'http://<ServerAddress>/api/monlog?type=SYS&level=0%2C1%2C2&qty=100&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z&query=freeze&order=asc&nextToken=eyJ2ZXJzaW9uIjoxLCJ0b2tlbiI6IjIwMjItMDMtMjJUMTg6MjA6MjIuMjAwMDAwMFoiLCJzdGF0ZSI6MH0' \ -H 'x-api-key: YOUR_API_KEY'
{- "logs": [
- {
- "id": 0,
- "date": "2019-08-24T14:15:22Z",
- "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
- "patrol_item_source_id": "3a3b80ef-c138-4926-9617-169815700af5",
- "log_id": "00200201",
- "source": {
- "name": "string",
- "protocol_type_id": 1
}, - "details": {
- "type": "VA",
- "level": 3,
- "message": "フリーズを検出しました",
- "message_en": "Freeze detected"
}, - "jsondata": "{\"sid\": 1,\"last_updated_ms\": 1710856298571,\"last_updated_date\": \"2024/03/19 13:51:38\",\"video\": {\"freeze\": {\"is_occuring\": true,\"last_updated_ms\": 1710856298168,\"last_updated_date\": \"2024/03/19 13:51:38\"},\"black\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"},\"time_mask\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"},\"img_mask\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"},\"action_trigger\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"}},\"audio\": {\"silent\": {\"is_occuring\": false,\"last_updated_ms\": 1710856298569,\"last_updated_date\": \"2024/03/19 13:51:38\"},\"time_mask\": {\"is_occuring\": false,\"last_updated_ms\": 1710855881382,\"last_updated_date\": \"2024/03/19 13:44:41\"}},\"port\": \"50001\"}"
}
], - "nextToken": "eyJ2ZXJzaW9uIjoxLCJ0b2tlbiI6IjIwMjItMDMtMjJUMTg6MjA6MjIuMjAwMDAwMFoiLCJzdGF0ZSI6MH0="
}