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/3A66-C593-EF94-41E0-9AF0/sites/c750e355-fb41-475a-a36d-9361f309fb19/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": "e29e61b7-bbf2-4a2e-89f7-3e121c63b63a",
"Type": "StaticIP",
"Value": "95.174.133.30",
"DNSPolicyId": "1ba589f9-1218-4358-a162-0456e37bad6f"
},
{
"Id": "79974a93-2921-4acd-8168-e4eb3c7e6e8c",
"Type": "StaticIP",
"Value": "95.162.42.197",
"DNSPolicyId": "b087b717-c33c-4ef7-9c3d-4af70a72410a"
}
]
}
<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>1ba589f9-1218-4358-a162-0456e37bad6f</DNSPolicyId>
<Id>e29e61b7-bbf2-4a2e-89f7-3e121c63b63a</Id>
<Type>StaticIP</Type>
<Value>95.174.133.30</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>b087b717-c33c-4ef7-9c3d-4af70a72410a</DNSPolicyId>
<Id>79974a93-2921-4acd-8168-e4eb3c7e6e8c</Id>
<Type>StaticIP</Type>
<Value>95.162.42.197</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>