Skip to content

the method "helper.api.stix_cyber_observable.read" in the connector. #6880

Closed Answered by yassine-ouaamou
Jijach asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Jijach,
To filter on the entity type, use the key "entity_type" and to get all the observables corresponding to your filter, use list():

observables = opencti_api_client.stix_cyber_observable.list(
    filters={
        "mode":"and",
        "filters":[{
            "key":"entity_type",
            "mode":"or",
            "operator": "eq",
            "values":["IPv4-Addr"]
        }],
        "filterGroups":[],
    }
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yassine-ouaamou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants