AssetServer GetByPath
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
AssetServer GetByPath
Retrieve an Asset Server by path.
Remarks
This method returns an asset server based on the hierarchical path associated with it, and should be used when a path has been received from a separate part of the PI System for use in the PI Web API. Users should primarily search with the WebID when available.
Request
GET assetservers
URL Parameters
-
path The path to the server. See Path Syntax for more information.
-
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": "I1RSDqD5loBNH0erqeqJodtALA",
"Id": "96f9a00e-4d80-471f-aba9-ea89a1db402c",
"Name": "MyAssetServer",
"Description": "Sample Description",
"Path": "\\\\MyAssetServer",
"IsConnected": true,
"ServerVersion": "2.5.0.5039",
"ServerTime": "2014-07-22T14:00:00Z",
"ExtendedProperties": {},
"Links": {
"Self": "https://localhost.osisoft.int/piwebapi/assetservers/I1RSDqD5loBNH0erqeqJodtALA"
}
}