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/F504-1A02-E897-4C05-B134/sites/d2f51ac2-01cb-47c6-a458-0d77c8f568bb/dnsp/mappings
|
Body Parameters
Additional information for creating the policy mapping.
CreateDNSPPolicyMappingRequestModel| Name | 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.160.253.9",
"DNSPolicyId": "c1fc7fa9-301b-42cf-8af0-04990c4bc989"
}
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>c1fc7fa9-301b-42cf-8af0-04990c4bc989</DNSPolicyId> <Type>StaticIP</Type> <Value>95.160.253.9</Value> </CreateDNSPPolicyMappingRequestModel>
Response Information
Resource Description
Information about the created policy mapping.
CreateDNSPPolicyMappingResponseModel| Name | 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": "b171ed25-d743-4356-a8a3-7e690313cce9",
"Type": "StaticIP",
"Value": "95.48.208.5",
"DNSPolicyId": "344c956f-d792-441a-b823-9b353c589d45"
}
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>344c956f-d792-441a-b823-9b353c589d45</DNSPolicyId> <Id>b171ed25-d743-4356-a8a3-7e690313cce9</Id> <Type>StaticIP</Type> <Value>95.48.208.5</Value> </CreateDNSPPolicyMappingResponseModel>