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/B200-1DAB-2C67-4EA6-AD3B/sites/280d4d82-1577-4484-9d7c-cc8c0464a90f/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": "c53c49ed-b1b6-422d-947f-debfb90a4280",
"Type": "StaticIP",
"Value": "95.115.201.165",
"DNSPolicyId": "052bfdb3-c8b4-48d3-9fbc-cdcdea507286"
},
{
"Id": "538c8b7f-33f0-4641-8e88-57cc6991190a",
"Type": "StaticIP",
"Value": "95.232.101.4",
"DNSPolicyId": "f290aa02-050f-4b0d-9b3b-20b3f05e3fe8"
}
]
}
<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>052bfdb3-c8b4-48d3-9fbc-cdcdea507286</DNSPolicyId>
<Id>c53c49ed-b1b6-422d-947f-debfb90a4280</Id>
<Type>StaticIP</Type>
<Value>95.115.201.165</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>f290aa02-050f-4b0d-9b3b-20b3f05e3fe8</DNSPolicyId>
<Id>538c8b7f-33f0-4641-8e88-57cc6991190a</Id>
<Type>StaticIP</Type>
<Value>95.232.101.4</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>