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/4375-11DD-B535-4EAC-BB69/sites/628ad996-760f-4748-a2e0-a29c9823f1cc/dnsp/mappings/f3ecc051-2458-4387-b26c-539359814d24

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.142.219.67",
  "DNSPolicyId": "23b22abe-d526-425d-8bb5-f79ec1a20627"
}                    
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <DNSPolicyId>23b22abe-d526-425d-8bb5-f79ec1a20627</DNSPolicyId>
  <Type>StaticIP</Type>
  <Value>10.142.219.67</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": "f6538e7f-4f0d-462b-aae3-e346ce1d5400",
  "Type": "StaticIP",
  "Value": "95.204.117.174",
  "DNSPolicyId": "6635eec9-b467-4c70-a230-4c6c7aa42e2a"
}                    
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <DNSPolicyId>6635eec9-b467-4c70-a230-4c6c7aa42e2a</DNSPolicyId>
  <Id>f6538e7f-4f0d-462b-aae3-e346ce1d5400</Id>
  <Type>StaticIP</Type>
  <Value>95.204.117.174</Value>
</EditDNSPPolicyMappingResponseModel>