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/79E0-7D3C-79A7-43F3-8E3D/sites/fbde2b1f-599d-4aa3-a4f2-cf8cf859a880/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": "f2eaaa7b-ca5d-423c-8583-7839ea3dbb38",
"Type": "StaticIP",
"Value": "95.17.198.81",
"DNSPolicyId": "52be7c50-055a-4ffe-a58f-1a8ffad341ef"
},
{
"Id": "09167b04-f304-4b50-8a73-7b731670c3b0",
"Type": "StaticIP",
"Value": "95.50.44.211",
"DNSPolicyId": "ee40a904-e888-41ce-80f1-9c845576e228"
}
]
}
<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>52be7c50-055a-4ffe-a58f-1a8ffad341ef</DNSPolicyId>
<Id>f2eaaa7b-ca5d-423c-8583-7839ea3dbb38</Id>
<Type>StaticIP</Type>
<Value>95.17.198.81</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>ee40a904-e888-41ce-80f1-9c845576e228</DNSPolicyId>
<Id>09167b04-f304-4b50-8a73-7b731670c3b0</Id>
<Type>StaticIP</Type>
<Value>95.50.44.211</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>