influxdb-client-js

InfluxDB 2.0 JavaScript client

View the Project on GitHub influxdata/influxdb-client-js

Home > @influxdata/influxdb-client-apis > Resource

Resource interface

Signature:

interface Resource 

Properties

Property Modifiers Type Description
id?   string (Optional) The ID of a specific resource. In a permission, applies the permission to only the resource with this ID.
name?   string (Optional) Optional: A name for the resource. Not all resource types have a name field.
org?   string (Optional) Optional: The name of the organization with orgID.
orgID?   string (Optional) The ID of the organization that owns the resource. In a permission, applies the permission to all resources of type owned by this organization.
type   ‘authorizations’ | ‘buckets’ | ‘dashboards’ | ‘orgs’ | ‘sources’ | ‘tasks’ | ‘telegrafs’ | ‘users’ | ‘variables’ | ‘scrapers’ | ‘secrets’ | ‘labels’ | ‘views’ | ‘documents’ | ‘notificationRules’ | ‘notificationEndpoints’ | ‘checks’ | ‘dbrp’ | ‘notebooks’ | ‘annotations’ | ‘remotes’ | ‘replications’ | ‘instance’ | ‘flows’ | ‘functions’ The type of resource. In a permission, applies the permission to all resources of this type.