npm.io
0.0.1-beta.2 • Published 9 months ago

@datadog/datadog-api-client-ip-allowlist

Licence
Apache-2.0
Version
0.0.1-beta.2
Deps
1
Size
48 kB
Vulns
0
Weekly
0
Stars
104

@datadog/datadog-api-client-ip-allowlist

Description

The IP allowlist API is used to manage the IP addresses that can access the Datadog API and web UI. It does not block access to intake APIs or public dashboards.

This is an enterprise-only feature. Request access by contacting Datadog support, or see the IP Allowlist page for more information.

Navigation

Installation

# NPM
npm install @datadog/datadog-api-client-ip-allowlist
# Yarn
yarn add @datadog/datadog-api-client-ip-allowlist

Getting Started

import { createConfiguration } from "@datadog/datadog-api-client";
import { IPAllowlistApiV2 } from "@datadog/datadog-api-client-ip-allowlist";
import { v2 } from "@datadog/datadog-api-client-ip-allowlist";

const configuration = createConfiguration();
const apiInstance = new IPAllowlistApiV2(configuration);

apiInstance.getIPAllowlist().then((data) => {
    console.log("API called successfully. Returned data: " + JSON.stringify(data));
}).catch((error) => {
    console.error("Error calling API: " + error);
});

Keywords