AssetDatabase GetByPath
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
AssetDatabase GetByPath
Retrieve an Asset Database by path.
Remarks
This method returns an asset database 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 assetdatabases
URL Parameters
-
path The path to the database. 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 specified database.
Sample Response Body
{
"WebId": "I1RDDqD5loBNH0erqeqJodtALAquulo6433EKdHra7fsmL0g",
"Id": "a3a5ebaa-37ae-42dc-9d1e-b6bb7ec98bd2",
"Name": "MyDatabase",
"Description": "PI BI Project Asset Model",
"Path": "\\\\MyAssetServer\\MyDatabase",
"ExtendedProperties": {},
"Links": {
"Self": "https://localhost.osisoft.int/piwebapi/assetdatabases/I1RDDqD5loBNH0erqeqJodtALAquulo6433EKdHra7fsmL0g"
}
}