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/D3D4-C4A9-4C8C-41DC-A708/sites/ff94e6ee-13c8-4a8b-80ea-e6cd1e40630d/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": "2a579e2b-9b5b-42ff-96cb-60d7801845d7",
"Type": "StaticIP",
"Value": "95.65.252.114",
"DNSPolicyId": "b3fba525-113d-4c05-8409-228541405f39"
},
{
"Id": "7ec918be-c43d-45de-ad82-fcba86225252",
"Type": "StaticIP",
"Value": "95.205.36.94",
"DNSPolicyId": "3626557b-ebb7-43cf-905c-34ef3a75bb7e"
}
]
}
<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>b3fba525-113d-4c05-8409-228541405f39</DNSPolicyId>
<Id>2a579e2b-9b5b-42ff-96cb-60d7801845d7</Id>
<Type>StaticIP</Type>
<Value>95.65.252.114</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>3626557b-ebb7-43cf-905c-34ef3a75bb7e</DNSPolicyId>
<Id>7ec918be-c43d-45de-ad82-fcba86225252</Id>
<Type>StaticIP</Type>
<Value>95.205.36.94</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>