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/EFF8-D38E-E388-4DED-B2E3/sites/3aba813f-05bc-4c06-82be-35db09460f32/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": "beffe1f7-f585-48a5-b4a5-339f08dd9c8d",
"Type": "StaticIP",
"Value": "95.99.47.59",
"DNSPolicyId": "2cb76e2a-fa8e-479c-b16a-b02188f35914"
},
{
"Id": "302e8270-c5e5-4115-a8cd-415e5e174fc7",
"Type": "StaticIP",
"Value": "95.169.201.178",
"DNSPolicyId": "6bb4dc2d-da98-4e56-90a5-6a4998cc6b42"
}
]
}
<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>2cb76e2a-fa8e-479c-b16a-b02188f35914</DNSPolicyId>
<Id>beffe1f7-f585-48a5-b4a5-339f08dd9c8d</Id>
<Type>StaticIP</Type>
<Value>95.99.47.59</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>6bb4dc2d-da98-4e56-90a5-6a4998cc6b42</DNSPolicyId>
<Id>302e8270-c5e5-4115-a8cd-415e5e174fc7</Id>
<Type>StaticIP</Type>
<Value>95.169.201.178</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>