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/663E-E058-594B-4F04-8ABA/sites/2ca75c7b-f744-4dbe-989e-723392310e4b/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": "de31636d-8d1d-4a80-b77b-a616c6ebeb5b",
"Type": "StaticIP",
"Value": "95.200.199.111",
"DNSPolicyId": "9a996f27-4b34-483b-bdaa-87116e088d45"
},
{
"Id": "0080d4db-9774-4b8a-ba4d-4c5448db136d",
"Type": "StaticIP",
"Value": "95.93.87.191",
"DNSPolicyId": "82e4b21c-7345-49fc-a7af-780671ed6387"
}
]
}
<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>9a996f27-4b34-483b-bdaa-87116e088d45</DNSPolicyId>
<Id>de31636d-8d1d-4a80-b77b-a616c6ebeb5b</Id>
<Type>StaticIP</Type>
<Value>95.200.199.111</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>82e4b21c-7345-49fc-a7af-780671ed6387</DNSPolicyId>
<Id>0080d4db-9774-4b8a-ba4d-4c5448db136d</Id>
<Type>StaticIP</Type>
<Value>95.93.87.191</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>