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/3811-5F28-1C1E-4D13-8BDC/sites/51364363-5ad5-4b6d-94f3-e665191bf513/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": "b3ffb2e9-099f-46e7-a530-c076dc778999",
"Type": "StaticIP",
"Value": "95.159.169.19",
"DNSPolicyId": "58c5abdf-9f32-484b-b2c4-89a11dea5313"
},
{
"Id": "9f8ebf44-bb9e-495c-9057-66dd99126f81",
"Type": "StaticIP",
"Value": "95.85.37.122",
"DNSPolicyId": "15b33735-368e-4e8d-b968-39d6b4a48c4d"
}
]
}
<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>58c5abdf-9f32-484b-b2c4-89a11dea5313</DNSPolicyId>
<Id>b3ffb2e9-099f-46e7-a530-c076dc778999</Id>
<Type>StaticIP</Type>
<Value>95.159.169.19</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>15b33735-368e-4e8d-b968-39d6b4a48c4d</DNSPolicyId>
<Id>9f8ebf44-bb9e-495c-9057-66dd99126f81</Id>
<Type>StaticIP</Type>
<Value>95.85.37.122</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>