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

Commit a91e286

Browse files
committed
[client] By default, get all objects in containers
1 parent 3e064e7 commit a91e286

File tree

8 files changed

+50
-8
lines changed

8 files changed

+50
-8
lines changed

pycti/entities/opencti_case_incident.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(self, opencti):
116116
severity
117117
priority
118118
response_types
119-
objects {
119+
objects(all: true) {
120120
edges {
121121
node {
122122
... on BasicObject {
@@ -210,6 +210,9 @@ def __init__(self, opencti):
210210
... on DataSource {
211211
name
212212
}
213+
... on StixCyberObservable {
214+
observable_value
215+
}
213216
... on StixCoreRelationship {
214217
standard_id
215218
spec_version

pycti/entities/opencti_case_rfi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(self, opencti):
113113
name
114114
description
115115
information_types
116-
objects {
116+
objects(all: true) {
117117
edges {
118118
node {
119119
... on BasicObject {
@@ -207,6 +207,9 @@ def __init__(self, opencti):
207207
... on DataSource {
208208
name
209209
}
210+
... on StixCyberObservable {
211+
observable_value
212+
}
210213
... on StixCoreRelationship {
211214
standard_id
212215
spec_version

pycti/entities/opencti_case_rft.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(self, opencti):
113113
name
114114
description
115115
takedown_types
116-
objects {
116+
objects(all: true) {
117117
edges {
118118
node {
119119
... on BasicObject {
@@ -207,6 +207,9 @@ def __init__(self, opencti):
207207
... on DataSource {
208208
name
209209
}
210+
... on StixCyberObservable {
211+
observable_value
212+
}
210213
... on StixCoreRelationship {
211214
standard_id
212215
spec_version

pycti/entities/opencti_grouping.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __init__(self, opencti):
114114
description
115115
context
116116
x_opencti_aliases
117-
objects {
117+
objects(all: true) {
118118
edges {
119119
node {
120120
... on BasicObject {
@@ -190,6 +190,9 @@ def __init__(self, opencti):
190190
... on Incident {
191191
name
192192
}
193+
... on StixCyberObservable {
194+
observable_value
195+
}
193196
... on StixCoreRelationship {
194197
standard_id
195198
spec_version

pycti/entities/opencti_note.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(self, opencti):
116116
authors
117117
note_types
118118
likelihood
119-
objects {
119+
objects(all: true) {
120120
edges {
121121
node {
122122
... on BasicObject {
@@ -213,13 +213,22 @@ def __init__(self, opencti):
213213
... on Case {
214214
name
215215
}
216+
... on StixCyberObservable {
217+
observable_value
218+
}
216219
... on StixCoreRelationship {
217220
standard_id
218221
spec_version
219222
created_at
220223
updated_at
221224
relationship_type
222225
}
226+
... on StixSightingRelationship {
227+
standard_id
228+
spec_version
229+
created_at
230+
updated_at
231+
}
223232
}
224233
}
225234
}

pycti/entities/opencti_observed_data.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(self, opencti):
113113
first_observed
114114
last_observed
115115
number_observed
116-
objects {
116+
objects(all: true) {
117117
edges {
118118
node {
119119
... on BasicObject {
@@ -210,12 +210,21 @@ def __init__(self, opencti):
210210
... on Case {
211211
name
212212
}
213+
... on StixCyberObservable {
214+
observable_value
215+
}
213216
... on StixCoreRelationship {
214217
standard_id
215218
spec_version
216219
created_at
217220
updated_at
218221
}
222+
... on StixSightingRelationship {
223+
standard_id
224+
spec_version
225+
created_at
226+
updated_at
227+
}
219228
}
220229
}
221230
}

pycti/entities/opencti_opinion.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __init__(self, opencti):
111111
explanation
112112
authors
113113
opinion
114-
objects {
114+
objects(all: true) {
115115
edges {
116116
node {
117117
... on BasicObject {
@@ -190,13 +190,22 @@ def __init__(self, opencti):
190190
... on Case {
191191
name
192192
}
193+
... on StixCyberObservable {
194+
observable_value
195+
}
193196
... on StixCoreRelationship {
194197
standard_id
195198
spec_version
196199
created_at
197200
updated_at
198201
relationship_type
199202
}
203+
... on StixSightingRelationship {
204+
standard_id
205+
spec_version
206+
created_at
207+
updated_at
208+
}
200209
}
201210
}
202211
}

pycti/entities/opencti_report.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(self, opencti):
116116
description
117117
report_types
118118
published
119-
objects {
119+
objects(all: true) {
120120
edges {
121121
node {
122122
... on BasicObject {
@@ -213,6 +213,9 @@ def __init__(self, opencti):
213213
... on Case {
214214
name
215215
}
216+
... on StixCyberObservable {
217+
observable_value
218+
}
216219
... on StixCoreRelationship {
217220
standard_id
218221
spec_version

0 commit comments

Comments
 (0)