GET Pro2 connection information API
- Last Updated: August 8, 2023
- 1 minute read
- OpenEdge Pro2
- Version 6.5
- Documentation
Call GET getconnection with your Pro2 log-in credentials to get a
JSON report for the type of connection that a Pro2 instance is using.
About this API
The GET connection information API is a REST API that, when called, queries a Pro2 instance the connection type that the instance is using. You specify the instance host name and port in the URL of the call. To ensure security, you include the log-in credentials for your account in the query. The request returns the connection type for the instance. The connection type can be LAN or WAN.
Request
Direct the API call to the URL:
http://host_name:port/pro2/rest/Pro2/DPR?dMode=System/getconnection
Request format example as a curl
command:
curl
-X GET
-u username:password
-v http://host_name:port/pro2/rest/Pro2/DPR?dMode=System/getconnectionResponse
The response returns a data-set report of connection information in JSON format.
The following is an example
response:
{
"ProDataSet": {
"ack": [
{
"ConnType": "LAN",
"AppSrvName": "",
"AppSrvConnString": ""
}
]
}
}