Restore
/api/v2/restore/bucket/{bucketID}Overwrite storage metadata for a bucket with shard info from a backup.
Parameters
Path parameters
bucketID
required
stringHeader parameters
Zap-Trace-Span
stringContent-Type
stringapplication/octet-streamapplication/octet-streamRequest body required
application/jsoncurl --request POST \
"http://localhost:8086/api/v2/restore/bucket/{bucketID}" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: text/plain" \
--data-raw 'measurement,tag=value field=1.0'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/restore/bucketMetadataCreate a new bucket pre-seeded with shard info from a backup.
Parameters
Header parameters
Zap-Trace-Span
stringRequest body required
application/jsonbucketID
required
stringbucketName
required
stringdefaultRetentionPolicy
required
stringdescription
stringorganizationID
required
stringorganizationName
required
stringretentionPolicies
required
stringcurl --request POST \
"http://localhost:8086/api/v2/restore/bucketMetadata" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"bucketID": "BUCKETID",
"bucketName": "BUCKETNAME",
"defaultRetentionPolicy": "DEFAULTRETENTIONPOLICY",
"description": "DESCRIPTION",
"organizationID": "ORGANIZATIONID",
"organizationName": "ORGANIZATIONNAME",
"retentionPolicies": []
}'Responses
id
required
stringname
required
stringshardMappings
required
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/restore/kvOverwrite the embedded KV store on the server with a backed-up snapshot.
Parameters
Header parameters
Zap-Trace-Span
stringContent-Encoding
stringContent-Encoding: gzip as a request header.gzip
, identityidentityContent-Type
stringapplication/octet-streamapplication/octet-streamRequest body required
application/jsoncurl --request POST \
"http://localhost:8086/api/v2/restore/kv" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: text/plain" \
--data-raw 'measurement,tag=value field=1.0'Responses
token
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/restore/shards/{shardID}Restore a TSM snapshot into a shard.
Parameters
Path parameters
shardID
required
stringHeader parameters
Zap-Trace-Span
stringContent-Encoding
stringContent-Encoding: gzip as a request header.gzip
, identityidentityContent-Type
stringapplication/octet-streamapplication/octet-streamRequest body required
application/jsoncurl --request POST \
"http://localhost:8086/api/v2/restore/shards/{shardID}" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: text/plain" \
--data-raw 'measurement,tag=value field=1.0'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/restore/sqlOverwrite the embedded SQL store on the server with a backed-up snapshot.
Parameters
Header parameters
Zap-Trace-Span
stringContent-Encoding
stringContent-Encoding: gzip as a request header.gzip
, identityidentityContent-Type
stringapplication/octet-streamapplication/octet-streamRequest body required
application/jsoncurl --request POST \
"http://localhost:8086/api/v2/restore/sql" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: text/plain" \
--data-raw 'measurement,tag=value field=1.0'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.