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/E398-FEA3-D6FA-41D0-B639/sites/bbf33463-f517-4bc6-86f4-1cd06ec9fe14/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": "122c8d37-ed7b-4b00-b0a7-fab4c04698fe",
"Type": "StaticIP",
"Value": "95.43.81.50",
"DNSPolicyId": "ce92bb92-d572-49a3-91b3-c097ac8bfa94"
},
{
"Id": "45064611-7bcb-491b-8755-6726211a785a",
"Type": "StaticIP",
"Value": "95.114.176.35",
"DNSPolicyId": "cb7b4ac1-8f33-4a28-a6b9-2876d09d0c1f"
}
]
}
<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>ce92bb92-d572-49a3-91b3-c097ac8bfa94</DNSPolicyId>
<Id>122c8d37-ed7b-4b00-b0a7-fab4c04698fe</Id>
<Type>StaticIP</Type>
<Value>95.43.81.50</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>cb7b4ac1-8f33-4a28-a6b9-2876d09d0c1f</DNSPolicyId>
<Id>45064611-7bcb-491b-8755-6726211a785a</Id>
<Type>StaticIP</Type>
<Value>95.114.176.35</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>