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/5C62-D9E9-DB24-4503-897F/sites/9175cc99-5de3-4b71-a752-55d23170dcd0/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": "2605165b-514f-41f4-871d-c0cb4a05f369",
"Type": "StaticIP",
"Value": "95.39.154.125",
"DNSPolicyId": "8f48202b-9329-468e-ad51-45b00077b8c5"
},
{
"Id": "7534d2f7-dfe0-40b9-b5ce-6ccddb57b1c2",
"Type": "StaticIP",
"Value": "95.133.129.161",
"DNSPolicyId": "7b6d1566-292c-4693-aa51-b943bc9b83c6"
}
]
}
<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>8f48202b-9329-468e-ad51-45b00077b8c5</DNSPolicyId>
<Id>2605165b-514f-41f4-871d-c0cb4a05f369</Id>
<Type>StaticIP</Type>
<Value>95.39.154.125</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>7b6d1566-292c-4693-aa51-b943bc9b83c6</DNSPolicyId>
<Id>7534d2f7-dfe0-40b9-b5ce-6ccddb57b1c2</Id>
<Type>StaticIP</Type>
<Value>95.133.129.161</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>