跳到主要内容

查询专属网络端口转发规则

描述

查询云手机网络端口转发规则信息

请求参数

参数名参数类型是否必填参数说明
ActionString操作方法:DescribeCloudPhoneNetworkRules,此参数为公共参数,不必放body里面
RegionString机房标识,取值参见地域列表
IdsArray规则id(与专属网络id其中一个必须)
CloudPhoneNetworkIdString专属网络id 可选
CloudPhoneIdOrNameString云手机ID或名称
ProtocolString协议
StatusString状态 ENABLE 启用,DISABLE禁用

返回参数

名称类型说明
CloudPhoneNetworkRuleSetCloudPhoneNetworkRuleSet由CloudPhoneNetworkRuleSet组成的对象,返回端口转发信息

CloudPhoneNetworkRuleSet

端口转发信息 名称类型说明
IdString端口转发规则 ID
CloudPhoneNetworkIdString云手机专属网络包id
NameString名称
ProtocolString协议
SourcePortString开放端口
CloudPhonePortString云手机端口
CloudPhoneIdString云手机id
StatusString状态
CloudPhoneNameString云手机名称

请求示例

post https://api.chinac.com/v2/?Action=DescribeCloudPhoneNetworkRules

{
"Region":"xxxxxx",
"CloudPhoneNetworkId":"xxxxxxxx",
"Ids":"xxxxxxxx",
"CloudPhoneIdOrName":"xxxxxxxx",
"Protocol":"xxxxxxxx",
"Status":"xxxxxxxx"
}

返回示例

{
"code": 10000,
"message": "",
"data": {
"CloudPhoneNetworkRuleSet":[{
"Id": "xxxxxx",
"CloudPhoneNetworkId": "xxxxxx",
"Name": "xxxxxx",
"Protocol": "xxxxxx",
"SourcePort": xxxxxx,
"CloudPhonePort": xxxxxx,
"CloudPhoneId":"xxxxxxx",
"Status":"xxxxxxx",
"CloudPhoneName":"xxxxx"
}]
}
}