跳到主要内容

查詢專屬網路埠轉發規則

描述

查詢雲手機網路埠轉發規則資訊

請求引數

引數名引數型別是否必填引數說明
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.yunpanel.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"
}]
}
}