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/7D4E-09B8-DAA3-4377-843B/sites/b75ae131-3a3c-4a47-bbb3-5b60fbe3483e/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": "03b1aa29-8e0c-4e72-aba7-db431649e494",
"Type": "StaticIP",
"Value": "95.28.165.112",
"DNSPolicyId": "62de9269-1017-47af-ba4f-9c6cec6e3de5"
},
{
"Id": "ba50b23c-5ac0-4f10-9802-bc8bd73e55d9",
"Type": "StaticIP",
"Value": "95.89.212.141",
"DNSPolicyId": "ec7dc369-b25f-4e05-9610-f95c5a73a3d4"
}
]
}
<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>62de9269-1017-47af-ba4f-9c6cec6e3de5</DNSPolicyId>
<Id>03b1aa29-8e0c-4e72-aba7-db431649e494</Id>
<Type>StaticIP</Type>
<Value>95.28.165.112</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>ec7dc369-b25f-4e05-9610-f95c5a73a3d4</DNSPolicyId>
<Id>ba50b23c-5ac0-4f10-9802-bc8bd73e55d9</Id>
<Type>StaticIP</Type>
<Value>95.89.212.141</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>