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/2D64-14CE-9097-4C8E-9000/sites/8d61c00d-7279-4b75-80f5-e5d9c15ddf5f/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": "d49ac6be-944b-4d8b-9238-21904bb5090a",
"Type": "StaticIP",
"Value": "95.213.154.10",
"DNSPolicyId": "ba28e3e5-4011-4c75-b623-ce3588c2d975"
},
{
"Id": "5dae0764-4ff2-4d4f-9856-26aa3e546d1a",
"Type": "StaticIP",
"Value": "95.83.246.99",
"DNSPolicyId": "0fe0c215-0e75-4070-8c0e-724d63ecdee3"
}
]
}
<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>ba28e3e5-4011-4c75-b623-ce3588c2d975</DNSPolicyId>
<Id>d49ac6be-944b-4d8b-9238-21904bb5090a</Id>
<Type>StaticIP</Type>
<Value>95.213.154.10</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>0fe0c215-0e75-4070-8c0e-724d63ecdee3</DNSPolicyId>
<Id>5dae0764-4ff2-4d4f-9856-26aa3e546d1a</Id>
<Type>StaticIP</Type>
<Value>95.83.246.99</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>