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/BA06-AA1C-A229-44CA-8C2B/sites/700f270d-3af9-4ef3-91be-80478ebcf32e/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.138.133.115", "DNSPolicyId": "31d64f3a-29cb-4c15-b3d4-fd1c24982ef6" }
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>31d64f3a-29cb-4c15-b3d4-fd1c24982ef6</DNSPolicyId> <Type>StaticIP</Type> <Value>95.138.133.115</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": "2e653470-cc30-43be-90ae-6bb843bd55f2", "Type": "StaticIP", "Value": "95.207.134.138", "DNSPolicyId": "c6e1b346-6994-49c8-9cf5-1b2831f53879" }
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>c6e1b346-6994-49c8-9cf5-1b2831f53879</DNSPolicyId> <Id>2e653470-cc30-43be-90ae-6bb843bd55f2</Id> <Type>StaticIP</Type> <Value>95.207.134.138</Value> </CreateDNSPPolicyMappingResponseModel>