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/3E24-7C9D-B9EB-4B74-901A/sites/7156c41e-afa6-4241-a880-3400b00a4071/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": "df01e34b-c000-43c5-bb61-52bb4b2433b7",
"Type": "StaticIP",
"Value": "95.120.109.108",
"DNSPolicyId": "37b27230-6ee9-4d18-a4dd-42a25ca60fa6"
},
{
"Id": "072a482b-2c0b-48ad-930e-808a17da3cbc",
"Type": "StaticIP",
"Value": "95.250.78.22",
"DNSPolicyId": "9231b26d-c9dd-460e-a9b9-f0f8f4f1b88a"
}
]
}
<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>37b27230-6ee9-4d18-a4dd-42a25ca60fa6</DNSPolicyId>
<Id>df01e34b-c000-43c5-bb61-52bb4b2433b7</Id>
<Type>StaticIP</Type>
<Value>95.120.109.108</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>9231b26d-c9dd-460e-a9b9-f0f8f4f1b88a</DNSPolicyId>
<Id>072a482b-2c0b-48ad-930e-808a17da3cbc</Id>
<Type>StaticIP</Type>
<Value>95.250.78.22</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>