You need to enable JavaScript to run this app.
导航
获取指定节点
最近更新时间:2022.10.31 15:45:33首次发布时间:2022.10.31 15:45:33

获取组织树中指定节点的详细信息。

请求方式

使用 GET 方式发起请求。

请求参数

下表仅列出了接口特有的请求参数和部分公共参数。完整的公共参数列表,参考「公共参数」。

字段
位置
类型
必填
说明
ActionQueryString公共参数,OpenAPI 接口名称GetGroupTreeNode

Version

Query

String

公共参数,OpenAPI 接口版本

2021-01-01

ID

Query

String

节点 ID

可通过调用 ListGroupTreeNodes 接口获取

返回结果

返回参数说明

通用返回参数,请参考 ResponseMetadata 结构体说明

Result 字段包含查询到的节点详细信息。可参考 ListGroupTreeNodes 接口返回的 List<Nodes> 数据结构说明

示例

请求示例

GET https://open.volcengineapi.com?Action=GetGroupTreeNode
&Version=2021-01-01
&ID=856ea30f-c782-4b70-ab5f-54580fxxxxxx
&<公共请求参数>

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202210091754350101742541260891471C",
        "Action": "GetGroupTreeNode",
        "Version": "2021-01-01",
        "Service": "aiotvideo",
        "Region": "cn-north-1"
    },
    "Result": {
        "ID": "856ea30f-c782-4b70-ab5f-54580fxxxxxx",
        "Name": "1",
        "NSID": "110108004913xxxxxxxx",
        "Description": "",
        "Shared": false,
        "SpaceID": "9f84d4ff-bdee-4105-a8ae-f2a3cfxxxxxx",
        "SpaceName": "edge-gateway",
        "Region": "",
        "ParentID": "0ba5842a-9130-4c0b-8480-b152eexxxxxx",
        "Nodes": [
            {
                "ID": "ac6ff86a-372d-48fe-a382-1e49e7xxxxxx",
                "Name": "2",
                "NSID": "110108004913xxxxxxxx",
                "Description": "",
                "Shared": false,
                "SpaceID": "9f84d4ff-bdee-4105-a8ae-f2a3cfxxxxxx",
                "SpaceName": "edge-gateway",
                "Region": "",
                "ParentID": "856ea30f-c782-4b70-ab5f-54580fxxxxxx",
                "Nodes": null,
                "Device": null
            },
            {
                "ID": "e7103bdc-6a4e-41bc-9c7f-5f47d7xxxxxx",
                "Name": "2",
                "NSID": "110108004913xxxxxxxx",
                "Description": "",
                "Shared": false,
                "SpaceID": "9f84d4ff-bdee-4105-a8ae-f2a3xxxxxx",
                "SpaceName": "edge-gateway",
                "Region": "",
                "ParentID": "856ea30f-c782-4b70-ab5f-54580fxxxxxx",
                "Nodes": null,
                "Device": {
                    "ID": "86ed737b-1203-463f-a943-b3d6b5xxxxxx",
                    "Type": "IPC",
                    "DeviceName": "shhk",
                    "Description": "",
                    "Status": "offline",
                    "DeviceNSID": "34020098991320xxxxxx",
                    "Protocol": "gb28181",
                    "Vendor": "",
                    "Channels": [
                        {
                            "ID": "ab9e0a7d-fcb9-41bb-a227-23f809xxxxxx",
                            "SipID": "34020098991320xxxxxx",
                            "StreamName": "34020098991320xxxxxx_34020035991320xxxxxx",
                            "DeviceID": "86ed737b-1203-463f-a943-b3d6b5xxxxxx",
                            "Status": "failed",
                            "Description": "channel: 34020035991320xxxxxx@device: 34020098991320xxxxxx",
                            "Available": false
                        }
                    ],
                    "Available": false
                }
            },
            {
                "ID": "5b68c0ba-77a8-46bf-adc8-d064caxxxxxx",
                "Name": "2",
                "NSID": "110108004913xxxxxxxx",
                "Description": "",
                "Shared": false,
                "SpaceID": "9f84d4ff-bdee-4105-a8ae-f2a3cfxxxxxx",
                "SpaceName": "edge-gateway",
                "Region": "",
                "ParentID": "856ea30f-c782-4b70-ab5f-54580fxxxxxx",
                "Nodes": null,
                "Device": {
                    "ID": "145c43db-5355-4cbe-89eb-23744dxxxxxx",
                    "Type": "IPC",
                    "DeviceName": "测试设备",
                    "Description": "",
                    "Status": "online",
                    "DeviceNSID": "34020013991320xxxxxx",
                    "Protocol": "gb28181",
                    "Vendor": "",
                    "Channels": [
                        {
                            "ID": "37b287c8-b7d5-44a9-b705-d6db77xxxxxx",
                            "SipID": "34020013991320xxxxxx",
                            "StreamName": "34020013991320xxxxxx_media_channel_0",
                            "DeviceID": "145c43db-5355-4cbe-89eb-23744dxxxxxx",
                            "Status": "failed",
                            "Description": "channel: media_channel_0@device: 340200139913206xxxxxx",
                            "Available": false
                        }
                    ],
                    "Available": false
                }
            }
        ],
        "Device": null
    }
}