@datadog/datadog-api-client-roles
Description
The Roles API is used to create and manage Datadog roles, what global permissions they grant, and which users belong to them.
Permissions related to specific account assets can be granted to roles in the Datadog application without using this API. For example, granting read access on a specific log index to a role can be done in Datadog from the Pipelines page.
Navigation
Installation
# NPM
npm install @datadog/datadog-api-client-roles
# Yarn
yarn add @datadog/datadog-api-client-roles
Getting Started
import { createConfiguration } from "@datadog/datadog-api-client";
import { RolesApiV2 } from "@datadog/datadog-api-client-roles";
import { v2 } from "@datadog/datadog-api-client-roles";
const configuration = createConfiguration();
const apiInstance = new RolesApiV2(configuration);
apiInstance.listPermissions().then((data) => {
console.log("API called successfully. Returned data: " + JSON.stringify(data));
}).catch((error) => {
console.error("Error calling API: " + error);
});