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/840F-B945-183C-4379-AB07/sites/7c3fa783-a5f4-4a25-afbb-c544491708d9/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": "f8558482-c891-4095-8a37-9e33b58079b4",
"Type": "StaticIP",
"Value": "95.62.135.177",
"DNSPolicyId": "a13507c3-4074-4bbf-90ab-1ec1d0ce3764"
},
{
"Id": "c2704200-a698-4430-9cd7-d45a7b2456f5",
"Type": "StaticIP",
"Value": "95.29.38.144",
"DNSPolicyId": "ab2b7185-dc55-4cce-b61a-495fe14374e6"
}
]
}
<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>a13507c3-4074-4bbf-90ab-1ec1d0ce3764</DNSPolicyId>
<Id>f8558482-c891-4095-8a37-9e33b58079b4</Id>
<Type>StaticIP</Type>
<Value>95.62.135.177</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>ab2b7185-dc55-4cce-b61a-495fe14374e6</DNSPolicyId>
<Id>c2704200-a698-4430-9cd7-d45a7b2456f5</Id>
<Type>StaticIP</Type>
<Value>95.29.38.144</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>