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/C492-8054-BBA2-4948-8BE9/sites/e7d5aa71-2db5-4ab6-8828-15e870287578/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": "51dc19fb-6c8a-4dff-ab60-07f2db40ded3",
"Type": "StaticIP",
"Value": "95.68.80.123",
"DNSPolicyId": "1fbb13d9-3ad4-4a42-9ead-d6bd26b8af02"
},
{
"Id": "77d0401b-283a-4ab6-9744-6cd08c0da26e",
"Type": "StaticIP",
"Value": "95.135.120.103",
"DNSPolicyId": "7a6028b2-9dfc-4038-bd96-f2d925c0fc7c"
}
]
}
<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>1fbb13d9-3ad4-4a42-9ead-d6bd26b8af02</DNSPolicyId>
<Id>51dc19fb-6c8a-4dff-ab60-07f2db40ded3</Id>
<Type>StaticIP</Type>
<Value>95.68.80.123</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>7a6028b2-9dfc-4038-bd96-f2d925c0fc7c</DNSPolicyId>
<Id>77d0401b-283a-4ab6-9744-6cd08c0da26e</Id>
<Type>StaticIP</Type>
<Value>95.135.120.103</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>