Setup
/api/v2/setupRetrieve setup status
true if no default user, organization, or bucket have been created.Parameters
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"https://us-east-1-1.aws.cloud2.influxdata.com/api/v2/setup" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
allowed
booleantrue, the InfluxDB instance hasn’t had initial setup;
false otherwise./api/v2/setupCreate an initial user, organization, and bucket
Parameters
Header parameters
Zap-Trace-Span
stringRequest body required
application/jsonbucket
required
stringlimit
objectbucket
required
objectmaxBuckets
required
integermaxRetentionDuration
required
integercheck
required
objectmaxChecks
required
integerdashboard
required
objectmaxDashboards
required
integerfeatures
objectallowDelete
booleanioxQuery
objectparquetFiles
required
integerpartitions
required
integernotificationEndpoint
required
objectblockedNotificationEndpoints
string"http,pagerduty"notificationRule
required
objectblockedNotificationRules
string"http,pagerduty"maxNotifications
required
integerorgID
stringrate
required
objectcardinality
required
integerconcurrentDeleteRequests
integerconcurrentReadRequests
required
integerconcurrentWriteRequests
required
integerdeleteRequestsPerSecond
integerqueryTime
required
integerreadKBs
required
integerwriteKBs
required
integerstack
objectenabled
required
booleantask
required
objectmaxTasks
required
integertimeout
objectqueryUnconditionalTimeoutSeconds
required
integerqueryidleWriteTimeoutSeconds
required
integerorg
required
stringpassword
stringretentionPeriodHrs
integerretentionPeriodSeconds
integerusername
required
stringcurl --request POST \
"https://us-east-1-1.aws.cloud2.influxdata.com/api/v2/setup" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"bucket": "BUCKET",
"limit": {
"bucket": {
"maxBuckets": 0,
"maxRetentionDuration": 0
},
"check": {
"maxChecks": 0
},
"dashboard": {
"maxDashboards": 0
},
"features": {
"allowDelete": false
},
"ioxQuery": {
"parquetFiles": 0,
"partitions": 0
},
"notificationEndpoint": {
"blockedNotificationEndpoints": "http,pagerduty"
},
"notificationRule": {
"blockedNotificationRules": "http,pagerduty",
"maxNotifications": 0
},
"orgID": "ORGID",
"rate": {
"cardinality": 0,
"concurrentDeleteRequests": 0,
"concurrentReadRequests": 0,
"concurrentWriteRequests": 0,
"deleteRequestsPerSecond": 0,
"queryTime": 0,
"readKBs": 0,
"writeKBs": 0
},
"stack": {
"enabled": false
},
"task": {
"maxTasks": 0
},
"timeout": {
"queryUnconditionalTimeoutSeconds": 0,
"queryidleWriteTimeoutSeconds": 0
}
},
"org": "ORG",
"password": "PASSWORD",
"retentionPeriodHrs": 0,
"retentionPeriodSeconds": 0,
"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
string/api/v2/setup/userCreate a new user, organization, and bucket
Request body required
application/jsonbucket
required
stringlimit
objectbucket
required
objectmaxBuckets
required
integermaxRetentionDuration
required
integercheck
required
objectmaxChecks
required
integerdashboard
required
objectmaxDashboards
required
integerfeatures
objectallowDelete
booleanioxQuery
objectparquetFiles
required
integerpartitions
required
integernotificationEndpoint
required
objectblockedNotificationEndpoints
string"http,pagerduty"notificationRule
required
objectblockedNotificationRules
string"http,pagerduty"maxNotifications
required
integerorgID
stringrate
required
objectcardinality
required
integerconcurrentDeleteRequests
integerconcurrentReadRequests
required
integerconcurrentWriteRequests
required
integerdeleteRequestsPerSecond
integerqueryTime
required
integerreadKBs
required
integerwriteKBs
required
integerstack
objectenabled
required
booleantask
required
objectmaxTasks
required
integertimeout
objectqueryUnconditionalTimeoutSeconds
required
integerqueryidleWriteTimeoutSeconds
required
integerorg
required
stringpassword
stringretentionPeriodHrs
integerretentionPeriodSeconds
integerusername
required
stringcurl --request POST \
"https://us-east-1-1.aws.cloud2.influxdata.com/api/v2/setup/user" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"bucket": "BUCKET",
"limit": {
"bucket": {
"maxBuckets": 0,
"maxRetentionDuration": 0
},
"check": {
"maxChecks": 0
},
"dashboard": {
"maxDashboards": 0
},
"features": {
"allowDelete": false
},
"ioxQuery": {
"parquetFiles": 0,
"partitions": 0
},
"notificationEndpoint": {
"blockedNotificationEndpoints": "http,pagerduty"
},
"notificationRule": {
"blockedNotificationRules": "http,pagerduty",
"maxNotifications": 0
},
"orgID": "ORGID",
"rate": {
"cardinality": 0,
"concurrentDeleteRequests": 0,
"concurrentReadRequests": 0,
"concurrentWriteRequests": 0,
"deleteRequestsPerSecond": 0,
"queryTime": 0,
"readKBs": 0,
"writeKBs": 0
},
"stack": {
"enabled": false
},
"task": {
"maxTasks": 0
},
"timeout": {
"queryUnconditionalTimeoutSeconds": 0,
"queryidleWriteTimeoutSeconds": 0
}
},
"org": "ORG",
"password": "PASSWORD",
"retentionPeriodHrs": 0,
"retentionPeriodSeconds": 0,
"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 Cloud (TSM) and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.