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
Name | Description | Type | Additional 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/F665-F46B-7A68-4F07-A8D9/sites/5b73f925-4b07-40b1-b606-03465b322c96/dnsp/mappings
|
Body Parameters
Additional information for creating the policy mapping.
CreateDNSPPolicyMappingRequestModelName | Description | Type | Additional 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.23.110.20", "DNSPolicyId": "546e11a6-0569-42a1-912d-f8df66a15bec" }
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>546e11a6-0569-42a1-912d-f8df66a15bec</DNSPolicyId> <Type>StaticIP</Type> <Value>95.23.110.20</Value> </CreateDNSPPolicyMappingRequestModel>
Response Information
Resource Description
Information about the created policy mapping.
CreateDNSPPolicyMappingResponseModelName | Description | Type | Additional 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": "e16c3eb0-27c8-4a4e-b2fc-236ad12cf5d9", "Type": "StaticIP", "Value": "95.236.192.137", "DNSPolicyId": "49cf2215-21c9-4d28-9031-708804934339" }
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>49cf2215-21c9-4d28-9031-708804934339</DNSPolicyId> <Id>e16c3eb0-27c8-4a4e-b2fc-236ad12cf5d9</Id> <Type>StaticIP</Type> <Value>95.236.192.137</Value> </CreateDNSPPolicyMappingResponseModel>