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/ED60-9FC1-17F4-490E-BEE0/sites/f99933f9-bfd2-4b83-b79e-279cca78d754/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.129.228.110",
"DNSPolicyId": "26398ab1-89a7-4c12-aabd-eb5462a46cae"
}
<CreateDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>26398ab1-89a7-4c12-aabd-eb5462a46cae</DNSPolicyId> <Type>StaticIP</Type> <Value>95.129.228.110</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": "b4ab8d32-ca8e-499b-98c3-3e28fd444d9a",
"Type": "StaticIP",
"Value": "95.108.211.2",
"DNSPolicyId": "7ecd78d3-192d-49d0-a8ed-2fb616352e64"
}
<CreateDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>7ecd78d3-192d-49d0-a8ed-2fb616352e64</DNSPolicyId> <Id>b4ab8d32-ca8e-499b-98c3-3e28fd444d9a</Id> <Type>StaticIP</Type> <Value>95.108.211.2</Value> </CreateDNSPPolicyMappingResponseModel>