27.1.4.1  PortList

 

List all ports under the Project Node.

 

HTTP Method: GET

XML URL: http://localhost/WaWebService/PortList/{ProjectName}/{NodeName}

JSON URL: http://localhost/WaWebService/Json/PortList/{ProjectName}/{NodeName}

XML Response:

<PortList>   <Result>     <Ret>0</Ret>     <Total>2</Total>   </Result>   <Ports>     <Port>       <InterfaceName>TCPIP</InterfaceName>       <PortNumber>2</PortNumber>       <Description>TCP Port</Description>     </Port>     <Port>       <InterfaceName>TCPIP</InterfaceName>       <PortNumber>1</PortNumber>       <Description>Port Description</Description>     </Port>   </Ports> </PortList>

                   JSON Response:

{         "Result":{                  "Ret":0,                  "Total":2         },         "Ports":[{                  "InterfaceName":"TCP",                  "PortNumber":2,                  "Description":"TCP PORT"                  },                  {                  "InterfaceName":"TCP",                  "PortNumber":1,                  "Description":" Port Description"         }] }

Response Field:

Field Name

Description

InterfaceName

Interface Name

PortNumber

Port Number

Description

Description