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/96CE-4CE2-01A5-45D8-AD29/sites/93c692bd-a238-4ce0-84b1-b0357bb996f2/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": "696c3ef6-fa5c-4e2f-aa3d-d92a047aa48a",
"Type": "StaticIP",
"Value": "95.32.113.137",
"DNSPolicyId": "fee533fb-5a49-4a0d-8d7c-c4b025c42757"
},
{
"Id": "693f2058-5cee-4088-97a7-7b4aca03c164",
"Type": "StaticIP",
"Value": "95.8.30.70",
"DNSPolicyId": "c251d958-8b72-40a9-9cf4-e75261b78e38"
}
]
}
<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>fee533fb-5a49-4a0d-8d7c-c4b025c42757</DNSPolicyId>
<Id>696c3ef6-fa5c-4e2f-aa3d-d92a047aa48a</Id>
<Type>StaticIP</Type>
<Value>95.32.113.137</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>c251d958-8b72-40a9-9cf4-e75261b78e38</DNSPolicyId>
<Id>693f2058-5cee-4088-97a7-7b4aca03c164</Id>
<Type>StaticIP</Type>
<Value>95.8.30.70</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>