GET /service/api/console/gsm/{gsmKey}/dnsp/categories

Returns a list of available DNS Protection categories and their respective identifier.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
gsmKey

The GSM console keycode.

string

Required

Body Parameters

None.

Response Information

Resource Description

Information about DNS Protection categories.

GetDNSPCategoriesResponseModel
NameDescriptionTypeAdditional Information
TotalCount

Total number of categories available.

integer

None.

Categories

The list of categories.

Collection of GetDNSPCategoriesResponseModel_Category

None.

Sample Response

{
  "TotalCount": 2,
  "Categories": [
    {
      "Id": 1,
      "Name": "Real Estate",
      "Description": "Information on renting, buying, or selling real estate or properties.  Tips on buying or selling a home.  Real estate agents, rental or relocation services, and property improvement."
    },
    {
      "Id": 2,
      "Name": "Computer and Internet Security",
      "Description": "Computer/Internet security, security discussion groups."
    }
  ]
}                    
<GetDNSPCategoriesResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <Categories>
    <GetDNSPCategoriesResponseModel_Category>
      <Description>Information on renting, buying, or selling real estate or properties.  Tips on buying or selling a home.  Real estate agents, rental or relocation services, and property improvement.</Description>
      <Id>1</Id>
      <Name>Real Estate</Name>
    </GetDNSPCategoriesResponseModel_Category>
    <GetDNSPCategoriesResponseModel_Category>
      <Description>Computer/Internet security, security discussion groups.</Description>
      <Id>2</Id>
      <Name>Computer and Internet Security</Name>
    </GetDNSPCategoriesResponseModel_Category>
  </Categories>
  <TotalCount>2</TotalCount>
</GetDNSPCategoriesResponseModel>