Setup
/api/v2/setupCheck if database has default user, org, bucket
true if no default user, organization, or bucket has been created.Parameters
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/api/v2/setup" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
allowed
booleantrue, the InfluxDB instance hasn’t had initial setup;
false otherwise./api/v2/setupSet up initial user, org and bucket
Parameters
Header parameters
Zap-Trace-Span
stringRequest body required
application/jsonbucket
required
stringorg
required
stringpassword
stringretentionPeriodHrs
integerretentionPeriodSecondsretentionPeriodSeconds
integer <int64>token
stringusername
required
stringcurl --request POST \
"http://localhost:8086/api/v2/setup" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"bucket": "BUCKET",
"org": "ORG",
"password": "PASSWORD",
"retentionPeriodHrs": 0,
"retentionPeriodSeconds": 0,
"token": "TOKEN",
"username": "USERNAME"
}'Responses
auth
objectcreatedAt
string <date-time>description
stringid
stringlinks
object{"self":"/api/v2/authorizations/1","user":"/api/v2/users/12"}self
string <uri>user
string <uri>org
stringorgID
required
stringpermissions
required
object[]action
required
stringread
, writeresource
required
objectstatus
stringinactive, InfluxDB rejects requests that use the token.active
, inactiveactivetoken
stringinflux
CLI commands–after receiving the request, InfluxDB checks that the
token is valid and that the permissions allow the requested action(s).updatedAt
string <date-time>user
stringuserID
stringbucket
stringorg
stringuser
stringcode
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
stringWas this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB OSS v2 and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.