建立專屬網路埠轉發規則
描述
建立雲手機網路埠轉發規則
請求引數
引數名 | 引數型別 | 是否必填 | 引數說明 |
---|---|---|---|
Action | String | 是 | 操作方法:CreateCloudPhoneNetworkRules,此引數為公共引數,不必放body裡面 |
Region | String | 是 | 機房標識,取值參見地域列表 |
CloudPhoneNetworkId | String | 是 | 專屬網路ID |
CloudPhoneNetworkRules | String | 是 | 埠轉發內容 "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": {
}
}