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/393E-2306-B6B6-4CDC-8924/sites/ee233cdb-eb82-420c-b308-721845042132/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": "97a4aff7-6212-47c6-a049-2ffd7786bfda",
"Type": "StaticIP",
"Value": "95.11.54.29",
"DNSPolicyId": "060760ab-da71-452b-9ff0-591fbc874b1a"
},
{
"Id": "d660fcfc-a1cf-4ca7-a8cc-fdb78c32cc5f",
"Type": "StaticIP",
"Value": "95.109.78.71",
"DNSPolicyId": "44961afd-6030-4724-af95-6f840e6a757f"
}
]
}
<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>060760ab-da71-452b-9ff0-591fbc874b1a</DNSPolicyId>
<Id>97a4aff7-6212-47c6-a049-2ffd7786bfda</Id>
<Type>StaticIP</Type>
<Value>95.11.54.29</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>44961afd-6030-4724-af95-6f840e6a757f</DNSPolicyId>
<Id>d660fcfc-a1cf-4ca7-a8cc-fdb78c32cc5f</Id>
<Type>StaticIP</Type>
<Value>95.109.78.71</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>