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/B030-E044-6E7D-47F2-A53F/sites/f811cd13-d7e8-4f62-8bdf-9d5a05bf37eb/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": "21daddb5-7f4d-4e15-ba51-618307c90ae9",
"Type": "StaticIP",
"Value": "95.61.92.62",
"DNSPolicyId": "c9d25cfa-67ca-43e1-a9de-e937e8d1a50a"
},
{
"Id": "5c5a5069-212e-40a4-95e8-cae67f162a4a",
"Type": "StaticIP",
"Value": "95.129.88.119",
"DNSPolicyId": "2897e225-b7f2-4ecc-96f8-7316ae9a7499"
}
]
}
<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>c9d25cfa-67ca-43e1-a9de-e937e8d1a50a</DNSPolicyId>
<Id>21daddb5-7f4d-4e15-ba51-618307c90ae9</Id>
<Type>StaticIP</Type>
<Value>95.61.92.62</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>2897e225-b7f2-4ecc-96f8-7316ae9a7499</DNSPolicyId>
<Id>5c5a5069-212e-40a4-95e8-cae67f162a4a</Id>
<Type>StaticIP</Type>
<Value>95.129.88.119</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>