Telegrafs
/api/v2/telegrafsList all Telegraf configurations
Parameters
Query parameters
orgID
stringHeader parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/api/v2/telegrafs" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
configurations
object[]code
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/telegrafsCreate a Telegraf configuration
Parameters
Header parameters
Zap-Trace-Span
stringRequest body required
application/jsonconfig
stringdescription
stringmetadata
objectbuckets
string[]name
stringorgID
stringplugins
object[]alias
stringconfig
stringdescription
stringname
stringtype
stringcurl --request POST \
"http://localhost:8086/api/v2/telegrafs" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"config": "CONFIG",
"description": "DESCRIPTION",
"metadata": {},
"name": "NAME",
"orgID": "ORGID",
"plugins": []
}'Responses
code
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/telegrafs/{telegrafID}Retrieve a Telegraf configuration
Parameters
Path parameters
telegrafID
required
stringHeader parameters
Zap-Trace-Span
stringAccept
stringapplication/toml
, application/json
, application/octet-streamapplication/tomlcurl --request GET \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
code
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/telegrafs/{telegrafID}Update a Telegraf configuration
Parameters
Path parameters
telegrafID
required
stringHeader parameters
Zap-Trace-Span
stringRequest body required
application/jsonconfig
stringdescription
stringmetadata
objectbuckets
string[]name
stringorgID
stringplugins
object[]alias
stringconfig
stringdescription
stringname
stringtype
stringcurl --request PUT \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"config": "CONFIG",
"description": "DESCRIPTION",
"metadata": {},
"name": "NAME",
"orgID": "ORGID",
"plugins": []
}'Responses
code
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/telegrafs/{telegrafID}Delete a Telegraf configuration
Parameters
Path parameters
telegrafID
required
stringHeader parameters
Zap-Trace-Span
stringcurl --request DELETE \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
code
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/telegrafs/{telegrafID}/labelsList all labels for a Telegraf config
Parameters
Path parameters
telegrafID
required
stringHeader parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}/labels" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
labels
stringlinks
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/telegrafs/{telegrafID}/labelsAdd a label to a Telegraf config
Parameters
Path parameters
telegrafID
required
stringHeader parameters
Zap-Trace-Span
stringRequest body required
application/jsonlabelID
required
stringcurl --request POST \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}/labels" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"labelID": "LABELID"
}'Responses
label
stringlinks
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/telegrafs/{telegrafID}/labels/{labelID}Delete a label from a Telegraf config
Parameters
Path parameters
telegrafID
required
stringlabelID
required
stringHeader parameters
Zap-Trace-Span
stringcurl --request DELETE \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}/labels/{labelID}" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
code
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
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/telegrafs/{telegrafID}/membersList all users with member privileges for a Telegraf config
Parameters
Path parameters
telegrafID
required
stringHeader parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}/members" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
links
objectself
string <uri>users
object[]code
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/telegrafs/{telegrafID}/membersAdd a member to a Telegraf config
Parameters
Path parameters
telegrafID
required
stringHeader parameters
Zap-Trace-Span
stringRequest body required
application/jsonid
required
stringname
stringcurl --request POST \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}/members" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"id": "ID",
"name": "NAME"
}'Responses
code
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/telegrafs/{telegrafID}/members/{userID}Remove a member from a Telegraf config
Parameters
Path parameters
userID
required
stringtelegrafID
required
stringHeader parameters
Zap-Trace-Span
stringcurl --request DELETE \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}/members/{userID}" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
code
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/telegrafs/{telegrafID}/ownersList all owners of a Telegraf configuration
Parameters
Path parameters
telegrafID
required
stringHeader parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}/owners" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
links
objectself
string <uri>users
object[]code
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/telegrafs/{telegrafID}/ownersAdd an owner to a Telegraf configuration
Parameters
Path parameters
telegrafID
required
stringHeader parameters
Zap-Trace-Span
stringRequest body required
application/jsonid
required
stringname
stringcurl --request POST \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}/owners" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"id": "ID",
"name": "NAME"
}'Responses
code
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/telegrafs/{telegrafID}/owners/{userID}Remove an owner from a Telegraf config
Parameters
Path parameters
userID
required
stringtelegrafID
required
stringHeader parameters
Zap-Trace-Span
stringcurl --request DELETE \
"http://localhost:8086/api/v2/telegrafs/{telegrafID}/owners/{userID}" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
code
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 and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.