illumio-pylo 0.3.2__py3-none-any.whl → 0.3.3__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.
@@ -12,7 +12,7 @@ from .JsonPayloadTypes import LabelGroupObjectJsonStructure, LabelObjectCreation
12
12
  LabelDimensionObjectStructure, AuditLogApiReplyEventJsonStructure, WorkloadsGetQueryLabelFilterJsonStructure, \
13
13
  NetworkDeviceObjectJsonStructure, NetworkDeviceEndpointObjectJsonStructure, HrefReference, \
14
14
  WorkloadObjectCreateJsonStructure, WorkloadObjectMultiCreateJsonRequestPayload, \
15
- WorkloadBulkUpdateEntryJsonStructure, WorkloadBulkUpdateResponseEntry
15
+ WorkloadBulkUpdateEntryJsonStructure, WorkloadBulkUpdateResponseEntry, VenObjectJsonStructure
16
16
 
17
17
  try:
18
18
  import requests as requests
@@ -624,6 +624,35 @@ class APIConnector:
624
624
 
625
625
  return None
626
626
 
627
+ def objects_ven_get(self,
628
+ include_deleted=False,
629
+ filter_by_ip: str = None,
630
+ filter_by_label: Optional[WorkloadsGetQueryLabelFilterJsonStructure] = None,
631
+ filter_by_name: str = None,
632
+ max_results: int = None,
633
+ async_mode=True) -> List[VenObjectJsonStructure]:
634
+ path = '/vens'
635
+ data = {}
636
+
637
+ if include_deleted:
638
+ data['include_deleted'] = 'yes'
639
+
640
+ if filter_by_ip is not None:
641
+ data['ip_address'] = filter_by_ip
642
+
643
+ if filter_by_label is not None:
644
+ # filter_by_label must be converted to json text
645
+ data['labels'] = json.dumps(filter_by_label)
646
+
647
+ if filter_by_name is not None:
648
+ data['name'] = filter_by_name
649
+
650
+ if max_results is not None:
651
+ data['max_results'] = max_results
652
+
653
+ return self.do_get_call(path=path, async_call=async_mode, params=data)
654
+
655
+
627
656
  def objects_workload_get(self,
628
657
  include_deleted=False,
629
658
  filter_by_ip: str = None,
@@ -14,7 +14,6 @@ except ImportError:
14
14
  paramiko = None
15
15
 
16
16
 
17
-
18
17
  class CredentialFileEntry(TypedDict):
19
18
  name: str
20
19
  fqdn: str
@@ -121,6 +121,35 @@ class WorkloadBulkUpdateResponseEntry(TypedDict):
121
121
  message: NotRequired[str]
122
122
 
123
123
 
124
+ class VenObjectWorkloadSummaryJsonStructure(TypedDict):
125
+ href: str
126
+ mode: str
127
+ online: bool
128
+
129
+
130
+ class VenObjectJsonStructure(TypedDict):
131
+ created_at: str
132
+ created_by: Optional[HrefReferenceWithName]
133
+ description: Optional[str]
134
+ hostname: Optional[str]
135
+ href: str
136
+ labels: List[HrefReference]
137
+ name: Optional[str]
138
+ interfaces: List[WorkloadInterfaceObjectJsonStructure]
139
+ updated_at: str
140
+ updated_by: Optional[HrefReferenceWithName]
141
+ last_heartbeat_at: Optional[str]
142
+ last_goodbye_at: Optional[str]
143
+ ven_type: Literal['server', 'endpoint', 'containerized-ven']
144
+ active_pce_fqdn: Optional[str]
145
+ target_pce_fqdn: Optional[str]
146
+ workloads: List[VenObjectWorkloadSummaryJsonStructure]
147
+ version: Optional[str]
148
+ os_id: Optional[str]
149
+ os_version: Optional[str]
150
+ os_platform: Optional[str]
151
+ uid: Optional[str]
152
+
124
153
 
125
154
  class RuleServiceReferenceObjectJsonStructure(TypedDict):
126
155
  href: str
illumio_pylo/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.3.2"
1
+ __version__ = "0.3.3"
2
2
 
3
3
  import os
4
4
  import sys
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: illumio_pylo
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: A set of tools and library for working with Illumio PCE
5
5
  Home-page: https://github.com/cpainchaud/pylo
6
6
  Author: Christophe Painchaud
@@ -21,14 +21,14 @@ illumio_pylo/VirtualServiceStore.py,sha256=b6bcMixq0Vfv7WjQTQnFHGCv_Mld7sOfvGi4N
21
21
  illumio_pylo/Workload.py,sha256=OIrP2TVFpCjQdjMYPdHkZHcKRszZ2hPnj4uRhI6d8EI,19677
22
22
  illumio_pylo/WorkloadStore.py,sha256=08FKIk9fubsaHy_-m2a0Io5sO_V9jmTa40-L3vyemRc,10947
23
23
  illumio_pylo/WorkloadStoreSubClasses.py,sha256=tK7s-7s5wRf9SHv3T00EOzgv4gX8gPIM77KBubCzBuo,6092
24
- illumio_pylo/__init__.py,sha256=0cUO16-EHeOd6bZL4Aap5BngagWLcGsCZAnvhoVSxdg,4192
24
+ illumio_pylo/__init__.py,sha256=xFZtrDXJzFs2mvE4B3udeNXJnu2o953tYyqsHCGSX1g,4192
25
25
  illumio_pylo/tmp.py,sha256=7PIn11aYfoxed7tjG_I1iZmiacn4TxZPihs7qD7f4DI,3123
26
- illumio_pylo/API/APIConnector.py,sha256=PM-7sNPmBaZ8fLM5KGcLd7nXBha4Il6fFGAHntToSdk,59433
26
+ illumio_pylo/API/APIConnector.py,sha256=ksStxXka8a5gATM6GKb7foMLZZtBRAleuWJI96ioFoI,60494
27
27
  illumio_pylo/API/AuditLog.py,sha256=p0mfjrE5S8qoJgA5LIP_XGFBP3iL86Nl6BQEmhMVrPA,1533
28
28
  illumio_pylo/API/ClusterHealth.py,sha256=GdMpVQrHUW4zLM-409GcPHM8H8b3LAppO37ZcUZyT_Q,5122
29
- illumio_pylo/API/CredentialsManager.py,sha256=vPqekauA0twbcpbWx8GcGFX4DQlh0y0SWAE9M4HKBsE,11031
29
+ illumio_pylo/API/CredentialsManager.py,sha256=gGx63cEm4tnf4xLrmP5LAlDuEGlRjfuvOqut3xUl8i8,11030
30
30
  illumio_pylo/API/Explorer.py,sha256=fFAIF-67_uuKgJOP0eZPPJrOGuYmFl33GK75AyMjgJU,47590
31
- illumio_pylo/API/JsonPayloadTypes.py,sha256=eUsK1ba8PLoV-VReRE6A3qar-N3xckXRZbY2ckSkmMk,7113
31
+ illumio_pylo/API/JsonPayloadTypes.py,sha256=9gql3-tn3cu1qmpOD_JcPCX5b594eOKDgVhTqHu6CsQ,7984
32
32
  illumio_pylo/API/RuleSearchQuery.py,sha256=O0-MsUXhwmywoO0G-GXnLq6kkVC9LgmxMZwqVKc_oJE,5325
33
33
  illumio_pylo/API/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  illumio_pylo/Helpers/__init__.py,sha256=6E2eTZe-4qfPKGjRRQNtYsPrBhJSAjbdvv_DpniV_rY,49
@@ -65,8 +65,8 @@ illumio_pylo/utilities/resources/iplists-import-example.xlsx,sha256=VW-7CRr8NA2V
65
65
  illumio_pylo/utilities/resources/workload-exporter-filter-example.csv,sha256=cn5IA8AGEPjvS-EsPXA_GJ-LFsdF9t_44rSzFTCmAzE,36
66
66
  illumio_pylo/utilities/resources/workloads-import-example.csv,sha256=DEOGVikFjxQpMFFI0l0jb3hrxEEeZCpTGkmWkz6GUcY,91
67
67
  illumio_pylo/utilities/resources/workloads-import-example.xlsx,sha256=U8Ac2BZidA6NlvBFAVPHqeY5zmg3rjmIAXp5b3b1P5w,17101
68
- illumio_pylo-0.3.2.dist-info/LICENSE,sha256=WYmcYJG1QFgu1hfo7qrEkZ3Jhcz8NUWe6XUraZvlIFs,10172
69
- illumio_pylo-0.3.2.dist-info/METADATA,sha256=TQ6C78x4N8G9pvl48e9MKRErO1CIjV17ETRUM1tN824,12224
70
- illumio_pylo-0.3.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
71
- illumio_pylo-0.3.2.dist-info/top_level.txt,sha256=c5cu_ZMuSuxjq48ih58Kc0Tr8-JdQtV8GrKJicvWNFE,13
72
- illumio_pylo-0.3.2.dist-info/RECORD,,
68
+ illumio_pylo-0.3.3.dist-info/LICENSE,sha256=WYmcYJG1QFgu1hfo7qrEkZ3Jhcz8NUWe6XUraZvlIFs,10172
69
+ illumio_pylo-0.3.3.dist-info/METADATA,sha256=cXr1ZrhFl1rQTJgE_0IFxb1okrSPSS0mNeqVS1XmHrs,12224
70
+ illumio_pylo-0.3.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
71
+ illumio_pylo-0.3.3.dist-info/top_level.txt,sha256=c5cu_ZMuSuxjq48ih58Kc0Tr8-JdQtV8GrKJicvWNFE,13
72
+ illumio_pylo-0.3.3.dist-info/RECORD,,