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_resourcegraph

v3.0.0

Published

DataFire integration for Azure Resource Graph

Readme

@datafire/azure_resourcegraph

Client library for Azure Resource Graph

Installation and Usage

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

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

Description

Azure Resource Graph API Reference

Actions

Operations_List

Lists all of the available REST API operations.

azure_resourcegraph.Operations_List({
  "api-version": ""
}, context)

Input

  • input object
    • api-version required string: API version.

Output

Resources

Queries the resources managed by Azure Resource Manager for all subscriptions specified in the request.

azure_resourcegraph.Resources({
  "api-version": "",
  "query": {
    "subscriptions": [],
    "query": ""
  }
}, context)

Input

  • input object
    • api-version required string: API version.
    • query required QueryRequest

Output

Definitions

Column

  • Column object: Query result column descriptor.

ColumnDataType

  • ColumnDataType string (values: string, integer, number, boolean, object): Data type of a column in a table.

Error

  • Error info. object: Error details.
    • code required string: Error code identifying the specific error.
    • details array: Error details
    • message required string: A human readable error message.

ErrorDetails

  • Error details. object
    • code required string: Error code identifying the specific error.
    • message required string: A human readable error message.

ErrorResponse

  • Error response. object: An error response from the API.

Facet

  • Facet object: A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError.
    • expression required string: Facet expression, same as in the corresponding facet request.
    • resultType required string: Result type

FacetError

  • FacetError object: A facet whose execution resulted in an error.
    • errors required array: An array containing detected facet errors with details.
    • expression required string: Facet expression, same as in the corresponding facet request.
    • resultType required string: Result type

FacetRequest

  • FacetRequest object: A request to compute additional statistics (facets) over the query results.
    • expression required string: The column or list of columns to summarize by
    • options FacetRequestOptions

FacetRequestOptions

  • FacetRequestOptions object: The options for facet evaluation
    • $top integer: The maximum number of facet rows that should be returned.
    • filter string: Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting.
    • sortBy string: The column name or query expression to sort on. Defaults to count if not present.
    • sortOrder string (values: asc, desc): The sorting order by the selected column (count by default).

FacetResult

  • FacetResult object: Successfully executed facet containing additional statistics on the response of a query.
    • count required integer: Number of records returned in the facet response.
    • totalRecords required integer: Number of total records in the facet results.
    • expression required string: Facet expression, same as in the corresponding facet request.
    • resultType required string: Result type

Operation

  • Operation object: Resource Graph REST API operation definition.
    • display object: Display metadata associated with the operation.
      • description string: Description for the operation.
      • operation string: Type of operation: get, read, delete, etc.
      • provider string: Service provider: Microsoft Resource Graph.
      • resource string: Resource on which the operation is performed etc.
    • name string: Operation name: {provider}/{resource}/{operation}
    • origin string: The origin of operations.

OperationListResult

  • OperationListResult object: Result of the request to list Resource Graph operations. It contains a list of operations and a URL link to get the next set of results.
    • value array: List of Resource Graph operations supported by the Resource Graph resource provider.

QueryRequest

  • QueryRequest object: Describes a query to be executed.
    • facets array: An array of facet requests to be computed against the query result.
    • options QueryRequestOptions
    • query required string: The resources query.
    • subscriptions required array: Azure subscriptions against which to execute the query.
      • items string: Subscription Id.

QueryRequestOptions

  • QueryRequestOptions object: The options for query evaluation
    • $skip integer: The number of rows to skip from the beginning of the results. Overrides the next page offset when $skipToken property is present.
    • $skipToken string: Continuation token for pagination, capturing the next page size and offset, as well as the context of the query.
    • $top integer: The maximum number of rows that the query should return. Overrides the page size when $skipToken property is present.
    • resultFormat string (values: table, objectArray): Defines in which format query result returned.

QueryResponse

  • QueryResponse object: Query result.
    • $skipToken string: When present, the value can be passed to a subsequent query call (together with the same query and subscriptions used in the current request) to retrieve the next page of data.
    • count required integer: Number of records returned in the current response. In the case of paging, this is the number of records in the current page.
    • facets array: Query facets.
    • resultTruncated required string (values: true, false): Indicates whether the query results are truncated.
    • totalRecords required integer: Number of total records matching the query.

Row

  • Row array: Query result row.
    • items object: Cell value.

Table

  • Table object: Query output in tabular format.
    • columns required array: Query result column descriptors.
    • rows required array: Query result rows.