get https://www.virustotal.com/api/v3/intelligence/hunting_rulesets//relationships/associations
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)