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

NameDescriptionTypeAdditional Information
gsmKey

The GSM console keycode.

string

Required

siteId

The identifier of the site to query information for.

string

Required

Body Parameters

None.

Response Information

Resource Description

Information about DNS Protection policy mappings.

GetDNSPPolicyMappingsResponseModel
NameDescriptionTypeAdditional 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": "d9b49b08-88ec-4b7b-9358-67c63bedc628",
      "Type": "StaticIP",
      "Value": "95.180.176.18",
      "DNSPolicyId": "6ea864ba-fe1a-47db-a576-6f5e74c13f74"
    },
    {
      "Id": "112281da-a033-4f57-afb1-7d6045d9b9ce",
      "Type": "StaticIP",
      "Value": "95.32.30.107",
      "DNSPolicyId": "fdb137da-22b2-4d0c-ac37-e423f2c86663"
    }
  ]
}                    
<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>6ea864ba-fe1a-47db-a576-6f5e74c13f74</DNSPolicyId>
      <Id>d9b49b08-88ec-4b7b-9358-67c63bedc628</Id>
      <Type>StaticIP</Type>
      <Value>95.180.176.18</Value>
    </GetDNSPPolicyMappingsResponseModel_Mapping>
    <GetDNSPPolicyMappingsResponseModel_Mapping>
      <DNSPolicyId>fdb137da-22b2-4d0c-ac37-e423f2c86663</DNSPolicyId>
      <Id>112281da-a033-4f57-afb1-7d6045d9b9ce</Id>
      <Type>StaticIP</Type>
      <Value>95.32.30.107</Value>
    </GetDNSPPolicyMappingsResponseModel_Mapping>
  </PolicyMappings>
  <TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>