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/86A9-D792-16D7-475B-8A73/sites/838fbdc7-5410-46cc-8d5f-5a9a87d75c43/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": "b00554e7-eeb0-4e42-8b36-1e55b83c4ac2",
"Type": "StaticIP",
"Value": "95.215.196.17",
"DNSPolicyId": "395e1f82-a538-45a6-a277-62dc14003646"
},
{
"Id": "eb27d74e-cf90-4032-b981-2cc35c6ae576",
"Type": "StaticIP",
"Value": "95.31.248.137",
"DNSPolicyId": "5563845e-a42c-47bb-b8c9-06528509efe7"
}
]
}
<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>395e1f82-a538-45a6-a277-62dc14003646</DNSPolicyId>
<Id>b00554e7-eeb0-4e42-8b36-1e55b83c4ac2</Id>
<Type>StaticIP</Type>
<Value>95.215.196.17</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>5563845e-a42c-47bb-b8c9-06528509efe7</DNSPolicyId>
<Id>eb27d74e-cf90-4032-b981-2cc35c6ae576</Id>
<Type>StaticIP</Type>
<Value>95.31.248.137</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>