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/744F-1D46-AB34-45E0-A57F/sites/8071aeca-3323-443b-9d16-ac881a3d9e90/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": "be1f7b5c-8ff3-44e4-ac84-a995990270c8",
"Type": "StaticIP",
"Value": "95.77.215.245",
"DNSPolicyId": "cdcdccff-8acf-4f52-bef6-c741b237382c"
},
{
"Id": "bdaf1f7d-fcd4-4eae-bb55-0dcbc5904f63",
"Type": "StaticIP",
"Value": "95.35.127.83",
"DNSPolicyId": "f80c8959-3d67-4e80-9946-ed0aba1aade9"
}
]
}
<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>cdcdccff-8acf-4f52-bef6-c741b237382c</DNSPolicyId>
<Id>be1f7b5c-8ff3-44e4-ac84-a995990270c8</Id>
<Type>StaticIP</Type>
<Value>95.77.215.245</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>f80c8959-3d67-4e80-9946-ed0aba1aade9</DNSPolicyId>
<Id>bdaf1f7d-fcd4-4eae-bb55-0dcbc5904f63</Id>
<Type>StaticIP</Type>
<Value>95.35.127.83</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>