influxdb-client-js

InfluxDB 2.0 JavaScript client

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

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

PostQueryRequest interface

Signature:

interface PostQueryRequest 

Properties

Property Modifiers Type Description
body   Query Flux query or specification to execute
org?   string <p>(Optional) The name or ID of the organization executing the query.</p><p>#### InfluxDB Cloud</p><p>- Doesn’t use org or orgID. - Queries the bucket in the organization associated with the authorization (API token).</p><p>#### InfluxDB OSS</p><p>- Requires either org or orgID.</p>
orgID?   string <p>(Optional) The ID of the organization executing the query.</p><p>#### InfluxDB Cloud</p><p>- Doesn’t use org or orgID. - Queries the bucket in the organization associated with the authorization (API token).</p><p>#### InfluxDB OSS</p><p>- Requires either org or orgID.</p>