DataServer GetByName
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
DataServer GetByName
Retrieve a Data Server by name.
Remarks
This method returns a data server based on the name. Users should primarily search with the WebID when available.
Request
GET dataservers
URL Parameters
-
name The name of the server.
-
selectedFields List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned. See Selected Fields for more information.
-
webIdType Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType". See WebID Type for more information.
Status Codes
200: The requested server.
Sample Response Body
{
"WebId": "I1DS1km7hQHxB0i6-VfC-9MwAA",
"Id": "85bb49d6-f101-4807-baf9-57c2fbd33000",
"Name": "MyPIServer",
"Path": "\\\\PIServer[MyPIServer]",
"IsConnected": true,
"ServerVersion": "3.4.390.18",
"ServerTime": "2014-07-22T14:00:00Z",
"Links": {
"Self": "https://localhost.osisoft.int/piwebapi/dataservers/I1DS1km7hQHxB0i6-VfC-9MwAA"
}
}