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/8CB4-4DA5-E893-40C4-B888/sites/cec75904-c75d-4823-ab3a-3e07a494d80d/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.114.111.131", "DNSPolicyId": "264db11e-6fbf-44a7-9b73-876bc79ee06c" }
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>264db11e-6fbf-44a7-9b73-876bc79ee06c</DNSPolicyId> <Type>StaticIP</Type> <Value>95.114.111.131</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": "830ef046-218b-47d8-bb33-4dac906d4c1b", "Type": "StaticIP", "Value": "95.155.38.216", "DNSPolicyId": "35870d5d-85a5-4217-a029-d4f8faaaa6ef" }
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>35870d5d-85a5-4217-a029-d4f8faaaa6ef</DNSPolicyId> <Id>830ef046-218b-47d8-bb33-4dac906d4c1b</Id> <Type>StaticIP</Type> <Value>95.155.38.216</Value> </CreateDNSPPolicyMappingResponseModel>