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/CBA6-C799-C09D-4AC4-BE95/sites/472fa6ef-f4bd-4e38-acdd-9fea037cce54/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": "b4fd42c2-c584-43be-bc21-b1bc470fec3f",
"Type": "StaticIP",
"Value": "95.218.82.68",
"DNSPolicyId": "e90b1556-b2a0-4879-bc69-7c3098d3148a"
},
{
"Id": "702e169d-c077-4522-9139-b56d3a2b10c4",
"Type": "StaticIP",
"Value": "95.171.22.113",
"DNSPolicyId": "4b85e86c-ce2d-464d-9eca-ceef09652c1f"
}
]
}
<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>e90b1556-b2a0-4879-bc69-7c3098d3148a</DNSPolicyId>
<Id>b4fd42c2-c584-43be-bc21-b1bc470fec3f</Id>
<Type>StaticIP</Type>
<Value>95.218.82.68</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>4b85e86c-ce2d-464d-9eca-ceef09652c1f</DNSPolicyId>
<Id>702e169d-c077-4522-9139-b56d3a2b10c4</Id>
<Type>StaticIP</Type>
<Value>95.171.22.113</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>