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/BE82-4598-EBBE-4054-8DEC/sites/cefd8a90-40bb-4d71-b27b-e4c3f3fb3efc/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": "bb473e2b-e8f4-4086-b23d-af9330e9431e",
"Type": "StaticIP",
"Value": "95.79.104.187",
"DNSPolicyId": "5f84d095-54e3-40d0-bd2a-15a0fcefa49e"
},
{
"Id": "72152fb8-9154-4848-bbd2-d5a4e2318600",
"Type": "StaticIP",
"Value": "95.217.159.54",
"DNSPolicyId": "f29b90f1-8717-458b-bca7-b24496e4083c"
}
]
}
<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>5f84d095-54e3-40d0-bd2a-15a0fcefa49e</DNSPolicyId>
<Id>bb473e2b-e8f4-4086-b23d-af9330e9431e</Id>
<Type>StaticIP</Type>
<Value>95.79.104.187</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>f29b90f1-8717-458b-bca7-b24496e4083c</DNSPolicyId>
<Id>72152fb8-9154-4848-bbd2-d5a4e2318600</Id>
<Type>StaticIP</Type>
<Value>95.217.159.54</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>