GET /service/api/console/gsm/{gsmKey}/sites/{siteId}/dnsp/mappings
Returns the defined mappings of DNS Protection Policies for a GSM parent keycode, filtered by the given site.
Request Information
URI Parameters
| Name | Description | Type | Additional Information |
|---|---|---|---|
| gsmKey |
The GSM console keycode. |
string |
Required |
| siteId |
The identifier of the site to query information for. |
string |
Required |
URI Sample(s)
|
GET
|
https://unityapi.webrootcloudav.com/service/api/console/gsm/892A-F2FA-375D-41A5-8BC1/sites/8de51493-97e4-4992-bc5e-2fb434735e12/dnsp/mappings
|
Body Parameters
None.
Response Information
Resource Description
Information about DNS Protection policy mappings.
GetDNSPPolicyMappingsResponseModel| Name | Description | Type | Additional Information |
|---|---|---|---|
| TotalCount |
Total number of policy mappings available. |
integer |
None. |
| PolicyMappings |
The list of mappings. |
Collection of GetDNSPPolicyMappingsResponseModel_Mapping |
None. |
Sample Response
{
"TotalCount": 2,
"PolicyMappings": [
{
"Id": "c8fc7547-b6da-4373-bc72-7ad286dde401",
"Type": "StaticIP",
"Value": "95.120.188.59",
"DNSPolicyId": "8d93f3ac-1650-4277-ae5a-37db4775100f"
},
{
"Id": "3e2d88e9-0fa7-4e7f-8120-0f3367bda8a4",
"Type": "StaticIP",
"Value": "95.207.185.83",
"DNSPolicyId": "3df6ccd8-a8b9-4781-8a21-9d0bcd702b20"
}
]
}
<GetDNSPPolicyMappingsResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
<PolicyMappings>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>8d93f3ac-1650-4277-ae5a-37db4775100f</DNSPolicyId>
<Id>c8fc7547-b6da-4373-bc72-7ad286dde401</Id>
<Type>StaticIP</Type>
<Value>95.120.188.59</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>3df6ccd8-a8b9-4781-8a21-9d0bcd702b20</DNSPolicyId>
<Id>3e2d88e9-0fa7-4e7f-8120-0f3367bda8a4</Id>
<Type>StaticIP</Type>
<Value>95.207.185.83</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>