
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@paloaltonetworks/pan-cortex-xdr
Advanced tools
NodeJS / Javascript / TypeScript language binding for the XDR PRO API
Main use benefits (besides the 1:1 mapping)
Get the module from the public NPM repository
npm i @paloaltonetworks/pan-cortex-xdr
this object provides namespaces to reach XDR PRO API's
Just obtain a XdrApi object by calling the top level createXdrApi() function
export.
Set the following environmental variables before calling createXdrApi()
PAN_API_KEY_ID: API KEY identifierPAN_XDR_FQDN: FQDN of the XDR PRO instancePAN_ADV_API_KEY or PAN_BASIC_API_KEY based on the type of API KEY being
usedUse an object with the following attributes as the first argument to
createXdrApi(data)
apiKey: stringapiKeyId: stringisAdvancedKey: booleanxdrBaseFqdn: stringTypeScript code example
import * as xdr from '@paloaltonetworks/pan-cortex-xdr'
async function main(xdrapi: xdr.XdrApi) {
const response = await xdrapi.incident.get([{
field: 'alert_sources',
operator: 'in',
value: ['XDR Analytics BIOC']
}])
console.log(JSON.stringify(response, undefined, 1))
}
const apiKey = 'JxBIx....GkyG'
const apiKeyId = '18'
const xdrBaseFqdn = 'illicium-industrial.xdr.us.paloaltonetworks.com'
const xdrapi = xdr.createXdrApi({
apiKey,
apiKeyId,
xdrBaseFqdn,
})
main(xdrapi).then(console.log, console.error).finally(xdrapi.close)
FAQs
Palo Alto Networks Cortex XDR client library
We found that @paloaltonetworks/pan-cortex-xdr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.