Retrieves all targeting rules groups currently assigned to the specified zone.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/rules/zone/{zoneId}/get.do
Retrieves all targeting rules groups currently assigned to the specified zone. The response JSON contains 'success: true', a 'ruleGroups' array with each group's ID, rules, operator, and include/exclude flag, and 'rulesEnabled'. The groups are listed whether or not rules are switched on for the zone; they take effect only while rulesEnabled is true.
Path Params
zoneIdintegerrequired
The unique numeric identifier of the zone whose rules groups should be retrieved
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/rules/zone/6001/get.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());