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

PI Web API Reference

TimeRule GetByPath

TimeRule GetByPath

Retrieve a Time Rule by path.

Remarks

This method returns a Time Rule 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 timerules

URL Parameters

  • path

    The path to the Time Rule. 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 Time Rule.

Sample Response Body

{
  "WebId": "I1TRXDqD5loBNH0erqeqJodtALAROsUFcWU5xGEQwAVXYTCAAROsUFcWU5xGEQwAVXYTCAA",
  "Id": "1514eb44-94c5-11e7-8443-00155d84c200",
  "Name": "Periodic",
  "Description": "Creates regular periodic time periods.",
  "Path": "\\\\MyAssetServer\\MyDatabase\\MyElement\\Analyses[MyAnalysis]\\TimeRule",
  "ConfigString": "Frequency=300",
  "ConfigStringStored": "",
  "DisplayString": "Frequency=300",
  "EditorType": "OSIsoft.AF.Time.TimeRule.PeriodicConfig",
  "IsConfigured": true,
  "IsInitializing": false,
  "MergeDuplicatedItems": false,
  "PlugInName": "Periodic",
  "Links": {
    "Self": "https://localhost.osisoft.int/piwebapi/timerules/I1TRXDqD5loBNH0erqeqJodtALAROsUFcWU5xGEQwAVXYTCAAROsUFcWU5xGEQwAVXYTCAA"
  }
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in