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/D1CC-623B-B982-46CB-865F/sites/4fee83ef-0c3b-4333-97f9-79f998bbe98d/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": "7d3720a1-21a0-4c34-b6db-ea0bb369a681",
"Type": "StaticIP",
"Value": "95.43.19.79",
"DNSPolicyId": "7275089e-f63c-49eb-9b99-e5c08b815b18"
},
{
"Id": "420b4add-d47e-42a2-8e92-d856e9a0183e",
"Type": "StaticIP",
"Value": "95.34.13.161",
"DNSPolicyId": "2427b0b7-6de5-46d4-b8d9-d11f59124db9"
}
]
}
<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>7275089e-f63c-49eb-9b99-e5c08b815b18</DNSPolicyId>
<Id>7d3720a1-21a0-4c34-b6db-ea0bb369a681</Id>
<Type>StaticIP</Type>
<Value>95.43.19.79</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>2427b0b7-6de5-46d4-b8d9-d11f59124db9</DNSPolicyId>
<Id>420b4add-d47e-42a2-8e92-d856e9a0183e</Id>
<Type>StaticIP</Type>
<Value>95.34.13.161</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>