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/D3B8-9A88-4EAC-4E27-8DBF/sites/1643df52-736b-4d9d-a831-6a142729ad4c/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": "cae4b8ba-d4d9-451b-9349-a6bc7a86aaf9",
"Type": "StaticIP",
"Value": "95.236.53.154",
"DNSPolicyId": "07e08f5c-5ef1-4eb8-b3b1-7f92484ba6c0"
},
{
"Id": "9636ffcf-3c30-4550-8481-58d9ef85fbad",
"Type": "StaticIP",
"Value": "95.223.180.30",
"DNSPolicyId": "bfb68393-021d-469c-9272-526ab7191d50"
}
]
}
<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>07e08f5c-5ef1-4eb8-b3b1-7f92484ba6c0</DNSPolicyId>
<Id>cae4b8ba-d4d9-451b-9349-a6bc7a86aaf9</Id>
<Type>StaticIP</Type>
<Value>95.236.53.154</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>bfb68393-021d-469c-9272-526ab7191d50</DNSPolicyId>
<Id>9636ffcf-3c30-4550-8481-58d9ef85fbad</Id>
<Type>StaticIP</Type>
<Value>95.223.180.30</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>