openrelik-api-client 0.2.4__py3-none-any.whl → 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openrelik_api_client/workflows.py +19 -0
- {openrelik_api_client-0.2.4.dist-info → openrelik_api_client-0.3.0.dist-info}/METADATA +1 -1
- {openrelik_api_client-0.2.4.dist-info → openrelik_api_client-0.3.0.dist-info}/RECORD +5 -5
- {openrelik_api_client-0.2.4.dist-info → openrelik_api_client-0.3.0.dist-info}/LICENSE +0 -0
- {openrelik_api_client-0.2.4.dist-info → openrelik_api_client-0.3.0.dist-info}/WHEEL +0 -0
@@ -72,6 +72,25 @@ class WorkflowsAPI:
|
|
72
72
|
if response.status_code == 200:
|
73
73
|
return response.json()
|
74
74
|
|
75
|
+
def get_workflow_status(self, folder_id: int, workflow_id: int) -> dict[str, Any]:
|
76
|
+
"""Retrieves a workflow status by ID.
|
77
|
+
|
78
|
+
Args:
|
79
|
+
folder_id: The ID of the folder where the workflow exists.
|
80
|
+
workflow_id: The ID of the workflow to retrieve.
|
81
|
+
|
82
|
+
Returns:
|
83
|
+
The workflow status data.
|
84
|
+
|
85
|
+
Raises:
|
86
|
+
HTTPError: If the API request failed.
|
87
|
+
"""
|
88
|
+
endpoint = f"{self.folders_url}/{folder_id}/workflows/{workflow_id}/status"
|
89
|
+
response = self.api_client.session.get(endpoint)
|
90
|
+
response.raise_for_status()
|
91
|
+
if response.status_code == 200:
|
92
|
+
return response.json()
|
93
|
+
|
75
94
|
def update_workflow(
|
76
95
|
self, folder_id: int, workflow_id: int, workflow_data: dict
|
77
96
|
) -> dict[str, Any] | None:
|
@@ -2,8 +2,8 @@ openrelik_api_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
2
2
|
openrelik_api_client/api_client.py,sha256=MjkiGJuU_t9S_n0aQSwPPRpgo1NpjVViC7WFx-PCikg,9130
|
3
3
|
openrelik_api_client/folders.py,sha256=RtL94DOSP72to_kLDF9HP94zQfXKui8xoLT-OSdHSxw,6943
|
4
4
|
openrelik_api_client/groups.py,sha256=zhR2oq9_PG0ZmFgVHf62T7KWeg7h6mJmXOABScOJGyU,6116
|
5
|
-
openrelik_api_client/workflows.py,sha256=
|
6
|
-
openrelik_api_client-0.
|
7
|
-
openrelik_api_client-0.
|
8
|
-
openrelik_api_client-0.
|
9
|
-
openrelik_api_client-0.
|
5
|
+
openrelik_api_client/workflows.py,sha256=5DjpNuqGfbLz-glWPqqIZpL6wtHtt2DWsqG-EpFDeRw,5510
|
6
|
+
openrelik_api_client-0.3.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
7
|
+
openrelik_api_client-0.3.0.dist-info/METADATA,sha256=2OMDYJtxbMFRWnDyM_bhUrz-GHDxqDvDVYenzfFMHCw,2114
|
8
|
+
openrelik_api_client-0.3.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
9
|
+
openrelik_api_client-0.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|