Get IoC Collections associated with a Hunting ruleset

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

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

Examples

Get descriptors of all IoC Collections that are associated with the Hunting ruleset with 20899097850 identifier.

import requests

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

Get descriptors of 3 IoC Collections that are associated with the Hunting ruleset with 20899097850 identifier.

import requests

id = "20899097850"
url = f"https://www.virustotal.com/api/v3/intelligence/hunting_rulesets/{id}/relationships/associations"
headers = {"accept": "application/json","x-apikey": <api-key>}
response = requests.get(url, headers=headers)
Language
Click Try It! to start a request and see the response here!