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/D866-67AB-B084-4FE2-AF9B/sites/39d363fb-d281-4e45-855f-b776e5dfd12d/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": "85c585e4-1511-47c2-ae8d-876b39ffd840",
"Type": "StaticIP",
"Value": "95.87.128.0",
"DNSPolicyId": "4a96d4e2-db5f-4ec1-af31-38b0e408c6c3"
},
{
"Id": "35e24302-58a1-4e69-990e-21d375ea0164",
"Type": "StaticIP",
"Value": "95.198.171.102",
"DNSPolicyId": "c2bdb158-0500-4a2a-8033-ebedb8a9f294"
}
]
}
<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>4a96d4e2-db5f-4ec1-af31-38b0e408c6c3</DNSPolicyId>
<Id>85c585e4-1511-47c2-ae8d-876b39ffd840</Id>
<Type>StaticIP</Type>
<Value>95.87.128.0</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>c2bdb158-0500-4a2a-8033-ebedb8a9f294</DNSPolicyId>
<Id>35e24302-58a1-4e69-990e-21d375ea0164</Id>
<Type>StaticIP</Type>
<Value>95.198.171.102</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>