npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@datafire/azure_resources_policydefinitions

v5.0.0

Published

DataFire integration for PolicyClient

Readme

@datafire/azure_resources_policydefinitions

Client library for PolicyClient

Installation and Usage

npm install --save @datafire/azure_resources_policydefinitions
let azure_resources_policydefinitions = require('@datafire/azure_resources_policydefinitions').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

To manage and control access to your resources, you can define customized policies and assign them at a scope.

Actions

PolicyDefinitions_ListBuiltIn

This operation retrieves a list of all the built-in policy definitions.

azure_resources_policydefinitions.PolicyDefinitions_ListBuiltIn({
  "api-version": ""
}, context)

Input

  • input object
    • api-version required string: The API version to use for the operation.

Output

PolicyDefinitions_GetBuiltIn

This operation retrieves the built-in policy definition with the given name.

azure_resources_policydefinitions.PolicyDefinitions_GetBuiltIn({
  "policyDefinitionName": "",
  "api-version": ""
}, context)

Input

  • input object
    • policyDefinitionName required string: The name of the built-in policy definition to get.
    • api-version required string: The API version to use for the operation.

Output

PolicyDefinitions_ListByManagementGroup

This operation retrieves a list of all the policy definitions in a given management group.

azure_resources_policydefinitions.PolicyDefinitions_ListByManagementGroup({
  "api-version": "",
  "managementGroupId": ""
}, context)

Input

  • input object
    • api-version required string: The API version to use for the operation.
    • managementGroupId required string: The ID of the management group.

Output

PolicyDefinitions_DeleteAtManagementGroup

This operation deletes the policy definition in the given management group with the given name.

azure_resources_policydefinitions.PolicyDefinitions_DeleteAtManagementGroup({
  "policyDefinitionName": "",
  "api-version": "",
  "managementGroupId": ""
}, context)

Input

  • input object
    • policyDefinitionName required string: The name of the policy definition to delete.
    • api-version required string: The API version to use for the operation.
    • managementGroupId required string: The ID of the management group.

Output

Output schema unknown

PolicyDefinitions_GetAtManagementGroup

This operation retrieves the policy definition in the given management group with the given name.

azure_resources_policydefinitions.PolicyDefinitions_GetAtManagementGroup({
  "policyDefinitionName": "",
  "api-version": "",
  "managementGroupId": ""
}, context)

Input

  • input object
    • policyDefinitionName required string: The name of the policy definition to get.
    • api-version required string: The API version to use for the operation.
    • managementGroupId required string: The ID of the management group.

Output

PolicyDefinitions_CreateOrUpdateAtManagementGroup

This operation creates or updates a policy definition in the given management group with the given name.

azure_resources_policydefinitions.PolicyDefinitions_CreateOrUpdateAtManagementGroup({
  "policyDefinitionName": "",
  "parameters": null,
  "api-version": "",
  "managementGroupId": ""
}, context)

Input

  • input object
    • policyDefinitionName required string: The name of the policy definition to create.
    • parameters required PolicyDefinition
    • api-version required string: The API version to use for the operation.
    • managementGroupId required string: The ID of the management group.

Output

PolicyDefinitions_List

This operation retrieves a list of all the policy definitions in a given subscription.

azure_resources_policydefinitions.PolicyDefinitions_List({
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • api-version required string: The API version to use for the operation.
    • subscriptionId required string: The ID of the target subscription.

Output

PolicyDefinitions_Delete

This operation deletes the policy definition in the given subscription with the given name.

azure_resources_policydefinitions.PolicyDefinitions_Delete({
  "policyDefinitionName": "",
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • policyDefinitionName required string: The name of the policy definition to delete.
    • api-version required string: The API version to use for the operation.
    • subscriptionId required string: The ID of the target subscription.

Output

Output schema unknown

PolicyDefinitions_Get

This operation retrieves the policy definition in the given subscription with the given name.

azure_resources_policydefinitions.PolicyDefinitions_Get({
  "policyDefinitionName": "",
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • policyDefinitionName required string: The name of the policy definition to get.
    • api-version required string: The API version to use for the operation.
    • subscriptionId required string: The ID of the target subscription.

Output

PolicyDefinitions_CreateOrUpdate

This operation creates or updates a policy definition in the given subscription with the given name.

azure_resources_policydefinitions.PolicyDefinitions_CreateOrUpdate({
  "policyDefinitionName": "",
  "parameters": null,
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • policyDefinitionName required string: The name of the policy definition to create.
    • parameters required PolicyDefinition
    • api-version required string: The API version to use for the operation.
    • subscriptionId required string: The ID of the target subscription.

Output

Definitions

PolicyDefinition

  • PolicyDefinition object: The policy definition.
    • id string: The ID of the policy definition.
    • name string: The name of the policy definition.
    • properties PolicyDefinitionProperties
    • type string: The type of the resource (Microsoft.Authorization/policyDefinitions).

PolicyDefinitionListResult

  • PolicyDefinitionListResult object: List of policy definitions.
    • nextLink string: The URL to use for getting the next set of results.
    • value array: An array of policy definitions.

PolicyDefinitionProperties

  • PolicyDefinitionProperties object: The policy definition properties.
    • description string: The policy definition description.
    • displayName string: The display name of the policy definition.
    • metadata object: The policy definition metadata.
    • mode string: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
    • parameters object: Required if a parameter is used in policy rule.
    • policyRule object: The policy rule.
    • policyType string (values: NotSpecified, BuiltIn, Custom): The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom.