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/1C2B-1C64-5511-4ABA-ABE9/sites/cf73d376-79d3-42d0-a416-c042c204d51d/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.29.115.19", "DNSPolicyId": "029686d5-6d66-40aa-b4ca-f9a5e9d855a1" }
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>029686d5-6d66-40aa-b4ca-f9a5e9d855a1</DNSPolicyId> <Type>StaticIP</Type> <Value>95.29.115.19</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": "151e3a7f-4e12-4e32-b70e-99784cad3cb3", "Type": "StaticIP", "Value": "95.25.229.85", "DNSPolicyId": "32a61cee-b0a6-4582-8a9e-17cf2279c226" }
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>32a61cee-b0a6-4582-8a9e-17cf2279c226</DNSPolicyId> <Id>151e3a7f-4e12-4e32-b70e-99784cad3cb3</Id> <Type>StaticIP</Type> <Value>95.25.229.85</Value> </CreateDNSPPolicyMappingResponseModel>