You need to enable JavaScript to run this app.
导航

获取上级平台信息

最近更新时间2022.10.31 15:45:33

首次发布时间2022.10.31 15:45:33

获取指定上级平台的详细信息。

请求方式

使用 GET 方式发起请求。

请求参数

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

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

Version

Query

String

公共参数,OpenAPI 接口版本

2021-01-01

PlatformID

Query

String

上级平台 ID

可通过调用 ListCascadePlatform 接口获取

返回结果

返回参数说明

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

Result 字段包含以下参数:

字段
类型
说明
PlatformIDString上级平台 ID
PlatformNameString上级平台名称
DescriptionString上级平台描述
SipConfigObjectsSIP 配置信息,参考以下 SIP 配置信息结构说明
EnableAccessBoolean是否开启平台授权
EnablePTZBoolean是否开启 PTZ 控制权限
StatusString状态
CreateAtString创建时间
UpdateAtString更新时间

SIP 配置信息结构说明

字段
类型
说明
SipServerIDStringSIP 服务器 ID
RealmStringSIP 服务器域
SipServerHostStringSIP 服务器 IP 地址
SipServerPortIntegerSIP 服务器端口
SipUserIDStringSIP 用户 ID
PasswordStringSIP密码
RegisterExpiresInteger平台注册间隔时间(单位:秒)
KeepAlivePeriodInteger平台心跳间隔时间(单位:秒)

示例

请求示例

GET https://open.volcengineapi.com?Action=GetCascadePlatform
&Version=2021-01-01
&PlatformID=00034
&<公共请求参数>

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2022101714433701017424615503E7E94D",
        "Action": "GetCascadePlatform",
        "Version": "2021-01-01",
        "Service": "aiotvideo",
        "Region": "cn-north-1"
    },
    "Result": {
        "PlatformID": "00034",
        "PlatformName": "vop",
        "Description": "",
        "SipConfig": {
            "SipServerID": "3402000000xxxxxxxxxx",
            "Realm": "34xxxxxxxx",
            "SipServerHost": "10.xxx.xxx.xxx",
            "SipServerPort": 8333,
            "SipUserID": "3402009599xxxxxxxxxx",
            "Password": "AAxxxxxxxx",
            "RegisterExpires": 3600,
            "KeepalivePeriod": 60
        },
        "EnableAccess": true,
        "EnablePTZ": true,
        "Status": "registered",
        "CreateAt": "2022-09-14T18:09:31+08:00",
        "UpdateAt": "2022-10-17T14:28:10+08:00"
    }
}