POST api/Service/Dev/Meter/RegistDubious
注册一个疑视流量计。
Request Information
URI Parameters
None.
Body Parameters
DubiousMeterRegParm| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceAddress |
流量计的地址 |
string |
Required Max length: 12 |
| NetworkType |
链路的类型,U:Udp,T :TCP. |
string |
Required Max length: 1 |
| IPV4 |
IPV4地址。 |
string |
Max length: 15 |
| IPV6 |
IPV6地址。 |
string |
Max length: 64 |
| Port |
端口号。 |
integer |
None. |
| Reserve1 |
保留一 |
string |
Max length: 20 |
| Reserve2 |
保留二 |
string |
Max length: 20 |
| Stage |
当前所处的质询阶段(2表示寻址已成功). |
string |
Max length: 1 |
Request Formats
application/json, text/json
Sample:
{
"DeviceAddress": "sample string 1",
"NetworkType": "sample string 2",
"IPV4": "sample string 3",
"IPV6": "sample string 4",
"Port": 5,
"Reserve1": "sample string 6",
"Reserve2": "sample string 7",
"Stage": "sample string 8"
}
application/xml, text/xml
Sample:
<DubiousMeterRegParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter.ForService"> <DeviceAddress>sample string 1</DeviceAddress> <IPV4>sample string 3</IPV4> <IPV6>sample string 4</IPV6> <NetworkType>sample string 2</NetworkType> <Port>5</Port> <Reserve1>sample string 6</Reserve1> <Reserve2>sample string 7</Reserve2> <Stage>sample string 8</Stage> </DubiousMeterRegParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
注册一个疑视流量计。
CommonOperationResultWithTagOfInt64| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": 3
}
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>3</tag> </CommonOperationResultWithTagOflong>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.