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/D51E-844F-0C07-4E99-ADC8/sites/24ad4aa0-d07a-441e-a774-c026fad8ad74/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": "1781c057-ab5c-40a6-8cc6-66c152c5b450",
"Type": "StaticIP",
"Value": "95.182.23.82",
"DNSPolicyId": "04b8bfa8-8c8c-4174-9218-0fef0483456b"
},
{
"Id": "caf63a36-8bbd-418f-97c4-de8c4fa8da85",
"Type": "StaticIP",
"Value": "95.238.189.127",
"DNSPolicyId": "e3922d9f-5608-4a22-82c9-2973ee5d5dd5"
}
]
}
<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>04b8bfa8-8c8c-4174-9218-0fef0483456b</DNSPolicyId>
<Id>1781c057-ab5c-40a6-8cc6-66c152c5b450</Id>
<Type>StaticIP</Type>
<Value>95.182.23.82</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>e3922d9f-5608-4a22-82c9-2973ee5d5dd5</DNSPolicyId>
<Id>caf63a36-8bbd-418f-97c4-de8c4fa8da85</Id>
<Type>StaticIP</Type>
<Value>95.238.189.127</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>