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/8547-F0D8-307E-4C76-A4EF/sites/055799ed-3043-40df-ad0a-2a9c21257958/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": "6c4da2f8-ce4b-4977-b3c8-56ba190137e4",
"Type": "StaticIP",
"Value": "95.251.73.196",
"DNSPolicyId": "7f143910-6195-409d-99dd-682563b22e90"
},
{
"Id": "4c52e3f8-6fcd-4732-8f9e-41b2a40f5a5d",
"Type": "StaticIP",
"Value": "95.249.220.59",
"DNSPolicyId": "e7c8dff2-ea3b-4897-b59a-ed32a6475f5a"
}
]
}
<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>7f143910-6195-409d-99dd-682563b22e90</DNSPolicyId>
<Id>6c4da2f8-ce4b-4977-b3c8-56ba190137e4</Id>
<Type>StaticIP</Type>
<Value>95.251.73.196</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>e7c8dff2-ea3b-4897-b59a-ed32a6475f5a</DNSPolicyId>
<Id>4c52e3f8-6fcd-4732-8f9e-41b2a40f5a5d</Id>
<Type>StaticIP</Type>
<Value>95.249.220.59</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>