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/ADA1-DDAC-C5C7-4331-A48A/sites/9fb08719-53f6-42c6-8381-2a97fda84abb/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": "b0a7fddd-d395-4f14-be6f-c1b975fe7023",
"Type": "StaticIP",
"Value": "95.206.91.15",
"DNSPolicyId": "16b865fc-9c47-4751-8ff0-a96247f3cf74"
},
{
"Id": "1790add3-a91d-4fb8-9d67-d4a367497fb7",
"Type": "StaticIP",
"Value": "95.0.56.213",
"DNSPolicyId": "8c1a2414-f1b3-4f91-905c-72f18f44f005"
}
]
}
<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>16b865fc-9c47-4751-8ff0-a96247f3cf74</DNSPolicyId>
<Id>b0a7fddd-d395-4f14-be6f-c1b975fe7023</Id>
<Type>StaticIP</Type>
<Value>95.206.91.15</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>8c1a2414-f1b3-4f91-905c-72f18f44f005</DNSPolicyId>
<Id>1790add3-a91d-4fb8-9d67-d4a367497fb7</Id>
<Type>StaticIP</Type>
<Value>95.0.56.213</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>