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/C609-DEAC-6DEC-4049-A821/sites/10f9b2cc-22c9-4f2d-9244-8259bc8dd3b9/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": "331d6b2a-4397-4363-8843-b5f28f35f349",
"Type": "StaticIP",
"Value": "95.237.189.101",
"DNSPolicyId": "0c85614a-16cb-4270-893b-5964a9672cba"
},
{
"Id": "3a22aa80-9543-4186-a8ad-f2ed76e6b432",
"Type": "StaticIP",
"Value": "95.41.246.129",
"DNSPolicyId": "2acbb820-34b4-4c0d-9d3b-ce6396e5d7d0"
}
]
}
<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>0c85614a-16cb-4270-893b-5964a9672cba</DNSPolicyId>
<Id>331d6b2a-4397-4363-8843-b5f28f35f349</Id>
<Type>StaticIP</Type>
<Value>95.237.189.101</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>2acbb820-34b4-4c0d-9d3b-ce6396e5d7d0</DNSPolicyId>
<Id>3a22aa80-9543-4186-a8ad-f2ed76e6b432</Id>
<Type>StaticIP</Type>
<Value>95.41.246.129</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>