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/EE8D-2C79-9F1E-4AAD-A074/sites/7451aa90-7175-4161-a961-ac8175b8c2e3/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": "1c2f8692-2059-4c13-8f8d-e4aea95a7e94",
"Type": "StaticIP",
"Value": "95.29.50.199",
"DNSPolicyId": "9d59caa7-6065-423c-8e84-5bf3203b4393"
},
{
"Id": "48943fa5-3e9d-421f-b408-2a26529c0656",
"Type": "StaticIP",
"Value": "95.26.186.137",
"DNSPolicyId": "7fbe5708-b78f-49ca-8065-09fb53425b83"
}
]
}
<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>9d59caa7-6065-423c-8e84-5bf3203b4393</DNSPolicyId>
<Id>1c2f8692-2059-4c13-8f8d-e4aea95a7e94</Id>
<Type>StaticIP</Type>
<Value>95.29.50.199</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>7fbe5708-b78f-49ca-8065-09fb53425b83</DNSPolicyId>
<Id>48943fa5-3e9d-421f-b408-2a26529c0656</Id>
<Type>StaticIP</Type>
<Value>95.26.186.137</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>