Originally posted by leom on dyncommunity.com on 29 January 2019
Hi,
I have a question with this api
https://help.dyn.com/update-dsf-ruleset-api/
Is there a sample criteria for geoip that can be shared, how to call it for the REST api. I am getting confused with the description for ruleset criteria field in that page (also listed below) as to how that is constructed.
Thanks, Leo
string criteria — dependent upon criteria_type.
Valid values:
hash geoip — A hash where each element contains a list of ISO-3166 two letter codes to represent the names of countries and their subdivisions, one of the predefined groups, or one of the legacy regions.
array region — A list of ISO-3166 two letter codes representing Regions. Regions contain a set of countries.
array country — A list of ISO-3166 two letter codes representing Countries
array province — A list of ISO-3166 two letter codes representing Provinces