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/6360-14C2-FA8E-42BC-9C37/sites/7bb9dd51-33fb-4b57-bd7e-126f0d917d4a/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": "27108f00-9d10-4410-a598-2181f62d78f3",
"Type": "StaticIP",
"Value": "95.43.70.86",
"DNSPolicyId": "3f3477b5-e00e-4a9f-b039-41d4a4df8c07"
},
{
"Id": "33ed24ac-53da-456e-939e-b83efc9f768a",
"Type": "StaticIP",
"Value": "95.252.66.178",
"DNSPolicyId": "cde9ea7f-2fb4-46a3-8c91-92dd2329051c"
}
]
}
<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>3f3477b5-e00e-4a9f-b039-41d4a4df8c07</DNSPolicyId>
<Id>27108f00-9d10-4410-a598-2181f62d78f3</Id>
<Type>StaticIP</Type>
<Value>95.43.70.86</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>cde9ea7f-2fb4-46a3-8c91-92dd2329051c</DNSPolicyId>
<Id>33ed24ac-53da-456e-939e-b83efc9f768a</Id>
<Type>StaticIP</Type>
<Value>95.252.66.178</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>