Get Hunting rulesets associated with an IoC Collection

Use this endpoint to list descriptors of Hunting rulesets associated with a certain IoC Collections.

These associations can be added and also deleted by objects' owners and editors.

Examples

Get descriptors of all Hunting rulesets that are associated with the IoC Collection with ab622fb5f4e6382109fe89ed466aafbaef1b79c31cb2c7e1d1f59ffde772715f identifier.

import requests

id = "ab622fb5f4e6382109fe89ed466aafbaef1b79c31cb2c7e1d1f59ffde772715f"
url = f"https://www.virustotal.com/api/v3/collections/{id}/relationships/hunting_rulesets"
headers = {"accept": "application/json","x-apikey": <api-key>}
response = requests.get(url, headers=headers)

Get descriptors of 3 Hunting rulesets that are associated with the IoC Collection with ab622fb5f4e6382109fe89ed466aafbaef1b79c31cb2c7e1d1f59ffde772715f identifier.

import requests

id = "ab622fb5f4e6382109fe89ed466aafbaef1b79c31cb2c7e1d1f59ffde772715f"
url = f"https://www.virustotal.com/api/v3/collections/{id}/relationships/hunting_rulesets?limit=3"
headers = {"accept": "application/json","x-apikey": <api-key>}
response = requests.get(url, headers=headers)
Path Params
string
required

IoC Collection's ID

Query Params
int32
0 to 40
Defaults to 10

Maximum number of related objects to retrieve

string

Continuation cursor

Headers
string
required

Your API key

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json