You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-23Lines changed: 27 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
-
PI Web API Client libraries for Python
1
+
PI Web API client library for Python (2017 R2)
2
2
===
3
3
4
4
## Overview
5
-
This repository has the source code package of the PI Web API Client libraries for Python.
5
+
This repository has the source code package of the PI Web API client libraries for Python. This version was developed on top of the PI Web API 2017 R2 swagger specification.
6
6
7
7
## Requirements.
8
8
9
-
Python 2.7 and 3.4+
10
-
9
+
- PI Web API 2017 R2 installed within your domain using Kerberos or Basic Authentication. If you are using an older version, some methods might not work.
10
+
- Python 2.7 and 3.4+
11
11
12
12
## Installation
13
13
### pip install
@@ -44,6 +44,10 @@ This library was tested using PyCharm 2017.1.5 and Anaconda3 5.0.0
44
44
45
45
All classes and methods are described on the [DOCUMENTATION](DOCUMENTATION.md).
46
46
47
+
## Notes
48
+
49
+
- Is is highly recommended to turn debug mode on in case you are using PI Web API 2017 R2+ in order to receive more detailed exception errors. This can be achieved by creating or editing the DebugMode attribute's value to TRUE from the System Configuration element.
50
+
- The X-Requested-With header is added to work with CSRF defences.
47
51
48
52
## Examples
49
53
@@ -64,16 +68,16 @@ Only Basic Authentication is available in this version. Therefore, the variable
[**get_security_entry_by_name**](AnalysisApi.md#getsecurityentrybyname) | **GET** /analyses/{webId}/securityentries/{name} | Retrieve the security entry associated with the analysis with the specified name.
14
14
[**update_security_entry**](AnalysisApi.md#updatesecurityentry) | **PUT** /analyses/{webId}/securityentries/{name} | Update a security entry owned by the analysis.
15
15
[**delete_security_entry**](AnalysisApi.md#deletesecurityentry) | **DELETE** /analyses/{webId}/securityentries/{name} | Delete a security entry owned by the analysis.
16
+
[**get_analyses_query**](AnalysisApi.md#getanalysesquery) | **GET** /analyses/search | Retrieve analyses based on the specified conditions. By default, returns all analyses.
**path** | **str**| The path to the Analysis.. | [required]
28
29
**selected_fields** | **str**| List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. | [optional]
30
+
**web_id_type** | **str**| 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".. | [optional]
29
31
30
32
31
33
### Return type
@@ -35,7 +37,7 @@ Name | Type | Description | Notes
35
37
[[Back to top]](#)[[Back to API list]](../../DOCUMENTATION.md#documentation-for-api-endpoints)[[Back to Model list]](../../DOCUMENTATION.md#documentation-for-models)[[Back to DOCUMENTATION]](../../DOCUMENTATION.md)
36
38
37
39
# **get**
38
-
> get('web_id', 'selected_fields')
40
+
> get('web_id', 'selected_fields', 'web_id_type')
39
41
40
42
Retrieve an Analysis.
41
43
@@ -45,6 +47,7 @@ Name | Type | Description | Notes
**web_id** | **str**| The ID of the Analysis.. | [required]
47
49
**selected_fields** | **str**| List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. | [optional]
50
+
**web_id_type** | **str**| 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".. | [optional]
48
51
49
52
50
53
### Return type
@@ -91,7 +94,7 @@ None
91
94
[[Back to top]](#)[[Back to API list]](../../DOCUMENTATION.md#documentation-for-api-endpoints)[[Back to Model list]](../../DOCUMENTATION.md#documentation-for-models)[[Back to DOCUMENTATION]](../../DOCUMENTATION.md)
**web_id** | **str**| The ID of the Analysis.. | [required]
103
106
**selected_fields** | **str**| List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. | [optional]
107
+
**web_id_type** | **str**| 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".. | [optional]
104
108
105
109
106
110
### Return type
@@ -110,7 +114,7 @@ Name | Type | Description | Notes
110
114
[[Back to top]](#)[[Back to API list]](../../DOCUMENTATION.md#documentation-for-api-endpoints)[[Back to Model list]](../../DOCUMENTATION.md#documentation-for-models)[[Back to DOCUMENTATION]](../../DOCUMENTATION.md)
Get the security information of the specified security item associated with the Analysis for a specified user.
116
120
@@ -122,6 +126,7 @@ Name | Type | Description | Notes
122
126
**user_identity** | **list[str]**| The user identity for the security information to be checked. Multiple security identities may be specified with multiple instances of the parameter. If the parameter is not specified, only the current user's security rights will be returned.. | [required]
123
127
**force_refresh** | **bool**| Indicates if the security cache should be refreshed before getting security information. The default is 'false'.. | [optional]
124
128
**selected_fields** | **str**| List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. | [optional]
129
+
**web_id_type** | **str**| 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".. | [optional]
125
130
126
131
127
132
### Return type
@@ -131,7 +136,7 @@ Name | Type | Description | Notes
131
136
[[Back to top]](#)[[Back to API list]](../../DOCUMENTATION.md#documentation-for-api-endpoints)[[Back to Model list]](../../DOCUMENTATION.md#documentation-for-models)[[Back to DOCUMENTATION]](../../DOCUMENTATION.md)
Retrieve the security entries associated with the analysis based on the specified criteria. By default, all security entries for this analysis are returned.
137
142
@@ -142,6 +147,7 @@ Name | Type | Description | Notes
142
147
**web_id** | **str**| The ID of the analysis.. | [required]
143
148
**name_filter** | **str**| The name query string used for filtering security entries. The default is no filter.. | [optional]
144
149
**selected_fields** | **str**| List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. | [optional]
150
+
**web_id_type** | **str**| 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".. | [optional]
145
151
146
152
147
153
### Return type
@@ -151,7 +157,7 @@ Name | Type | Description | Notes
151
157
[[Back to top]](#)[[Back to API list]](../../DOCUMENTATION.md#documentation-for-api-endpoints)[[Back to Model list]](../../DOCUMENTATION.md#documentation-for-models)[[Back to DOCUMENTATION]](../../DOCUMENTATION.md)
@@ -162,6 +168,7 @@ Name | Type | Description | Notes
162
168
**web_id** | **str**| The ID of the analysis, where the security entry will be created.. | [required]
163
169
**security_entry** | **PISecurityEntry**| The new security entry definition. The full list of allow and deny rights must be supplied.. | [required]
164
170
**apply_to_children** | **bool**| If false, the new access permissions are only applied to the associated object. If true, the access permissions of children with any parent-child reference types will change when the permissions on the primary parent change.. | [optional]
171
+
**web_id_type** | **str**| 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".. | [optional]
165
172
166
173
167
174
### Return type
@@ -171,7 +178,7 @@ None
171
178
[[Back to top]](#)[[Back to API list]](../../DOCUMENTATION.md#documentation-for-api-endpoints)[[Back to Model list]](../../DOCUMENTATION.md#documentation-for-models)[[Back to DOCUMENTATION]](../../DOCUMENTATION.md)
Retrieve the security entry associated with the analysis with the specified name.
177
184
@@ -182,6 +189,7 @@ Name | Type | Description | Notes
182
189
**name** | **str**| The name of the security entry. For every backslash character (\) in the security entry name, replace with asterisk (*). As an example, use domain*username instead of domain\username.. | [required]
183
190
**web_id** | **str**| The ID of the analysis.. | [required]
184
191
**selected_fields** | **str**| List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. | [optional]
192
+
**web_id_type** | **str**| 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".. | [optional]
185
193
186
194
187
195
### Return type
@@ -230,3 +238,26 @@ Name | Type | Description | Notes
230
238
None
231
239
232
240
[[Back to top]](#)[[Back to API list]](../../DOCUMENTATION.md#documentation-for-api-endpoints)[[Back to Model list]](../../DOCUMENTATION.md#documentation-for-models)[[Back to DOCUMENTATION]](../../DOCUMENTATION.md)
**database_web_id** | **str**| The ID of the asset database to use as the root of the query.. | [optional]
252
+
**max_count** | **int**| The maximum number of objects to be returned per call (page size). The default is 1000.. | [optional]
253
+
**query** | **str**| The query string is a list of filters used to perform an AFSearch for the analyses in the asset database. An example would be: "query= Name:=MyAnalysis1* Template:=AnalysisTemplate*".. | [optional]
254
+
**selected_fields** | **str**| List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. | [optional]
255
+
**start_index** | **int**| The starting index (zero based) of the items to be returned. The default is 0.. | [optional]
256
+
**web_id_type** | **str**| 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".. | [optional]
[[Back to top]](#)[[Back to API list]](../../DOCUMENTATION.md#documentation-for-api-endpoints)[[Back to Model list]](../../DOCUMENTATION.md#documentation-for-models)[[Back to DOCUMENTATION]](../../DOCUMENTATION.md)
0 commit comments