policies
GeoIP Viewset
post/policies/geoip/
Request body
namestring required
execution_loggingboolean
When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
asnsinteger[]
countriesCountryCodeEnum[] required
check_history_distanceboolean
history_max_distance_kminteger
distance_tolerance_kminteger
history_login_countinteger
check_impossible_travelboolean
impossible_tolerance_kminteger
Response
pkstring uuid required
namestring required
execution_loggingboolean
When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
componentstring required
Get object component so that we know how to edit the object
verbose_namestring required
Return object's verbose_name
verbose_name_pluralstring required
Return object's plural verbose_name
meta_model_namestring required
Return internal model name
bound_tointeger required
Return objects policy is bound to
asnsinteger[]
countriesCountryCodeEnum[] required
check_history_distanceboolean
history_max_distance_kminteger
distance_tolerance_kminteger
history_login_countinteger
check_impossible_travelboolean
impossible_tolerance_kminteger
Changes
No recorded changes to this endpoint across all 1 revision of this API.