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/E19E-9EF7-0FCC-4869-B61D/sites/04cfb161-59c0-492e-a67d-24ac9a1cf9e5/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": "652e66c6-285d-4ac5-a328-877030da76a3",
"Type": "StaticIP",
"Value": "95.101.188.28",
"DNSPolicyId": "41096bd6-1afe-40f5-9bae-57e3cba86025"
},
{
"Id": "75599d74-bdde-44d1-8f5f-6f12d3aaf81e",
"Type": "StaticIP",
"Value": "95.142.242.6",
"DNSPolicyId": "63340ce1-40d4-4f4f-b30e-ee8c85ddcd71"
}
]
}
<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>41096bd6-1afe-40f5-9bae-57e3cba86025</DNSPolicyId>
<Id>652e66c6-285d-4ac5-a328-877030da76a3</Id>
<Type>StaticIP</Type>
<Value>95.101.188.28</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>63340ce1-40d4-4f4f-b30e-ee8c85ddcd71</DNSPolicyId>
<Id>75599d74-bdde-44d1-8f5f-6f12d3aaf81e</Id>
<Type>StaticIP</Type>
<Value>95.142.242.6</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>