Typescript wrapper for Sophos's API.
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.."
})
Get all Tenants as Partner
await sophos.getTenants()
Get All Endpoints from Tenant
await sophos.getEndpoints(tenantId, tenantApiHost)