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/0170-5CB7-52C3-41E6-BD76/sites/c5619dee-3fc3-478b-bbba-6258df433a52/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": "91d5af34-251b-42fb-9471-81950d5e6d20",
"Type": "StaticIP",
"Value": "95.234.132.87",
"DNSPolicyId": "3b79100d-de59-4fc6-9925-38ab90ad9cf1"
},
{
"Id": "8a3dbb5c-9dc9-4aa4-8329-d300f0b43e48",
"Type": "StaticIP",
"Value": "95.87.126.3",
"DNSPolicyId": "b4409f47-7d59-4841-a61c-14a6287c8e32"
}
]
}
<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>3b79100d-de59-4fc6-9925-38ab90ad9cf1</DNSPolicyId>
<Id>91d5af34-251b-42fb-9471-81950d5e6d20</Id>
<Type>StaticIP</Type>
<Value>95.234.132.87</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>b4409f47-7d59-4841-a61c-14a6287c8e32</DNSPolicyId>
<Id>8a3dbb5c-9dc9-4aa4-8329-d300f0b43e48</Id>
<Type>StaticIP</Type>
<Value>95.87.126.3</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>