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/1587-A17F-265B-4CF3-AEC4/sites/9f14722f-a8a3-4e32-a046-927a8a8e0312/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": "75a42fdd-4833-4f16-8cb7-c1384722f645",
"Type": "StaticIP",
"Value": "95.240.28.101",
"DNSPolicyId": "3a43c5a3-0ed4-4842-9cab-7385165e12fe"
},
{
"Id": "22039c6d-e442-4f4e-9c7b-cb75fea48f04",
"Type": "StaticIP",
"Value": "95.165.175.122",
"DNSPolicyId": "5cfd16fc-4f9f-4fa3-9187-346eedecc6aa"
}
]
}
<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>3a43c5a3-0ed4-4842-9cab-7385165e12fe</DNSPolicyId>
<Id>75a42fdd-4833-4f16-8cb7-c1384722f645</Id>
<Type>StaticIP</Type>
<Value>95.240.28.101</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>5cfd16fc-4f9f-4fa3-9187-346eedecc6aa</DNSPolicyId>
<Id>22039c6d-e442-4f4e-9c7b-cb75fea48f04</Id>
<Type>StaticIP</Type>
<Value>95.165.175.122</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>