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

Commit 91aec69

Browse files
[client] create sshkey example
1 parent 11f67c3 commit 91aec69

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# coding: utf-8
2+
3+
from pycti import OpenCTIApiClient
4+
5+
# Variables
6+
api_url = "http://opencti:4000"
7+
api_token = "bfa014e0-e02e-4aa6-a42b-603b19dcf159"
8+
9+
# OpenCTI initialization
10+
opencti_api_client = OpenCTIApiClient(api_url, api_token)
11+
12+
observable_sshkey = opencti_api_client.stix_cyber_observable.create(
13+
observableData={"type": "SSH-Key", "SSHKey": {"fingerprint_sha256": "sha256_test"}}
14+
)
15+
16+
print(observable_sshkey)

0 commit comments

Comments
 (0)