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/54C9-C451-90BE-4240-817E/sites/b94ec64a-8d74-463c-ba90-9b50e34b160e/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": "86a34d5b-6107-4081-a827-4cc107f182c3",
"Type": "StaticIP",
"Value": "95.251.179.25",
"DNSPolicyId": "82ac89c3-1f26-46b3-94e5-b40998d6442e"
},
{
"Id": "91d7e95c-62ad-413c-b459-88c67eacdcea",
"Type": "StaticIP",
"Value": "95.251.81.123",
"DNSPolicyId": "f870a42b-53ce-4c34-9736-9662cb7776dd"
}
]
}
<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>82ac89c3-1f26-46b3-94e5-b40998d6442e</DNSPolicyId>
<Id>86a34d5b-6107-4081-a827-4cc107f182c3</Id>
<Type>StaticIP</Type>
<Value>95.251.179.25</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>f870a42b-53ce-4c34-9736-9662cb7776dd</DNSPolicyId>
<Id>91d7e95c-62ad-413c-b459-88c67eacdcea</Id>
<Type>StaticIP</Type>
<Value>95.251.81.123</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>