Concise description
- Used to solve the problem of inconsistency between internal and external networks in the UDP port range of streaming media audio and video. For example, the port number occupied by the internal network is 10011, and the port number of the external network image is 10012
Request URL
{{adminHost:8181}}/portMapping/search
Request Method
Field Name |
Sample |
Required |
Type |
Note |
adminKey |
603284317954637824 |
Yes |
string |
This parameter is for backend management access credentials, which can be viewed in LarkXR3.3 backend access management |
timestamp |
8641706679604867 |
Yes |
string |
The timestamp when sending a request, in milliseconds |
signature |
9A02B47AE67664D80A2ED13FC2B1691512613790 |
Yes |
string |
This parameter is a key signature. Sort the adminKey (viewed in LarkXR3.2 backend access management), adminSecret (viewed in LarkXR3.3 backend access management), and current timestamp (long value) in alphabetical order, and then perform SHA-1 summary signature. Please refer to the example of [Obtaining Voucher Signature] |
Request Query Parameters
Field Name |
Sample |
Required |
Type |
Note |
page |
|
Yes |
string |
Page number, default to 1 |
pageSize |
|
Yes |
string |
How many pieces of data are there on each page, default to 15 |
请求参数示例
请求json字段Note
Field Name |
Required |
Type |
Note |
id |
Yes |
string |
Prohibit modification, pass fixed parameters |
ssKey |
Yes |
string |
Prohibit modification, pass fixed parameters |
ssValue |
Yes |
string |
None |
updateDate |
Yes |
string |
Prohibit modification, retrieve the updateDate returned in the query |
Success Response Example
{
"code": 1000,
"message": "Success",
"result": {
"records": [
{
"id": "1192522228432896000",
"internalHost": "192.168.0.55",
"internalPort": "10011",
"externalHost": "cloudlark.pingxingyun.com",
"externalPort": "10012"
}
],
"total": "1",
"size": "15",
"current": "1",
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"pages": "1"
}
}
Parameter Note for Success Response Example
Field Name |
Type |
Note |
code |
string |
None |
message |
string |
None |
result |
object |
None |
records |
array |
None |
records.id |
string |
None |
records.internalHost |
string |
Internal network address |
records.internalPort |
string |
Internal network port |
records.externalHost |
string |
External network address |
records.externalPort |
string |
External network port |
total |
string |
None |
size |
string |
None |
current |
string |
None |
orders |
array |
None |
optimizeCountSql |
string |
None |
searchCount |
string |
None |
pages |
string |
None |