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/3358-5FE7-E8B4-40B8-B8E0/sites/18dbaec7-0d8b-490e-bee7-e6291dde8402/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": "04ff44ef-48c7-44cd-b430-a14296bbd990",
"Type": "StaticIP",
"Value": "95.36.178.33",
"DNSPolicyId": "9abe7aa6-0dae-4028-bc37-f28254f3e570"
},
{
"Id": "9d82a857-c41e-40fe-b663-0809570e7669",
"Type": "StaticIP",
"Value": "95.32.108.54",
"DNSPolicyId": "641aec09-5747-4b9d-885f-58702537d5a5"
}
]
}
<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>9abe7aa6-0dae-4028-bc37-f28254f3e570</DNSPolicyId>
<Id>04ff44ef-48c7-44cd-b430-a14296bbd990</Id>
<Type>StaticIP</Type>
<Value>95.36.178.33</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>641aec09-5747-4b9d-885f-58702537d5a5</DNSPolicyId>
<Id>9d82a857-c41e-40fe-b663-0809570e7669</Id>
<Type>StaticIP</Type>
<Value>95.32.108.54</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>