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/D601-CD44-C0EB-424C-8A40/sites/f54d25b8-b7ab-415e-8da0-ce754304320c/dnsp/mappings
|
Body Parameters
None.
Response Information
Resource Description
Information about DNS Protection policy mappings.
GetDNSPPolicyMappingsResponseModelName | 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": "c11f63bd-e5d2-4c43-85ea-fa1335401bb4", "Type": "StaticIP", "Value": "95.102.108.91", "DNSPolicyId": "e0b9df1d-8f38-4de0-bc3e-eb14ab92daf1" }, { "Id": "4186bdad-dc2d-41d6-89e8-63b3248f3b68", "Type": "StaticIP", "Value": "95.167.151.148", "DNSPolicyId": "7c8ed112-3e1e-4db7-afa8-771b422c199e" } ] }
<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>e0b9df1d-8f38-4de0-bc3e-eb14ab92daf1</DNSPolicyId> <Id>c11f63bd-e5d2-4c43-85ea-fa1335401bb4</Id> <Type>StaticIP</Type> <Value>95.102.108.91</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> <GetDNSPPolicyMappingsResponseModel_Mapping> <DNSPolicyId>7c8ed112-3e1e-4db7-afa8-771b422c199e</DNSPolicyId> <Id>4186bdad-dc2d-41d6-89e8-63b3248f3b68</Id> <Type>StaticIP</Type> <Value>95.167.151.148</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> </PolicyMappings> <TotalCount>2</TotalCount> </GetDNSPPolicyMappingsResponseModel>