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/361D-1BBF-E228-4D9C-B1BC/sites/e6359d45-5285-4b7f-924b-10ac47a42e03/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": "a238c29c-8461-40c0-88ed-36661e210dc6",
"Type": "StaticIP",
"Value": "95.164.169.125",
"DNSPolicyId": "9e9a69a8-ff2f-42de-9485-a2384e0299b2"
},
{
"Id": "2916fe48-ab93-4812-ac3d-d571ada91129",
"Type": "StaticIP",
"Value": "95.53.39.37",
"DNSPolicyId": "4a158bd3-7bea-46b9-bea8-43243deda34b"
}
]
}
<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>9e9a69a8-ff2f-42de-9485-a2384e0299b2</DNSPolicyId>
<Id>a238c29c-8461-40c0-88ed-36661e210dc6</Id>
<Type>StaticIP</Type>
<Value>95.164.169.125</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>4a158bd3-7bea-46b9-bea8-43243deda34b</DNSPolicyId>
<Id>2916fe48-ab93-4812-ac3d-d571ada91129</Id>
<Type>StaticIP</Type>
<Value>95.53.39.37</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>