summary:Exchange basic auth credentials for session
security:
- basicAuth:[]
responses:
'204':
description:succesfully authenticated
default:
description:unsuccessful authentication
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
/signout:
post:
summary:Expire the current session
responses:
'204':
description:session successfully expired
default:
description:unsuccessful session exipry
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
/:
get:
summary:Map of all top level routes available
responses:
default:
description:All routes
content:
application/json:
schema:
$ref:"#/components/schemas/Routes"
/setup:
get:
tags:
- Setup
summary:check if database has default user, org, bucket created, returns true if not.
responses:
'200':
description:
allowed true or false
content:
application/json:
schema:
$ref:"#/components/schemas/IsOnboarding"
post:
tags:
- Setup
summary:post onboarding request, to setup initial user, org and bucket
requestBody:
description:source to create
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/OnboardingRequest"
responses:
'201':
description:Created default user, bucket, org
content:
application/json:
schema:
$ref:"#/components/schemas/OnboardingResponse"
/telegrafs:
get:
tags:
- Telegrafs
parameters:
- in:query
name:org
description:specifies the organization of the resource
required:true
schema:
type:string
responses:
'200':
description:a list of telegraf configs
content:
application/json:
schema:
$ref:"#/components/schemas/Telegrafs"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Telegrafs
summary:Create a telegraf config
parameters:
- in:query
name:org
description:specifies the organization of the resource
required:true
schema:
type:string
requestBody:
description:telegraf config to create
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/TelegrafRequest"
responses:
'201':
description:Telegraf config created
content:
application/json:
schema:
$ref:"#/components/schemas/Telegraf"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/telegrafs/{telegrafID}':
get:
tags:
- Telegrafs
summary:Retrieve a telegraf config
parameters:
- in:path
name:telegrafID
schema:
type:string
required:true
description:ID of telegraf config
responses:
'200':
description:telegraf config details
content:
application/json:
schema:
$ref:"#/components/schemas/Telegraf"
application/toml:
example:"[agent]\ninterval = \"10s\""
schema:
type:string
application/octet-stream:
example:"[agent]\ninterval = \"10s\""
schema:
type:string
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
put:
tags:
- Telegrafs
summary:Update a telegraf config
parameters:
- in:path
name:telegrafID
schema:
type:string
required:true
description:ID of telegraf config
requestBody:
description:telegraf config update to apply
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/TelegrafRequest"
responses:
'200':
description:An updated telegraf
content:
application/json:
schema:
$ref:"#/components/schemas/Telegraf"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/telegrafs/{telegrafID}/members':
get:
tags:
- Users
- Telegrafs
summary:List all users with member privileges for a telegraf config
parameters:
- in:path
name:telegrafID
schema:
type:string
required:true
description:ID of the telegraf config
responses:
'200':
description:a list of telegraf config members
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Telegrafs
summary:Add telegraf config member
parameters:
- in:path
name:telegrafID
schema:
type:string
required:true
description:ID of the telegraf config
requestBody:
description:user to add as member
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:member added to telegraf
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/telegrafs/{telegrafID}/members/{userID}':
delete:
tags:
- Users
- Telegrafs
summary:removes a member from a telegraf config
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of member to remove
- in:path
name:telegrafID
schema:
type:string
required:true
description:ID of the telegraf
responses:
'204':
description:member removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/telegrafs/{telegrafID}/owners':
get:
tags:
- Users
- Telegrafs
summary:List all owners of a telegraf config
parameters:
- in:path
name:telegrafID
schema:
type:string
required:true
description:ID of the telegraf config
responses:
'200':
description:a list of telegraf config owners
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Telegrafs
summary:Add telegraf config owner
parameters:
- in:path
name:telegrafID
schema:
type:string
required:true
description:ID of the telegraf config
requestBody:
description:user to add as owner
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:telegraf config owner added
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/telegrafs/{telegrafID}/owners/{userID}':
delete:
tags:
- Users
- Telegrafs
summary:removes an owner from a telegraf config
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of owner to remove
- in:path
name:telegrafID
schema:
type:string
required:true
description:ID of the telegraf config
responses:
'204':
description:owner removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
/macros:
get:
tags:
- Macros
summary:keywords that specify how input data gets mapped to a replacement output sequence
parameters:
- in:header
name:Authorization
description:the authorization header should be in the format of `Token <key>`
required:true
schema:
type:string
- in:query
name:org
required:true
schema:
type:string
description:filter macros to a specific organization name
responses:
'200':
description:all macros for an organization
content:
application/json:
schema:
$ref:"#/components/schemas/Macros"
default:
description:internal server error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
summary:keywords that specify how input data gets mapped to a replacement output sequence
tags:
- Macros
parameters:
- in:header
name:Authorization
description:the authorization header should be in the format of `Token <key>`
required:true
schema:
type:string
- in:query
name:org
required:true
schema:
type:string
description:filter macros to a specific organization name
responses:
'201':
description:macro created
content:
application/json:
schema:
$ref:"#/components/schemas/Macros"
default:
description:internal server error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/macros/{macroID}':
delete:
tags:
- Macros
summary:keywords that specify how input data gets mapped to a replacement output sequence
parameters:
- in:header
name:Authorization
description:the authorization header should be in the format of `Token <key>`
required:true
schema:
type:string
- in:path
name:macroID
required:true
schema:
type:string
description:id of the macro
- in:query
name:org
required:true
schema:
type:string
description:filter macros to a specific organization name
responses:
'204':
description:macro deleted
default:
description:internal server error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
patch:
summary:keywords that specify how input data gets mapped to a replacement output sequence
tags:
- Macros
parameters:
- in:header
name:Authorization
description:the authorization header should be in the format of `Token <key>`
required:true
schema:
type:string
- in:path
name:macroID
required:true
schema:
type:string
description:id of the macro
- in:query
name:org
required:true
schema:
type:string
description:filter macros to a specific organization name
responses:
'200':
description:macro updated
content:
application/json:
schema:
$ref:"#/components/schemas/Macros"
default:
description:internal server error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
/write:
post:
tags:
- Write
summary:write time-series data into influxdb
parameters:
- in:header
name:Content-Encoding
description:when present, its value indicates to the database that compression is applied to the line-protocol body.
schema:
type:string
description:specifies that the line protocol in the body is encoded with gzip or not encoded with identity.
default:identity
enum:
- gzip
- identity
- in:header
name:Content-Type
description:Content-Type is used to indicate the format of the data sent to the server.
schema:
type:string
description:text/plain specifies the text line protocol; charset is assumed to be utf-8.
default:text/plain; charset=utf-8
enum:
- text/plain
- text/plain; charset=utf-8
- application/vnd.influx.arrow
- in:header
name:Content-Length
description:Content-Length is an entity header is indicating the size of the entity-body, in bytes, sent to the database. If the length is greater than the database max body configuration option, a 413 response is sent.
schema:
type:integer
description:The length in decimal number of octets.
- in:header
name:Accept
description:specifies the return content format.
schema:
type:string
description:return format of any errors
default:application/json
enum:
- application/json
- in:query
name:org
description:specifies the destination organization for writes
required:true
schema:
type:string
description:all points within batch are written to this organization.
- in:query
name:bucket
description:specifies the destination bucket for writes
required:true
schema:
type:string
description:all points within batch are written to this bucket.
- in:query
name:precision
description:specifies the precision for the unix timestamps within the body line-protocol
schema:
type:string
default:ns
description:specifies the unit of time
enum:
- ns
- us
- u
- ms
- s
responses:
'204':
description:write data is correctly formatted and accepted for writing to the bucket.
'400':
description:line protocol poorly formed and no points were written. Response can be used to determine the first malformed line in the body line-protocol. All data in body was rejected and not written.
content:
application/json:
schema:
$ref:"#/components/schemas/LineProtocolError"
'401':
description:token does not have sufficient permissions to write to this organization and bucket or the organization and bucket do not exist.
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'403':
description:notoken was sent and they are required.
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'413':
description:write has been rejected because the payload is too large. Error message returns max size supported. All data in body was rejected and not written.
description:reference code unique to the error type
schema:
type:integer
content:
text/csv:
schema:
type:string
example:>
error,reference
Failed to parse query,897
application/vnd.influx.arrow:
schema:
type:string
format:binary
default:
description:internal server error
headers:
X-Influx-Error:
description:error string describing the problem
schema:
type:string
X-Influx-Reference:
description:reference code unique to the error type
schema:
type:integer
content:
text/csv:
schema:
type:string
example:>
error,reference
Failed to parse query,897
application/vnd.influx.arrow:
schema:
type:string
format:binary
/buckets:
get:
tags:
- Buckets
summary:List all buckets
parameters:
- in:query
name:org
description:specifies the organization of the resource
required:true
schema:
type:string
responses:
'200':
description:a list of buckets
content:
application/json:
schema:
$ref:"#/components/schemas/Buckets"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Buckets
summary:Create a bucket
parameters:
- in:query
name:org
description:specifies the organization of the resource
required:true
schema:
type:string
requestBody:
description:bucket to create
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/Bucket"
responses:
'201':
description:Bucket created
content:
application/json:
schema:
$ref:"#/components/schemas/Bucket"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/buckets/{bucketID}':
get:
tags:
- Buckets
summary:Retrieve a bucket
parameters:
- in:path
name:bucketID
schema:
type:string
required:true
description:ID of bucket to get
responses:
'200':
description:bucket details
content:
application/json:
schema:
$ref:"#/components/schemas/Bucket"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
patch:
tags:
- Buckets
summary:Update a bucket
requestBody:
description:bucket update to apply
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/Bucket"
parameters:
- in:path
name:bucketID
schema:
type:string
required:true
description:ID of bucket to update
responses:
'200':
description:An updated bucket
content:
application/json:
schema:
$ref:"#/components/schemas/Bucket"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/buckets/{bucketID}/members':
get:
tags:
- Users
- Buckets
summary:List all users with member privileges for a bucket
parameters:
- in:path
name:bucketID
schema:
type:string
required:true
description:ID of the bucket
responses:
'200':
description:a list of bucket members
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Buckets
summary:Add bucket member
parameters:
- in:path
name:bucketID
schema:
type:string
required:true
description:ID of the bucket
requestBody:
description:user to add as member
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:member added to bucket
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/buckets/{bucketID}/members/{userID}':
delete:
tags:
- Users
- Buckets
summary:removes a member from an bucket
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of member to remove
- in:path
name:bucketID
schema:
type:string
required:true
description:ID of the bucket
responses:
'204':
description:member removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/buckets/{bucketID}/owners':
get:
tags:
- Users
- Buckets
summary:List all owners of a bucket
parameters:
- in:path
name:bucketID
schema:
type:string
required:true
description:ID of the bucket
responses:
'200':
description:a list of bucket owners
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Buckets
summary:Add bucket owner
parameters:
- in:path
name:bucketID
schema:
type:string
required:true
description:ID of the bucket
requestBody:
description:user to add as owner
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:bucket owner added
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/buckets/{bucketID}/owners/{userID}':
delete:
tags:
- Users
- Buckets
summary:removes an owner from a bucket
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of owner to remove
- in:path
name:bucketID
schema:
type:string
required:true
description:ID of the bucket
responses:
'204':
description:owner removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
/orgs:
get:
tags:
- Organizations
summary:List all organizations
responses:
'200':
description:A list of organizations
content:
application/json:
schema:
$ref:"#/components/schemas/Organizations"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Organizations
summary:Create an organization
requestBody:
description:organization to create
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/Organization"
responses:
'201':
description:organization created
content:
application/json:
schema:
$ref:"#/components/schemas/Organization"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/orgs/{orgID}':
get:
tags:
- Organizations
summary:Retrieve an organization
parameters:
- in:path
name:orgID
schema:
type:string
required:true
description:ID of organization to get
responses:
'200':
description:organization details
content:
application/json:
schema:
$ref:"#/components/schemas/Organization"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
patch:
tags:
- Organizations
summary:Update an organization
requestBody:
description:organization update to apply
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/Organization"
parameters:
- in:path
name:orgID
schema:
type:string
required:true
description:ID of organization to get
responses:
'200':
description:organization updated
content:
application/json:
schema:
$ref:"#/components/schemas/Organization"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/orgs/{orgID}/members':
get:
tags:
- Users
- Organizations
summary:List all members of an organization
parameters:
- in:path
name:orgID
schema:
type:string
required:true
description:ID of the organization
responses:
'200':
description:a list of organization members
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Organizations
summary:Add organization member
parameters:
- in:path
name:orgID
schema:
type:string
required:true
description:ID of the organization
requestBody:
description:user to add as member
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:added to organization created
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/orgs/{orgID}/members/{userID}':
delete:
tags:
- Users
- Organizations
summary:removes a member from an organization
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of member to remove
- in:path
name:orgID
schema:
type:string
required:true
description:ID of the organization
responses:
'204':
description:member removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/orgs/{orgID}/owners':
get:
tags:
- Users
- Organizations
summary:List all owners of an organization
parameters:
- in:path
name:orgID
schema:
type:string
required:true
description:ID of the organization
responses:
'200':
description:a list of organization owners
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Organizations
summary:Add organization owner
parameters:
- in:path
name:orgID
schema:
type:string
required:true
description:ID of the organization
requestBody:
description:user to add as owner
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:organization owner added
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/orgs/{orgID}/owners/{userID}':
delete:
tags:
- Users
- Organizations
summary:removes an owner from an organization
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of owner to remove
- in:path
name:orgID
schema:
type:string
required:true
description:ID of the organization
responses:
'204':
description:owner removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
/tasks:
get:
tags:
- Tasks
summary:List tasks.
description:Lists tasks, limit 100
parameters:
- in:query
name:after
schema:
type:string
description:returns tasks after specified ID
- in:query
name:user
schema:
type:string
description:filter tasks to a specific user name
- in:query
name:org
schema:
type:string
description:filter tasks to a specific organization name
responses:
'200':
description:A list of tasks
content:
application/json:
schema:
type:object
properties:
runs:
type:array
items:
$ref:"#/components/schemas/Tasks"
links:
$ref:"#/components/schemas/Links"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Tasks
summary:Create a new task
requestBody:
description:task to create
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/TaskCreateRequest"
responses:
'201':
description:Task created
content:
application/json:
schema:
$ref:"#/components/schemas/Task"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/{taskID}':
get:
tags:
- Tasks
summary:Retrieve an task
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of task to get
responses:
'200':
description:task details
content:
application/json:
schema:
$ref:"#/components/schemas/Task"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
patch:
tags:
- Tasks
summary:Update a task
description:Update a task. This will cancel all queued runs.
requestBody:
description:task update to apply
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/Task"
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of task to get
responses:
'200':
description:task updated
content:
application/json:
schema:
$ref:"#/components/schemas/Task"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
delete:
tags:
- Tasks
summary:Delete a task
description:Deletes a task and all associated records
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of task to delete
responses:
'204':
description:task deleted
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/{taskID}/runs':
get:
tags:
- Tasks
summary:Retrieve list of run records for a task
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of task to get runs for
- in:query
name:after
schema:
type:string
description:returns runs after specified ID
- in:query
name:limit
schema:
type:integer
minimum:1
maximum:100
default:20
description:the number of runs to return
- in:query
name:afterTime
schema:
type:string
format:date-time
description:filter runs to those scheduled after this time, RFC3339
- in:query
name:beforeTime
schema:
type:string
format:date-time
description:filter runs to those scheduled before this time, RFC3339
responses:
'200':
description:a list of task runs
content:
application/json:
schema:
type:object
properties:
runs:
type:array
items:
$ref:"#/components/schemas/Run"
links:
$ref:"#/components/schemas/Links"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/{taskID}/runs/{runID}':
get:
tags:
- Tasks
summary:Retrieve a single run record for a task
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:task ID
- in:path
name:runID
schema:
type:string
required:true
description:run ID
responses:
'200':
description:The run record
content:
application/json:
schema:
$ref:"#/components/schemas/Run"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/{taskID}/runs/{runID}/retry':
post:
tags:
- Tasks
summary:Retry a task run
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:task ID
- in:path
name:runID
schema:
type:string
required:true
description:run ID
responses:
'204':
description:retry has been queued
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/{taskID}/logs':
get:
tags:
- Tasks
summary:Retrieve all logs for a task
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of task to get logs for
responses:
'200':
description:all logs for a task
content:
application/json:
schema:
$ref:"#/components/schemas/Logs"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/{taskID}/runs/{runID}/logs':
get:
tags:
- Tasks
summary:Retrieve all logs for a run
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of task to get logs for.
- in:path
name:runID
schema:
type:string
required:true
description:ID of run to get logs for.
responses:
'200':
description:all logs for a run
content:
application/json:
schema:
$ref:"#/components/schemas/Logs"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
/me:
get:
tags:
- Users
summary:Returns currently authenticated user
responses:
'200':
description:currently authenticated user
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
/me/password:
put:
tags:
- Users
summary:Update password
security:
- basicAuth:[]
requestBody:
description:new password
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/PasswordResetBody"
responses:
'204':
description:password succesfully updated
default:
description:unsuccessful authentication
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/{taskID}/members':
get:
tags:
- Users
- Tasks
summary:List all task members
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of the task
responses:
'200':
description:a list of users who have member privileges for a task
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Tasks
summary:Add task member
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of the task
requestBody:
description:user to add as member
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:added to task members
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/{taskID}/members/{userID}':
delete:
tags:
- Users
- Tasks
summary:removes a member from an task
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of member to remove
- in:path
name:taskID
schema:
type:string
required:true
description:ID of the task
responses:
'204':
description:member removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/{taskID}/owners':
get:
tags:
- Users
- Tasks
summary:List all task owners
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of the task
responses:
'200':
description:a list of users who have owner privileges for a task
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Tasks
summary:Add task owner
parameters:
- in:path
name:taskID
schema:
type:string
required:true
description:ID of the task
requestBody:
description:user to add as owner
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:added to task owners
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/tasks/taskID}/owners/{userID}':
delete:
tags:
- Users
- Tasks
summary:removes an owner from an task
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of owner to remove
- in:path
name:taskID
schema:
type:string
required:true
description:ID of the task
responses:
'204':
description:owner removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
/users:
get:
tags:
- Users
summary:List all users
responses:
'200':
description:a list of users
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
summary:Create a user
requestBody:
description:user to create
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:user created
content:
application/json:
schema:
$ref:"#/components/schemas/UserResponse"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/users/{userID}':
get:
tags:
- Users
summary:Retrieve a user
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of user to get
responses:
'200':
description:user details
content:
application/json:
schema:
$ref:"#/components/schemas/UserResponse"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
patch:
tags:
- Users
summary:Update a user
requestBody:
description:user update to apply
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of user to update
responses:
'200':
description:user updated
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
delete:
tags:
- Users
summary:deletes a user
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of user to delete
responses:
'204':
description:user deleted
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/users/{userID}/password':
put:
tags:
- Users
summary:Update password
security:
- basicAuth:[]
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of the user
requestBody:
description:new password
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/PasswordResetBody"
responses:
'200':
description:user details
content:
application/json:
schema:
$ref:"#/components/schemas/UserResponse"
default:
description:unsuccessful authentication
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/views/{viewID}/members':
get:
tags:
- Users
- Views
summary:List all view members
parameters:
- in:path
name:viewID
schema:
type:string
required:true
description:ID of the view
responses:
'200':
description:a list of users who have member privileges for a view
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Views
summary:Add view member
parameters:
- in:path
name:viewID
schema:
type:string
required:true
description:ID of the view
requestBody:
description:user to add as member
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:added to view members
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/views/{viewID}/members/{userID}':
delete:
tags:
- Users
- Views
summary:removes a member from an view
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of member to remove
- in:path
name:viewID
schema:
type:string
required:true
description:ID of the view
responses:
'204':
description:member removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/views/{viewID}/owners':
get:
tags:
- Users
- Views
summary:List all view owners
parameters:
- in:path
name:viewID
schema:
type:string
required:true
description:ID of the view
responses:
'200':
description:a list of users who have owner privileges for a view
content:
application/json:
schema:
$ref:"#/components/schemas/Users"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
post:
tags:
- Users
- Views
summary:Add view owner
parameters:
- in:path
name:viewID
schema:
type:string
required:true
description:ID of the view
requestBody:
description:user to add as owner
required:true
content:
application/json:
schema:
$ref:"#/components/schemas/User"
responses:
'201':
description:added to view owners
content:
application/json:
schema:
$ref:"#/components/schemas/User"
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
'/views/{viewID}/owners/{userID}':
delete:
tags:
- Users
- Views
summary:removes an owner from a view
parameters:
- in:path
name:userID
schema:
type:string
required:true
description:ID of owner to remove
- in:path
name:viewID
schema:
type:string
required:true
description:ID of the view
responses:
'204':
description:owner removed
default:
description:unexpected error
content:
application/json:
schema:
$ref:"#/components/schemas/Error"
components:
schemas:
LanguageRequest:
description:flux query to be analyzed.
type:object
required:
- query
properties:
query:
description:flux query script to be analyzed
type:string
PlanRequest:
description:flux query or specification to be planned. The spec and query fields are mutually exclusive.
type:object
properties:
query:
description:flux query script to be analyzed
type:string
spec:
$ref:"#/components/schemas/QuerySpecification"
PlanResponse:
description:flux query or specification to be planned.
type:object
required:
- query
properties:
spec:
$ref:"#/components/schemas/QuerySpecification"
readOnly:true
logical:
description:logical plan of the query.
readOnly:true
type: object #TODO(goller):document the logical plan format
physical:
description:physical plan of the query.
readOnly:true
type: object #TODO(goller):document the physical plan format
Query:
description:query influx with specified return formatting. The spec and query fields are mutually exclusive.
type:object
required:
- query
properties:
query:
description:query script to execute.
type:string
spec:
$ref:"#/components/schemas/QuerySpecification"
type:
description:type of query
type:string
default:flux
enum:
- flux
- influxql
db:
description:required for influxql type queries
type:string
rp:
description:required for influxql type queries
type:string
cluster:
description:required for influxql type queries
type:string
dialect:
$ref:"#/components/schemas/Dialect"
QuerySpecification:
description:consists of a set of operations and a set of edges between those operations to instruct the query engine to operate.
type:object
properties:
operations:
type:array
items:
type:object
properties:
kind:
description:name of the operation to perform
type:string
id:
description:identifier for this operation; it must be unique per query specification; used in edges
type:string
spec:
description:set of properties that specify details of the operation. These vary by the kind of operation.
type:object
edges:
description:list of declaring a parent child id relationship between operations
type:array
items:
type:object
properties:
parent:
description:id of parent node of child within graph of opertions
type:string
child:
description:id of child node of parent within the graph of operations
type:string
resources:
description:optional set of contraints on the resources the query can consume
type:object
properties:
priority:
description:priority of the query
oneOf:
- type:string
description:lower value will move to the front of the priority queue
pattern:'^\d+$'
- type:string
description:constants to represent the extreme high and low priorities; high is effectively 0.
enum:
- high
- low
concurrency_quota:
description:number of concurrent workers allowed to process this query; 0 indicates the planner can pick the optimal concurrency.
type:integer
default:0
memory_bytes_quota:
description:number of bytes of RAM this query may consume; 0 means unlimited.
type:integer
default:0
dialect:
$ref:"#/components/schemas/Dialect"
Dialect:
description:dialect are options to change the default CSV output format; https://www.w3.org/TR/2015/REC-tabular-metadata-20151217/#dialect-descriptions
type:object
properties:
header:
description:if true, the results will contain a header row
type:boolean
default:true
delimiter:
description:separator between cells; the default is ,