Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Web API Reference

AssetServer GetDatabases

AssetServer GetDatabases

Retrieve a list of all Asset Databases on the specified Asset Server.

Request

GET assetservers/{webId}/assetdatabases

URL Parameters

  • webId

    The ID of the server. See WebID 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: A list of databases.

Sample Response Body

{
  "Items": [
    {
      "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"
      }
    },
    {
      "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"
      }
    }
  ],
  "Links": {}
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in