...
filter_by_asset_tags: '{"key_name_1": ["key_value_1", "key_value_2"], "key_value_2": null}'
This example will get policy violations related to assets that have asset tag key/values matching:
...
Code Block | ||
---|---|---|
| ||
curl -g \ --header 'Authorization: APIKey 1234567890abcdefgh=' \ 'https://api.securetheorem.com/apis/api_security/results/v1beta1/policy_violations?filter_by_asset_tags={%22key_name_1%22:%20[%22key_value_1%22,%20%22key_value_1%222%22],%20%22test-vw%22:%20null}' |
...
Code Block | ||
---|---|---|
| ||
import requests response = requests.request( "GET", url="https://api.securetheorem.com/apis/api_security/results/v1beta1/policy_violations", headers={"Authorization": "APIKey 1234567890abcdefgh="}, params={"filter_by_asset_tags": '{"key_name_1": ["key_value_1", "key_value_2"], "key_value_2": null}'}, ) print(response.text) |
...