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/817C-18CD-36E4-4D85-B75B/sites/60b69dd2-4e00-42a2-9a82-e564ae0fe846/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.63.101.3",
"DNSPolicyId": "0de284d3-3231-429d-a29b-fd60aaf5ec13"
}
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>0de284d3-3231-429d-a29b-fd60aaf5ec13</DNSPolicyId> <Type>StaticIP</Type> <Value>95.63.101.3</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": "ade073d9-f298-438c-9c95-150855a714a6",
"Type": "StaticIP",
"Value": "95.238.25.15",
"DNSPolicyId": "f9624cd1-59d6-40e9-8f20-3b671a742514"
}
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>f9624cd1-59d6-40e9-8f20-3b671a742514</DNSPolicyId> <Id>ade073d9-f298-438c-9c95-150855a714a6</Id> <Type>StaticIP</Type> <Value>95.238.25.15</Value> </CreateDNSPPolicyMappingResponseModel>