pycti.entities.opencti_stix

Classes

Stix

Main Stix class for OpenCTI

Module Contents

class pycti.entities.opencti_stix.Stix(opencti)[source]

Main Stix class for OpenCTI

Provides generic STIX object operations in the OpenCTI platform.

Parameters:

opencti (OpenCTIApiClient) – instance of OpenCTIApiClient

Initialize the Stix instance.

Parameters:

opencti (OpenCTIApiClient) – OpenCTI API client instance

opencti[source]
delete(**kwargs)[source]

Delete a Stix element.

Parameters:
  • id (str) – the Stix element id

  • force_delete (bool) – force deletion (default: True)

Returns:

None

merge(**kwargs)[source]

Merge STIX objects into one.

Parameters:
  • id (str) – the target Stix-Object id

  • object_ids (list) – list of source STIX object IDs to merge into target

Returns:

The merged Stix-Object object

Return type:

dict or None