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/6752-90E0-5397-45A5-8663/sites/89fb27ba-229c-4478-b64c-5940ac0f9a14/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": "76aee747-2354-4378-ae2e-d7a74cc85080",
"Type": "StaticIP",
"Value": "95.228.199.228",
"DNSPolicyId": "a58cc0c4-e056-4134-b1a9-38e058b6fe09"
},
{
"Id": "7a542b20-b369-4c42-bdd9-ccc8e0e33452",
"Type": "StaticIP",
"Value": "95.212.136.109",
"DNSPolicyId": "730c41df-a665-47a8-b448-199f7ee13245"
}
]
}
<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>a58cc0c4-e056-4134-b1a9-38e058b6fe09</DNSPolicyId>
<Id>76aee747-2354-4378-ae2e-d7a74cc85080</Id>
<Type>StaticIP</Type>
<Value>95.228.199.228</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>730c41df-a665-47a8-b448-199f7ee13245</DNSPolicyId>
<Id>7a542b20-b369-4c42-bdd9-ccc8e0e33452</Id>
<Type>StaticIP</Type>
<Value>95.212.136.109</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>