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/775C-E69E-C77A-4344-9A06/sites/0575b821-b88e-433a-81a0-c1accfc2bc5d/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": "a789284b-0fc9-4498-89ab-5ae95c8c60e7",
"Type": "StaticIP",
"Value": "95.26.235.62",
"DNSPolicyId": "a3c90c40-c9d9-4ebe-b72e-495b4fce5f4e"
},
{
"Id": "7e79f070-7453-413b-9773-ee24eee5a155",
"Type": "StaticIP",
"Value": "95.2.178.210",
"DNSPolicyId": "491e566a-a6f7-4ca0-806e-ba06731f8040"
}
]
}
<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>a3c90c40-c9d9-4ebe-b72e-495b4fce5f4e</DNSPolicyId>
<Id>a789284b-0fc9-4498-89ab-5ae95c8c60e7</Id>
<Type>StaticIP</Type>
<Value>95.26.235.62</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>491e566a-a6f7-4ca0-806e-ba06731f8040</DNSPolicyId>
<Id>7e79f070-7453-413b-9773-ee24eee5a155</Id>
<Type>StaticIP</Type>
<Value>95.2.178.210</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>