Obtaining Details About a Video Source
Function
This API is used to obtain details about a video source.
URI
GET /v2/{project_id}/source/sources/{video_source_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. Maximum: 64 |
video_source_id |
Yes |
String |
ID of a created video source. The value is a string of 4 to 36 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Maximum: 36 |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. For details about how to obtain a user token, see Authentication. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
video_source_name |
String |
Video source name. The value can contain only letters, digits, spaces, and the following special characters: .-_(). It cannot start or end with a space. Minimum length: 1 character Maximum length: 100 characters |
access_type |
String |
Access type, which can be cloud or edge. |
status |
VideoSourceStatusInfoDto object |
Data source status |
type |
String |
Type: obs, vcn, url, restful, and camera |
latitude |
String |
Latitude of the video source. The value ranges from -90.00000 to 90.00000. |
longitude |
String |
Longitude of the video source. The value ranges from -180.00000 to 180.00000. |
create_at |
Long |
Creation time |
type_config |
String |
XML file of video source configuration information |
video_packages |
Array of VideoGroupInfoDto objects |
Group to which the video source belongs |
service_config_templates |
Array of VideoServiceConfigTemplateDto objects |
Algorithm template body |
stream_path |
String |
Stream address |
image |
String |
Base64-encoded video source snapshot |
tag |
Array of strings |
Video source tag. A maximum of four tags can be selected. Only letters, digits, hyphens (-), and underscores (_) are allowed. Minimum length: 1 character Maximum length: 10 characters |
scene_recommend |
Array of strings |
Tags recommended by an intelligent algorithm |
video_source_quality |
Array of strings |
Video source quality. Blurry: blurry image; ColorDistortion: color distortion; AbnormalLight: abnormal image light; ScreenSplash: image artifact; ScreenJitter: image jitter; ScreenMovement: image movement; SceneUpheaval: image upheaval; ScreenFreeze: image freezing; BlackScreen: black screen; SnowNoise: static noise; Occlude: blocking; GrayScreen: gray screen; ScreenSmudge: screen smudge |
Parameter |
Type |
Description |
---|---|---|
status |
String |
Video source status |
name |
String |
Status name |
level |
String |
Status level (used for color matching of frontend images) |
Parameter |
Type |
Description |
---|---|---|
video_group_id |
String |
ID of the group to which the video source belongs |
video_group_name |
String |
Name of the group to which the video source belongs |
description |
String |
Description of the group to which the video source belongs |
access_type |
String |
Access type, which can be cloud or edge. |
create_at |
Long |
Creation time |
modify_at |
Long |
Modification time |
num_video_source |
Integer |
Number of video resources |
group_status |
GroupStatusDto object |
Video source status |
num_batch_task |
Integer |
Number of configured batch tasks |
Parameter |
Type |
Description |
---|---|---|
num_online |
Integer |
Number of online video sources |
num_exception |
Integer |
Number of abnormal video sources |
num_offline |
Integer |
Number of offline video sources |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Algorithm service name |
roi |
String |
Public ROI |
serviceConfig |
String |
Common configuration of algorithm services |
createAt |
Long |
Creation time |
modifyAt |
Long |
Modification time |
numTask |
Integer |
Number of running algorithms |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error description |
detail |
String |
Error details |
params |
Array of strings |
Error parameters Array Length: 0 - 1 |
reason |
String |
Error cause |
advice |
String |
Suggestion |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error description |
detail |
String |
Error details |
params |
Array of strings |
Error parameters Array Length: 0 - 1 |
reason |
String |
Error cause |
advice |
String |
Suggestion |
Example Requests
This request is used to obtain video source details such as the video source name, access type, and status.
v2/{project_id}/source/sources/{video_source_id} https://{endpoint}/v2/{project_id}/source/sources/{video_source_id}
Example Responses
Status code: 200
Video source details
{ "video_source_name" : "url_test", "access_type" : "cloud", "status" : { "status" : "Online", "name" : "Online", "level" : "1" }, "type" : "url", "latitude" : "", "longitude" : "", "create_at" : 1680772763191, "type_config" : "<type_config> <url_address>rtsp://12.12.12.12:333</url_address> </type_config>", "video_packages" : [ ], "service_config_templates" : [ ], "stream_path" : "rtsp://12.12.12.12:333", "tag" : [ ], "device_id" : "1680772763191", "scene_recommend" : [ ], "video_source_quality" : [ ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Video source details |
400 |
Invalid parameter |
500 |
Internal error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot