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/8B26-39DE-6141-4303-BAA4/sites/e1bdf867-8726-4a91-94db-b8336f9e6c6b/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": "d6427c69-5acc-4731-82ce-aa3d557e3564",
"Type": "StaticIP",
"Value": "95.204.175.66",
"DNSPolicyId": "0d8ab0da-f55f-4245-b3e7-9e1dc891c21d"
},
{
"Id": "2c513e0c-920e-49f6-863b-2b75579fae8b",
"Type": "StaticIP",
"Value": "95.3.207.202",
"DNSPolicyId": "cdc64ddd-ff33-46b9-a87a-a6dd99e5905b"
}
]
}
<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>0d8ab0da-f55f-4245-b3e7-9e1dc891c21d</DNSPolicyId>
<Id>d6427c69-5acc-4731-82ce-aa3d557e3564</Id>
<Type>StaticIP</Type>
<Value>95.204.175.66</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>cdc64ddd-ff33-46b9-a87a-a6dd99e5905b</DNSPolicyId>
<Id>2c513e0c-920e-49f6-863b-2b75579fae8b</Id>
<Type>StaticIP</Type>
<Value>95.3.207.202</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>