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/CDB8-AC24-BAFC-4B40-8555/sites/32ba6844-95d1-47d2-8e43-a6a262122420/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": "24913a33-3dda-4552-a661-8be76c1faba8",
"Type": "StaticIP",
"Value": "95.74.185.99",
"DNSPolicyId": "0ca0b27d-2b10-4182-8409-ce1d4d5a92e8"
},
{
"Id": "d81eec60-1adc-43e4-bc44-91deff67129c",
"Type": "StaticIP",
"Value": "95.156.186.108",
"DNSPolicyId": "f86db441-edd0-46e7-848d-3f8e90df6cf0"
}
]
}
<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>0ca0b27d-2b10-4182-8409-ce1d4d5a92e8</DNSPolicyId>
<Id>24913a33-3dda-4552-a661-8be76c1faba8</Id>
<Type>StaticIP</Type>
<Value>95.74.185.99</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>f86db441-edd0-46e7-848d-3f8e90df6cf0</DNSPolicyId>
<Id>d81eec60-1adc-43e4-bc44-91deff67129c</Id>
<Type>StaticIP</Type>
<Value>95.156.186.108</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>