Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 3e6f112

Browse files
[client] Add vocabulary handlers (read, list, import)
1 parent 4e7ff54 commit 3e6f112

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ def import_object(
694694
"tool": self.opencti.tool.import_from_stix2,
695695
"channel": self.opencti.channel.import_from_stix2,
696696
"narrative": self.opencti.narrative.import_from_stix2,
697+
"Vocabulary": self.opencti.vocabulary.import_from_stix2,
697698
"vulnerability": self.opencti.vulnerability.import_from_stix2,
698699
"incident": self.opencti.incident.import_from_stix2,
699700
}
@@ -1763,6 +1764,7 @@ def export_entity(
17631764
"Tool": self.opencti.tool.read,
17641765
"Channel": self.opencti.channel.read,
17651766
"Narrative": self.opencti.narrative.read,
1767+
"Vocabulary": self.opencti.vocabulary.read,
17661768
"Vulnerability": self.opencti.vulnerability.read,
17671769
"Incident": self.opencti.incident.read,
17681770
"Stix-Cyber-Observable": self.opencti.stix_cyber_observable.read,
@@ -1861,6 +1863,7 @@ def export_list(
18611863
"Tool": self.opencti.tool.list,
18621864
"Channel": self.opencti.channel.list,
18631865
"Narrative": self.opencti.narrative.list,
1866+
"Vocabulary": self.opencti.vocabulary.list,
18641867
"Vulnerability": self.opencti.vulnerability.list,
18651868
"Incident": self.opencti.incident.list,
18661869
"Stix-Cyber-Observable": self.opencti.stix_cyber_observable.list,

0 commit comments

Comments
 (0)