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/8411-B90D-C6F3-4260-BDDF/sites/858f34c1-8e9b-4017-b216-4f92019733d9/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": "3f185ab8-81c5-4ab9-92f2-fedf03533047",
"Type": "StaticIP",
"Value": "95.187.29.23",
"DNSPolicyId": "766ed0e4-af4e-443f-9cee-aa120e7acca9"
},
{
"Id": "18c91c0b-3e44-431c-b1b1-d8782f10a51b",
"Type": "StaticIP",
"Value": "95.124.71.69",
"DNSPolicyId": "c1267341-7e4d-4777-910c-0255662af61c"
}
]
}
<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>766ed0e4-af4e-443f-9cee-aa120e7acca9</DNSPolicyId>
<Id>3f185ab8-81c5-4ab9-92f2-fedf03533047</Id>
<Type>StaticIP</Type>
<Value>95.187.29.23</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>c1267341-7e4d-4777-910c-0255662af61c</DNSPolicyId>
<Id>18c91c0b-3e44-431c-b1b1-d8782f10a51b</Id>
<Type>StaticIP</Type>
<Value>95.124.71.69</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>