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/C1F8-D4BB-2439-4D1F-8FAD/sites/ad84546f-28fe-432e-835d-136200795a77/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.74.201.25",
"DNSPolicyId": "e1d3867f-aeb8-4619-92f5-6c605d825909"
}
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>e1d3867f-aeb8-4619-92f5-6c605d825909</DNSPolicyId> <Type>StaticIP</Type> <Value>95.74.201.25</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": "ddf2a242-9ba7-4d53-9ed9-1252bb74fc1f",
"Type": "StaticIP",
"Value": "95.205.194.149",
"DNSPolicyId": "e4648fce-fba5-4f98-81c5-c0f00c4383d9"
}
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>e4648fce-fba5-4f98-81c5-c0f00c4383d9</DNSPolicyId> <Id>ddf2a242-9ba7-4d53-9ed9-1252bb74fc1f</Id> <Type>StaticIP</Type> <Value>95.205.194.149</Value> </CreateDNSPPolicyMappingResponseModel>