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/9296-BCE6-6BC4-4DA0-AFAC/sites/6de8e5f1-b059-478b-b66b-d640141d5b4a/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": "dca77099-26ee-485f-afe3-1c042a010d03",
"Type": "StaticIP",
"Value": "95.17.2.176",
"DNSPolicyId": "3f3cb235-e254-4b3d-88a4-b3291827748d"
},
{
"Id": "e02726b5-9b52-4daf-828a-0ff4a1998036",
"Type": "StaticIP",
"Value": "95.225.55.146",
"DNSPolicyId": "0ffb57cd-5269-4ea0-a13f-db9193f5532d"
}
]
}
<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>3f3cb235-e254-4b3d-88a4-b3291827748d</DNSPolicyId>
<Id>dca77099-26ee-485f-afe3-1c042a010d03</Id>
<Type>StaticIP</Type>
<Value>95.17.2.176</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>0ffb57cd-5269-4ea0-a13f-db9193f5532d</DNSPolicyId>
<Id>e02726b5-9b52-4daf-828a-0ff4a1998036</Id>
<Type>StaticIP</Type>
<Value>95.225.55.146</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>