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/37ED-1F9B-B9EA-48C8-ADB2/sites/f43fc481-6034-4c23-a7e6-539aa67bbe40/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": "090d67bc-1eab-4dcf-846d-b5475b55c7ba",
"Type": "StaticIP",
"Value": "95.127.49.148",
"DNSPolicyId": "b8fdcce0-f3c4-4d7b-b443-5794e6897718"
},
{
"Id": "fbc9d488-f3b6-4349-be7e-cfb1dc940b91",
"Type": "StaticIP",
"Value": "95.138.192.138",
"DNSPolicyId": "ee8dd5b1-0fe7-4cf9-80b9-cd51c4773c45"
}
]
}
<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>b8fdcce0-f3c4-4d7b-b443-5794e6897718</DNSPolicyId>
<Id>090d67bc-1eab-4dcf-846d-b5475b55c7ba</Id>
<Type>StaticIP</Type>
<Value>95.127.49.148</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>ee8dd5b1-0fe7-4cf9-80b9-cd51c4773c45</DNSPolicyId>
<Id>fbc9d488-f3b6-4349-be7e-cfb1dc940b91</Id>
<Type>StaticIP</Type>
<Value>95.138.192.138</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>