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/E07B-C0F1-D842-4945-802A/sites/8ac77d2a-21f2-4d18-b0da-35f45bdfbc8d/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": "83c06f0d-f109-4f7e-a8f5-c333268107e7",
"Type": "StaticIP",
"Value": "95.39.88.218",
"DNSPolicyId": "0a6ce7af-89f4-422b-be1b-b5793a35e288"
},
{
"Id": "b936945d-fe8a-49f1-8ac4-bf1288f7a677",
"Type": "StaticIP",
"Value": "95.247.134.125",
"DNSPolicyId": "e4c971ce-6aea-49bb-9a7c-82cfb5d222e5"
}
]
}
<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>0a6ce7af-89f4-422b-be1b-b5793a35e288</DNSPolicyId>
<Id>83c06f0d-f109-4f7e-a8f5-c333268107e7</Id>
<Type>StaticIP</Type>
<Value>95.39.88.218</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>e4c971ce-6aea-49bb-9a7c-82cfb5d222e5</DNSPolicyId>
<Id>b936945d-fe8a-49f1-8ac4-bf1288f7a677</Id>
<Type>StaticIP</Type>
<Value>95.247.134.125</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>