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/E7C2-7526-5E05-4B9C-BA81/sites/a0558c36-22e7-4681-a56f-9f1928b2743c/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": "a5f95925-3804-4f7a-8732-d95e67e13b1e",
"Type": "StaticIP",
"Value": "95.149.200.32",
"DNSPolicyId": "62ef1ebb-0749-4ea3-92ac-331d83b33255"
},
{
"Id": "e74703ec-aaf9-4cbb-aa4c-0dc7b322599a",
"Type": "StaticIP",
"Value": "95.60.9.150",
"DNSPolicyId": "0f6fc4d0-8f09-4b08-8a8e-5a3fd596caf5"
}
]
}
<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>62ef1ebb-0749-4ea3-92ac-331d83b33255</DNSPolicyId>
<Id>a5f95925-3804-4f7a-8732-d95e67e13b1e</Id>
<Type>StaticIP</Type>
<Value>95.149.200.32</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>0f6fc4d0-8f09-4b08-8a8e-5a3fd596caf5</DNSPolicyId>
<Id>e74703ec-aaf9-4cbb-aa4c-0dc7b322599a</Id>
<Type>StaticIP</Type>
<Value>95.60.9.150</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>