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/CD36-A545-4A44-46C6-9E7D/sites/a4f03236-0b15-4769-b31c-40ba1e6c78e2/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": "1426169e-cfbe-41f3-9199-404a4b3e3a2e",
"Type": "StaticIP",
"Value": "95.79.106.156",
"DNSPolicyId": "754b696e-ce02-4fb6-b4a7-082e29a690cf"
},
{
"Id": "e64c7a14-2234-4f27-8039-364efd9e8af9",
"Type": "StaticIP",
"Value": "95.146.5.1",
"DNSPolicyId": "da72aaee-4dac-443e-ac22-8ec810f3eb81"
}
]
}
<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>754b696e-ce02-4fb6-b4a7-082e29a690cf</DNSPolicyId>
<Id>1426169e-cfbe-41f3-9199-404a4b3e3a2e</Id>
<Type>StaticIP</Type>
<Value>95.79.106.156</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>da72aaee-4dac-443e-ac22-8ec810f3eb81</DNSPolicyId>
<Id>e64c7a14-2234-4f27-8039-364efd9e8af9</Id>
<Type>StaticIP</Type>
<Value>95.146.5.1</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>