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/FB54-4E0E-CA83-4DB0-83EF/sites/30a30edc-6062-4f28-ab32-c30ca2bbbd72/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": "fd47fa16-b8f5-4f6d-ae81-13cfa2d8c106",
"Type": "StaticIP",
"Value": "95.146.123.102",
"DNSPolicyId": "a940162f-b186-482c-bfea-1e8c05414bdf"
},
{
"Id": "e0695845-5a67-4bf2-8572-6cc0946044e2",
"Type": "StaticIP",
"Value": "95.137.22.142",
"DNSPolicyId": "80c3f76f-4df3-4bf4-9208-4fb59a766198"
}
]
}
<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>a940162f-b186-482c-bfea-1e8c05414bdf</DNSPolicyId>
<Id>fd47fa16-b8f5-4f6d-ae81-13cfa2d8c106</Id>
<Type>StaticIP</Type>
<Value>95.146.123.102</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>80c3f76f-4df3-4bf4-9208-4fb59a766198</DNSPolicyId>
<Id>e0695845-5a67-4bf2-8572-6cc0946044e2</Id>
<Type>StaticIP</Type>
<Value>95.137.22.142</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>