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/A956-C9A7-E0AA-4206-9238/sites/cba3a182-718f-4f63-bb01-f2692046ba30/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": "2d5a9c34-e20d-4517-9ee9-ff41b74c07dc",
"Type": "StaticIP",
"Value": "95.174.233.69",
"DNSPolicyId": "0c52b9d4-4af4-4b8e-a75e-b0b7b55b5e04"
},
{
"Id": "8610b5fd-03c7-436d-8ca5-60625a62eabb",
"Type": "StaticIP",
"Value": "95.101.62.225",
"DNSPolicyId": "9db6ff28-7615-4b4e-8870-78ba5d92d76c"
}
]
}
<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>0c52b9d4-4af4-4b8e-a75e-b0b7b55b5e04</DNSPolicyId>
<Id>2d5a9c34-e20d-4517-9ee9-ff41b74c07dc</Id>
<Type>StaticIP</Type>
<Value>95.174.233.69</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>9db6ff28-7615-4b4e-8870-78ba5d92d76c</DNSPolicyId>
<Id>8610b5fd-03c7-436d-8ca5-60625a62eabb</Id>
<Type>StaticIP</Type>
<Value>95.101.62.225</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>