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/BA3F-7709-0F81-412C-9187/sites/44e80016-32d6-4566-948e-07c2ac6bd268/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": "5e6624f6-a306-4ee1-a439-f0c54fce87a5",
"Type": "StaticIP",
"Value": "95.185.160.3",
"DNSPolicyId": "67bebac7-048b-43e6-aff3-3e773d785b9b"
},
{
"Id": "9afed3d3-0055-4b56-9c4d-3d10a13db96d",
"Type": "StaticIP",
"Value": "95.176.203.85",
"DNSPolicyId": "65caf922-be4d-44e4-b041-398cc2328382"
}
]
}
<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>67bebac7-048b-43e6-aff3-3e773d785b9b</DNSPolicyId>
<Id>5e6624f6-a306-4ee1-a439-f0c54fce87a5</Id>
<Type>StaticIP</Type>
<Value>95.185.160.3</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>65caf922-be4d-44e4-b041-398cc2328382</DNSPolicyId>
<Id>9afed3d3-0055-4b56-9c4d-3d10a13db96d</Id>
<Type>StaticIP</Type>
<Value>95.176.203.85</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>