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/7E8C-A25D-3423-4FB1-B126/sites/27fd746f-7461-43ad-8823-9f55fba2f6c1/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": "6e52e035-1029-4533-afe4-dca863a46df7",
"Type": "StaticIP",
"Value": "95.216.217.136",
"DNSPolicyId": "a2601e07-ede4-4f51-96b0-d124c19b4baf"
},
{
"Id": "b2e1cbdb-4125-47ca-824a-3b5b7bb6db6e",
"Type": "StaticIP",
"Value": "95.0.8.137",
"DNSPolicyId": "72cb043e-616e-4d5d-8ac3-d4f8e8293e52"
}
]
}
<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>a2601e07-ede4-4f51-96b0-d124c19b4baf</DNSPolicyId>
<Id>6e52e035-1029-4533-afe4-dca863a46df7</Id>
<Type>StaticIP</Type>
<Value>95.216.217.136</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>72cb043e-616e-4d5d-8ac3-d4f8e8293e52</DNSPolicyId>
<Id>b2e1cbdb-4125-47ca-824a-3b5b7bb6db6e</Id>
<Type>StaticIP</Type>
<Value>95.0.8.137</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>