NotificationContactTemplate GetNotificationContactTemplatesQuery
- Last UpdatedJun 15, 2023
- 2 minute read
- PI System
- PI Web API Reference
- Developer
NotificationContactTemplate GetNotificationContactTemplatesQuery
Retrieve notification contact templates based on the specified conditions. Returns notification contact templates using the specified search query string.
Request
GET notificationcontacttemplates/search
URL Parameters
-
assetServerWebId The ID of the asset server to use as the root of the query. See WebID for more information.
-
query The query string is a list of filters used to perform an AFSearch for the Notification Contact Templates in the asset database. An example would be: "query=Name:='MyNotificationContactTemplate'". See Search Query Syntax for more information.See URL Encoding for more information.
-
startIndex The starting index (zero based) of the items to be returned. The default is 0.
-
maxCount The maximum number of objects to be returned per call (page size). The default is 1000.
-
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 notification contact templates matching the specified conditions.
Sample Response Body
{
"Items": [
{
"WebId": "I1NCEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
"Id": "cbb28260-853d-11e4-80c5-00155d844304",
"Name": "Plant Manager",
"Description": "",
"Path": "\\\\MyAssetServer\\NotificationContactTemplates[Plant Manager]",
"Available": true,
"ConfigString": "",
"ContactType": "Individual",
"PlugInName": "",
"HasChildren": false,
"MaximumRetries": 5,
"MinimumAcknowledgements": 2,
"NotifyWhenInstanceEnded": true,
"EscalationTimeout": "PT3S",
"RetryInterval": "PT5S",
"Links": {
"Self": "https://localhost.osisoft.int/piwebapi/notificationcontacttemplates/I1NCEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg"
}
},
{
"WebId": "I1NCEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
"Id": "cbb28260-853d-11e4-80c5-00155d844304",
"Name": "Plant Manager",
"Description": "",
"Path": "\\\\MyAssetServer\\NotificationContactTemplates[Plant Manager]",
"Available": true,
"ConfigString": "",
"ContactType": "Individual",
"PlugInName": "",
"HasChildren": false,
"MaximumRetries": 5,
"MinimumAcknowledgements": 2,
"NotifyWhenInstanceEnded": true,
"EscalationTimeout": "PT3S",
"RetryInterval": "PT5S",
"Links": {
"Self": "https://localhost.osisoft.int/piwebapi/notificationcontacttemplates/I1NCEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg"
}
}
],
"Links": {}
}