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/A1B2-A316-3E57-4EF9-A058/sites/30895e19-cb54-421c-b1bd-250377eab458/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": "af3c61e8-8b6a-45f0-afab-d5ee0383d263",
"Type": "StaticIP",
"Value": "95.42.19.75",
"DNSPolicyId": "99f7fef1-b374-443f-a8f8-2a42196c2210"
},
{
"Id": "d8e2edd1-f537-40e4-b3bd-2b43e79b858c",
"Type": "StaticIP",
"Value": "95.154.65.247",
"DNSPolicyId": "3cfca337-8b03-4746-843d-02d538eedae7"
}
]
}
<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>99f7fef1-b374-443f-a8f8-2a42196c2210</DNSPolicyId>
<Id>af3c61e8-8b6a-45f0-afab-d5ee0383d263</Id>
<Type>StaticIP</Type>
<Value>95.42.19.75</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>3cfca337-8b03-4746-843d-02d538eedae7</DNSPolicyId>
<Id>d8e2edd1-f537-40e4-b3bd-2b43e79b858c</Id>
<Type>StaticIP</Type>
<Value>95.154.65.247</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>