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/2F4E-D032-D402-4325-B7D3/sites/a02caa11-754e-4e7e-bc84-984f3a868ca4/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": "a32ee4bf-c1a8-4f24-a1eb-357ab2ec6b65",
"Type": "StaticIP",
"Value": "95.146.198.63",
"DNSPolicyId": "09427ef6-bdf4-47db-bbfb-88448e196aaa"
},
{
"Id": "84c19ee4-9d1c-4dd6-abc4-098b29c8639c",
"Type": "StaticIP",
"Value": "95.210.132.2",
"DNSPolicyId": "d23552d8-7419-4444-841e-ec7d81f293f4"
}
]
}
<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>09427ef6-bdf4-47db-bbfb-88448e196aaa</DNSPolicyId>
<Id>a32ee4bf-c1a8-4f24-a1eb-357ab2ec6b65</Id>
<Type>StaticIP</Type>
<Value>95.146.198.63</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>d23552d8-7419-4444-841e-ec7d81f293f4</DNSPolicyId>
<Id>84c19ee4-9d1c-4dd6-abc4-098b29c8639c</Id>
<Type>StaticIP</Type>
<Value>95.210.132.2</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>