PUT /service/api/console/gsm/{gsmKey}/sites/{siteId}/dnsp/mappings/{mappingId}

Edits a specified mapping of a DNS Protection policy.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
gsmKey

The GSM console keycode.

string

Required

siteId

The identifier of the site for which the mapping should be modified.

string

Required

mappingId

The identifier of the mapping.

string

Required

URI Sample(s)

PUT
https://unityapi.webrootcloudav.com/service/api/console/gsm/0FDF-D662-B622-47BB-9010/sites/2d728986-6838-46ea-9546-f4247cf51592/dnsp/mappings/fac6d721-da98-4545-b901-770803b7cb05

Body Parameters

Additional information for editing the policy mapping.

Either DNSPolicyId, Type and Value, or all properties need to be specified.

EditDNSPPolicyMappingRequestModel
NameDescriptionTypeAdditional Information
Type

The type of the mapping. The supported type is "StaticIP", which associates an IP address with a DNS Protection policy.

string

If specified, Value needs to be specified too.

Value

The value of the mapping. For mappings of type "StaticIP" the value must be an IP address.

string

If specified, Type needs to be specified too.

DNSPolicyId

The DNS Protection policy id to be set for the mapping.

string

None.

Sample Request

{
  "Type": "StaticIP",
  "Value": "10.158.64.250",
  "DNSPolicyId": "24421f90-97c8-471a-b967-181047dd8e02"
}                    
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <DNSPolicyId>24421f90-97c8-471a-b967-181047dd8e02</DNSPolicyId>
  <Type>StaticIP</Type>
  <Value>10.158.64.250</Value>
</EditDNSPPolicyMappingRequestModel>                    

Response Information

Resource Description

Information about the edited policy mapping.

EditDNSPPolicyMappingResponseModel
NameDescriptionTypeAdditional Information
Id

The mapping id.

string

None.

Type

The type of the mapping.

string

None.

Value

The value of the mapping. For mappings of type "StaticIP" the value is an IP address.

string

None.

DNSPolicyId

The DNS Protection policy id assigned to the mapping.

string

None.

Sample Response

{
  "Id": "8affc447-0506-4512-a024-b6be86077d71",
  "Type": "StaticIP",
  "Value": "95.53.72.133",
  "DNSPolicyId": "f774a1cb-3a98-4664-a3ee-093a660ba8b8"
}                    
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <DNSPolicyId>f774a1cb-3a98-4664-a3ee-093a660ba8b8</DNSPolicyId>
  <Id>8affc447-0506-4512-a024-b6be86077d71</Id>
  <Type>StaticIP</Type>
  <Value>95.53.72.133</Value>
</EditDNSPPolicyMappingResponseModel>