3.0.0 • Published 5 years ago
@datafire/azure_resourcegraph v3.0.0
@datafire/azure_resourcegraph
Client library for Azure Resource Graph
Installation and Usage
npm install --save @datafire/azure_resourcegraphlet 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.
- api-version required
Output
- output OperationListResult
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
- api-version required
Output
- output QueryResponse
Definitions
Column
- Column
object: Query result column descriptor.- name required
string: Column name. - type required ColumnDataType
- name required
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- items ErrorDetails
- message required
string: A human readable error message.
- code required
ErrorDetails
- Error details.
object- code required
string: Error code identifying the specific error. - message required
string: A human readable error message.
- code required
ErrorResponse
- Error response.
object: An error response from the API.- error required Error
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
- expression required
FacetError
- FacetError
object: A facet whose execution resulted in an error.- errors required
array: An array containing detected facet errors with details.- items ErrorDetails
- expression required
string: Facet expression, same as in the corresponding facet request. - resultType required
string: Result type
- errors required
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
- expression required
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).
- $top
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
- count required
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.
- description
- name
string: Operation name: {provider}/{resource}/{operation} - origin
string: The origin of operations.
- display
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.- items Operation
- value
QueryRequest
- QueryRequest
object: Describes a query to be executed.- facets
array: An array of facet requests to be computed against the query result.- items FacetRequest
- options QueryRequestOptions
- query required
string: The resources query. - subscriptions required
array: Azure subscriptions against which to execute the query.- items
string: Subscription Id.
- items
- facets
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$skipTokenproperty 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$skipTokenproperty is present. - resultFormat
string(values: table, objectArray): Defines in which format query result returned.
- $skip
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.- items Facet
- resultTruncated required
string(values: true, false): Indicates whether the query results are truncated. - totalRecords required
integer: Number of total records matching the query.
- $skipToken
Row
- Row
array: Query result row.- items
object: Cell value.
- items
Table
3.0.0
5 years ago