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/CB7B-34BD-AA5E-4BE3-B0A4/sites/c888ad82-fbd6-4eb9-bef7-f9453acd9e48/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": "7b8e5917-2df6-4bf0-a5e4-3f0b3b58cd2b",
"Type": "StaticIP",
"Value": "95.106.0.178",
"DNSPolicyId": "4602756b-a2cf-43ce-976f-1418a988bbbf"
},
{
"Id": "de6da7ae-57a1-42f7-9728-239bf1ce3342",
"Type": "StaticIP",
"Value": "95.206.15.180",
"DNSPolicyId": "90eb6d69-153e-40d6-97e2-3fcad222f325"
}
]
}
<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>4602756b-a2cf-43ce-976f-1418a988bbbf</DNSPolicyId>
<Id>7b8e5917-2df6-4bf0-a5e4-3f0b3b58cd2b</Id>
<Type>StaticIP</Type>
<Value>95.106.0.178</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>90eb6d69-153e-40d6-97e2-3fcad222f325</DNSPolicyId>
<Id>de6da7ae-57a1-42f7-9728-239bf1ce3342</Id>
<Type>StaticIP</Type>
<Value>95.206.15.180</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>