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/A28F-B23B-C7E4-4907-B8AA/sites/9fd3de64-6564-4bf6-86ef-237e8fd3a315/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.118.241.109",
"DNSPolicyId": "9c4b14e6-abe8-490b-a6a2-4386c3b51f9f"
}
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>9c4b14e6-abe8-490b-a6a2-4386c3b51f9f</DNSPolicyId> <Type>StaticIP</Type> <Value>95.118.241.109</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": "49e6795c-8817-4450-96b5-6b35331b9f1d",
"Type": "StaticIP",
"Value": "95.171.11.96",
"DNSPolicyId": "ccb8ebe5-4bf2-4fc9-bf59-03f771c1713d"
}
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>ccb8ebe5-4bf2-4fc9-bf59-03f771c1713d</DNSPolicyId> <Id>49e6795c-8817-4450-96b5-6b35331b9f1d</Id> <Type>StaticIP</Type> <Value>95.171.11.96</Value> </CreateDNSPPolicyMappingResponseModel>