Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Repository files navigation

Sophos API Wrapper

Typescript wrapper for Sophos's API.

Getting Started

You can install the package with the following command:

npm install sophos

You must import the package and pass in the clientId and clientSecret from Sophos to the constructor:

const Sophos = require('sophos')

const sophos = new Sophos({
  clientId: "332....",
  clientSecret: "2333..."
}) 

You can also pass in your partnerId, if using getTenants():

const Sophos = require('sophos')

const sophos = new Sophos({
  clientId: "332....",
  clientSecret: "2333...",
  partnerId: "zh67.."
}) 

Usage

Get all Tenants as Partner

await sophos.getTenants()

Get All Endpoints from Tenant

await sophos.getEndpoints(tenantId, tenantApiHost)

Releases

Packages

Used by

Contributors

Languages