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/BE17-66AA-C61C-4FC2-91F0/sites/5b19698c-b662-4bd1-8884-e0d1fbe5f3a8/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": "394078ae-ee18-4b69-a2aa-a0be822cf0db",
"Type": "StaticIP",
"Value": "95.26.92.76",
"DNSPolicyId": "8e633509-f2f0-4f41-9f17-8f330872c902"
},
{
"Id": "f3d99a66-b0d8-4450-9764-9f0e2dd0f2f1",
"Type": "StaticIP",
"Value": "95.84.209.113",
"DNSPolicyId": "5a3a6c85-d762-49a5-a8ed-0a510b9d3816"
}
]
}
<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>8e633509-f2f0-4f41-9f17-8f330872c902</DNSPolicyId>
<Id>394078ae-ee18-4b69-a2aa-a0be822cf0db</Id>
<Type>StaticIP</Type>
<Value>95.26.92.76</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>5a3a6c85-d762-49a5-a8ed-0a510b9d3816</DNSPolicyId>
<Id>f3d99a66-b0d8-4450-9764-9f0e2dd0f2f1</Id>
<Type>StaticIP</Type>
<Value>95.84.209.113</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>