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/0598-A1C1-89C2-462F-825C/sites/3609887d-a0f3-47ba-9370-12bd046e10f7/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": "ae48d21d-836c-409a-9762-76284a4d3dcf",
"Type": "StaticIP",
"Value": "95.226.93.163",
"DNSPolicyId": "03f0818a-a7fc-4166-917f-e7a286654ff6"
},
{
"Id": "342cf964-e636-4a6e-aeba-a644ebe37978",
"Type": "StaticIP",
"Value": "95.64.114.25",
"DNSPolicyId": "51be94c9-5015-4c8c-b36d-0580e73969a9"
}
]
}
<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>03f0818a-a7fc-4166-917f-e7a286654ff6</DNSPolicyId>
<Id>ae48d21d-836c-409a-9762-76284a4d3dcf</Id>
<Type>StaticIP</Type>
<Value>95.226.93.163</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>51be94c9-5015-4c8c-b36d-0580e73969a9</DNSPolicyId>
<Id>342cf964-e636-4a6e-aeba-a644ebe37978</Id>
<Type>StaticIP</Type>
<Value>95.64.114.25</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>