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/CC0A-1FBD-D306-488B-8CBB/sites/560a0fe7-fa6c-4e87-bd01-860b07ed25e6/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": "4c747055-2761-42db-a285-850041d0ee45",
"Type": "StaticIP",
"Value": "95.88.33.205",
"DNSPolicyId": "19793d08-e164-468a-9b19-daae97ac9332"
},
{
"Id": "5df4ded4-2067-43ef-8f05-06c2f89a25b8",
"Type": "StaticIP",
"Value": "95.183.60.90",
"DNSPolicyId": "1a356d16-91ee-4801-b408-37db0512962d"
}
]
}
<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>19793d08-e164-468a-9b19-daae97ac9332</DNSPolicyId>
<Id>4c747055-2761-42db-a285-850041d0ee45</Id>
<Type>StaticIP</Type>
<Value>95.88.33.205</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>1a356d16-91ee-4801-b408-37db0512962d</DNSPolicyId>
<Id>5df4ded4-2067-43ef-8f05-06c2f89a25b8</Id>
<Type>StaticIP</Type>
<Value>95.183.60.90</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>