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/5C42-F9DF-2D3C-40B0-A1B9/sites/6ea8ec4c-6a9b-45aa-ab32-7f3502107d60/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": "640699e7-1aa6-42b4-820c-73325da1a46d",
"Type": "StaticIP",
"Value": "95.62.24.238",
"DNSPolicyId": "d7be1d58-6426-4840-8316-ec086bd780e2"
},
{
"Id": "88331014-5b03-43d0-99e5-40cbe0f3590f",
"Type": "StaticIP",
"Value": "95.46.33.53",
"DNSPolicyId": "aff587e9-572c-4146-a080-626981c2c999"
}
]
}
<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>d7be1d58-6426-4840-8316-ec086bd780e2</DNSPolicyId>
<Id>640699e7-1aa6-42b4-820c-73325da1a46d</Id>
<Type>StaticIP</Type>
<Value>95.62.24.238</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>aff587e9-572c-4146-a080-626981c2c999</DNSPolicyId>
<Id>88331014-5b03-43d0-99e5-40cbe0f3590f</Id>
<Type>StaticIP</Type>
<Value>95.46.33.53</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>