跳到主要内容

创建专属网络端口转发规则

描述

创建云手机网络端口转发规则

请求参数

参数名参数类型是否必填参数说明
ActionString操作方法:CreateCloudPhoneNetworkRules,此参数为公共参数,不必放body里面
RegionString机房标识,取值参见地域列表
CloudPhoneNetworkIdString专属网络ID
CloudPhoneNetworkRulesString端口转发内容 "CloudPhoneNetworkRules": [{ "Name":"xxxx", 名称 "Protocol":"xxxx". 协议 TCP / UDP "SourcePort":xxxxxx, 开放端口 "CloudPhonePort":xxxxx, 云手机端口 "CloudPhoneId":"xxxxxx" 云手机ID }]

返回参数

成功无返回

请求示例

post https://api.chinac.com/v2/?Action=CreateCloudPhoneNetworkRules
{
"Region": "xxxxxx",
"CloudPhoneNetworkId":"xxxxxx",
"CloudPhoneNetworkRules": [{
"Name":"xxxx",
"Protocol":"xxxx".
"SourcePort":xxxxxx,
"CloudPhonePort":xxxxx,
"CloudPhoneId":"xxxxxx"
}]
}

返回示例

{
"code": 10000,
"message": "",
"data": {
}
}