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/9E12-6D34-72F0-482A-B541/sites/e9736a5a-8dde-4b03-a051-bee0137025e7/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": "cf2693c0-e782-4ec4-b780-e240e635f545",
"Type": "StaticIP",
"Value": "95.38.215.147",
"DNSPolicyId": "f33b4c19-478a-4af3-8e54-09a1dfdbae6d"
},
{
"Id": "62be3c98-a886-4ad2-9eb5-e0d14243b9e6",
"Type": "StaticIP",
"Value": "95.17.19.235",
"DNSPolicyId": "e78a1273-b93e-4d44-8d8e-9be0dcd25201"
}
]
}
<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>f33b4c19-478a-4af3-8e54-09a1dfdbae6d</DNSPolicyId>
<Id>cf2693c0-e782-4ec4-b780-e240e635f545</Id>
<Type>StaticIP</Type>
<Value>95.38.215.147</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>e78a1273-b93e-4d44-8d8e-9be0dcd25201</DNSPolicyId>
<Id>62be3c98-a886-4ad2-9eb5-e0d14243b9e6</Id>
<Type>StaticIP</Type>
<Value>95.17.19.235</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>