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/D7C2-DB72-9E83-4564-B124/sites/2fcc1ceb-4962-441f-8ba4-13fbe362f498/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": "40e41144-082a-4160-a459-ef5696a682af",
"Type": "StaticIP",
"Value": "95.17.165.56",
"DNSPolicyId": "a4b51d9a-b74e-466c-82d3-41a80a241c8f"
},
{
"Id": "694342cf-ff31-422e-800d-895346bd8e7b",
"Type": "StaticIP",
"Value": "95.60.161.155",
"DNSPolicyId": "64baca03-f6f0-4b46-a367-9fea8928454f"
}
]
}
<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>a4b51d9a-b74e-466c-82d3-41a80a241c8f</DNSPolicyId>
<Id>40e41144-082a-4160-a459-ef5696a682af</Id>
<Type>StaticIP</Type>
<Value>95.17.165.56</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>64baca03-f6f0-4b46-a367-9fea8928454f</DNSPolicyId>
<Id>694342cf-ff31-422e-800d-895346bd8e7b</Id>
<Type>StaticIP</Type>
<Value>95.60.161.155</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>