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/C637-41F3-D7CD-4E0E-8C28/sites/ee7e8db1-d7b5-4f34-b862-2adedf745042/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": "0301a897-3edc-4337-8ad2-40c40de96776",
"Type": "StaticIP",
"Value": "95.200.122.74",
"DNSPolicyId": "944ed922-7c6c-48cc-8050-481fb495e14d"
},
{
"Id": "acb63192-968e-4312-8f8d-7035334f3a82",
"Type": "StaticIP",
"Value": "95.84.0.242",
"DNSPolicyId": "eb957d1c-e106-4be0-a09b-c19ea8b073ae"
}
]
}
<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>944ed922-7c6c-48cc-8050-481fb495e14d</DNSPolicyId>
<Id>0301a897-3edc-4337-8ad2-40c40de96776</Id>
<Type>StaticIP</Type>
<Value>95.200.122.74</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>eb957d1c-e106-4be0-a09b-c19ea8b073ae</DNSPolicyId>
<Id>acb63192-968e-4312-8f8d-7035334f3a82</Id>
<Type>StaticIP</Type>
<Value>95.84.0.242</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>