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

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.39.13.8",
  "DNSPolicyId": "0a3e5a5e-d323-4d76-a97c-5d9e3d2162cc"
}                    
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <DNSPolicyId>0a3e5a5e-d323-4d76-a97c-5d9e3d2162cc</DNSPolicyId>
  <Type>StaticIP</Type>
  <Value>95.39.13.8</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": "6ca30f49-6b75-4388-bee1-9b064495d9d3",
  "Type": "StaticIP",
  "Value": "95.75.201.177",
  "DNSPolicyId": "21416f9d-09a5-493e-930d-5aab2f991286"
}                    
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <DNSPolicyId>21416f9d-09a5-493e-930d-5aab2f991286</DNSPolicyId>
  <Id>6ca30f49-6b75-4388-bee1-9b064495d9d3</Id>
  <Type>StaticIP</Type>
  <Value>95.75.201.177</Value>
</CreateDNSPPolicyMappingResponseModel>