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

Creates a mapping for a DNS Protection policy for a GSM site.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
gsmKey

The GSM console keycode.

string

Required

siteId

The identifier of the site to create the mapping for.

string

Required

URI Sample(s)

POST
https://unityapi.webrootcloudav.com/service/api/console/gsm/4577-649D-F980-40F0-A2F2/sites/d17c7fc4-a0a6-414c-8c8e-18fae8dec086/dnsp/mappings

Body Parameters

Additional information for creating the policy mapping.

CreateDNSPPolicyMappingRequestModel
NameDescriptionTypeAdditional Information
Type

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

string

Required

Value

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

string

Required

DNSPolicyId

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

string

Required

Sample Request

{
  "Type": "StaticIP",
  "Value": "95.187.50.21",
  "DNSPolicyId": "2778b1b5-a7d5-4949-8030-acaa6991a787"
}                    
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <DNSPolicyId>2778b1b5-a7d5-4949-8030-acaa6991a787</DNSPolicyId>
  <Type>StaticIP</Type>
  <Value>95.187.50.21</Value>
</CreateDNSPPolicyMappingRequestModel>                    

Response Information

Resource Description

Information about the created policy mapping.

CreateDNSPPolicyMappingResponseModel
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": "b63faa07-10cb-47f4-bf45-332ed38b8de1",
  "Type": "StaticIP",
  "Value": "95.136.64.174",
  "DNSPolicyId": "0ed22e54-f778-442e-b530-7c82431f7a97"
}                    
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <DNSPolicyId>0ed22e54-f778-442e-b530-7c82431f7a97</DNSPolicyId>
  <Id>b63faa07-10cb-47f4-bf45-332ed38b8de1</Id>
  <Type>StaticIP</Type>
  <Value>95.136.64.174</Value>
</CreateDNSPPolicyMappingResponseModel>