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/6735-D88E-6EB7-4107-BC39/sites/473e972d-c39e-4189-93dc-43a680577b2e/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": "642dd6e9-4def-49ba-bd6d-e076f83a672b",
"Type": "StaticIP",
"Value": "95.71.72.28",
"DNSPolicyId": "c91d4d97-f925-4c7e-a816-12ced0f107ab"
},
{
"Id": "9ad52b10-fab4-4058-8350-af47d17f4813",
"Type": "StaticIP",
"Value": "95.124.242.28",
"DNSPolicyId": "ddd4f329-230c-4f7a-9461-4e31a6826f7f"
}
]
}
<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>c91d4d97-f925-4c7e-a816-12ced0f107ab</DNSPolicyId>
<Id>642dd6e9-4def-49ba-bd6d-e076f83a672b</Id>
<Type>StaticIP</Type>
<Value>95.71.72.28</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>ddd4f329-230c-4f7a-9461-4e31a6826f7f</DNSPolicyId>
<Id>9ad52b10-fab4-4058-8350-af47d17f4813</Id>
<Type>StaticIP</Type>
<Value>95.124.242.28</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>