Skip to main content

policies_geoip_update

PUT 

/api/v3//policies/geoip/:policy_uuid/

GeoIP Viewset

Request

Responses

Authorization: http

name: authentiktype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "/api/v3/policies/geoip/:policy_uuid/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"name\": \"string\",\n \"execution_logging\": true,\n \"asns\": [\n 0\n ],\n \"countries\": [\n \"AF\"\n ]\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
/api/v3
Auth
Parameters
— pathrequired
Body required
{
  "name": "string",
  "execution_logging": true,
  "asns": [
    0
  ],
  "countries": [
    "AF"
  ]
}