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/568D-DFB2-3ABB-4379-81AF/sites/86b055dc-2b7c-454a-bcee-22b086b77de2/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": "3794b03e-3c34-4f3e-a2e3-f945eb0e422d",
"Type": "StaticIP",
"Value": "95.9.115.3",
"DNSPolicyId": "8935cae1-7746-428a-a613-fba16703920a"
},
{
"Id": "a038893c-c4b1-476a-8d16-c2db5f4aad08",
"Type": "StaticIP",
"Value": "95.212.198.143",
"DNSPolicyId": "617acd9a-9401-4b8d-8098-0718e4053c44"
}
]
}
<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>8935cae1-7746-428a-a613-fba16703920a</DNSPolicyId>
<Id>3794b03e-3c34-4f3e-a2e3-f945eb0e422d</Id>
<Type>StaticIP</Type>
<Value>95.9.115.3</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>617acd9a-9401-4b8d-8098-0718e4053c44</DNSPolicyId>
<Id>a038893c-c4b1-476a-8d16-c2db5f4aad08</Id>
<Type>StaticIP</Type>
<Value>95.212.198.143</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>