Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

/api/v1/bookie/list_bookie_info

Get

Get current bookie disk usage.

Response

Code

Description

200successful operation.
403

Don't have permission

/api/v1/bookie/last_log_mark

GET

Get the last log marker.

Response

Code

Description

200successful operation.
403

Don't have permission

/api/v1/bookie/list_disk_files/?file_type=<type>

GET

Get all the files on disk of current bookie.

Parameters

NameTypeRequiredDescription
typeStringNo

  file type: journal/entrylog/index.

Response

Code

Description

200successful operation.
403

Don't have permission

...

/api/v1/bookie/read_journal_file/?journal_dir=<journal_dir>&journal_id=<journal_id>&print_msg=<print_msg>

GET

Read journal fie content from disk.

Parameters

NameTypeRequiredDescription
journal_dirStringYes

Journal directory

journal_idStringYes

Journal file name/id.

print_msgBooleanNowhether print message body.

Response

Code

Description

200successful operation.
403

Don't have permission

404File not found

/api/v1/bookie/print_last_log_mark

GET

Get the last log marker.

Response

Don't have permission
Code

Description

200successful operation.
403

/api/v1/bookie/expend_storage

POST

Expend storage for a bookie.

Response

Code

Description

204successful operation.
403

Don't have permission

...