跳到主要内容

建立專屬網路埠轉發規則

描述

建立雲手機網路埠轉發規則

請求引數

引數名引數型別是否必填引數說明
ActionString操作方法:CreateCloudPhoneNetworkRules,此引數為公共引數,不必放body裡面
RegionString機房標識,取值參見地域列表
CloudPhoneNetworkIdString專屬網路ID
CloudPhoneNetworkRulesString埠轉發內容 "CloudPhoneNetworkRules": [{ "Name":"xxxx", 名稱 "Protocol":"xxxx". 協議 TCP / UDP "SourcePort":xxxxxx, 開放埠 "CloudPhonePort":xxxxx, 雲手機埠 "CloudPhoneId":"xxxxxx" 雲手機ID }]

返回引數

成功無返回

請求示例

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

返回示例

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